before trying other avenues i wanted to kindly ask if anyone could do me a favor translating the following simple easy language indicator in whatever ninjia8 requires. i am new to Ninja and i cant focus on coding at this moment. This EL script works, and what it does is printing in the chart a dot above(red) /below (blue) a candle when the slow stochastics is above/below 80/20. the indicator below already sets the stochastics input, and i am fine with. See also a screenshot of how it looks like in TS (red and blue dots) thanks
inputs:
PriceH(High),
PriceL(Low),
PriceC(Close),
StochLength(9),
SmoothingLength1(3),
SmoothingLength2(3),
SmoothingType(1),
OverSold(20),
OverBought(80),
L1(4), // lunghezza media per calcolo offset
per(1.5);
variables:
ReturnValue(0),
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0);
ReturnValue = Stochastic(High, Low, Close, StochLength, SmoothingLength1,
SmoothingLength2, SmoothingType, oFastK, oFastD, oSlowK, oSlowD);
if oSlowD > OverBought Then
plot1(high + per * average(range, L1), "Sopra soglia", red)
Else
if oSlowD < OverSold Then
plot2(low - per * average(range, L1), "Sotto soglia", blue);
//Plot1(oSlowK, "SlowK");
//Plot1(oSlowD, "SlowD");
//Plot3( OverBought, !( "OverBot" ) ) ;
//Plot4( OverSold, !( "OverSld" ) ) ;

Comment