+91-0000000000

}

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

EMA RSI system

The EMA RSI System presumably represents a comprehensive trading system incorporating the Exponential Moving Average (EMA) and the Relative Strength Index (RSI) indicators. Creating an Amibroker AFL script for this system involves defining specific criteria for EMA and RSI crossovers or divergences to generate actionable trading signals. Integrating this system with an accurate Amibroker data feed ensures that traders receive reliable signals for decision-making.

/_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

r = Param("rsi",21,1,39,1);
slow_per = Param("slow period",3,1,39,1);
fast_per = Param("fast period",34,1,50,1);

Buy = Cross (EMA(RSI(r),slow_per),EMA(RSI(r),fast_per));
Sell= Cross (EMA(RSI(r),fast_per),EMA(RSI(r),slow_per));



Short = Sell;
Cover = Buy;
PlotShapes(Buy*shapeUpArrow,colorGreen);
PlotShapes(Sell*shapeDownArrow,colorRed);

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

Open chat
1
Hi, how can I help you?