Asishda Kolkata for Amibroker (AFL)
soydan almost 16 years ago Amibroker (AFL)
Asishda Kolkata Buy-Sell Indicator
Screenshots
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("Asishda Indicatör");
SetChartBkColor(ParamColor("Outer panel color ",colorDarkGrey)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorBlack),
ParamColor("Inner panel color lower half",colorBlack),ParamColor("behind Text Color", colorGrey40));
SetBarsRequired(200,0);
Plot(C,"",colorBlue,styleBar);
a = Param("Angle",30,15,45,1);
pd = Param("Period",5,4,6,1);
P = ParamField("Price field",3);
a= (22/7)*(a/180);
Num = 0;
Den = 0;
for(i=1; i<=pd; i++)
{
if(pd%2==0 AND i > pd/2) X = sin((i-1)*a);
else X = sin(i*a);
Num = Num + X*Ref(P,1-i);
Den = Den + X;
}
if (den!=0) j1 = Num / Den;
Plot(j1,"j1",IIf(j1 > Ref(j1,-1),colorGreen,colorRed),styleThick);
Buy = Close > j1;
Sell = Close < j1;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
PlotShapes( shapeUpArrow* Buy , colorGreen ,0);
PlotShapes( shapeDownArrow* Sell, colorRed ,0);
//Plot(0,"",colorDarkBlue,styleLine);
Filter = Buy OR Sell;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
AddTextColumn(FullName(),"Name");
AddColumn( Buy, "BUY" );
AddColumn( Sell, "SELL" );
_SECTION_END();
_SECTION_BEGIN("Stop Loss");
xx = Param("XX =",.0174532,.001,.90174532,.010);
.0174532;
S1=sin(1*xx)*C;
S2=sin(2*xx)*Ref(C,-1);
S3=sin(3*xx)*Ref(C,-2);
S4=sin(4*xx)*Ref(C,-3);
S5=sin(5*xx)*Ref(C,-4);
Num=S1+S2+S3+S4+S5;
Den=sin(xx)+sin(2*xx)+sin(3*xx)+sin(4*xx)+sin(5*xx);
j1= Num/Den;
Plot(j1,"Stop Loss",ParamColor( "Color",13 ), styleLine | styleThick );
_SECTION_END();2 comments
Leave Comment
Please login here to leave a comment.
teşekkürler..
aynen sağolasın gardaş