Hi Friends,

I am stuck with a simple afl coding problem.
Can you help me with this please

problem

My entry condition AND Exit condition is

Buy =EntrySignal;
EntrySignal = C > ( LLV( L, 20 ) + 2.0 * ATR( 10 ) ); 
SellSignal = C < ( HHV( H, 20 ) - 2.0 * ATR( 10 ) ); 

Once entry is made, I wish to exit on a failed trade.
Condition for failed tradesignal is
==========================================================
Price must rise 0.5% over my entrysignal within next 10 bars.
==========================================================
otherwise I must get indication by an arrow saying trade failed exit now
How to code this line for a long trade?
My Entrysignal is indicated by triangle by this codeline
PlotShapes(shapeUpTriangle*Buy, colorBlue,0,L,-10 );

Thanks in advance,
rvlv

Reply via email to