Loading…

Cancel Oldest Pending EURCAD

Cancel Oldest Pending EURCAD — MT5 script, supplied with source code and a compiled file. Source metadata: ID 763: Cancel Oldest Pending EURCAD Source algorithm identifier: CANCEL_OLDEST_PENDING. Declared inputs include: MagicFilter, SymbolOverride, SlippagePoints, MaxAttempts, MaxQuoteAgeSeconds, StopLossMode, StopLossValue, TakeProfitMode, TakeProfitValue, ProfitLockMode, ProfitLockValue, TrailMode, TrailValue, AdjustmentMode, AdjustmentValue. Description extracted from the supplied source metadata. Compilation compatibility, runtime behavior and trading results have not been independently verified.

Script · MT5 · v1.0 · Free

About Cancel Oldest Pending EURCAD

Cancel Oldest Pending EURCAD is an expert advisor (trading robot) for MetaTrader 5. It places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 15 settings, such as Magic filter, Symbol override and Slippage points. MQL source code included.

Files in the download: Cancel_Oldest_Pending_EURCAD_MT5.mq5, Cancel_Oldest_Pending_EURCAD_MT5.ex5.

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

Settings

SettingDefaultWhat it does
Magic filter-1-1 means all magic numbers, still TargetSymbol only.
Symbol overrideExplicit exact broker symbol override; blank uses catalog target.
Slippage points30Maximum slippage allowed when opening a trade
Max attempts3
Max quote age seconds120
Stop loss modePipsModeStop loss distance
Stop loss value50.0Stop loss distance
Take profit modePipsModeTake profit distance
Take profit value100.0Take profit distance
Profit lock modePipsMode
Profit lock value5.0
Trail modePipsModeTrailing stop distance or switch
Trail value20.0Trailing stop distance or switch
Adjustment modePipsMode
Adjustment value5.0

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: Pending Orders · Trailing Stop & Break-even · MT5 Script · MQL5 Source Code

MQL4 & MQL5 scripts · PolyMaria