PureBytes Links
Trading Reference Links
|
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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Mohammed
Sent: Tuesday, February 13, 2007 5:43 PM
To: amibroker@xxxxxxxxxxxxxxx
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..:)
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 2/12/2007 1:23 PM
|