Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Experts

Open Two Pending Orders - expert for MetaTrader 4

| English Español Português 日本語 Deutsch

Views:
12741
Rating:
votes: 14
Published:
2017.09.06 11:51

The Expert Advisor is intended for automatic placing of Buy Stop pending orders and Sell Stop pending orders simultaneously, Stop Losses and Take Profits on the user specified levels. As soon as the long position (BUY) is opened as ASK price crosses the levels, the remaining pending order (SELLSTOP) is deleted. Vice versa if the short position (SELL) is opened as BID price crosses the levels, the remaining pending order (BUYSTOP) is deleted. It places again both pending orders after the opened order has been closed. Thus spread widening is not dangerous. Nevertheless, you need to have this EA to prevent unwanted hitting of the Stop Loss levels.


Main Purposes

  1. Automation of the process of placing the Buy Stop pending orders and Sell Stop pending orders simultaneously, Stop Losses and Take Profits on user-specified levels in case a brokerage company prohibits placing such orders closer than 'n' points from the current price.
  2. Avoiding unwanted triggering of Stop Loss without further confirmation with the close price.
  3. Setting Take Profit levels.
  4. Setting Trailing Stop levels.


EA Settings

  • DynamicLotSize - Choose to use money management system to calculate lot size based on Equity (true by default).
  • EquityPercent - Risk percentage of equity (2 by default).
  • FixLotSize - lot size to use if DyanamicLotSize is false (0.1 by default).
  • StopLoss - Stop Loss level in point of the price chart (100 by default).
  • TakeProfit - Take Profit level in point of the price chart (300 by default).
  • TrailingStop - Trailing Stop level in point of the price chart (100 by default).
  • PipsAway - trigger level for the "waiting" pending orders in point of the price chart (50 by default).
  • Slippage - Slippage value.
  • Magic - Magic number.

The specified level for entering a position, the Stop Loss and Take Profit levels are marked with lines of different colors on the chart.

Place Two Pending Orders

Input Variables

Chaos Trader Lite Chaos Trader Lite

Use Chaos Theory to trade!

Simple Single Layer Perceptron EA Simple Single Layer Perceptron EA

The EA using single layer Perceptron.

II (Outbreak) EA II (Outbreak) EA

Expert Advisor for pyramiding into big and fast market movements.

Multicurrency hedge example EA (overlay hedge) Multicurrency hedge example EA (overlay hedge)

The example of multicurrency hedging implementation on a single chart in Metatrader 4.