Moving average Next generation

Bewinner

Well-Known Member
#3
This is known as 3g MA I suppose...

The code of amibroker is created By Kartik Marar Sir..So I am posting it here...


HTML:
MA_Period = 14;
MA_Sampling_Period = 5;

MA_Applied_Price = 5;
Lambda = 1.0 * MA_Period / (1.0 * MA_Sampling_Period);
Alpha = Lambda * (MA_Period - 1) / (MA_Period - Lambda);

MA1 = MA(C,MA_Period);
MA2 = MA(MA1,MA_Sampling_Period);
MA3G = (Alpha + 1) * MA1 - Alpha * MA2;
Plot(MA3G,"3GMA",colorRed,1|styleThick);
Plot(MA1,"3GMA",colorBlue,1|styleThick);
Plot(C,"close",IIf(MA3G > MA1,colorLime,colorRed),styleBar|styleThick);
 

DanPickUp

Well-Known Member
#4
This is known as 3g MA I suppose...

The code of amibroker is created By Kartik Marar Sir..So I am posting it here...


HTML:
MA_Period = 14;
MA_Sampling_Period = 5;

MA_Applied_Price = 5;
Lambda = 1.0 * MA_Period / (1.0 * MA_Sampling_Period);
Alpha = Lambda * (MA_Period - 1) / (MA_Period - Lambda);

MA1 = MA(C,MA_Period);
MA2 = MA(MA1,MA_Sampling_Period);
MA3G = (Alpha + 1) * MA1 - Alpha * MA2;
Plot(MA3G,"3GMA",colorRed,1|styleThick);
Plot(MA1,"3GMA",colorBlue,1|styleThick);
Plot(C,"close",IIf(MA3G > MA1,colorLime,colorRed),styleBar|styleThick);
MA in what ever way is MA and nothing else.

There are various books about MAs and I guess most of you do not have read any of them.

Building up any ways of trading just on MAs is not to recommend, even many thread here do recommend so, as if it is the thing to do so.

MA is build and given to non pros to give them a mind of security to take a trade because of that, and nothing else.

Even it is used in conjunction with other TA Indicators, it does not give any guarantied returns in today's market as it did in the past.

But as long as people believe in it, some people on what ever side always will appreciate and enjoy any post about how successful any afl about is and how successful it worked on any shown chart.

Your choice and as always: Good learning / and good trading

DanPickUp
 

Raghuveer

Well-Known Member
#5
#7
Hi BEWINNER
Thanks for the info.
There is a small change.
Replace the line
Plot(MA1,"3GMA",colorBlue,1|styleThick);
with this line-this is correct.
Plot(MA14,"MA14",colorBlue,1|styleThick);

And moving averages are Lagging generally.Traders are looking for non lagging or zero lag moving averages. The purpose of a moving average is just average the price-moving average helps see the trend in clarity.
regards
ford


This is known as 3g MA I suppose...

The code of amibroker is created By Kartik Marar Sir..So I am posting it here...


HTML:
MA_Period = 14;
MA_Sampling_Period = 5;

MA_Applied_Price = 5;
Lambda = 1.0 * MA_Period / (1.0 * MA_Sampling_Period);
Alpha = Lambda * (MA_Period - 1) / (MA_Period - Lambda);

MA1 = MA(C,MA_Period);
MA2 = MA(MA1,MA_Sampling_Period);
MA3G = (Alpha + 1) * MA1 - Alpha * MA2;
Plot(MA3G,"3GMA",colorRed,1|styleThick);
Plot(MA1,"3GMA",colorBlue,1|styleThick);
Plot(C,"close",IIf(MA3G > MA1,colorLime,colorRed),styleBar|styleThick);
 

Bewinner

Well-Known Member
#9
Hi BEWINNER
Thanks for the info.
There is a small change.
Replace the line
Plot(MA1,"3GMA",colorBlue,1|styleThick);
with this line-this is correct.
Plot(MA14,"MA14",colorBlue,1|styleThick);

And moving averages are Lagging generally.Traders are looking for non lagging or zero lag moving averages. The purpose of a moving average is just average the price-moving average helps see the trend in clarity.
regards
ford
Ford bro...Replacing MA1 with MA14 is giving error...Please post the whole change
 

Similar threads