Loading…

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

SettingDefaultWhat it does
Actv symbolEURUSD
Magic number10001Magic number that tells this EA's orders apart
Note1 --- PO Trigger Data ---
Tick leveltrueTick Lvl (vs Bar Cls) PO exe
Po threshold2.Threshold for PO (pips)
Po time lim15PO Expiration Time(mins)
Spread max0.5Max Spread
Volume lim90.Volume Minimum
Volat per100Volatility Period
Volat lim0.5Volatility Limit
Bb lo lim8.BB Spread Lower Limit
Bb hi lim27.BB Spread Upper Limit
Last bar lim5.Limit of last bar change
Title2 --- Trend Finding Data ---
Sma fast per2SMA Fast Period
Sma slo per34SMA SLow Period
Sma diff3.SMA Difference
Title3 --- PO, MO Stochastic Trigger Data ---
K stoc7K1 Stoc
D stoc3K2 Stoc
S stoc7K3 Stoc
Stoc lo set28.Pnd Ord Stoc Buy Limit
Stoc lo go46.Mkt Ord Stoc Thrshld Buy Limit
Title4 --- Money Management ---
Lots0.1Trade size in lots
Max lots4.0
Take profit12.Take Profit
Stop loss5.Stop Loss
Trailing stop0.Trailing Stop
Title5 --- Time Filters ---
Day no tradetrue
Day199
Day299
Entryhour4Entry Hour
Openhours18Number of Open Hours
Friday end hour10Hour when trading stops (server time)
Num open orders1Number of Open Orders (this Symbol)
Tot open orders8Total Number of Open Orders
Title6 --- Close Trade ---
Close time mins25.Close Time (mins)

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Scalping · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Stochastic · Moving Average · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria