I'm using the syntax
(BOLD.1<BOLD AND BOLD.1<BOLD.2)*(BOLD.1);
to plot a pivot level in a bollinger band. The chart works fine if I use the connect all non-zero values option, but I want to reference the value from another indicator without the zero. The end goal is to only change the value of the indicator if a new lower peak is formed.
I've tried to use
(CI=0)*CI.1;
thinking it would replace the zeros with the previous bar's value but no luck
I tried
(CI=0)*CI.1?CI.1:CI;
but still get the same results
Any ideas?
So you would create and save the following Signal...
(BOLD.1<BOLD AND BOLD.1<BOLD.2)
Then you would create this custom indicator....
REF(BOLD.1, SSTAT)
where SSTAT is setup as "Bars Since Last Signal" (referencing signal we created above).
That should do it..... Here is a chart definition that demonstrates...
https://www.linnsoft.com/charts/cp-bollingerholdvalue-es
This is perfect.
Thanks