Professional Documents
Culture Documents
/////////////////////////////////////////
Estocastico//////////////////////////////////////////////////////////
plot(k, color=color.blue)
plot(d, color=color.orange)
h0 = hline(80)
h1 = hline(20)
fill(h0, h1, color=color.purple, transp=95)
/////////////////////////////////////////Estocastico RSI
2///////////////////////////////////////////////////
plot(k2, color=color.blue)
plot(d2, color=color.orange)
h02 = hline(180)
h12 = hline(120)
fill(h02, h12, color=color.purple, transp=95)
//////////////////////////////////////////
Regalo///////////////////////////////////////////////////////////////
crossS = k3>280 and k2>180 and k>80
crossB = k3<220 and k2<120 and k<20
//////////////////////////////////////////DMI
STOCH//////////////////////////////////////////////////////////////
//DMI Stoch
// WWMA
wwma(l,p) =>
wwma = 0.0
wwma := (nz(wwma[1])*(l-1)+p)/l
//VALUES
DMIlength = input(10)
Stolength = input(3)
//DMI CALC
hiDiff = high - high[1]
loDiff = low[1] - low
plusDM = (hiDiff>loDiff)and(hiDiff>0)?hiDiff:0
minusDM = (loDiff>hiDiff)and(loDiff>0)?loDiff:0
ATR = wwma(DMIlength, tr)
PlusDI = 100*wwma(DMIlength,plusDM)/ATR
MinusDI = 100*wwma(DMIlength,minusDM)/ATR
osc = PlusDI-MinusDI