New at programming, need help programming a Bollinger Bands - Fibonacci Indicator. It is like a regular BBs but instead of using standard deviation as the measure of volatility, a Wilders Smoothed ATR is used in its place. The middle band remains the same.
UpperBand3:= MidPoint + (factor3 * Smoothed ATR); Factor3 = 4.236UpperBand2:= MidPoint + (factor2 * Smoothed ATR); Factor2 = 2.618UpperBand1:= MidPoint + (factor1 * Smoothed ATR); Factor1 = 1.618
MiddleBand = same as Bollinger Bands;
LowerBand1:= MidPoint - (factor1 * Smoothed ATR); Factor1 = 1.618LowerBand2:= MidPoint - (factor2 * Smoothed ATR); Factor2 = 2.618 LowerBand3:= MidPoint - (factor3 * Smoothed ATR); Factor3 = 4.236
While compiling there is a problem on the Custom indicator iteration function as shown in the attached image.
I will add my code just in case someone takes a look at it and helps me with my programming skills
I appreciate the help and looking forward for the book.
I see 12 parameters in your OnCalculate function on the picture. Must be 10 ones according to https://www.mql5.com/en/docs/basis/function/events#oncalculate
int OnCalculate (const int rates_total, // size of input timeseries
const int prev_calculated, // bars handled in previous call
const datetime& time, // Time
const double& open, // Open
const double& high, // High
const double& low, // Low
const double& close, // Close
const long& tick_volume, // Tick Volume
const long& volume, // Real Volume
const int& spread // Spread
Hello, I am looking for that exact indicator but for MT4 instead. I am new to MT4 and don't know how to program it. It is possible to make one for me?
Niche, it is ok I found it. For MT4 it is call Bands- fibo- true.