Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Pending orders by time - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
6915
Rating:
(32)
Published:
2017.11.03 12:31
Updated:
2018.02.28 10:29
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Author of the idea:  Yuri, mq5 code author: barabashkakvn.

The Expert Advisor works with pending orders: it sets Buy Stop and Sell Stop at the specified time. Pending orders are set with the Stop Loss. The EA uses virtual Take Profit, i.e. it monitors open positions, and when the current position profit reaches Take Profit, the EA closes it by market.

Operation features:

  • The Expert Advisor works on timeframe below "H1".
  • For example, if the Expert Advisor works on the M15 timeframe, the EA will place pending orders four times within one hour: at [hour]:00 minutes, at [hour]:15, at [hour]:30 and at [hour]:45.

Results for EURUSD, H30 with the following settings:

  • Opening hour - 09
  • Closing hour - 21
  • Distance from the price (in pips) - 10
  • Volume transaction - 0.1
  • Stop Loss (in pips) - 20
  • Take Profit (in pips) - 500

Pending orders by time

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19070

EA Trix EA Trix

An expert advisor based on the TRIX ARROWS indicator.

TRIX ARROWS TRIX ARROWS

The Triple Exponential Average (TRIX) indicator + the signal line + arrows at the intersection of the signal and the main lines.

OpenTime OpenTime

Opening and closing positions at a specified time.

Anubis Anubis

The Expert Advisor trades using the signals of the following indicators: iStdDev (two indicators), iMACD, iCCI, iATR. Moving positions to breakeven.