Profit Generator 2.6
From the Old Kings archive: Profit Generator 2.6, an expert advisor (trading robot) for MetaTrader 4. It moves the stop behind price, has a trading-hours filter and can size trades from your risk. It has 18 settings, for example ID, lots (default 1.0) and MM (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.0 · Free
About Profit Generator 2.6
Profit Generator 2.6 is an expert advisor (trading robot) for MetaTrader 4. 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 18 settings, such as ID, Lots and MM. MQL source code included.
Files in the download: Profit Generator 2.6.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 |
|---|---|---|
| ID | Change this number if running more than one EA on the same pair | |
| Lots | 1.0 | This number will not matter if using Money Management |
| MM | false | Use Money Management or not |
| Risk | 10 | percent of available margin to risk. |
| Stoploss | 30,takeprofit=40 | Stop loss distance |
| Use close | false | This will use the SuperClose(). |
| T sactivation | 40,TrailPips=5 | TSactivation will set the point where the TS will start. |
| Long bar | 10 | sets the minimum length of the bar |
| Max trades | 1 | maximum number of trades open at a time |
| Use hour trade | true | Time filter |
| From hour trade | 7 | start trading on this hour |
| To hour trade | 20 | end trading on this hour |
| Use last period perams | false | uses the high and low from last period for calculation |
| Period | 0 | leave this number as zero to use the period from the chart. |
| One tradeper period | false | This will only allow one new trade per period. |
| Alerts | false,AlertOnlyMode=false | Alerts will alert when trade signal is present. AOM will not place trades, but will alert to the pla |
| Weekend mode | false | True=Will close all trades on and after the hour to close. |
| Hour to close | 21 |
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 · MT4 Expert Advisor · MQL4 Source Code