PureBytes Links
Trading Reference Links
|
Buy=Cross(Close,MA(Close,50));
Sell=0;
Filter=1;
AddColumn ( ValueWhen(Buy,Close), "close"); //gives close on "buy" date
AddColumn ( Close, "close"); //close
----- Original Message -----
Sent: Friday, November 04, 2005 10:13
PM
Subject: [amibroker] Unbelievably Simple
Question
I'm not a programmer nor new to AB but this incredibly
simple, fundamental problem has me stumped. I'm just trying to get
todays close in Explore but I continually get the close on the day the Buy
took place when running Explore for several days back (typically, n
last days=5 or so). I've checked Help and tried everything I can think
of but it still gives me the close on the buy date. How do I get the
following Explore code to give me TODAYS
close????
Buy=Cross(Close,MA(Close,50));
Sell=0;
Filter=Buy;
AddColumn(Close,"close");//gives
close on "buy" date
AddColumn(Ref(Close,0),"close");//still doesn't
work
Go easy on me gang-even I can't believe I can't figure this
out.
Thanks in
advance, Chuck
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
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
|