Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Scripts

Pending tread EA. - script pour MetaTrader 4

Vues:
811
Note:
(1)
Publié:
2025.06.10 07:37
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Pending_tread Expert Advisor (EA) – Detailed Description

The Pending_tread EA is a versatile and easy-to-use trading robot designed to automate the placement and management of multiple pending orders arranged in a grid pattern above and below the current market price. This EA is well-suited for scalping strategies and can operate on any timeframe or currency pair, making it highly flexible for various trading styles.

Core Features

  • Grid of Pending Orders:
    The EA places a configurable number of pending orders ( totalOrdersPerSide , default 10) both above and below the current price. This creates a “grid” of buy and sell pending orders to capture market moves in either direction.

  • Configurable Distance Between Orders:
    You can set the distance between each pending order using PipStep (expressed in points), allowing you to tailor how tight or wide the grid is spaced. For example, setting PipStep to 120 corresponds to 12 pips for 5-digit brokers.

  • Customizable Order Types:
    The EA supports different trade directions for orders above and below the market.

    • Above market: places buy stop or sell limit orders (depending on your choice).

    • Below market: places sell stop or buy limit orders.
      The pending order type logic is designed correctly to ensure orders are placed at appropriate price levels relative to the current market price.

  • Take Profit per Order:
    Each pending order is assigned a take profit level calculated as a fixed number of pips ( TakeProfitPips ) from the order price. This allows for automated profit-taking without manual intervention.

  • Lot Size and Slippage Control:
    You can customize the lot size ( LotSize ) and the maximum slippage ( Slippage ) allowed when orders are sent to the broker, giving you control over risk and execution parameters.

  • Order Management and Filtering:
    The EA tracks existing pending orders for the current symbol and its own magic number ( MagicNumber ) to avoid duplicating or interfering with other trades or EAs running on the same account.

  • Throttle Mechanism:
    To prevent excessive trade context calls, the EA limits its order placement attempts to once every 5 seconds.

How It Works

  1. On every tick, the EA checks whether the trading context is free and enough time has elapsed since the last order placement.

  2. It counts existing pending orders for both above-market and below-market grids.

  3. It calculates the price levels for new pending orders spaced by the configured pip step.

  4. It places new pending orders up to the configured total number per side, respecting broker stop level restrictions to avoid placing orders too close to the current market price.

  5. Each pending order includes a take profit set relative to the order price.

  6. The EA continuously monitors and maintains this grid, re-placing orders as necessary if any are executed or canceled.

Use Cases

  • Scalping: Take advantage of small price movements by having multiple pending orders ready to trigger in either direction.

  • Range Trading: Place buy and sell orders near key support/resistance levels automatically.

  • Breakout Strategies: Capture breakouts by setting pending stop orders above and below the current price.

Important Notes

  • This EA only manages pending orders; it does not manage open positions (no trailing stop or stop loss currently).

  • Use proper risk management and test the EA on a demo account before live trading.

  • The EA works best with brokers that support 5-digit or 4-digit pricing; adjust PipStep and TakeProfitPips accordingly.


Double Moving Averages With Fibonacci Double Moving Averages With Fibonacci

This indicator combines two moving averages to generate buy/sell signals based on crossovers. It also plots Fibonacci retracement levels using recent swing highs and lows for support/resistance. Visual arrows mark trade signals, and optional alerts notify users in real-time. Works on all timeframes for flexible technical analysis.

SniperJaw EA SniperJaw EA

SniperJaw EA is a one-trade-at-a-time robot that uses the Alligator indicator (Jaw, Teeth, Lips) to follow the trend. You can control the trade size with LotSize, choose to close trades on opposite signal with UseEntryToExit, or use TakeProfit and StopLoss in pips if set. Slippage is managed by Slippage, and trading can be turned on or off using TradeEnabled. Alligator settings like JawPeriod, JawShift, TeethPeriod, TeethShift, LipsPeriod, and LipsShift let you adjust how the indicator works.

Three Colors Three Colors

Example: Moving Average indicator filling by different colors

MACD Sample MACD Sample

Classical MACD Sample.