Loading…

Volume Participation Executor

A schedule built purely on the clock, like a TWAP, executes at the same pace whether the market is roaring or asleep. This EA instead releases the next child order once a configured number of new ticks have arrived since the last one - a real percentage-of-volume idea adapted to what retail MetaTrader feeds actually have available. Most retail feeds have no true traded-volume feed, only tick count, so this EA counts its own tick events directly rather than pretending otherwise. That IS the honest tick count: it is the same proxy every retail volume-based tool ultimately relies on, and it tracks quote-update frequency, which correlates with real activity without claiming to be real traded volume. A floor on the minimum seconds between slices exists specifically to stop a violent news-spike tick burst from releasing the entire remaining target in one or two seconds just because ticks arrived quickly - pacing by activity should smooth execution, not remove all restraint from it. Notes and limitations - "Volume" here means incoming tick count on the chart symbol, not real traded volume - most retail feeds have no free access to that. Treat this as pacing by quote activity, not literal market participation percentage. - Building the target still carries the same total market exposure as one large order once complete - pacing changes when the size arrives, not the size of the finished position's risk. - No stop loss or take profit is attached to any slice. - If the terminal or EA stops running mid-build, whatever has already filled remains open and unmanaged. - On MQL5 netting accounts, a foreign-magic position already on the symbol blocks every further slice rather than merging into it - see above.

Expert advisor · MT5 · v1.0 · Free

About Volume Participation Executor

Volume Participation Executor is an expert advisor (trading robot) for MetaTrader 5. It has 10 settings, such as Direction, Target lots and Slice lots. MQL source code included.

Files in the download: VolumeParticipationExecutor.ex5, VolumeParticipationExecutor.mq5, VolumeParticipationExecutor.txt.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
DirectionPOV_BUYDirection to build
Target lots1.00Total position size to build
Slice lots0.10Fixed child order size (capped to what remains)
Ticks per slice50Ticks that must be observed before releasing the next slice
Min interval seconds5Floor between slices even on a very fast feed
Start tradingfalseMust be true for the EA to actually send orders
Magic number20261203Magic number identifying this build
Slippage pips3Slippage tolerance, in pips
Max retries5Attempts per slice before giving up on it
Retry wait ms500Pause between attempts, milliseconds

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Experts.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 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: Volume · MT5 Expert Advisor · MQL5 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria