// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("DungBuiTien-8"); td=MA(HHV(H,30)-C,3); rtd=MA(HHV(H,30)-LLV(L,30),3); ttd=MA((td/rtd)*100,2); Plot(-ttd,"",colorRed,styleLine); Plot(-MA(MA(ttd,9),3),"",colorBlue,styleLine); Plot(-MA(MA(MA(ttd,9),3),3),"",colorGreen,styleThick); Plot(LinearReg(-ttd,30),"",colorBrightGreen,styleThick); Buy=Cross(LinearReg(-ttd,30),-MA(MA(MA(ttd,9),3),3)) AND -ttd>-MA(MA(MA(ttd,9),3),3); Cover=Cross(LinearReg(-ttd,30),-MA(MA(MA(ttd,9),3),3)); Sell=LinearReg(-ttd,30)>=Ref(LinearReg(-ttd,30),-1) AND Ref(LinearReg(-ttd,30),-1)<=Ref(LinearReg(-ttd,30),-2); _SECTION_END(); _SECTION_BEGIN("Name"); GfxSetOverlayMode(0); GfxSelectFont("Tahoma", Status("pxheight")/8 ); GfxSetTextAlign( 6 ); GfxSetTextColor( ColorHSB( 45, 43, 43 ) ); GfxSetBkMode(0); GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/12 ); GfxSelectFont("Tahoma", Status("pxheight")/18 ); //GfxTextOut( IndustryID(1), Status("pxwidth")/2, Status("pxheight")/4 ); GfxSelectFont("Tahoma", Status("pxheight")/18 ); GfxSelectFont("Tahoma", Status("pxheight")/36 ); GfxTextOut( "indicators by Dung-BuiTien", Status("pxwidth")/2, Status("pxheight")/3 ); _SECTION_END();