Scalping With Virtual Pending Orders Ea
From the Old Kings archive: Scalping With Virtual Pending Orders Ea, an expert advisor (trading robot) for MetaTrader 4. As the name suggests, the idea behind it is short scalping trades. In the code it works with 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 Actv Symbol (default EURUSD), Magic Number (default 10001) and Note1 (default --- PO Trigger Data ---). 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 Scalping With Virtual Pending Orders Ea
Scalping With Virtual Pending Orders Ea is an expert advisor (trading robot) for MetaTrader 4 based on 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 Actv symbol, Magic number and Note1. MQL source code included.
It also is built for short scalping trades.
Files in the download: VirtPOTestBed_ScalpM1.mq4, mql4\Include\VirtPndOrds.mqh, Best Trading Systems.url.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Actv symbol | EURUSD | |
| Magic number | 10001 | Magic number that tells this EA's orders apart |
| Note1 | --- PO Trigger Data --- | |
| Tick level | true | Tick Lvl (vs Bar Cls) PO exe |
| Po threshold | 2. | Threshold for PO (pips) |
| Po time lim | 15 | PO Expiration Time(mins) |
| Spread max | 0.5 | Max Spread |
| Volume lim | 90. | Volume Minimum |
| Volat per | 100 | Volatility Period |
| Volat lim | 0.5 | Volatility Limit |
| Bb lo lim | 8. | BB Spread Lower Limit |
| Bb hi lim | 27. | BB Spread Upper Limit |
| Last bar lim | 5. | Limit of last bar change |
| Title2 | --- Trend Finding Data --- | |
| Sma fast per | 2 | SMA Fast Period |
| Sma slo per | 34 | SMA SLow Period |
| Sma diff | 3. | SMA Difference |
| Title3 | --- PO, MO Stochastic Trigger Data --- | |
| K stoc | 7 | K1 Stoc |
| D stoc | 3 | K2 Stoc |
| S stoc | 7 | K3 Stoc |
| Stoc lo set | 28. | Pnd Ord Stoc Buy Limit |
| Stoc lo go | 46. | Mkt Ord Stoc Thrshld Buy Limit |
| Title4 | --- Money Management --- | |
| Lots | 0.1 | Trade size in lots |
| Max lots | 4.0 | |
| Take profit | 12. | Take Profit |
| Stop loss | 5. | Stop Loss |
| Trailing stop | 0. | Trailing Stop |
| Title5 | --- Time Filters --- | |
| Day no trade | true | |
| Day1 | 99 | |
| Day2 | 99 | |
| Entryhour | 4 | Entry Hour |
| Openhours | 18 | Number of Open Hours |
| Friday end hour | 10 | Hour when trading stops (server time) |
| Num open orders | 1 | Number of Open Orders (this Symbol) |
| Tot open orders | 8 | Total Number of Open Orders |
| Title6 | --- Close Trade --- | |
| Close time mins | 25. | Close Time (mins) |
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: Scalping · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Stochastic · Moving Average · MT4 Expert Advisor · MQL4 Source Code