Im currently grabbing the high and low bars within a specific range as follows:
if (Time[0] == startN) { nStart = CurrentBar-1; } if (Time[0] == Time[0].Date.AddHours(16)) { nEnd = CurrentBar; nBars = nEnd-nStart; nHigh = HighestBar(High, nBars); nLow = LowestBar(Low, nBars); }
Than boxing those values within that range as follows
if (Time[0] == Time[0].Date.AddHours(16)) { Draw.Rectangle(this, "Hi/Lo", false, startN, High[CurrentBar-(nEnd-nHigh)], endN, Low[CurrentBar-(nEnd-nLow)], Brushes.Red, Brushes.Transparent, 0, true); }
No issues there, but what I am having difficulty with is printing the time of that bar that forms the high and low within that range. Any assistance would be appreciated, it doesnt have to coincide with the above method on pulling the high bar.
Comment