0
(0)
नाम:
Welch Bollinger Band ® Width
लेखक: maj1es2tic (2011.08.08 12:44)
डाउनलोड: 6131
डाउनलोड करना:
Welch Bollinger Band ® Width 1
WelchBBWidth.mq4 (5.0 केबी) देखना
लेखक:

maj1es2tic (Tim Welch)

विवरण:

This indicator takes the current Width of the Bollinger Bands and compares it to the Maximum and Minimum Width of the Bollinger Bands over N periods (WidthCalcPeriod).

If the calculated percentage is less than or equal to MinRangePercent, then the histogram shows Green. If the calculated percentage is 2x the MinRangePercent, then the histogram shows Yellow. If neither of those match, the histogram shows Red.

This works out well to quickly see if the currency pair is ranging, or about to break out of range. If you set ShowWidthLine to true, then it will also show a line with the actual width of the Bollinger Bands in PIPS. This should work for 4 और 5 digit brokers and it works on all currency pairs.

Using iCustom to pull out values for an Expert Advisor or other Custom Indicators:

You should be able to pull out any of the values externally using the following code:

int period=0; // how far back do you want to look? 0 == current bar. 1 == previous bar, वगैरह.
              // At any given time, only one of these 3 will have a value greater than 0. That value is 300.

double WelchBBWidth_Green = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 0, अवधि);
double WelchBBWidth_Yellow = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 1, अवधि);
double WelchBBWidth_Red = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 2, अवधि);

// This will give you the actual width in PIPs of the Bollinger Bands
double WelchBBWidth = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 3, अवधि);

// These will give you the actual Bollinger Band Line values.
// These are the values that would be plotted on the MAIN chart, so it's based on price on the chart.
double WelchBBWidth_MiddleLine = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 4, अवधि);
double WelchBBWidth_UpperLine = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 5, अवधि);
double WelchBBWidth_LoweLine = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 6, अवधि);

You could put something like this in your Expert Advisor:

/*
* int areWeRanging(int period=0)
*
* Returns 1 for GREEN (ranging)
* Returns -1 for YELLOW ( start/end of range)
* Returns 0 अन्यथा (no range)
*/

int areWeRanging(int period=0) 
{
 double WelchBBWidth_Green = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 0, अवधि);
 double WelchBBWidth_Yellow = iCustom(व्यर्थ, 0, "WelchBBWidth", 20, 0, 2.0, 20, "एक्स", 100, "एक्स", असत्य, 1, अवधि);

 अगर ( WelchBBWidth_Green > 0 ) 
 {
   वापस करना (1);
 } 
 else if ( WelchBBWidth_Yellow > 0) 
 {
   वापस करना (-1);
 }

 वापस करना (0);
}

// Check to see if we are coming out of a range. 
// This tells us that the LAST candle was still in a range,
// but the current candle is now breaking free of the range.
अगर ( areWeRanging(1)==1 && (areWeRanging(0)==-1 || areWeRanging(0)==0) ) 
 {
  Print("We were ranging, but have now broken out of the range! Make a trade if other indicators confirm the breakout!");
 }

** Use any/all code at your own discretion, and only place real trades when you have confirmation of other indicators. **

छवि:

Welch Bollinger Band ® Width 2

*टिप्पणी: The dark grey vertical lines and red arrows were added to show the correlation of the indicator to the bollinger bands on the chart and they will NOT show up on your chart.

Welch Bollinger Band ® Width 3

आनंद लेना!

-Tim

ये पोस्ट कितनी उपयोगी थी?

इसे रेट करने के लिए किसी स्टार पर क्लिक करें!

औसत श्रेणी 0 / 5. वोटों की गिनती: 0

अभी तक कोई वोट नहीं! इस पोस्ट को रेट करने वाले पहले व्यक्ति बनें.

हमें खेद है कि यह पोस्ट आपके लिए उपयोगी नहीं रही!

आइए इस पोस्ट को बेहतर बनाएं!

हमें बताएं कि हम इस पोस्ट को कैसे बेहतर बना सकते हैं?



लेखक: विदेशी मुद्रा विकी टीम
हम अत्यधिक अनुभवी विदेशी मुद्रा व्यापारियों की एक टीम हैं [2000-2023] जो अपनी शर्तों पर जीवन जीने के लिए समर्पित हैं. हमारा प्राथमिक उद्देश्य वित्तीय स्वतंत्रता और स्वतंत्रता प्राप्त करना है, और हमने स्व-शिक्षा का अनुसरण किया है और एक स्व-टिकाऊ जीवन शैली प्राप्त करने के हमारे साधन के रूप में विदेशी मुद्रा बाजार में व्यापक अनुभव प्राप्त किया है।.