Re: Bollinger Band type indicators for MT4

721
theCuchuoi wrote: Fri Mar 12, 2021 6:55 pm I wrote this thing based off of Donchian channel, but included two middle bands. The code is

Code: Select all

lower2[i]=iHigh(Symbol(),Period(),iLowest(Symbol(),Period(),MODE_HIGH,BarsToCount,i+Shift));
upper2[i]=iLow(Symbol(),Period(),iHighest(Symbol(),Period(),MODE_LOW,BarsToCount,i+Shift));
Can somebody please make it MTF? Thanks
Added mtf.
These users thanked the author mrtools for the post (total 4):
theCuchuoi, thomdel, Thangarasu, alexm


Re: Bollinger Band type indicators for MT4

723
good night, all right? Is there a possibility to convert this indicator to MT4? it seemed like a very interesting approach. it would be fantastic if you could include a Hull or Mcginley for example. Thank you very much.

Code: Select all

//@version=2
study("Bollingers Bands Fibonacci ratios",shorttitle="FiBB",overlay=true)
len=input(defval=20,minval=1)
p=close
sma=sma(p,len)
avg=atr(len)
fibratio1=input(defval=1.618,title="Fibonacci Ratio 1")
fibratio2=input(defval=2.618,title="Fibonacci Ratio 2")
fibratio3=input(defval=4.236,title="Fibonacci Ratio 3")
r1=avg*fibratio1
r2=avg*fibratio2
r3=avg*fibratio3
top3=sma+r3
top2=sma+r2
top1=sma+r1
bott1=sma-r1
bott2=sma-r2
bott3=sma-r3

t3=plot(top3,transp=0,title="Upper 3",color=teal)
t2=plot(top2,transp=20,title="Upper 2",color=teal)
t1=plot(top1,transp=40,title="Upper 1",color=teal)
b1=plot(bott1,transp=40,title="Lower 1",color=teal)
b2=plot(bott2,transp=20,title="Lower 2",color=teal)
b3=plot(bott3,transp=0,title="Lower 3",color=teal)
plot(sma,style=cross,title="SMA",color=teal)
fill(t3,b3,color=navy,transp=85)
These users thanked the author RodrigoRT7 for the post:
Jimmy

Re: Bollinger Band type indicators for MT4

724
berserkyjc wrote: Wed Mar 31, 2021 3:08 pm Dear Mrtools

Could you please add a moving average into this Bollinger Bandwidth?

This Bollinger Bandwidth is in a seperate sub window.
Bollinger Bandwidth only has one line to indicate the Bollinger Bandwidth.
Pleae add an extra line to indicate the moving average of the Bollinger Bandwidth value. that'd make the Bollinger Bandwidth has two lines.
I know this can be done within the MT4 terminal by hand. I'm trying to make EA by FXDREEMA. this function cann't be done unless Bollinger Bandwidth with a MA line of itself is in the same indicator.

thank you very much.
Added a bbw ma.
These users thanked the author mrtools for the post (total 3):
berserkyjc, Jedidiah, Jimmy

Re: Bollinger Band type indicators for MT4

725
RodrigoRT7 wrote: Wed Mar 31, 2021 4:23 pm good night, all right? Is there a possibility to convert this indicator to MT4? it seemed like a very interesting approach. it would be fantastic if you could include a Hull or Mcginley for example. Thank you very much.

Code: Select all

//@version=2
study("Bollingers Bands Fibonacci ratios",shorttitle="FiBB",overlay=true)
len=input(defval=20,minval=1).........
FiBB (Fibonacci Bollinger Bands)

The Fibonacci Bollinger Bands indicator operates on principles similar to those of the traditional Bollinger Bands indicator, which was created by John Bollinger. While both indicators utilize volatility to determine their upper and lower bands, the Fibonacci Bollinger Bands substitute standard deviation with a Wilders Smoothed Average True Range (ATR) as the volatility measure.

The central band represents a moving average that helps identify the intermediate-term trend. The three upper bands are generated by applying the Wilders Smoothed ATR, multiplied by the Fibonacci ratios (1.618, 2.618, and 4.236), and then adding these values to the central band. Conversely, the three lower bands are derived in an analogous fashion, with the results being subtracted from the central band.

Think this is close, by default the atr is smoothed with ssma (same as Wilder's ma) and using sma for the middle ma, but added all the averages for more of a selection for both. Named it the short version instead of Bollinger bands fib ratio. Also will see about doing the fill later.

PS: For the template used in our Daily Downloads, please see here: FiBB Fibonacci Bollinger Bands chart template for MT4.
These users thanked the author mrtools for the post (total 7):
RodrigoRT7, Jimmy, thomdel, Andrés49, alexm, 太虚一毫, Jedidiah


CandlesticksRe: Bollinger Band type indicators for MT4

727
RodrigoRT7 wrote: Wed Mar 31, 2021 4:23 pm good night, all right? Is there a possibility to convert this indicator to MT4? it seemed like a very interesting approach. it would be fantastic if you could include a Hull or Mcginley for example. Thank you very much.
This is super, I really like this concept. Thank you for the suggestion Rodrigo and for making it possible Mrtools. Even without the fill, it still looks good. But of course, color fill is the best :)

Looks good for scalping retracements and counter-trend, too.

Here is a template if anyone would like to use it.
These users thanked the author Jimmy for the post (total 3):
thomdel, RodrigoRT7, Andrés49
Myfxbook live trading results 📊

List of our most powerful reversal indicators + Guide to the "All Averages" Filters (ADXvma, Laguerre etc.)
Fibonacci numbers for indicator settings + How to draw Fibonacci Extensions + How to draw Support & Resistance