Hi,

 

you need to redifine your buy condition to assure that the buy condition is
not true all the bars. 

Another way would be to define a real Sell condition. This would allow you
to use the exrem function.

The code below hides all additional buys for 10 bars. 

 

Buy = MDI(14) > 30 AND MDI(14) > PDI(14) AND ADX(14) < Ref( ADX(14), -1 );

Sell = BarsSince(Buy)==10;

Buy = ExRem(Buy,Sell);

Sell = ExRem(Sell,Buy);

PlotShapes( Buy * shapeUpArrow, IIf( Buy, colorGreen, colorRed ) );

Plot(C,"C",1,128);

 

Thomas

 <http://www.patternexplorer.com/> www.patternexplorer.com

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Mohammed
Sent: Tuesday, February 13, 2007 5:43 PM
To: [email protected]
Subject: [amibroker] Please help me to Plot one Arrow

 

Hi All,

Buy = MDI(14) > 30 AND MDI(14) > PDI(14) AND ADX(14) < Ref( ADX(14), -1 );
Sell = 0;

PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy,
colorGreen, colorRed ) );

I use the above code to Plot arrow over price chart. But this plots too many
arrows. 

How can I Plot only the first arrow.

Thanks for help..:)

 

Reply via email to