Stochastic 4
Stochastic 4 — a MetaTrader 4 indicator kept in the Old Kings collection. Judging by its name, it is built around the Stochastic oscillator. Its source code uses divergence checks, the Stochastic oscillator and ATR. It draws arrows on the chart, can send alerts and can read another timeframe. It has 30 settings, for example Time Frame (default Current time frame), Sto KPeriod (default 8) and Sto DPeriod (default 3). Attach it to a chart to see what it draws, then compare it with price on a few timeframes. Inside: 3 indicator files with source code (.mq4) you can open and edit in MetaEditor and a PDF guide. 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 Stochastic 4
Stochastic 4 is an indicator for MetaTrader 4 based on Divergence, Stochastic and ATR. It draws buy and sell arrows on the chart, can alert you with a pop-up, sound, email or push message and can show data from another timeframe (MTF). It has 30 settings, such as Time frame, Sto k period and Sto d period. MQL source code included.
Files in the download: HaosVisual - averages (divergence + alerts).ex4, Rules read this.pdf, stochastic momentum index (divergence + alerts + arrows).ex4, stochastic_divergence_mtfalerts_nmc_2.mq4.
Settings
| Setting | Default | What it does |
|---|---|---|
| Time frame | Current time frame | Period or timeframe used by the calculation |
| Sto k period | 8 | Period or timeframe used by the calculation |
| Sto d period | 3 | Period or timeframe used by the calculation |
| Sto slowing | 3 | |
| Sto price | 0 | |
| Signal mode | MODE_SMA | |
| Divergearrow size | 0 | |
| Arrows upper gap | 0.25 | |
| Arrows lower gap | 0.25 | |
| Draw divergences | true | |
| Show classical divergence | true | |
| Show hidden divergence | false | |
| Draw indicator trend lines | true | |
| Draw price trend lines | true | |
| Divergence bullish color | Lime | Colour on the chart |
| Divergence bearish color | Red | Colour on the chart |
| Draw lines identificator | stochdiverge1 | |
| Divergence alert | true | Turn this alert on or off |
| Divergence alerts message | true | Turn this alert on or off |
| Divergence alerts sound | true | Turn this alert on or off |
| Divergence alerts email | false | Turn this alert on or off |
| Divergence alerts notify | false | Turn this alert on or off |
| Divergence alerts sound name | alert1.wav | Turn this alert on or off |
| Alerts on | true | Turn this alert on or off |
| Alerts on current | true | Turn this alert on or off |
| Alerts message | true | Turn this alert on or off |
| Alerts sound | true | Turn this alert on or off |
| Alerts notify | true | Turn this alert on or off |
| Alerts email | false | Turn this alert on or off |
| Sound file | alert2.wav | Turn this alert on or off |
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: Stochastic · Buy/Sell Arrows · Alerts · Divergence · Multi-Timeframe (MTF) · ATR · MT4 Indicator · MQL4 Source Code