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

[amibroker] Stop Loss Code Question



PureBytes Links

Trading Reference Links

Is there a way to code a stop loss so that the first 30 minutes (or x 
bars) of each day are ignored?  IOW, I'll get stopped out unless the 
stop were to occur during the first 30 minutes of the trading day.  

And can the time period be optimized, e.g. from 15 minutes to 60 
minutes?  (If optimization is too difficult, it's not as important.)

Using this code, what would be added/changed (assuming it's possible)?

ApplyStop(stopTypeLoss, 
          stopModePoint, 
          Optimize( "max. loss stop level", 1, .05, 2, .05 ), 
          True );

Thanks in advance,

Grant



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/