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.

https://br.tradingview.com/v/bCy9urOG/

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 2):
berserkyjc, Jedidiah

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.

https://br.tradingview.com/v/bCy9urOG/

Code: Select all

//@version=2
study("Bollingers Bands Fibonacci ratios",shorttitle="FiBB",overlay=true)
len=input(defval=20,minval=1).........
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
Are you looking for a Forex broker? FBS cuts spreads by up to 58%. Click here to begin your trading journey, today.
No commissions are earned by Forex-station.


Guide to the "All Averages" Filters (ADXvma, Laguerre etc.) 🆕
Use Fibonacci numbers for indicator settings + How to draw Fibonacci Extensions
An easy trick for drawing Support & Resistance


Who is online

Users browsing this forum: Ahrefs [Bot], alimpe2000, mrtools, Narutopips and 77 guests