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

Moving Averages for Amibroker (AFL)

Rating:
4 / 5 (Votes 1)
Tags:
amibroker

Mimic the idea from MT Platform. Allow the user to instantly change the Method, Period, Price, Shift to judge which MA. to use
Required Drag n Drop into price chart.

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez over 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn almost 13 years ago
3_6Day GuaiLiLv
Submitted by motorfly almost 13 years ago
Williams Alligator System
Submitted by durgesh1712 about 13 years ago
*Level Breakout system*
Submitted by Tinych about 13 years ago
Horizontal Live Priceline Tool
Submitted by northstar about 13 years ago

Indicator / Formula

Copy & Paste Friendly
//-- Author: KelvinHand
//TP - Typical Price (H+L+C)/2
//MP - Median Price  (H+L)/2 
//WP - Weight Price  (H+L+C+C)/4 


MAType    = ParamList("Type", "SMA,EMA,WMA,TSF,DEMA,TEMA,LinearReg,Wilders");
Periods   = Param("Periods", 20, 1, 500 );
iPrice    = ParamList("Price", "C,O,H,L,MP,TP,WP");

Shift     = Param("Shift", 0, -50, 50 );

cColor    = ParamColor("Color", ColorCycle);
iStyle    = ParamStyle("Style", styleLine, maskAll);


switch (iPrice)
{
   case "O"   : p = Open;        break;
   case "H"   : p = High;        break;
   case "L"   : p = Low;         break;
   case "MP"  : p = (H+L)/2;     break;
   case "TP"  : p = (H+L+C)/3;   break;
   case "WP"  : p = (H+L+C+C)/4; break;
   default:     p = Close;       break;
}


switch (MAType)
{
   case "EMA":     iMA = EMA( P, Periods );  break;
   case "WMA":     iMA = WMA( P, Periods );  break;
   case "DEMA":    iMA = DEMA( P, Periods ); break;
   case "TEMA":    iMA = TEMA( P, Periods ); break;
   case "Wilders": iMA = Wilders( P, Periods ); break;
   case "TSF":     iMA = TSF( P, Periods ); break;
   case "LinearReg": iMA = LinearReg( P, Periods ); break;


   default:   iMA = MA( P, Periods );	 break;
}

ShortName = MAType+Periods+iPrice;
if (Shift !=0)
   ShortName = ShortName + "x"+Shift; 

Plot( iMA, ShortName, cColor, iStyle, 0, 0, Shift);

1 comments

1. anandnst

Just need to go in parameter n change it..good invention. Thanx you

Leave Comment

Please login here to leave a comment.

Back