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

[amibroker] Coding Multiple Exits



PureBytes Links

Trading Reference Links

Hi All, 

I am attempting to code the following system exits however am having 
no luck in making the code work.

Idividually, I believe I can mostly code each of the below exits, 
however I am not sure how to make them work as one so that in 
backtesting AmiBroker calculates the correct exit.

Would anyone be able to offer some guidance as to how I can best code 
the following Exits for a Short mean reversion system:

Exit 1 = Disaster Stop = Entry price + 4*ATR(20)

Exit 2 = Trailing Profit Stop = MA 3 - 0.5*ATR(20) only to be placed 
on DAY AFTER entry into the position

Exit 3 = Time stop = Exit next day once you have been in the trade 
for 2 days. Exit next day on open

Exit 4 = If distance between the Minimum value of today's Open / 
CLose  and today's LOW is greater than 1 ATR(15) then Cover next day 
on open - NOT TO CAUSE EXIT ON TRADE ENTRY DAY


Thanks,
Dimitri



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

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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