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.