945
The Metastock version of Quantative Qualitative Estimation with two trailing stop lines and more options
Yellow line can be hidden if its too many signals and expirement with the Slow/Fast Trailing stop lines.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?
//By Glaz Metastock Version of QQE
study("QQE")
src=close
Fast=input(2.6180)
Slow=input(4.2360)
RSI=input(14)
SF=input(2,title='Slow Factor')
WiMA(src, length) => 
    MA_s=(src + nz(MA_s[1] * (length-1)))/length
    MA_s

RSIndex= ema(rsi(close,RSI), SF)

//{Smoothed ATR of Smoothed RSI}
TH= iff(RSIndex[1] > RSIndex, RSIndex[1], RSIndex)
TL= iff(RSIndex[1] < RSIndex, RSIndex[1], RSIndex)
TR= TH-TL

AtrRsi= WiMA(TR, 14)
SmoothedAtrRsi= WiMA(AtrRsi, 14)

//{Fast and Slow ATR Trailing Levels} 

DeltaFastAtrRsi= SmoothedAtrRsi*Fast

newshortband=  RSIndex + DeltaFastAtrRsi
newlongband= RSIndex - DeltaFastAtrRsi
longband=RSIndex[1] > longband[1] and RSIndex > longband[1]?
 max(longband[1],newlongband):newlongband
shortband=RSIndex[1] < shortband[1] and  RSIndex < shortband[1]?
 min(shortband[1], newshortband):newshortband
trend=cross(RSIndex, shortband[1])?1:cross(longband[1], RSIndex)?-1:nz(trend[1],1)
FastAtrRsiTL = trend==1? longband: shortband

DeltaSlowAtrRsi= SmoothedAtrRsi*Slow

newshortband1=  RSIndex + DeltaSlowAtrRsi
newlongband1= RSIndex - DeltaSlowAtrRsi

longband1=RSIndex[1] > longband1[1] and RSIndex > longband1[1]?
 max(longband1[1],newlongband1):newlongband1
shortband1=RSIndex[1] < shortband1[1] and  RSIndex < shortband1[1]?
 min(shortband1[1], newshortband1):newshortband1

trend1=cross(RSIndex, shortband1[1])?1:cross(longband1[1], RSIndex)?-1:nz(trend1[1],1)
SlowAtrRsiTL= trend1==1? longband1: shortband1

plot(RSIndex,title="RSIndex",color=yellow)
plot(FastAtrRsiTL,title="FastAtrRSI",color=green)
plot(SlowAtrRsiTL,title="SlowAtrRSI",color=red)