Watch how to download trading robots for free
Find us on Facebook!
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:
3708
Rating:
(13)
Published:
2017.01.19 16:56
Updated:
2017.02.17 15:59
Exp_GStopLoss.mq5 (24.67 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This Expert Advisor closes all positions if the total loss exceeds a predefined limit. In fact, this is a global stop loss for all positions simultaneously.

//+----------------------------------------------+
//| Enumeration for loss calculation options     |
//+----------------------------------------------+
enum LossMode
{
ENUM_PERCENT, //losses in percentage
ENUM_CARRENCY //losses in deposit currency
};
//+----------------------------------------------+
//| Input parameters of the EA indicator         |
//+----------------------------------------------+
input LossMode LMode=ENUM_PERCENT; //loss calculation method
input double StopLoss=20.0; //stop loss
//+----------------------------------------------+

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

ZoomPrice tick indicator ZoomPrice tick indicator

The indicator shows the price chart of any scaling level.

RobotPowerM5 meta4V12 RobotPowerM5 meta4V12

Analyzing iBullsPower and iBearsPower indicators on the first bar.

Exp_GTakeProfit Exp_GTakeProfit

This Expert Advisor closes all positions if the total profit exceeds a predefined limit.

MFI_Histogram_Round_HTF MFI_Histogram_Round_HTF

The MFI_Histogram_Round indicator with the timeframe selection option available in the input parameters.