I want to plot MAX(High,CalcDistanceL)[1] on the chart, but I get an error.
This works:
Add(MAX(High,CalcDistanceL))
This does not work
Add(MAX(High,CalcDistanceL)[1])
Error:
1-Argument: cannot converted from "double" in "NinjaTrader.Indicator.IndicatorBase"
and
The best match for the overloaded NinjaTrader.Strategy.StrategyBase.Add(NinjaTrader. Indicator.IndicatorBase)-Methode has several invalid arguments
How can I plot the MAX as above?
thanks

Comment