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

Ergodic Candle Oscillator for Amibroker (AFL)
kaiji
almost 15 years ago
Amibroker (AFL)

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

The Ergodic Candle Oscillator for Amibroker based on the one in Ensign software with a convergence and divergence histogram. As far as i can tell this the most accurate translation of the formula and the best available. Tested and working with version 5.20

Screenshots

Similar Indicators / Formulas

Vortex Indicator w/ Histogram
Submitted by chaika over 14 years ago
Wilson Sentiment Index
Submitted by Xswingtrader over 14 years ago
MACD Histogram
Submitted by mrugen over 14 years ago
Special KADX Oscillator
Submitted by investor almost 15 years ago
Ultimate Trend Cycle
Submitted by investor over 14 years ago
Color MACD Histogram Changes
Submitted by kaiji almost 15 years ago

Indicator / Formula

Copy & Paste Friendly
// Blau: TSI & Ergodic Oscillator
Len_r = Param( "TSI period 'r':", 32 , 1 , 100 );
Len_s = Param( "TSI period 's':", 5 , 1 , 100 );
Len_5 = 5 ;

Mtm = C - Ref ( C, -1 );
AbsMtm = abs ( Mtm );

//===============================
Num_T = EMA ( EMA ( Mtm, Len_r ), Len_s );
Den_T = EMA ( EMA ( AbsMtm, Len_r ), Len_s );
TSI = 100 * Nz ( Num_T / Den_T );

//===============================
Num_E = EMA ( EMA ( Mtm, Len_r ), Len_5 );
Den_E = EMA ( EMA ( AbsMtm, Len_r ), Len_5 );

Ergodic = 100 * Nz ( Num_E / Den_E );
SigLin = EMA ( Ergodic, Len_5 );

//===============================
GraphXSpace = 2 ;
ErgCol = colorBlue;
Plot( Ergodic, "Ergodic Osc.", ErgCol, styleLine);
Plot( SigLin, "", colorDarkYellow, styleLine );

//===============================
Hist = Ergodic - SigLin;
HistCol = IIf ( Hist>= 0, colorGreen, colorRed );
Plot(Hist, "Histogram", HistCol, styleHistogram | styleThick | styleNoLabel);

//===============================
Title = EncodeColor( colorDarkBlue ) + FullName() + " [" + Name() + "]" +
EncodeColor( colorDarkGrey ) + WriteVal( DateTime(), formatDateTime ) + "\n" +
EncodeColor( colorBrown ) + "Blau: The Ergodic Oscillator, EO(" +
EncodeColor( ErgCol ) + "r" + EncodeColor(colorBrown ) + ",5,5 ) " +
EncodeColor( ErgCol ) + "r_Pds: " + Len_r +
EncodeColor( colorGrey40 ) + " (Adjustable).";

3 comments

1. Jorge

Thanks Great Code!

2. antoniodellisanti

hello,
thx for the great page,
I would be very very happy whether I could have the chance to get the code for Open Office Calc.
Would you please so kind to write the formula “Ergodic Candle Oscillator” for Open Office calc or.. Excel?

thx so muchhhhhhhh

Antonio Dellisanti

3. tradervn.hcm

great!!

Leave Comment

Please login here to leave a comment.

Back