If you're looking for a reliable way to manage your trades, the Exp_GStop_Tm is an Expert Advisor (EA) designed for MetaTrader 5 that can really help you out. This EA automatically closes all open positions when either your total profits exceed your set Take Profit level or your total losses go beyond your designated Stop Loss level. Plus, it can close all positions after a specific time interval that you define in the settings.
In essence, this EA acts as a global take profit and stop loss manager, ensuring that all your open positions are handled simultaneously. It even logs the actions taken, so you can keep track of any losses stopped and positions closed.
Key Features of Exp_GStop_Tm
- Customizable Profit and Loss Levels: Set your preferred take profit and stop loss levels according to your trading strategy.
- Time-Based Trading: The EA allows you to close positions based on specific time intervals you set.
- Logging Actions: Every action taken by the EA is recorded in a log file for your reference.
Setting Up Your EA
Here’s a quick look at how you can configure your EA:
//+----------------------------------------------+ //| Options to calculate the losses | //+----------------------------------------------+ enum StopMode { ENUM_PERCENT, // losses and profits in percents ENUM_CURRENCY // losses and profits in the deposit currency units }; //+----------------------------------------------+ //| Input parameters of the EA indicator | //+----------------------------------------------+ input StopMode LMode=ENUM_PERCENT; // method of detecting losses and profits input double StopLoss=20.0; // stop loss level input double TakeProfit=100.0; // take profit level
The EA also offers options to control trading based on specific time intervals:
input bool TimeTrade=true; // Permission to trade by time intervals input HOURS StartH=ENUM_HOUR_0; // Trading start (Hours) input MINUTES StartM=ENUM_MINUT_0; // Trading start (Minutes) input HOURS EndH=ENUM_HOUR_23; // Trading end (Hours) input MINUTES EndM=ENUM_MINUT_59; // Trading end (Minutes)
With two variables for start time and two for end time, you have complete control over your trading schedule. By default, the EA is set to trade around the clock, from 00:00 to 23:59. If you set the start time later than the end time, the EA will simply close positions the following day at your specified time.
This can be a game-changer for your trading strategy. Give Exp_GStop_Tm a try and take the stress out of managing your positions!
Comments 0