Watch how to download trading robots for free
Find us on Telegram!
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

e-News-Lucky - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
3638
Rating:
(12)
Published:
2018.06.16 10:35
e-News-Lucky.mq5 (36.37 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Idea by: Scriptor.

MQL5 code by: Vladimir Karputov.

Working with pending Buy Stop and Sell Stop orders. Pending orders are placed and removed at a specified time (Time of order placement and Time of order removal, respectively), the time being considered as hours and minutes only in the parameters. As soon as any of the pending orders triggers (the triggering moment is monitored in OnTradeTransaction), the remaining pending order will be removed.


Inputs

  • Lots - the volume of the pending order to be placed;
  • Stop Loss (in pips) - Stop Loss;
  • Take Profit (in pips) - Take Profit;
  • Trailing Stop (in pips) - trailing;
  • Trailing Step (in pips) - trailing step;
  • Time of order placement (use only hh:mm !!!) - time, at which pending orders must be placed;
  • Time of order removal (use only hh:mm !!!) - time, at which the pending orders must be removed (positions are closed at the same time);
  • Distance from market - distance from the current prices, at which pending orders are placed;
  • magic number - unique identifier for the EA.

Test example on GBPUSD,H1

e-News-Lucky GBPUSD H1

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

e_Breakeven_v4 e_Breakeven_v4

An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.

TwoBarsComparison TwoBarsComparison

The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.

SSL2 SSL2

Two different-period indicators SSL, implemented as a colored cloud.

SSL2_HTF SSL2_HTF

Indicator SSL2 with the timeframe selection option available in input parameters.