Hello,
input int MACD_Fast = 5; // macdFast
input int MACD_Slow = 25; // macdSlow
input int MACD_Signal = 2; // macdSignal
input int MACD_RSI_Period = 7; // rsiPeriod
input int MACD_BandsPeriod = 10; // bandsPeriod
// Bands for MACD→RSI→Bands chain
input double MACD_BBDev1 = 1.4145;
input double MACD_BBDev2 = 1.2895;
input int MACD_MA_Period = 2; // maPeriod
input ENUM_MA_METHOD MACD_MA_Method = MODE_SMA; // maMethod
Macd_handle = iMACD( Symbol(), timeframe, MACD_Fast, MACD_Slow, MACD_Signal, PRICE_CLOSE);
MacdRsi_handle = iRSI( Symbol(), timeframe, MACD_RSI_Period, Macd_handle);
MacdRsiMA_handle = iMA( Symbol(), timeframe, MACD_MA_Period, 0, MACD_MA_Method, MacdRsi_handle);
BB1Mr_handle = iBands(Symbol(), timeframe, MACD_BandsPeriod, 0, MACD_BBDev1, MacdRsi_handle);
BB2Mr_handle = iBands(Symbol(), timeframe, MACD_BandsPeriod, 0, MACD_BBDev2, MacdRsi_handle);
Handle from previous goes into the applied price as seen for ANY combo MQL5 allows.
Be creative and enjoy the replacement of the MT4 iBandsOnArray iRSIOnArray iBandsOnArray by using MT5 chaining the handle of the previous handle into the applied price on the next handle. Add as many as you want. Custom indicators in example.
Macd handle
iRSI handle
iBands handle
iStoch handle
iRSI handle
iBands handle
OBV handle
RSI handle
iBands handle
MA handle
MA handle
Rsi handle
Anything handle
iBands handle
Edit: drop indicator into subwindow and select the applied price as "Previous indicators Data" or "First Indicator's Data" to achieve desired chaining results. Drag and drop into more competition. You are welcome to try anything you want.
**created before i learned about chaining handles.
input int MACD_Fast = 5; // macdFast
input int MACD_Slow = 25; // macdSlow
input int MACD_Signal = 2; // macdSignal
input int MACD_RSI_Period = 7; // rsiPeriod
input int MACD_BandsPeriod = 10; // bandsPeriod
// Bands for MACD→RSI→Bands chain
input double MACD_BBDev1 = 1.4145;
input double MACD_BBDev2 = 1.2895;
input int MACD_MA_Period = 2; // maPeriod
input ENUM_MA_METHOD MACD_MA_Method = MODE_SMA; // maMethod
Macd_handle = iMACD( Symbol(), timeframe, MACD_Fast, MACD_Slow, MACD_Signal, PRICE_CLOSE);
MacdRsi_handle = iRSI( Symbol(), timeframe, MACD_RSI_Period, Macd_handle);
MacdRsiMA_handle = iMA( Symbol(), timeframe, MACD_MA_Period, 0, MACD_MA_Method, MacdRsi_handle);
BB1Mr_handle = iBands(Symbol(), timeframe, MACD_BandsPeriod, 0, MACD_BBDev1, MacdRsi_handle);
BB2Mr_handle = iBands(Symbol(), timeframe, MACD_BandsPeriod, 0, MACD_BBDev2, MacdRsi_handle);
Handle from previous goes into the applied price as seen for ANY combo MQL5 allows.
Be creative and enjoy the replacement of the MT4 iBandsOnArray iRSIOnArray iBandsOnArray by using MT5 chaining the handle of the previous handle into the applied price on the next handle. Add as many as you want. Custom indicators in example.
Macd handle
iRSI handle
iBands handle
iStoch handle
iRSI handle
iBands handle
OBV handle
RSI handle
iBands handle
MA handle
MA handle
Rsi handle
Anything handle
iBands handle
Edit: drop indicator into subwindow and select the applied price as "Previous indicators Data" or "First Indicator's Data" to achieve desired chaining results. Drag and drop into more competition. You are welcome to try anything you want.
Attached File(s)
Attached File(s)
**created before i learned about chaining handles.
Enjoy it while it lasts, then pay for it. Be Grateful.