Author: Nick A. Zhilin
If you're on the lookout for a fresh take on the classic Bollinger Bands®, then the Float Pivot Digit indicator might just be your next go-to tool. This indicator features a colorful cloud filling inside the channel, displays the latest price values as labels, and even lets you round the channel levels to your preferred number of digits.
//+----------------------------------------------+//| INDICATOR INPUT PARAMETERS |//+----------------------------------------------+inputstring SirName="Float_Pivot_Digit"; //Graphical object name prefixinputint IPeriod=100; //Period for extremum searchinput ENUM_APPLIED_PRICE_ IPC=PRICE_MEDIAN_; //Price constantinputint Shift=0; //Shift of the indicator in barsinputuint Digit=2; //Digits to round toinputbool ShowPrice=true; //Display price labelsinputcolor Upper_color=clrTeal; //Color for the upper price labelinputcolor Middle_color=clrBlue; //Color for the middle price labelinputcolor Lower_color=clrMagenta //Color for the lower price label
To set the number of digits for rounding, just adjust the Digit input variable. This handy indicator was originally crafted in MQL4 and made its debut in the Code Base back on February 8, 2008.

Fig.1. The Float Pivot Digit Indicator

Comments 0