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
Views:
5641
Rating:
(27)
Published:
2018.01.10 11:45
Updated:
2018.01.15 18:41
eaBreakeven.mq5 (10.77 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

eaBreakeven is an EA that moves the Stop Loss to breakeven and simultaneously plays the sound, when the Stop Loss is changed. EA manages the positions for the current chart currency pair only, i.e. if you attach in on the GBPUSD chart, it will manage only GBPUSD positions.


Input parameters

  • Breakeven in points - profit of the position, when this expert moves the Stop Loss to breakeven.
  • Breakeven distance in points - the distance value where the Stop Loss is set. For example, if the opening price of a short position is 1.9873, and this parameter is set to 5 points, then eaBreakeven will change the Stop Loss to 1.9868.
  • Magic Number - managed orders ID. If 0 then EA will manage all the positions for the current symbol.
  • Enable / disable playing sound - enable/disable audio playback when a break-even occurs.
  • Sound file name - the name of the sound file in the \Sounds folder.
CDouble & CDoubleVector CDouble & CDoubleVector

A library for common rounding methods used in MQL development, primitive wrapper class for type (double), and vector for CDouble objects. MQL5 and MQL4 compatible!

Renko 2.0 Renko 2.0

A complete Renko chart indicator with wicks. Configure using Tick Size, Pip Size, Points or R. Now with Asymetric Reversals!

An abstract trading robot, an OOP pattern An abstract trading robot, an OOP pattern

An example of a template for developing automated trading systems.

MACD Crossing the zero level MACD Crossing the zero level

Displays areas, in which the MACD indicator crosses the zero line.