On TradingView there are only ~700 trades
On Ninjatrader there are 5700
I'm assuming these are the exact same indicators, so I don't know what's going wrong.
Ninjascriptcode:
if (CrossBelow(StochRSI(14), 80, 1));
ExitLong("Long");
EnterShort("Short");
if (CrossAbove(StochRSI((14)), 20, 1));
EnterLong("Long");
ExitShort("Short");
----------------------
And this is my Pinescript code
//Long
long = ta.crossover(k, 20)
//Short
short = ta.crossunder(k, 80)
//Long Entry and Exit
if long
strategy.entry("Long",strategy.long)
strategy.close("Short")
//Short Entry and Exit
if short
strategy.entry("Short",strategy.short)
strategy.close("Long")

Comment