STI4.0.3
STI4.0.3 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its source code uses the Stochastic oscillator and CCI. It moves the stop behind price, has a trading-hours filter and is set up for scalping. It has 27 settings, for example Use Email Alerts (default false), Use Total Equity SL (default false) and Equity Risk (default 50). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. 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 STI4.0.3
STI4.0.3 is an expert advisor (trading robot) for MetaTrader 4 based on Stochastic and CCI. It moves the stop loss behind price (trailing stop / break-even), trades only in the hours you set (time filter) and is built for short scalping trades. It has 27 settings, such as Use email alerts, Use total equity sl and Equity risk. MQL source code included.
Files in the download: STI4_0_3.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 |
|---|---|---|
| Use email alerts | false | Turn this alert on or off |
| Use total equity sl | false | |
| Equity risk | 50 | Risk per trade (percent of balance) |
| Lots | 0.5 | Trade size in lots |
| Use close criteria | true | |
| Take profit | 30 | Take profit distance |
| Stop loss | 50 | Stop loss distance |
| Use scalp it | false | |
| Scalp pips | 3 | |
| Use step trail | false | Trailing stop distance or switch |
| Trail1 step | 6 | Trailing stop distance or switch |
| Flex | 2 | |
| Use trail | true | Trailing stop distance or switch |
| Profit trailing | true | Trailing stop distance or switch |
| Trailing act | 6 | Trailing stop distance or switch |
| Trailing step | 3 | Trailing stop distance or switch |
| N1 | 3 | |
| N2 | 2 | |
| Max periods back | 20 | Number of bars in the calculation |
| Use stochastic filter | false | |
| Sto period | 1440 | Period or timeframe used by the calculation |
| Use cci | false | |
| Use time filter | false | |
| Begin hour | 8 | Hour when trading starts (server time) |
| End hour | 18 | Hour when trading stops (server time) |
| Reverse trade signal | false | |
| File save prefix | STI |
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 · Scalping · Stochastic · CCI · MT4 Expert Advisor · MQL4 Source Code