i want to implement the value of the 5min VWAP in my 30min strategy
i try this:
protected override void Initialize()
....
Add(PeriodType.Minute, 5);
protected override void OnBarUpdate()
....
if (BarsInProgress != 0)
return;
if (ToTime(Time[0]) >= 90000 && ToTime(Time[0]) <= 190000
&& Close [0] > VWAP().VWAPLine (BarsArray [1] ) [0]
I get an error. what am I doing wrong?
Blackburn

Comment