Washington DC
Posts: 1 since Dec 2021
Thanks Given: 0
Thanks Received: 0
|
Hi all - New to this community. Previously I was trading on ThinkorSwim, and currently I am also using Ninja Trader to trade futures. I normally use an indicator in ThinkorSwim called "True Momentum Oscillator"
I have been trying to convert that to Ninja Trader, but have been hitting a brick wall. I have some coding knowledge however might not be as good as I thought when talking about this conversation.
Does anyone have seen this indicator on Ninja Trader? Or Can anyone provide any support based on the Think or Swim Code?
declare Lower;
input length = 14;
input calcLength = 5;
input smoothLength = 3;
def o = open;
def c = close;
def data = fold i = 0 to length
with s
do s + (if c > getValue(o, i)
then 1
else if c < getValue(o, i)
then - 1
else 0);
def EMA5 = ExpAverage(data, calcLength);
plot Main = ExpAverage(EMA5, smoothLength);
plot Signal = ExpAverage(Main, smoothLength);
Thank you if anyone can help put.
|