I converted my indicator to an strategy, not drawings or plots, just calculations. It is based on Volume.
I'm getting the error OnBarUpdate method on bar 0: Index was outside the bounds of the array. The error is caused by the line "Value[0] = Instrument.MasterInstrument.InstrumentType == InstrumentType.CryptoCurrency ? Core.Globals.ToCryptocurrencyVolume((long)Volume[0]) : Volume[0];" but if I remove it the strategy does not do the calculations in the logic.
Please, could you help me?
Regards,
Marcos L.
Comment