PureBytes Links
Trading Reference Links
|
Yuki,
You could code it like this:
Buy = 1;
Sell = 1;
SetTradeDelays(0,0,0,0);
BuyPrice = Open;
SellPrice = Close;
Regards,
William
-----Original Message-----
From: Yuki Taga [mailto:yukitaga@xxxxxxxxxxxxx]
Sent: Saturday 22 February, 2003 5:18 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] cannot buy on open
Sometimes the apparently simplest things are not, in AB.
I cannot seem to make it buy on the open and sell on the close the
same day, no matter what formula I enter. Everything is done on the
close. This is regardless of what I have in 'settings', and
regardless of what I write in code to control those settings.
Even a brain-dead:
Buy = Open; //nothing more, we'd buy every open and sell every close
Sell = Close;
SetTradeDelays(0,0,0,0);
BuyPrice = Open;
SellPrice = Close;
results in all buys and sells taking place on the close, at the same
price, of course. Can someone explain why I cannot control this?
Yuki ^_^
mailto:yukitaga@xxxxxxxxxxxxx
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|