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:
4258
Rating:
(23)
Published:
2013.02.27 13:19
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Expert Advisor to perform global Stop Loss on all open positions. It simply closes all positions, if current positions' losses increase the maximum fixed level in MaxLoss input parameter of the Expert Advisor.

When the condition of exceeding losses is performed on all open positions, the Expert Advisor saves the information about this fact into terminal global variable and only after that on the basis of this information exits all open positions.

Why so and not directly on the signal? The thing is that the process of closing positions requires several time and that is why it can be interrupted in real life due to any reason. In this situation the Expert Advisor closes positions in any situation by the fact of exceeding losses. As all positions are closed, terminal global variable will be deleted!

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

b-clock b-clock

Show minutes and seconds left before new candle is appeared.

OpenSellPosition_X OpenSellPosition_X

The OpenSellPosition_X script is created to sell at fixed values of Stop Loss and Take Profit in points from the current price. Position volume is determined on the basis of the level of losses.

Exp_ToCloseProfit Exp_ToCloseProfit

The Expert Advisor to perform global Take Profit for all open positions.

EMA-Crossover_Signal EMA-Crossover_Signal

The simplest semaphore signal indicator based on different period Moving Averages