It still takes as input a variable BIP which tells it to calculate signals on BIP=1 or BIP=0. You can see from the chart that the indicator is set to BIP = 1 to use the internal bar series (5*25V).
In this one, I am saving points of change, and then looking for Div/Conv to draw.
If you look in the code, you see that the XPoint values are saved by
oetsiLL.Set(eTSI[i], b0-i, Time[b0-i]); // WRONG
histLL.Set(HIST[xh],b0-xh,Time[b0-xh]); // CORRECT
minorHH.Set(Highs[x][xm],bx-xm,Time[bx-xm]); // CORRECT
i, xh, xm are all barsago. b0 = CurrentBars[0] and bx=CurrentBars[x=1].
The attached snapshot shows the printout as well as the Data Box. minor & hist are both correct, even though they are on different bar series. etsi is wrong. Oddly, the bar = b0-i is CORRECT, but the Time[b0-i] is that of the very first bar on the chart CurrentBars[0]==0.
Since, in a multi-bar series, one must use Time to draw the DC line correctly, I need Time[] to assign the values correctly.
Is there a flavor of Time that specifies Bar series? If not, there needs to be one.


Comment