xtl formula

#44
Whenever cci(20) crosses 35, you get XTL blue bar. Whenever CCI(20) falls below 35, you get red XTL bar. CCI(20) between -35 & 35 paints black XTL bar. Enjoy trading guys and don not forget to thanx me. :)
 
#45
Whenever cci(20) crosses 35, you get XTL blue bar. Whenever CCI(20) falls below 35, you get red XTL bar. CCI(20) between -35 & 35 paints black XTL bar. Enjoy trading guys and don not forget to thanx me. :)
hi,

Congrats but i need some clarification on this? Is it possible to discuss on messenger or phone??

Regards,

Abhinay
 
#46
_SECTION_BEGIN("XTL");
periods = Param( "Periods", 20, 2, 200, 1 );
//Plot( CCI( periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

CCI20=CCI(20);

_SECTION_END();

_SECTION_BEGIN("PriceBars");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


Colorbar=IIf(CCI20>35,colorBrightGreen,IIf(CCI20<-35,colorRed,colorWhite));

Plot( C, "Close", Colorbar, styleNoTitle| styleThick | styleCandle );
_SECTION_END();

_SECTION_BEGIN("64 channel");

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
//Plot( C, "Close", ParamColor("Color", Null ), styleNoTitle | styleCandle );

P = ParamField("Field");
Type = ParamList("Type", "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted");
//Periods = Param("Periods", 30, 2, 300 );
//Displacement = Param("Displacement", 4, -50, 50 );
//m = 0;

//if( Type == "Simple" )
A = MA( H,6 );
B = MA( L,6 );


x= Ref(A,-4);
y= Ref(B,-4);

D=.0003;

xb=x-x*D;

yt=y+y*D;

//PlotOHLC( 0,xt,xb,xb ,"",ColorRGB(200,0,0), styleCloud);
//PlotOHLC( 0,yt,yb,yb ,"",ColorRGB(0,200,0), styleCloud);
PlotOHLC( 0,x,xb,xb ,"",colorGold, styleCloud);
PlotOHLC( 0,yt,y,y ,"",colorGold, styleCloud);
PlotOHLC( 0,x,y,y ,"",ColorRGB(50,50,10), styleCloud);
_SECTION_END();
/*
 
Thread starter Similar threads Forum Replies Date
R AmiBroker 0
R AmiBroker 1
A AmiBroker 11
S MetaStock 22
T AmiBroker 4

Similar threads