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

LacusTstopandBE - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
4656
Rating:
(33)
Published:
2018.03.01 11:23
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The author of the idea: Lacus1977, the mq5 code author: barabashkakvn.

The Expert Advisor is only designed for manual trading. The EA sets stop loss and take profit for positions and pending orders on the current symbol. It also has trailing stop and breakeven functions.


Input Parameters

  • Stop loss - stop loss value;
  • Take profit - take profit value;
  • Close all if profit reached the x percent of balance or - close all positions once the total profit reaches x percent of balance;
  • close all if profit reached the x profit amount in currency - close all positions once the total profit reaches the specified amount in the deposit currency;
  • Close if profit reached x profit amount - close a position once its profit reaches the specified amount in the deposit currency;
  • Trailing Start after reaching x pips - trailing start setting;
  • Trailing Stop distance from current price - trailing step setting;
  • Breakeven Gain after reaching x pips - the number of profit points after which a position will be moved to breakeven;
  • Breakeven x pips locked in profit - the number of points to move the breakeven point;
  • Stealth mode for Stoploss and Takeprofit values - hidden mode.


Example

A Buy position is opened without a stop loss and take profit. The EA sets preset stop loss and take profit values.

Suppose, the price moves in a favorable direction and makes Breakeven Gain after reaching x pips point of profit. The EA sets the breakeven at Breakeven x pips locked in profit points. The price moves higher and the EA trails Stop loss following the price: every Trailing Start after reaching x pips stop loss is trailed by Trailing Stop distance from current price points.

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

SAR index based on MA SAR index based on MA

The SAR indicator calculated based on the iMA (Moving Average, MA) indicator values.

ZigZagEvgeTrofi ver. 1 ZigZagEvgeTrofi ver. 1

A trading system based on the ZigZag indicator.

VR---ZVER v.2 VR---ZVER v.2

It is a further development of the first VR---ZVER version. The new version features trailing stop, a separate flag for allowing/prohibiting BUY positions, a separate flag for allowing/prohibiting SELL positions.

Advanced Fractals Advanced Fractals

Unlike the standard Fractals, this indicator allows searching and displaying on a chart fractals with the user defined dimensions.