Strategy 'SysV4': Error on calling 'OnBarUpdate' method on bar 20: Object reference not set to an instance of an object.
Here's my code which on a UniRenko chart, is grabbing the *reversal* value:
protected override void OnBarUpdate() { if (CurrentBar < BarsRequiredToTrade) return; double reversal = (ChartControl.BarsPeriod.Value2 * TickSize) * 100; }
Comment