[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Mark Peaks



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "directaim" <directaim@xxx> 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
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/