CS1502
The following CS1502 error code information is provided within the context of NinjaScript. The examples provided are only a subset of potential problems that this error code may reflect. In any case, the examples below provide a reference of coding flaw possibilities.
Error Code Explanation
This error can occur when you pass in incorrect parameter object types into a method such as an indicator.
Please check the overload methods for the proper parameter object types and pass in the proper object. You can check the overload methods with NinjaScript editor’s Intelliprompt when you call a method.
Error Description #1
The best overloaded method match for ‘NinjaTrader.NinjaScript.StrategyBase.SetStopLoss(CalculationMode, double)’ has some invalid arguments
Error Description #2
The best overloaded method match for ‘NinjaTrader.Indicator.Indicator.SMA(NinjaTrader.NinjaScript.ISeries\<double\>, int)’ has some invalid arguments

