Forex Divergence Petr Indicator
Forex Divergence Petr Indicator — a MetaTrader 4 indicator kept in the Old Kings collection. Judging by its name, it is built around divergence between price and an oscillator. Its source code uses divergence checks, MACD, RSI and the Stochastic oscillator. It draws arrows on the chart. It has 40 settings, for example TH (default true), TL (default true) and trend (default true). Attach it to a chart to see what it draws, then compare it with price on a few timeframes. Inside: 1 indicator file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.
Indicator · MT4 · v1.0 · Free
About Forex Divergence Petr Indicator
Forex Divergence Petr Indicator is an indicator for MetaTrader 4 based on Divergence, MACD, RSI and Stochastic. It draws buy and sell arrows on the chart. It has 40 settings, such as TH, TL and Trend. MQL source code included.
Files in the download: divergencepetr_s7.mq4, installation manual.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| TH | true | |
| TL | true | |
| Trend | true | |
| Convergen | true | |
| Complect | 1 | |
| Back steph | 0 | number of steps back (h) |
| Back stepl | 0 | the number of steps ago l |
| Back step | 0 | number of steps backward |
| Q steps | 1 | the number of steps, not more than 3 |
| Lev d pl | 5 | level of Demark points; 2 = central bar is above (below) the 2 bars to the left |
| Lev d pr | 1 | level of Demark points; 2 = central bar is above (below) the 2 bars on the right |
| Period | 8 | Period or timeframe used by the calculation |
| Ma method | 0 | |
| Ma shift | 0 | Bar shift (0 = current bar) |
| Applied price | 4 | |
| Mode | 0 | |
| Fast ema period | 12 | Period or timeframe used by the calculation |
| Slow ema period | 26 | Period or timeframe used by the calculation |
| Signal period | 9 | Period or timeframe used by the calculation |
| Kperiod | 13 | Period or timeframe used by the calculation |
| Dperiod | 5 | Period or timeframe used by the calculation |
| Slowing | 3 | |
| Price field | 0 | |
| T3 period | 1 | Period or timeframe used by the calculation |
| B | 0.7 | |
| Show bars | 1000 | If = 0, then the indicator is displayed for all graphics |
| Left strong | false | |
| Right strong | true | |
| Trend down | true | |
| Trend up | true | |
| Trend line | true | false = trend lines will not |
| Handy colour | true | Colour on the chart |
| Highline | Red | |
| Lowline | DeepSkyBlue | |
| Channel line | false | true = build a parallel trend lines feeds |
| Trend | 0 | 1 = only for UpTrendLines, -1 = only for DownTrendLines, 0 = for all TrendLines |
| Channel | false | |
| Regression | true | |
| Ray h | true | |
| Ray l | true |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Divergence · Buy/Sell Arrows · MACD · RSI · Stochastic · CCI · MT4 Indicator · MQL4 Source Code