Opto123 V1.52
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Opto123 V1.52. The file name marks it as version 1.52. In the code it works with ATR. It can hold buy and sell positions together, moves the stop behind price and has a trading-hours filter. It has 40 settings, for example Entry and exit conditions (default ------------------------), Zig Zag Type (default 2) and Closed Candle (default false). 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.52 · Free
About Opto123 V1.52
Opto123 V1.52 is an expert advisor (trading robot) for MetaTrader 4 based on ATR. It can hold buy and sell positions at the same time (hedging), moves the stop loss behind price (trailing stop / break-even) and trades only in the hours you set (time filter). It has 40 settings, such as Entry and exit conditions, Zig zag type and Closed candle. MQL source code included.
It also can size trades from your balance and risk percent and has a news filter.
Files in the download: Opto123 v1.52.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 |
|---|---|---|
| Entry and exit conditions | ---------------------------------------- | |
| Zig zag type | 2 | |
| Closed candle | false | |
| Candle body entry | false | |
| Buffer | 0 | |
| Buffer type | 0 | |
| Min12 distance | 0 | Distance between orders |
| Min12 distance type | 0 | Distance between orders |
| Max12 distance | 0 | Distance between orders |
| Max12 distance type | 0 | Distance between orders |
| Min23 distance | 0 | Distance between orders |
| Min23 distance type | 0 | Distance between orders |
| Max23 distance | 0 | Distance between orders |
| Max23 distance type | 0 | Distance between orders |
| Trendline exit | false | |
| Exit on opposite signal | false | |
| Reverse signals | false | |
| Order settings | ---------------------------------------- | |
| Trades per direction | 1 | |
| Trades per session | 0 | |
| Trades per pattern | 1 | |
| Magic number | 804070 | Magic number that tells this EA's orders apart |
| Trade comment | Opto123 | Comment written on the orders |
| Point sl | 1 | |
| Swing sl | false | |
| Minimum sl pips | 1 | |
| Maximum sl pips | 0 | |
| Stop loss | 0 | Stop loss distance |
| Stop loss type | 0 | Stop loss distance |
| Visible sl | 0 | |
| Take profit1 | 0 | Take profit distance |
| Take profit1 type | 0 | Take profit distance |
| Take profit2 | 0 | Take profit distance |
| Take profit2 type | 0 | Take profit distance |
| Take profit3 | 0 | Take profit distance |
| Take profit3 type | 0 | Take profit distance |
| Take profit4 | 0 | Take profit distance |
| Take profit4 type | 0 | Take profit distance |
| Visible tp | 0 | |
| Break even | 0 | Move the stop to break-even |
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: Hedging · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · News Trading · ATR · MT4 Expert Advisor · MQL4 Source Code