It is a multi dataframe indicator. ( for example 5min and 10min) It also runs so that all trades are processed by the code (Calculate on bar close = False)
The graphing/ plotting is working perfectly.
I have placed a print statement in the main bar area to output Time, H L O C and my calculation value (that is plotted in the subpayne). The Time value and the calculation values are correctly printed, but the H L O C data contains a single value for all H L O C values on each output line in the output window. It makes no sense what value is being reported back for the H L O C values, each line is different form the previous, but all the H L O C values are the same.
Any ideas as to why this would occur? Any ideas on how to debug or resolve this?
I am confident I am referenceing the H L O C data correctly as the graph plotted and the calcuation value derived in this indicator are as I expect based on the H L O C values of the corresponding candle stick bars of the chart.
Comment