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

[amibroker] Translate EL to AFL



PureBytes Links

Trading Reference Links

 Input: LMult(1.2), SMult(1.8);

 

{ Entry Orders }

Buy at Open next bar + Average(Range,4) * LMult Stop;

Sell at Open next bar - Average(Range,4) * SMult Stop;

 

{ Exit at first Profitable Open }

If MarketPosition = 1 and Open next bar > EntryPrice  then

          ExitLong ("Long Profit")next bar at Open;

If MarketPosition = -1 and Open next bar < EntryPrice then

          ExitShort ("Short Profit") next bar at Open;

 

 

Please translate the above to AFL.

THX



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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS