Smoothed ADX by John Ehlers [

0
(0)
ਨਾਮ:
Smoothed ADX by John Ehlers [ ru | cn ]
ਲੇਖਕ: MetaQuotes (2008.02.10 15:45)
ਡਾਊਨਲੋਡ ਕੀਤਾ: 4699
ਡਾਊਨਲੋਡ ਕਰੋ:
Smoothed ADX by John Ehlers [ 1
ADX_Smoothed.mq4 (3.6 ਕੇ.ਬੀ) ਦੇਖੋ

Indicator Smoothed ADX was written on demand of a forum visitor and was not too difficult. ਹਾਲਾਂਕਿ, the search for a description of the smoothed ADX algorithm resulted in nothing. This is why I give below only the code that has been provided:


Inputs: {declaring inputs}
Length( 14 ),
ADXTrend( 25 ), alpha1(0.25), alpha2(0.33);

variables: {declaring variables}
DMIPlus( 0 ), DMIMinus( 0 ), DMI( 0 ), ADX( 0 ),
DIPlusLead(0), DIMinusLead(0), DIPlusFinal(0), DIMinusFinal(0),
ADXLead(0), ADXFinal(0);

{now calling the built-in ADX functions, so we don't need to calculate them}
Value1 = DirMovement( ਐੱਚ, L, ਸੀ, Length, DMIPlus, DMIMinus, ADX);
{this part is the actual smoothing of the original ADX indicator, DI+, DI- and ADX lines are smoothed}
DIPlusLead = 2*DMIPlus + (alpha1 - 2) * DMIPlus[1] + (1 - alpha1) * DIPlusLead[1];
DIPlusFinal = alpha2*DIPlusLead + (1 - alpha2) * DIPlusFinal[1];
DIMinusLead = 2*DMIMinus + (alpha1 - 2) * DMIMinus[1] + (1 - alpha1) * DIMinusLead[1];
DIMinusFinal = alpha2*DIMinusLead + (1 - alpha2) * DIMinusFinal[1];
ADXLead = 2*ADX + (alpha1 - 2) * ADX[1] + (1 - alpha1) * ADXLead[1];
ADXFinal = alpha2*ADXLead + (1 - alpha2) * ADXFinal[1];
{Plotting them on chart}
Plot1( DIPlusFinal, "DMI+" ) ;
Plot2( DIMinusFinal, "DMI-" ) ;
Plot3( ADXFinal, "ADX" ) ;


ਦਰਅਸਲ, if you don't try to get into the deep sense underlying the initial text of the smoothed ADX, this smoothing can be divided into two stages. Suppose we have a numerical sequence P and we have to smooth it with a minimum lag. For this, we build at the first stage function V(ਪੀ) of P-sequence oscillation from the following formula:

V0 = (8*P0 - 7*P1 + 3*V1) / 4,
ਕਿੱਥੇ:

  • P0 is the current value of the sequence (a price or an indicator);
  • P1 is the preceding value of the sequence;
  • V1 is the preceding value of oscillation;
  • V0 is the current value of oscillation.

ਜਾਂ, in a different way:

V0 = (Vol(ਪੀ) + 3*V1) / 4,

ਕਿੱਥੇ:

Vol(ਪੀ) = 8*P0 - 7P1 - Ehlers' burst (the term is invented by myself).

At the second stage, we apply the simple weighted smoothing:

W0 = (1*V0 + 2*ਡਬਲਯੂ1) / (2 + 1).
ਕਿੱਥੇ:

  • W0 is the current smoothed value of sequence P;
  • V0 ਹੈ the current value of P-sequence oscillation;
  • ਡਬਲਯੂ1 is the preceding smoothed value.
In Smoothed ADX, this smoothing algorithm is applied to all three buffers of standard indicator ADX. This is why the obtained indicator is called Smoothed ADX. If we were smoothing indicator RSI, we would call it Smoothed RSI, ਆਦਿ. The figure below shows that Smoothed ADX, indeed, is not so 'twitchy' as the original, standard ADX (ਔਸਤ ਦਿਸ਼ਾਤਮਕ ਅੰਦੋਲਨ ਸੂਚਕਾਂਕ).

Smoothed ADX by John Ehlers [ 2


1 ਟਿੱਪਣੀ ਇੱਕ ਨਵੀਂ ਟਿੱਪਣੀ ਪੋਸਟ ਕਰਨ ਲਈ, ਕ੍ਰਿਪਾ ਲਾਗਿਨ ਜਾਂ ਰਜਿਸਟਰ

This is a reallly good indicator. Thanks Rosh! I have one question. How would I compare the current ADXFinal value with the ADXFinal value 3 periods ago? Shouldn't it already be housed in the array? If so, ਕਿੱਥੇ? I the array count down confused me a bit as it's been a long time since I've coded. TIA.

ਇਹ ਪੋਸਟ ਕਿੰਨੀ ਲਾਭਦਾਇਕ ਸੀ?

ਇਸ ਨੂੰ ਦਰਜਾ ਦੇਣ ਲਈ ਇੱਕ ਤਾਰੇ 'ਤੇ ਕਲਿੱਕ ਕਰੋ!

ਔਸਤ ਰੇਟਿੰਗ 0 / 5. ਵੋਟਾਂ ਦੀ ਗਿਣਤੀ: 0

ਹੁਣ ਤੱਕ ਕੋਈ ਵੋਟ ਨਹੀਂ ਹੈ! ਇਸ ਪੋਸਟ ਨੂੰ ਰੇਟ ਕਰਨ ਵਾਲੇ ਪਹਿਲੇ ਬਣੋ.

ਸਾਨੂੰ ਅਫ਼ਸੋਸ ਹੈ ਕਿ ਇਹ ਪੋਸਟ ਤੁਹਾਡੇ ਲਈ ਉਪਯੋਗੀ ਨਹੀਂ ਸੀ!

ਆਓ ਇਸ ਪੋਸਟ ਨੂੰ ਸੁਧਾਰੀਏ!

ਸਾਨੂੰ ਦੱਸੋ ਕਿ ਅਸੀਂ ਇਸ ਪੋਸਟ ਨੂੰ ਕਿਵੇਂ ਸੁਧਾਰ ਸਕਦੇ ਹਾਂ?



ਲੇਖਕ: ਫਾਰੇਕਸ ਵਿਕੀ ਟੀਮ
ਅਸੀਂ ਉੱਚ ਤਜ਼ਰਬੇਕਾਰ ਫਾਰੇਕਸ ਵਪਾਰੀਆਂ ਦੀ ਇੱਕ ਟੀਮ ਹਾਂ [2000-2023] ਜੋ ਸਾਡੀਆਂ ਸ਼ਰਤਾਂ 'ਤੇ ਜ਼ਿੰਦਗੀ ਜਿਊਣ ਲਈ ਸਮਰਪਿਤ ਹਨ. ਸਾਡਾ ਮੁੱਖ ਉਦੇਸ਼ ਵਿੱਤੀ ਸੁਤੰਤਰਤਾ ਅਤੇ ਆਜ਼ਾਦੀ ਪ੍ਰਾਪਤ ਕਰਨਾ ਹੈ, ਅਤੇ ਅਸੀਂ ਸਵੈ-ਸਿੱਖਿਆ ਦਾ ਪਿੱਛਾ ਕੀਤਾ ਹੈ ਅਤੇ ਇੱਕ ਸਵੈ-ਟਿਕਾਊ ਜੀਵਨ ਸ਼ੈਲੀ ਨੂੰ ਪ੍ਰਾਪਤ ਕਰਨ ਦੇ ਸਾਡੇ ਸਾਧਨ ਵਜੋਂ ਫੋਰੈਕਸ ਬਜ਼ਾਰ ਵਿੱਚ ਵਿਆਪਕ ਅਨੁਭਵ ਪ੍ਰਾਪਤ ਕੀਤਾ ਹੈ।.