When I do private ATR atr; is not a problem, but when I run private mrsi mRSI;
I get the following error.
| AmbitiousEquation.cs | 'NinjaTrader.NinjaScript.Strategies.Strategy.mRSI( int)' is a 'method' but is used like a 'type' | CS0118 | 48 | 11 |
So I always have to refer it in the strategy directly, like if(Slope(mRSI(14),1,0) > 0) bla bla.. and not if(Slope(mrsi,1,0) > 0)
See attached working indicator.
public class AmbitiousEquation : Strategy
{
//private SMA smaPeriodHigherTimeFrame;
private ChoppinessIndex choppinessIndex;
private ATR atr;
private mrsi mRSI;

Comment