I'm losing it :( need some basic explanation pls..
Posted: Dec 01 2014
Hi,
can someone pls explain me why do i get this:
when running this i get the correct value (240 in this case):
now, if i add this line HighestHigh = Bars.High.Highest(BarsCount):
now i get 85 instead of 240.. why is that?
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