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

[amibroker] Trade entry failure detected indication-How to code the failure detection



PureBytes Links

Trading Reference Links

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



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/