The Chaikin Oscillator (Amibroker And Tradestation Code)
The strategy in plain English:
We have not found this indicator to be very useful in trading. However, below we have provided the code for the indicator:
The indicator is calculated in four steps and is somewhat “complicated”:
- Money flow multiplier: ( (Close-Low)-(High-Low) ) / (high-Low)
- Money flow volume: Money flow multiplier * volume
- Accumulation/distribution line (ADL): previous ADL + current period’s money flow volume
- Chaikin oscillator: (x-day MA of ADL) – (x-day MA of ADL)
Click here to see the original article.
Amibroker code:
MFM = ( (Close – Low) – (High – Low) ) / (high – Low) ;
MFV = MFM*Volume;
ADL = MFV + Ref(MFV,-1);
CO = EMA(ADL,3) – EMA(ADL,10);
Tradestation code:
{ Chaikin oscillator }
Inputs:
FastLookback(3),
SlowLookback(10);
Vars:
MFM(0),
MFV(0),
ADL(0),
CO(0);
MFM = ((Close - Low) - (High - Low)) / (High - Low) ;
MFV = MFM * Volume;
ADL = MFV + MFV[1];
CO = XAverage(ADL, FastLookback) - XAverage(ADL, SlowLookback);
Value1 = CO;
Plot1( Value1, "Chaikin oscillator" ) ;
Disclosure: We are not financial advisors. Please do your own due diligence and investment research or consult a financial professional. All articles are our opinions – they are not suggestions to buy or sell any securities.
