SECTION_BEGIN("QQE"); // QQE (Quantative Qualitative Estimation) QQE_Periods QQE_SF QQE_RSI_MA QQE_ATR_RSI QQE_MA_ATR_RSI QQE_DAR QQE_DAR_Fast = Param("Period

", 14, 3, 30, 1 ); = Param("Smoothing factor", 5, 1, 30, 1 ); = = = = = EMA(RSI(QQE_Periods),QQE_SF); abs(Ref(QQE_RSI_MA,-1)-QQE_RSI_MA); EMA(QQE_ATR_RSI, 2*QQE_Periods-1); EMA(QQE_MA_ATR_RSI, 2*QQE_Periods-1)*4.236; EMA(QQE_MA_ATR_RSI, 2*QQE_Periods-1)*2.618;

function QQE_TR(RSIMA, DARFACTOR) { result[ 0 ] = 0; for( i = 1; i < BarCount; i++ ) { if (RSIMA[i] < result[i-1]) { result[i]=RSIMA[i]+DARFACTOR[i]; if ((RSIMA[i-1] < result[i-1]) AND (result[i] > result[i-1])) { result[i] = result[i-1]; } } else { if (RSIMA[i] > result[i-1]) { result[i]=RSIMA[i]-DARFACTOR[i]; if ((RSIMA[i-1] > result[i-1]) AND (result[i] < result[i-1])) { result[i] = result[i-1]; } } } } return result; } QQE_FastSignal = QQE_TR(QQE_RSI_MA,QQE_DAR_Fast); QQE_SlowSignal = QQE_TR(QQE_RSI_MA,QQE_DAR); Color88=IIf (QQE_RSI_MA> Ref(QQE_RSI_MA, -1), colorGreen, colorOrange); Plot(QQE_RSI_MA,"QQE"+ _PARAM_VALUES(),Color88, ParamStyle("QQE style",styleThic

colorGreen. shape = Buy * shapeUpArrow + Sell * shapeDownArrow. //Plot(QQE_FastSignal. colorOrange). ParamColor("FastSignal color". ParamColor("SlowSignal color". ParamStyle("SlowSignal style".styleDashed) ). //PlotShapes( shape. 0. Sell = Cross(QQE_SlowSignal. QQE_RSI_MA). _SECTION_END(). Plot (50. Color88= IIf (QQE_RSI_MA> 50. QQE_SlowSignal). colorBlue ). Buy = Cross(QQE_RSI_MA. IIf( Buy. //Plot(QQE_SlowSignal. colorOrange ). color88. QQE_RSI_MA ).k)). Cover=Buy. "SlowSignal". ParamStyle("FastSignal style".styleDashed) ). styleLine). colorGreen. colorRed ). "". Short=Sell. "FastSignal". .

Sign up to vote on this title
UsefulNot useful