Afl for simple moving average

#1
Hi...
I want afl indicator of simple moving average which can be applied to high low open and close.so w can plot diff setting on one chart


thanx a lot
 
#2
use this......

_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 
#3
use this......

_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
Can any body help me to convert the above amiBroaker AFL suitable for Metastock.Thanks
 
#4
thanx rananjay for ur afl

this ma is applied to close..sir i want same thing but it should applied to high and low also of that period...
 
#5
PERHAPS YOU ARE NEW TO AMIBROKER................ ANY WAY.....THIS AFL WILL SHOW YOU A LINE WHICH..IS...SIMPLE MOVING AVERAGE OF PRICE....BY DEFAULT IT IS SET TO THE CLOSING PRICE.......IT CAN BE applied to high and low also of that period........JUST RIGHT CLICK ON THE CHART.....AND SELECT PARAMETERS.....A DIALOG BOX WILL OPEN.......NOW FIND PRICE FIELD......YOU WILL SEE CLOSE IT WRITTEN THERE BY DEFAULT..........LEFT CLICK CLOSE AND YOU WILL SEE MORE VALUES....OPEN,HIGH,LOW,CLOSE,AVERAGE,VALUME,OPENINTREST......CLICK ANY ONE OF THEM.........WHICH YOU WANT TO USE.................I HOPE YOU GOT...........
 

Similar threads