Hey. is there anyone who can convert this
TOS indicator over to
Ninja trader
input KPeriod = 10;
input DPeriod = 10;
input priceH = high;
input priceL = low;
input priceC = close;
input slowing_period = 3;
input averageType = AverageType.SIMPLE;
input showBreakoutSignals = {default "No", "On FullK", "On FullD", "On FullK & FullD"};
def lowest_k = Lowest(priceL, KPeriod);
def c1 = priceC - lowest_k;
def c2 = Highest(priceH, KPeriod) - lowest_k;
def FastK = if c2 != 0 then c1 / c2 * 100 else 0;
def FullK = MovingAverage(averageType, FastK, slowing_period);
def FullD = MovingAverage(averageType, FullK, DPeriod);
def stochh = (if FullD > 55 then 1 else 0);
def stochl = (if FullD < 45 then 1 else 0);
def datah = (if FullK >= FullK[1] and FullK > FullK[-1] and FullD > 45 then high else Double.NaN);
def dataL = (if FullK <= FullK[1] and FullK < FullK[-1] and FullD < 55 then low else Double.NaN);
plot xdatah = datah ;
plot xdatal = dataL;
def sh = if !IsNaN(xdatah) then high else Double.NaN;
def sl = if !IsNaN(xdatal) then low else Double.NaN;
input showhilowline = yes;
plot stochupcd = if showhilowline == no then Double.NaN else if stochh == 1 then sh + .01 else Double.NEGATIVE_INFINITY;
stochupcd.EnableApproximation();
stochupcd.AssignValueColor(Color.YELLOW);
stochupcd.HideBubble();
plot stochdowncd = if showhilowline == no then Double.NaN else if stochl == 1 then sl - .02 else Double.NEGATIVE_INFINITY;
stochdowncd.EnableApproximation();
stochdowncd.AssignValueColor(Color.YELLOW);
stochdowncd.HideBubble();