Stoch V2.2
From the Old Kings archive: Stoch V2.2, an expert advisor (trading robot) for MetaTrader 4. As the name suggests, the idea behind it is the Stochastic oscillator. The file name marks it as version 2.2. In the code it works with the Stochastic oscillator and moving averages. It raises the lot size after losses (martingale — high risk), has a trading-hours filter and can size trades from your risk. It has 29 settings, for example 1 (default TRADE MANAGEMENT ), Lots (default 0.01) and Take Profit (default 26). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. Inside: 1 EA 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.
Expert advisor · MT4 · v2.2 · Free
About Stoch V2.2
Stoch V2.2 is an expert advisor (trading robot) for MetaTrader 4 based on Stochastic and Moving Average. It increases the lot size after a losing trade (martingale), trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 29 settings, such as 1, Lots and Take profit. MQL source code included.
It also works on several symbols at once.
Files in the download: Stoch V2.2.mq4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| 1 | TRADE MANAGEMENT | |
| Lots | 0.01 | Trade size in lots |
| Take profit | 26 | Take profit distance |
| Pips | 12 | |
| Initial stop | 0 | |
| Lots multiplier | 1.68 | How much the lot size grows after a loss |
| Max trades | 13 | Maximum number of open trades |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| 2 | CLOSE CONDITIONS | |
| Stoch sell open | 80 | |
| Stoch buy open | 20 | |
| Close by percent | FALSE | |
| Secure profit percent | 1.0 | |
| Secure loss percent | 50.0 | |
| 3 | MONEY MANAGEMENT | |
| Use mm | FALSE | |
| Acc type | 2 | |
| Risk | 5 | Risk per trade (percent of balance) |
| 4 | TRADE TRIGGER | |
| Use trend filter | FALSE | |
| Stoch timeframe | 60 | Period or timeframe used by the calculation |
| K period | 8 | Period or timeframe used by the calculation |
| D period | 3 | Period or timeframe used by the calculation |
| Slow period | 3 | Period or timeframe used by the calculation |
| 5 | COMMON CLOSE CONTROL | |
| Stop trading | FALSE | |
| Close all on friday | TRUE | |
| Friday closing hour | 13 | |
| Stop trading on friday | FALSE |
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 → Experts.
- 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 expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Stochastic · Martingale · Time Filter · Risk & Lot Size · Multi-Currency · Moving Average · MT4 Expert Advisor · MQL4 Source Code