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

[amibroker] How do you change stopTypeNBar to exit at the open of the exit day?



PureBytes Links

Trading Reference Links

Hi,

I'm trying to get the stopTypeNBar to work such that on the 3rd day 
(including trade day) after purchasing the share, it will exit on the 
market when it opens.

At the moment, my historical backtest keeps showing an exit price which 
is at the market's high and not the market opening.

This is the line of code which I'm using and I've read and re-read the 
applystop AFL code description but I can't find anything which allows 
me to control the level at which we exit the N-bar stop.

ApplyStop(stopTypeNBar,stopModeBars,2, 1, False, 2);



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/