Gold Lok V2 JPY V1
From the Old Kings archive: Gold Lok V2 JPY V1, an expert advisor (trading robot) for MetaTrader 4. As the name suggests, the idea behind it is gold (XAUUSD). The file name marks it as version 2. In the code it works with ZigZag and CCI. It can hold buy and sell positions together, moves the stop behind price and has a trading-hours filter. It has 28 settings, for example Lots (default 1.00), Stop Loss (default 1000.00) and Take Profit (default 1000.00). 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 · v2 · Free
About Gold Lok V2 JPY V1
Gold Lok V2 JPY V1 is an expert advisor (trading robot) for MetaTrader 4 based on ZigZag and CCI. 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 28 settings, such as Lots, Stop loss and Take profit. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: GoldLok_v2_JPY_v1.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 |
|---|---|---|
| Lots | 1.00 | Trade size in lots |
| Stop loss | 1000.00 | Stop loss distance |
| Take profit | 1000.00 | Take profit distance |
| Trailing stop | 0.00 | Trailing stop distance or switch |
| Hpred | 220 | SmCCIE |
| Npr | 0 | - |
| Db | 50 | CCI |
| Dlok | 1 | |
| Lok | 1 | |
| Hedg | 1 | |
| Sbros | 0 | , 1 |
| Test | 0 | - 0, - 1 |
| Cper | 96 | |
| Zper | 300 | ZigZagE |
| T3 period | 8 | - SmCCIE |
| Bc | 0.7 | - SmCCIE |
| Per | 21 | - SmCCIE |
| Ppor | 150 | - SmCCIE |
| Mpor | -150 | - SmCCIE |
| M bar | 100 | - SmCCIE |
| Depth | 12 | ZigZagE |
| Deviation | 5 | ZigZagE |
| Backstep | 3 | ZigZagE |
| Tgod | 2006 | |
| Tm | 7 | |
| Chanel | 0 | |
| Mmstop | 50 | |
| Prev hour | 0 |
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: Gold (XAUUSD) · Hedging · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · ZigZag · CCI · MT4 Expert Advisor · MQL4 Source Code