Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Auto-adaptive Ergotic Candlestick Oscillator for Amibroker (AFL)
This indicator was converted by me from metastock follow a request in traderji.com
LE:=Input("LENGHT",1,200,14); Esp:=Input("Exponent",1,200,5); VRB:= Abs( Stoch(LE,1)-50)/50;MEsp:=2/(Esp+1); CaMe1:=If(Cum(1)<=((Le+Esp)*2),C-O,PREV+MEsp*VRB*((C-O)-PREV)); CaMe2:=If(Cum(1)<=((Le+Esp)*2),H-L,PREV+MEsp*VRB*((H-L)-PREV)); CaMe11:=If(Cum(1)<=((Le+Esp)*2),CaMe1,PREV+MEsp*VRB*(CaMe1-PREV)); CaMe22:=If(Cum(1)<=((Le+Esp)*2),CaMe2,PREV+MEsp*VRB*(CaMe2-PREV));ECO:=CaMe11/CaMe22*100; ECO; 0
This serve as an example of the how to convert a metastock PREV statement into amibroker:
The picture shown comparison of Metastock (Top) VS Amibroker (Bottom) of the indicator.
Screenshots
Similar Indicators / Formulas
Indicator / Formula
//-- Create by KelvinHand ---
LE=Param("LENGHT",14,1,200);
Esp=Param("Exponent",5, 1,200);
VRB= abs( StochK(LE,1)-50)/50;
MEsp=2/(Esp+1);
C_O = C-O;
H_L = H-L;
C1 = Cum(1)<=((Le+Esp)*2);
i=0;
CaMe1[i]=0;
CaMe2[i]=0;
i++;
for(;i<BarCount; i++)
{
prev1 = CaMe1[i-1];
prev2 = CaMe2[i-1];
if (C1[i])
{
CaMe1[i]=C_O[i];
CaMe2[i]=H_L[i];
}
else
{
CaMe1[i]=PREV1+MEsp[i]*VRB[i]*(C_O[i]-PREV1);
CaMe2[i]=PREV2+MEsp[i]*VRB[i]*(H_L[i]-PREV2);
}
}
i=0;
CaMe11[i]=0;
CaMe22[i]=0;
i++;
for(;i<BarCount; i++)
{
prev1 = CaMe11[i-1];
prev2 = CaMe22[i-1];
if (C1[i])
{
CaMe11[i]=CaMe1[i];
CaMe22[i]=CaMe2[i];
}
else
{
CaMe11[i]=PREV1+MEsp[i]*VRB[i]*(CaMe1[i]-PREV1);
CaMe22[i]=PREV2+MEsp[i]*VRB[i]*(CaMe2[i]-PREV2);
}
}
ECO=CaMe11/CaMe22*100;
Plot(ECO, "Auto-adaptive Ergotic Candlestick Oscillator", colorRed);
Plot(0, "", colorGrey50);5 comments
Leave Comment
Please login here to leave a comment.
Back
Thanks KelvinHand… god bless you…You are true gems…
Can I please have your email kelvinhand?
thank u Kelvinhand…..
really good work.
it seems u have good knowledge of all coding languages.
Another masterstroke delivered from KelvinHand
Hi Mr. Kelvin, I appreciate if you can tell me how to use this indicator and timeframes for intraday / positional. Regards, Sirisha