+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Oscillator Modified

In AFL, an Oscillator Modified refers to a customized oscillating indicator derived from price data. By leveraging an [AmiBroker data feeder] to access external data, one can modify oscillators to suit specific trading strategies or preferences, enhancing their effectiveness in identifying overbought or oversold conditions.

/
_SECTION_BEGIN("Dahl Oscillator modified");

//
//  Modified formula from original DAHL(55) with 14 simple average. Used TEMA
//  instead of simple MA, added parameters and optimization. Good also for
//  trading system (as indicator to be used with 10 and 90 levels also)..
//
//------------------------------------------------------------------------------

/*Dahl Oscillator TS modificato (TEMA)

*/ 
P=14;Q=34;R=9;AV=6;
p = Optimize("Period",P,3,25,1); 
q = Optimize("Q ",Q,20,36,2); 
//r = Optimize("R lookback",R,5,25,1); 
Av = Optimize("S Average",AV,2,30,2); 

M=MA(C,q);
Dahl = TEMA(	( M - Ref(M,-p)- LLV (M - Ref(M,-p),r) )/(HHV(M - Ref(M,-p),r)-(LLV(M - Ref(M,-p),r))),r)*100 ;

Buy = Cover = Cross (dahl, MA(Dahl,av));
Short = Sell = Cross (MA(Dahl,av), dahl);


GraphXSpace=2;
Plot(Dahl,"Dahl",4,4); 
Plot(MA(Dahl,av),"Avg",7,4); 
//===========================end Dahl oscillator
_SECTION_END();

Open chat
1
Hi, how can I help you?