Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Auto-adaptive Ergotic Candlestick Oscillator for Amibroker (AFL)

Rating:
2 / 5 (Votes 7)
Tags:
oscillator, amibroker

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

Febo RSI ..real indicator
Submitted by abhinavsingh over 12 years ago
Trading Volume Statistic
Submitted by tuanstock1 almost 10 years ago
Ergodic Oscillator
Submitted by dljtrader over 13 years ago
3 Days Track
Submitted by janet0211 almost 14 years ago
Chande Momentum Oscillator
Submitted by klimpek over 13 years ago

Indicator / Formula

Copy & Paste Friendly
//-- 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

1. ocil

Thanks KelvinHand… god bless you…You are true gems…

2. rob hoot

Can I please have your email kelvinhand?

3. extremist

thank u Kelvinhand…..
really good work.
it seems u have good knowledge of all coding languages.

4. Sandipan

Another masterstroke delivered from KelvinHand

5. SIRISHA

Hi Mr. Kelvin, I appreciate if you can tell me how to use this indicator and timeframes for intraday / positional. Regards, Sirisha

Leave Comment

Please login here to leave a comment.

Back