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

[amibroker] Re: Buy tomorrow at open, sell at close



PureBytes Links

Trading Reference Links

Tks to Dale, Nick & Nick

I was succesful with
Buy=Condition A;
Sell=True;

Backtester trade delay settings  1,1,1,1, & ticking the box
"Allow same bar exit (single bar trade)" under the General Tab which 
I had never needed to use before.    

Tks again all
Regds Gerard


--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> wrote:
>
> SetTradeDelays(1,1,1,1); //Trade the day after your signals
> BuyPrice = Open;
> SellPrice = Close;
> //other SetOption() statements - see Help section
> //your analysis code
> Buy = Condition A;
> Sell = Buy; //Sell the day you Buy
> --
> Terry
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On
> Behalf Of Gerard Carey
> Sent: Tuesday, May 30, 2006 21:22
> To: AB Yahoo group
> Subject: [amibroker] Buy tomorrow at open, sell at close
> 
> Hi all
> 
> If Condition A is met today, I wish to buy at tomorrow's open and 
sell
> at tomorrow's close.
> How do I code this?
> After much searching and many attempts to code this my brain 
appears to
> have turned to mush.
> 
> TIA
> Regds Gerard
> -- 
>   Gerard Carey
>   gerardncarey at fastmail dot fm
> 
> -- 
> http://www.fastmail.fm - Access your email from home and the web
> 
> 
> 
> 
> 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 --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/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/