Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

All MA for Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
amibroker, moving average

This Indicator will plot 6 different MA on the chart that can be turned ON and OFF the styles can be set as per the user requirement

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("All MA");
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 ) ) ));
Styles=ParamStyle("Style");
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | styleLine | GetPriceStyle() );

Toggle10=ParamToggle("SMA-10","ON|OFF",1 );
Toggle20=ParamToggle("SMA-20","ON|OFF",1 );
Toggle50=ParamToggle("SMA-50","ON|OFF",1 );
Toggle100=ParamToggle("SMA-100","ON|OFF",1 );
Toggle200=ParamToggle("SMA-200","ON|OFF",1 );
Toggle450=ParamToggle("SMA-450","ON|OFF",1 );
if(Toggle10)
{
  Plot(MA(Close,10),"MA-10",colorBlue , Styles );
}
if(Toggle20)
{
  Plot(MA(Close,20),"MA-20",colorGreen , Styles );
}
if(Toggle50)
{
  Plot(MA(Close,50),"MA-50",colorRed , styleLine | Styles );
}
if(Toggle100)
{
  Plot(MA(Close,100),"MA-100",41 , styleLine | Styles );
}
if(Toggle200)
{
  Plot(MA(Close,200),"MA-20",39 , styleLine | Styles );
}
if(Toggle450)
{
  Plot(MA(Close,450),"MA-20",15, styleLine | Styles );
}


_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.

Back