// Downloaded From https://www.WiseStockTrader.com // By Mr. Abhimanyu Y. Altekar abhimanyu.altekar@gmail.com // 6th January 2025 V1.2 Hor=Param("Horizontal Position",55,05,1200,1); Ver=Param("Vertical Position",90,5,1000,1); IsxPlot2 = ParamToggle ("Plot Hourly & 5Min Averages Only", "No|Yes",1); IsxPlot = ParamToggle ("Plot all Averages", "No|Yes",0); function xSignalF(xTf,Hor,Ver,sxTf,isPlot) { TimeFrameSet(xTF); ea5=EMA(C,5); ea13=EMA(C,13); ea21=EMA(C,21); TRSI = RSI(14); TimeFrameRestore(); exTRSI= LastValue(SelectedValue( TimeFrameExpand( TRSI,xTF,expandLast ))); RSIcolor =IIf(exTRSI > 70, colorBrightGreen, // SuperBullish IIf(exTRSI > 60 AND exTRSI <= 70, colorpaleGreen, // Bullish IIf(exTRSI > 50 AND exTRSI <= 60, colorTurquoise, // Rising IIf(exTRSI > 40 AND exTRSI <= 50, colorYellow, // FLAT IIf(exTRSI >= 30 AND exTRSI <= 40, colorLightOrange, // Bearish colorCustom12))))); exa5=TimeFrameExpand( ea5, xTF,expandLast ); exa13=TimeFrameExpand( ea13, xTF,expandLast ); exa21=TimeFrameExpand( ea21, xTF,expandLast ); if(isPlot) { Plot(exa5,"\n"+sxTf,colorGreen,styleThick); Plot(exa13,sxTf,colorBlue,styleThick); Plot(exa21,sxTf,colorOrange,styleThick); } sOK=WriteIf(exa5>exa13 OR exa5exa13 AND exa5>exa21,"Good " ,"Flat" ); sBad=WriteIf(exa5