It works!

Mike, 
thanks for the code
and the clear explaination.

directaim



--- In [email protected], "Mike" <sfclimb...@...> wrote:
>
> Peak returns actual peak values, not just 1 (true) or 0 (false). 
> 
> Therefore, when you multiply the result of Peak by shapeCircle (a scaler 
> constant) you are getting a whole range of values, none of which are valid 
> shape constants.
> 
> To correct your code, multiply the shape constant by an expression that 
> results in either a 1 (show shape) or a 0 (hide shape).
> 
> e.g.
> 
> PlotShapes(shapeCircle * (High == PvtPeak), colorRed, 0, H, 20) ;
> 
> Mike
> 
> --- In [email protected], "directaim" <directaim@> wrote:
> >
> > 
> > Using:
> > 
> > PvtPeak= Peak(H, 5, 1);
> > Plot(PvtPeak,"Peak", colorRed, styleLine);
> > 
> > a line is plotted from all Peaks.
> > 
> > But, using:
> > 
> > PvtPeak= Peak(H, 5, 1);
> > PlotShapes(shapeCircle*PvtPeak, colorRed, 0, H, 20) ;
> > 
> > no shape appears,
> > error arrows do appear.
> > 
> > Can a change be made 
> > to make shapes appear?
> > 
> > DirectAim
> >
>


Reply via email to