Loading…

Cancel Oldest Pending US500

Cancel Oldest Pending US500 — MT4 script, supplied with source code and a compiled file. Source metadata: ID 786: Cancel Oldest Pending US500 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 · MT4 · v1.0 · Free

About Cancel Oldest Pending US500

Cancel Oldest Pending US500 is a script for MetaTrader 4. It has 15 settings, such as Magic filter, Symbol override and Slippage points. MQL source code included.

Files in the download: Cancel_Oldest_Pending_US500.mq4, Cancel_Oldest_Pending_US500.ex4.

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 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  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 script onto a chart to run it once.

Download the PDF guide

Tags: Indices (US30, NAS100, DAX) · MT4 Script · MQL4 Source Code

MQL4 & MQL5 scripts · PolyMaria