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

[amibroker] Re: Stop Loss Code Question



PureBytes Links

Trading Reference Links

Thank you very much, Tomasz.


--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 
wrote:
>
> Yes you can if you  have intraday data.
> 
> You would need to use "volatile" stop and assign very high value 
during first 30 minutes
> 
> First30Min = TimeNum() >= 93000 AND TimeNum() <= 100000;
> 
> ApplyStop(stopTypeLoss, 
>           stopModePoint, 
>           IIF( First30Min, 999999, Optimize( "max. loss stop 
level", 1, .05, 2, .05 ) ), 
>           True,
>            True );
>  
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "longarm61" <norm1@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, February 13, 2008 9:50 PM
> Subject: [amibroker] Stop Loss Code Question
> 
> 
> > 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
> > 
> > 
> >
>




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/