PureBytes Links
Trading Reference Links
|
Hello,
Just use
SellPrice = Open;
and
set TRADE DELAY to 1 either by settings
or
SetTradeDelays(1,1,1,1);
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "ima_cons" <ima_cons@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, November 13, 2005 11:39 AM
Subject: [amibroker] Exit on Open
>
> Hy everybody,
>
> I tried to ask this question on the AFL list, but my message didn't
> hit the list.
>
> Let's suppose I'm long at the end of the day.
>
> Is there a way to code (in AFL) an exit on next day's open?
>
> A friend of mine suggested:
>
> Sell = true;
> SellPrice = (O,1);
>
> This works most of the time, but when there is a gap up at the
> open, the back tester takes previous day's high as SellPrice.
>
> Thanks in advance.
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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 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/
<*> 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/
|