Scalping using virtual pending orders - MetaTrader 4 Expert | Forex Indicator Download - MT4/MT5 Resources


This EA demonstrates how to use the virtual order library (VirtPndOrds.mqh) through the scalping program. The execution of simulated buy stop and sell stop orders can execute pending orders when the price and/or indicator value exceeds a specified threshold. Additionally, threshold testing of buy/sell stop orders can be performed at new bars or new price movements. The library also supports simulated buy/stop limit orders. This method provides greater flexibility when handling pending orders.
The scalping scheme operates on the M1 EURUSD chart. When the stochastic indicator value crosses a certain value, the first limit line of the stop loss order will be activated. The buy/sell stop order will be executed when the stochastic value crosses the second limit line (higher buy/sell order) and when the price also changes by the set value (in points). Filtering by trending behavior is used to improve performance. The scalping demo program only works with low spreads (<0.50 pips).
Attachment download
📎 virtpotestbed_scalpm1.mq4 (71.31 KB)
📎 virtpndords.mqh (8.88 KB)
Source: MQL5 #27379
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •