+91-0000000000

}

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

EMA Stoch

“EMA Stoch” might refer to a modification or combination of the Exponential Moving Average (EMA) and the Stochastic Oscillator.  Developing an Amibroker AFL script for EMA Stoch likely involves customizing the Stochastic Oscillator formula with EMA components. When used alongside an accurate Amibroker data feed, this indicator might offer insights into potential overbought or oversold market conditions.

/_SECTION_BEGIN("EMA Stoch"); 

// Written by xytise@gmail.com for inditraders forum as per poster request
// Version 0.2 (c) 24th September 2011, 9:10pm
// http://www.inditraders.com/amibroker/5322-ema-stochastic.html 
  
Plot(Param("TopLine",20,0,100),"",ParamColor("Level-color",colorViolet), ParamStyle ( "Level-style" ,styleDashed |styleNoTitle | styleNoRescale ) ); 
Plot(Param("BottomLine",80,0,100) ,"",ParamColor("Level-color",colorViolet), ParamStyle ( "Level-style" ,styleDashed |styleNoTitle | styleNoRescale ) ); 

//Stochastic %D 
  
periods = Param( "Periods", 15, 1, 65, 1 ); 
Ksmooth = Param( "%K avg", 3, 1, 65, 1 ); 
Dsmooth = Param( "%D avg", 3, 1, 65, 1 ); 
SD=StochD( periods , Ksmooth, DSmooth );
Plot( SD ,"Stochastic %D "+"("+periods+","+Ksmooth+","+DSmooth+")", colorRed, styleLine );  
  
//Stochastic %K 
  
periods = Param( "Periods", 15, 1, 65, 1 ); 
Ksmooth = Param( "%K avg", 3, 1, 65, 1 ); 
SK=StochK( periods , Ksmooth); 
Plot( SK ,"Stochastic %K "+"("+periods+","+Ksmooth+")", colorBlue, styleLine ); 

//Stochastic %D and %K Moving Average

MAper1 = Param( "MA Period 1", 15, 1, 65, 1 ); 
MAper2 = Param( "MA Period 2", 13, 1, 65, 1 ); 
MASD=MA(SD,MAper1);
MASK=MA(SD,MAper2);  
Plot( MASD ,"MA(Stochastic %D "+"("+periods+","+Ksmooth+","+DSmooth+")"+MAper1+")", colorBrightGreen, styleLine|styleThick );  
Plot( MASK ,"MA(Stochastic %D "+"("+periods+","+Ksmooth+","+DSmooth+")"+MAper2+")", colorYellow, styleLine|styleThick );  
_SECTION_END();

Open chat
1
Hi, how can I help you?