Sashken2
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Sashken2. In the code it works with RSI, the Stochastic oscillator and moving averages. It moves the stop behind price, has a trading-hours filter and can size trades from your risk. It has 40 settings, for example Signal 1 (default ===== 1 =====), Signal 1 (default true) and Signal 1 1 (default true). Watch it on a demo account for a while — robots can behave differently with each broker. 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 · v1.0 · Free
About Sashken2
Sashken2 is an expert advisor (trading robot) for MetaTrader 4 based on RSI, Stochastic and Moving Average. It moves the stop loss behind price (trailing stop / break-even), trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 40 settings, such as Signal 1, Signal 1 and Signal 1 1. MQL source code included.
Files in the download: sashken2.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 |
|---|---|---|
| Signal 1 | ===== 1 ===== | |
| Signal 1 | true | |
| Signal 1 1 | true | |
| Ma1 period | 7 | Period or timeframe used by the calculation |
| Ma1 mode | 2 | |
| Ma1 price | 4 | |
| Ma2 period | 20 | Period or timeframe used by the calculation |
| Ma2 mode | 1 | |
| Ma2 price | 0 | |
| Signal 2 | ===== 2 ===== | |
| Signal 2 | false | |
| Cci1 period | 50 | Period or timeframe used by the calculation |
| Cci1 price | 0 | |
| Cci1 buy | 0 | |
| Cci1 sell | 0 | |
| Signal 3 | ===== 3 ===== | |
| Signal 3 | false | |
| Rsi1 period | 20 | Period or timeframe used by the calculation |
| Rsi1 price | 0 | |
| Rsi1 buy | 50 | |
| Rsi1 sell | 50 | |
| Signal 4 | ===== 4 ===== | |
| Signal 4 | false | |
| B1 | ===== Stohastic ===== | |
| B1 k period | 50 | Period or timeframe used by the calculation |
| B1 d period | 10 | Period or timeframe used by the calculation |
| B1 slowing | 10 | |
| B1 k zn | 30 | |
| Uslovia | ===== , , , ===== | |
| Take profit | 30 | Take profit distance |
| Stop loss | 0 | Stop loss distance |
| Trailing stop | 0 | Trailing stop distance or switch |
| Lots | 2 | Trade size in lots |
| Sdelki | ===== - ===== | |
| Sdelki | 2 | |
| Use close | ===== / ===== | |
| Use close | 0 | |
| Revers | ===== ( BUY-SELL) ===== | |
| Revers trade | 1 | |
| Money management | 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 → 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: Trailing Stop & Break-even · Time Filter · Risk & Lot Size · RSI · Stochastic · Moving Average · MT4 Expert Advisor · MQL4 Source Code