PureBytes Links
Trading Reference Links
|
The following code doesn't work as expected. What am I missing?
Thanks. (The buy flips once, then stays 1, even though Ref(posOpen, -
1) is 1.
Filter = 1;
posOpen[0] = 0;
Buy = (Ref(posOpen, -1) == 0);
posOpen = Buy;
Sell = 0;
AddColumn(BarIndex(), "BarIndex");
AddColumn(posOpen, "posOpen");
AddColumn(Ref(posOpen, -1), "Ref(posOpen -1)");
AddColumn(Sell, "sell");
AddColumn(Buy, "buy");
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@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
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/
|