Moving average from moving average - page 2

 

You must have been there already to give good advice...

 
forte928 >> :

You must have been there to give good advice...

I've never created an indicator based on a moving average, so I'm not there.

At least have the mouvings scaled... you may suppress the signal at the output along with the noise

Try a MACD with similar amplitude


 
kalabok писал(а) >>

never made indicators based on muwings ... You suppress the signal on the output along with the noise

Can you tell us what indicators you use?

 
To build a MA from a MA, simply drop a second MA on top of the first and specify "Apply to first indicator".
 

MA(n) from MA(n) - you will get a Triangular Moving Average

(it is important that the periods are the same). The weights will be set as a triangle, i.e. the greatest weight will be given to values in the middle of the window, and as you move to the left and right of the centre, the weights will decrease. This indicator is available in some packages, but it is not particularly useful, so it is rarely seen.
 
voltair >> :

And tell us what indicators you use?

Apply normal filters instead of mash-ups http://fx.qrz.ru/

 
kalabok >>: Try to make a MACD with a similar amplitude response.

Now try to explain to me what the real point of such a great bandpass filter is, as I'm not clueless about filters.

 
Mathemat >> :

Now try to explain to me what the real point of such a magnificent bandpass filter is, as I'm not clueless about filters.

Not all nerds would benefit from such a microscope.

 
forte928 писал(а) >>

MA from MA - you get a smoother curve...

the graph below shows three curves

yellow is the initial period of the MA

blue is MA from MA

and the pink one is MA with the period twice as long as the initial one

this indicator shows the difference of MA: MA[x]-MA[x+n] (ROC)

you can see that the double MA has a smoother curve

It looks convincing. I cannot fully understand what is the point here. I am confused by the absence of lag and even some advance (may be the tail is overdrawn or indeed the grail).

Could you please post the indicators?

 

I used LWMA - which in itself is the simplest, smoothes the trend more smoothly...

On the price chart itself there's a straight line which is smoothed by the Hodrick-Prescott algorithm

//------------------------------------------ ------------------------------------------ 
// MA_Method=3: LWMA - Linear Weighted Moving Average 
void LWMAOnArray(double aySource[],double& ayResult[],int iPeriod,int iCount)
{
for (int Ax= iCount-1; Ax>=0; Ax--){
double Sum = 0;
double Weight = 0;
for (int Px = 0; Px < iPeriod; Px++){ 
Weight= Weight+ ( iPeriod - Px);
Sum = Sum+ aySource[ Ax+ Px]*( iPeriod - Px);
}
if( Weight>0) ayResult[ Ax] = Sum/ Weight;
else ayResult[ Ax] = 0; 
}
return;
} 

//------------------------------------------------------------------------------- 

extern int FastPrd =14;
void Start
{

    CalcCount=1000;
    ArraySize( ayRate, CalcCount);
    ArraySize( ayBuf1, CalcCount);
    ArraySize( ayBuf2, CalcCount);
    ArraySize( ayBuf3, CalcCount);

    ArrayInitialize( ayRate,0);
    for (int Ix= CalcCount-1; Ix>=0; Ix--){
      ayRate[ Ix]=Close[ Ix];
    }
    LWMAOnArray( ayRate, ayBuf1, FastPrd, CalcCount);
    LWMAOnArray( ayBuf1, ayBuf2, FastPrd, CalcCount);
    LWMAOnArray( ayRate, ayBuf3, FastPrd*2, CalcCount);
...
    // отображаете каждый из массивов на график в виде трех линий
    // мое решение этого отображения FxView1=>Line1,FxView2=>Line2,FxView3=>Line3
    ArrayCopy( FxView1, ayBuf1,0,0, CalcCount);
    ArrayCopy( FxView2, ayBuf2,0,0, CalcCount);
    ArrayCopy( FxView3, ayBuf3,0,0, CalcCount);

...
   return;
}

// и получаете ту картинку которая отображенна на первой странице этого поста
Reason: