can someone pls explain me why do i get this:
when running this i get the correct value (240 in this case):
Code: Select all
Protected Overrides Sub CalcBar()
If Bars.LastBarOnChart Then
dim BarsCount as Integer
BarsCount = Bars.CurrentBar
Output.WriteLine("BarsCount: " & BarsCount.ToString)
End if
End Sub
Code: Select all
Protected Overrides Sub CalcBar()
If Bars.LastBarOnChart Then
dim BarsCount as Integer
BarsCount = Bars.CurrentBar
HighestHigh = Bars.High.Highest(BarsCount)
Output.WriteLine("BarsCount: " & BarsCount.ToString)
End if
End Sub