if (CrossAbove(smaFast, smaSlow, 1)). This is the only example I have to work with.
Its three simple moving averages. in NinjaTrader7 it is written like this:
if SMA(low,2)[1] > SMA(low,5)[1] &&
if SMA(high,6)[5] > SMA(high,2)[5]&&
if SMA(low,2)[4] > SMA(low,4)[4]
// enter Long 2 contracts
Its saying when simple moving average low of 2 crosses over simple moving average low of 5 one bar ago; and, simple moving average high of 6 crosses over simple moving average high of 2 five bars ago, and, simple moving average low of 2 crosses over simple moving average low of 4 four bars ago. How is this written in NT8? Thanks so much.
Comment