I am trying to build a CrossAbove condition that triggers when an indicator crosses above a fixed numerical value.
Ideally this would look like this, where 3 is my fixed numerical value.
if (CrossAbove(IndicatorSeries, [COLOR=#e74c3c][B]3[/B][/COLOR], 1)) { EnterLong(); }
Argument 2: cannot convert from 'double' to 'NinjaTrader.NinjaScript.ISeries<double>'
Is there any workaround to this? Can I create a series that is constantly equal to 3?
Comment