Join our fan page
Mogalef - indicator for MetaTrader 5
- Views:
- 4941
- Rating:
- Published:
- 2018.10.25 15:29
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The author believes that in most cases, the price tends to return back to the corridor after leaving it. Then it heads to the central line.
Unlike the author's calculation, the upper and lower lines of the corridor are calculated using the standard deviation.
The indicator has three input parameters:
- Linear regression period - linear regression period for calculating the central line of the channel
- Standard deviation period - standard deviation period for calculating extreme channel lines
- Multiplier - multiplier for calculating the channel width
Calculation:
Central = LinearReg((Open+High+Low+(2*Close))/5) Top Band = Central + Multiplier * Deviation Bottom Band = Central - Multiplier * Deviation
where:
Deviation = StdDev(Close,Standard deviation period,SMA)
- If Central < PrevTop && Central > PrevBottom
Top = PrevTop Central = PrevCentral Bottom = PrevBottom
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22089
The Expert Advisor based on iMACD(). Displaying MACD values via Point().
Proffessor v3Grid of pending orders. The EA applies iADX (Average Directional Movement Index, ADX) indicator.