That is why I wrote it is hard to draw any conclusions when you don't know what kind of code it is and what is the actual problem with it.
When you perform an Exploration you usually work on arrays and AddColumn lets you display values of particular array elements or the values of some conditions (if they are met or not) for particular array element(s)/bar(s).
If you need a value of a particular element in an array, you can do it by using ValueWhen(), LastValue(), SelectedValue(), BeginValue(), EndValue() etc
If you need a value of n-th element of an array, you can do it by using subscript operator [ ]
Close [100]; - represents the 100th element of the close array.
If you are interested only in the value of the last bar, you can narrow Exploration's Range to 1 recent bar(s). And of course in this case you can still make use of Ref() function.
Regards
Miłosz
Posted by: milosz.mazurkiewicz@yahoo.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (4) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon