Used to be able to do this in TS2000i with *FindAddress_High() and *FindAddress_Low() .dll calls of elkit32.dll by passing a -1 offset that would return the values of the next bar. Nor sure this can be done in MC though. In fact I am told it can not be done as future bars can not be referenced.
Another potential solution is to run though the chart once and store the high and Low values of each bar in 2 arrays using "CurrentBar" to index them. Then in the second run these array may be referenced to get the desired next bar values.
Using the Recalculate() may be helpful to achieve the second pass (though I am missing the details). Also not sure if I need to have the array in a DLL to make sure it retains the values after the end of the first pass. Or may be Global Variables can be used.
Any help and pointers about this will be most appreciated.
Thanks in advance.
Access to next bar's High and Low
Questions about MultiCharts and user contributed studies.
1 post • Page 1 of 1