// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("MAD"); T=80; KMA=((C-MA(C,T))/MA(C,T))*100; Graph0=KMA; Graph0BarColor=IIf(KMA>0,5,4); cx=Param("cxposn",810,0,1200,1); cy=Param("cyposn",37,0,1000,1); GfxSetBkColor(ColorRGB(200,50,100)); GfxSelectFont( "Bodoni MT",22,98, False); GfxSetTextColor( colorYellow); GfxTextOut("LTP. "+C+" ", cx, cy ); _SECTION_END(); _SECTION_BEGIN("Name"); GfxSetOverlayMode(1); GfxSelectFont("Tahoma", Status("pxheight")/20); GfxSetTextAlign( 6 ); GfxSetTextColor( ColorHSB( 10, 300, 20 ) ); GfxSetBkMode(0); GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/20 ); _SECTION_BEGIN("Time Left"); function GetSecondNum() { Time = Now( 4 ); Seconds = int( Time % 100 ); Minutes = int( Time / 100 % 100 ); Hours = int( Time / 10000 % 100 ); SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds ); return SecondNum; } RequestTimedRefresh( 1 ); TimeFrame = Interval(); SecNumber = GetSecondNum(); Newperiod = SecNumber % TimeFrame == 0; SecsLeft = SecNumber - int( SecNumber / TimeFrame ) * TimeFrame; SecsToGo = TimeFrame - SecsLeft; x=Param("xposn",300,0,1000,1); y=Param("yposn",50,0,1000,1); GfxSelectSolidBrush( ColorRGB( 230, 230, 230 ) ); GfxSelectPen( ColorRGB( 223, 100, 230 ), 3 ); if ( NewPeriod ) { GfxSelectSolidBrush( colorYellow ); GfxSelectPen( colorYellow, 2 ); //Say( "New period" ); } GfxRoundRect( x+135, y+538, x+265, y+512, 0,0 ); GfxSetBkMode(1); GfxSelectFont( "Arial", 14, 800, False ); GfxSetTextColor( colorBlack ); GfxTextOut( "Timeleft"+" : "+NumToStr( SecsToGo, 1.0 ), x+200, y+515 ); _SECTION_END(); _SECTION_END(); _SECTION_BEGIN("mo"); mo(); _SECTION_END(); _SECTION_BEGIN("BS-Text"); ABC=SS_C1(); CD=SS_C2(); AA = SS_A1(); BB = SS_B1(); pos = 4.9*ATR(5); for( i = 0; i < BarCount; i++ ) { if( ABC[i] ) PlotText( "BUY * STOCKXRAY @\n" +AA[i], i, Low[i] - pos[i], colorAqua, Offset=-10 ); if( CD[i] ) PlotText( "SELL * STOCKXRAY @\n" + BB[i], i, Low[i] + pos[i], colorRose, Offset=-10 ); } _SECTION_END(); _SECTION_BEGIN("ADX"); range = Param("ADX Periods", 7, 2, 200, 1 ); Col_adx = IIf(ADX(range) > Ref(ADX(range),-1) AND ADX(range) > 20,colorBlue, colorGrey40); em = Param("EMA Of ADX",3,1,20,1); p = EMA(PDI(range),em); m = EMA(MDI(range),em); //Plot( ADX(range), _DEFAULT_NAME(), Col_adx , ParamStyle("ADX style", styleThick ) ); btp = BBandTop( P, 5, 0.4 ); bbp = BBandBot( P, 5, 0.4 ); btm = BBandTop( m, 5, 0.4 ); bbm = BBandBot( m, 5, 0.4 ); //Plot(btp , "" , colorDarkGreen, styleDashed ); //Plot(bbp , "" , colorDarkGreen, styleDashed ); //Plot( btm, "" , colorDarkRed, styleDashed ); //Plot( bbm, "" , colorDarkRed, styleDashed ); Col_p = IIf(p > btp, colorBrightGreen,colorDarkGreen); Col_m = IIf(m > btm,colorRed,colorDarkRed); //Plot( p, "+DI", Col_p, styleDots ); //Plot( M, "-DI", Col_m, styleDots ); Buy = ADX(range) > MDI(range) AND PDI(range) > MDI(range); Sell = ADX(range) > PDI(range) AND MDI(range) > PDI(range); Buy_sell = IIf(Buy,colorGreen,IIf(Sell,colorRed,colorBlack)); trend = IIf(col_p==colorBrightGreen,colorBrightGreen,IIf(col_m==colorRed,colorRed,IIf(PDI(range) > MDI(range),colorDarkGreen,colorDarkRed))); //Plot(6, "", Buy_sell, styleOwnScale| styleArea|styleNoLabel,-0.5,100); _SECTION_END(); _SECTION_BEGIN("B"); SetChartBkColor(colorPaleBlue); Buy_p = p > btp OR m < bbm; Buy_p1 =p > btp AND m < bbm; Sell_m = m > btm OR p < bbp; Sell_m1 = m > btm AND p < bbp; bs = IIf(O>bb,colorBrightGreen,IIf(O1;i--) { if(ABC[i] == 1) { BT11 = BT1[i]; BT22 = BT2[i]; BT33 = BT3[i]; BT44 = BT4[i]; entry = AA[i]; sig = "ABC"; tar1 = BT11; tar2 = BT22; tar3 = BT33; tar4 = BT44; bars = i; i = 0; } if(CD[i] == 1) { sig = "CD"; ST11 = ST1[i]; ST22 = ST2[i]; ST33 = ST3[i]; ST44 = ST4[i]; entry = BB[i]; tar1 = ST11; tar2 = ST22; tar3 = ST33; tar4 = ST44; bars = i; i = 0; } } Offset = 20; Clr = IIf(sig == "ABC", colorBlue,colorDarkRed); Plot(LineArray(bars-Offset, tar1, BarCount, tar1,1), "", Clr, styleLine, Null, Null, Offset); Plot(LineArray(bars-Offset, tar2, BarCount, tar2,1), "", Clr, styleLine, Null, Null, Offset); Plot(LineArray(bars-Offset, tar3, BarCount, tar3,1), "", Clr, styleLine, Null, Null, Offset); Plot(LineArray(bars-Offset, tar4, BarCount, tar4,1), "", Clr, styleLine, Null, Null, Offset); for (i=bars; i uptrendf,colorBrightGreen,colorRed),styleOwnScale|styleArea|styleNoLabel,1, 100,1); _SECTION_END(); _SECTION_BEGIN("93"); ORBHigh = SS_Z2(); ORBLow = SS_Z3(); yy=Cross(f30,ORBHigh); tt=Cross(ORBLow,f30); PlotShapes(shapeStar*yy,colorWhite,0,O,-20); PlotShapes(shapeStar*tt,colorBlack,0,O,20); ww=Cross(f30,tar2); qq=Cross(tar2,f30); PlotShapes(shapeHollowStar*ww,colorDarkBlue,0,L,-20); PlotShapes(shapeHollowStar*qq,colorViolet,0,H,20); _SECTION_END(); _SECTION_BEGIN("Volume"); cx = Param("cxposn",1000,0,1200,1); cy = Param("cyposn", 6,0,1000,10 ); GfxSelectFont( " Arial ", 18, 98, False ); GfxSetTextColor( colorWhite ); GfxTextOut("Volume " +Volume+ "", cx-300,cy +555); _SECTION_END(); _SECTION_BEGIN("Title"); DDayO = TimeFrameGetPrice("O", inDaily); DHiDay = TimeFrameGetPrice("H", inDaily); DLoDay = TimeFrameGetPrice("L", inDaily); prvC = TimeFrameGetPrice("C", inDaily, -1);//close Title = EncodeColor(ColorRGB(10,10,350))+"* STOCKXRAY * "+EncodeColor(colorWhite)+ Name() + ", " + Interval(2) + ", " + Date() + EncodeColor(colorBrightGreen) + "\nO " + EncodeColor(colorBrightGreen) + O + ", H : " + H + ", L : " + L+ EncodeColor(colorOrange) + " ~ Prev Close : " + EncodeColor(colorPink) + prvC +EncodeColor(colorGold)+ "\n Day-Open : " +DDayO + " Day-High : " +DHiDay + " Day-Low : "+ DLoDay ; _SECTION_END();