Skip to main content

KPShortTermTrend Bias for Amibroker (AFL)

knifeman over 15 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 4)
  • Tags:
    oscillator, amibroker

Plot either as a Histogram OR as a ribbon

Requires the following plugin to be installed:
Download Plugins
or
Download Plugins

Screenshots

Indicator / Formula

Copy & Paste Friendly
/* KPShortTermTrend Bias
	Plot either as a Histogram OR as a ribbon
*/
// tskp_sttb1, tskp_sttb2,tskp_sttb3
parmSTTBStyle = ParamStyle("STTB", styleHistogram+styleNoLabel, maskAll);
parmSTTBColorUp  = ParamColor("STTB color Up", colorBlue);
parmSTTBColorDn = ParamColor("STTB color Dn", colorRed);
parmRibbon = ParamToggle("Plot as ribbon", "No|Yes" , 0);
parmRibbonUpColor =ParamColor( "STTB ribbon olor Up", ColorRGB(167, 224, 243) );
parmRibbonDnColor =ParamColor( "STTB ribbon color Dn", ColorRGB(255, 192, 203) );
parmRibbonSize = Param("Ribbon size", 1, 0.5, 10, 0.5);
SetBarsRequired(350, -1);

//calculations
dummy = E_TSKPSHORTTERMTRADEBIAS(High,Low,Close);
KPSTTB1 = tskp_sttb1;
//Plots
if(parmRibbon == 0)
{
	Plot( KPSTTB1, "STTB1", IIf(KPSTTB1 > 0, parmSTTBColorUp, parmSTTBColorDn) , parmSTTBStyle ); 
}
else
	Plot( parmRibbonSize, StrFormat("STTB1(%g%)", SelectedValue(KPSTTB1) ) , IIf(KPSTTB1> 0, parmRibbonUpColor, parmRibbonDnColor) , styleArea |  styleNoLabel | styleOwnScale , 0, 10);

2 comments

over 15 years ago

not working for me sir i have done plug in and includs still not working sir

Leave Comment

Please login here to leave a comment.