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

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



PureBytes Links

Trading Reference Links

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 --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/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/