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" <[EMAIL PROTECTED]>
To: <[email protected]>
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
>
>
>