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

RE: {Disarmed} Re: [amibroker] plotshapes changes array?



PureBytes Links

Trading Reference Links

If all else fails, read the fine manual.

-------

PLOTSHAPES

- plots arrows and other shapes Exploration / Indicators

(AFL 2.3)

 

 

SYNTAX  PlotShapes( shape, color, layer = 0, yposition = graph0, offset = -12 ); 

RETURNS NOTHING 

FUNCTION  Plots arrows and other shapes on any chart pane.

 

EXAMPLE Example 1:

PlotShapes( IIF( buy, shapeDigit9 + shapePositionAbove, shapeNone ), colorGreen );

 

 

Use the IIF to chose the shape!!!

 

 

 

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf Of Anthony C. Abry
Sent: Monday, December 03, 2007 5:42 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: {Disarmed} Re: [amibroker] plotshapes changes array?

 

Here is the formula again. I have changed a few things. The addcolumn statements confirm that the basis of the formula is correct when I run it in Exploration.
However, it does not display right. I get a dot on every singe bar, whereas it should only show a dot on the bar where WR4 = 1.

Thanks.

Anthony

// WR4 show me //


D1 = H-L;
D2 = Ref(D1,-1);
D3 = Ref(D1,-2);
D4 = Ref(D1,-3);


WR4 = 0;

WR4 = (H - L) > Ref(HHV(H-L,3),-1);


IIf (WR4 == 1,(PlotShapes( shapeSmallSquare, colorYellow, 0, H * 1.03 )),PlotShapes(shapeNone,colorGreen));
//PlotShapes( IIf( WR4 > 0, shapeSmallSquare, shapeNone ), colorYellow, 0, H * 1.03);

Filter = 1;


AddColumn( D1, "D1", 2.5 );
AddColumn( D2, "D2", 2.5 );
AddColumn( D3, "D3", 2.5 );
AddColumn( D4, "D4", 2.5 );
AddColumn( WR4, "WR4", 1 );





__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___