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

Re: [amibroker] PlotShapes



PureBytes Links

Trading Reference Links

R
Here's a general PLOTSHAPE statement that someone on the forum used in an indicator formula.  Note the three parameters after color are 1) the layer you're plotting on, 2) price either High, Low, Close, etc and 3) offset in pixels;  if you want to specify offset and not take the default of -15 you have to have it in the proper position the function expects or label it as this author(was it Gordon?) did.  
Hope this helps

joe

PlotShapes(IIf(aAddedLPivs==1, shapeUpArrow , shapeNone), colorDarkGreen, 0, Low, Offset=-15;

 

----- Original Message -----
Sent: Friday, August 19, 2005 9:01 AM
Subject: [amibroker] PlotShapes

Hi All,

Am using the following PlotShapes statements.

PlotShapes(IIf(bc1,shapeUpArrow,shapeNone) ,colorYellow,0);
PlotShapes(IIf(bc2,shapeUpArrow,shapeNone) ,colorBrightGreen,0);
PlotShapes(IIf(sc1,shapeDownArrow,shapeNone) ,colorBlue,0);
PlotShapes(IIf(sc2,shapeDownArrow,shapeNone) ,colorRed,0);


Problem - sometimes the arrows both the up arrows and down arrows plot
within the body of the bar. Changing the offset values didnt solve the
problem either.

How can I resolve the problem? Any ideas?

TIA
Regards



R


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS