EMA-Exponential Moving Average is a very popular indicator and is extensively used in the technical analysis in the financial markets.
Those who use Amibroker mostly apply this indicator . However it may happen accidentally that the AFL used for EMA is deleted from the software. This brings in a lot of trouble for those who might not be very much familiar with the coding process.
To overcome this problem I am posting the AFL for the indicator here which can be copied from here then applied in the Amibroker software through the Formula Editor .
_SECTION_BEGIN("EMA");
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();
================================The End==================================
Those who use Amibroker mostly apply this indicator . However it may happen accidentally that the AFL used for EMA is deleted from the software. This brings in a lot of trouble for those who might not be very much familiar with the coding process.
To overcome this problem I am posting the AFL for the indicator here which can be copied from here then applied in the Amibroker software through the Formula Editor .
=============================Copy The Code From Below======================
_SECTION_BEGIN("EMA");
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();
================================The End==================================
No comments:
Post a Comment