I tried creating a strategy that goes long when two custom indicators (Double MA and TSSuperTrend) are both rising and NT doesn't seem to like it:
// Condition set 1
if (TSSuperTrend(3, TSSuperTrend.Utility.MovingAverageType.VMA, 1.23, 3, TSSuperTrend.Utility.SuperTrendMode.ATR).UpTrend[0] && DoubleMA(5, NinjaTrader.Indicator.MAV+MAType.HMA, 45, NinjaTrader.Indicator.MAV+MAType.VMA).RisingPlot[0])
I'm getting two each of the following error messages:
'NinjaTrader.Strategy.Strategy.TSSuperTrend(int, TSSuperTrend.Utility.MovingAverageType. double, int, TSSuperTrend.Utility.SuperTrendMode)' is a 'method' which is not valid in the given context
AND
'NinjaTrader.Indicator.Mav' is a 'type', which is not vaild in the given context
Any thoughts?
Thanks - Dave

Comment