0
(0)
नाम:
Smoothed ADX by John Ehlers [ आरयू | सीएन ]
लेखक: 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:


इनपुट: {declaring inputs}
Length( 14 ),
ADXTrend( 25 ), alpha1(0.25), alpha2(0.33);

चर: {declaring variables}
DMIPlus( 0 ), DMIMinus( 0 ), DMI( 0 ), एडीएक्स( 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( एच, एल, सी, Length, DMIPlus, DMIMinus, एडीएक्स);
{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) * एडीएक्स[1] + (1 - alpha1) * ADXLead[1];
ADXFinal = alpha2*ADXLead + (1 - alpha2) * ADXFinal[1];
{Plotting them on chart}
Plot1( DIPlusFinal, "DMI+" ) ;
Plot2( DIMinusFinal, "DMI-" ) ;
Plot3( ADXFinal, "एडीएक्स" ) ;


वास्तव में, 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. इसके लिए, 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*W1) / (2 + 1).
कहाँ:

  • W0 is the current smoothed value of sequence P;
  • V0 है the current value of P-sequence oscillation;
  • W1 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? यदि ऐसा है तो, कहाँ? 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] जो अपनी शर्तों पर जीवन जीने के लिए समर्पित हैं. हमारा प्राथमिक उद्देश्य वित्तीय स्वतंत्रता और स्वतंत्रता प्राप्त करना है, और हमने स्व-शिक्षा का अनुसरण किया है और एक स्व-टिकाऊ जीवन शैली प्राप्त करने के हमारे साधन के रूप में विदेशी मुद्रा बाजार में व्यापक अनुभव प्राप्त किया है।.