open two pending orders

open two pending orders
Download ALL MT4 experts (885)
YouTube Video Thumbnail



Similar MetaTrader Tools

open two pending orders

Info

The open two pending orders is a Expert Advisor for MetaTrader 4 that 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.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use open two pending orders

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

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.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.

Description & Settings

Related: daily breakdown pending order ea - another powerful expert for MetaTrader 4 traders.


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.

Also recommended: Automated Screenshot and Email Notification After Trade Opening - similar expert with strong performance on MetaTrader 4.

main purposes

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.

avoiding unwanted triggering of stop loss without further confirmation with the close price.

setting take profit levels.

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.

You may also like: auto pending and manage orders by rsi - excellent alternative for expert users on MetaTrader 4.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property version   "1.00"
#include <stdlib.mqh>
input bool   dynamiclotsize    =true;   //use money management
input double equitypercent     = 2;     //risk percent
input double fixedlotsize      = 0.1;   //fixed lotsize
input double stoploss          = 100;   //stoploss( in point)
input double takeprofit        = 300;   //takeprofit( in  point)
input double trailingstop      = 50;    //trailingstop(in point)

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.