// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("KP Medium");
SetChartBkColor(ParamColor("Panel Color",colorLightGrey));
SetChartBkGradientFill(ParamColor("Upper Chart",colorLightGrey),ParamColor("Lower Chart",colorLightGrey));
//tskp_mediumma,tskp_mediumup,tskp_mediumdown
dummy = E_TSKPMEDIUM(Close);
mma=tskp_mediumma;
mup=tskp_mediumup;
mdn=tskp_mediumdown;
Plot(0,"",ParamColor("Zero Line",colorGrey50),styleLine|styleNoLabel);
Plot(tskp_mediumma,"MediumMA",ParamColor("MAColor",colorWhite ),ParamStyle("MAStyle",styleLine));
Plot(tskp_mediumup,"MediumUp",ParamColor("UpColor",colorBlue ),ParamStyle("UpStyle",styleArea|styleThick,maskHistogram));
Plot(tskp_mediumdown,"MediumDown",ParamColor("DownColor",colorRed ),ParamStyle("DownStyle",styleArea|styleThick,maskHistogram));
PlotShapes(IIf(Cross(mma,mup),shapeUpTriangle+ shapePositionAbove, shapeNone ), 32,0,Offset=mma);
PlotShapes(IIf(Cross(mdn,mma),shapeHollowSmallDownTriangle+ shapePositionAbove, shapeNone), 6,0,Offset=mma);
Plot(-20,"",12,styleLine|styleThick | styleNoLabel);
Plot(20,"",32,styleLine|styleThick | styleNoLabel);
Plot(-5,"", ParamColor("Color", 2) ,styleLine|styleThick | styleNoLabel);
Plot(5,"",ParamColor("Color", 2),styleLine|styleThick | styleNoLabel);
_SECTION_END();

_SECTION_BEGIN("KP TrendBias BackGround");//Plot Tone
dummy =  E_TSKPTRENDBIAS(High,Low,Close);
KPTB = tskp_sb;
KPTBSlow = tskp_tbxavg;
parmToneColorUp=ParamColor("Tone Color Up", colorLightBlue );
parmToneColorDn=ParamColor("Tone Color Dn", colorTan);
RibbonSize=Param("Ribbon Size",20,0.5,10,0.5);
Plot( RibbonSize,"",IIf(KPTB > KPTBSlow,parmToneColorUp,parmToneColorDn),styleOwnScale|styleArea|styleNoLabel,0,10);
_SECTION_END();