Accounttrailingstop Settings/Inputs Guide for MT4 & MT5

12 March 2026, 08:46
Biswarup Banerjee
0
11

Complete User Documentation — MT4 & MT5

1. OVERVIEW

The EA AccountTrailingStop is designed to manage trailing stops for your trading account, automatically locking in profits by closing trades when the total profit declines below a specified peak. This tool is essential for traders looking to optimize their profit-taking strategies while minimizing potential losses. It utilizes a dynamic profit locking mechanism, ensuring that your earnings are secured as market conditions fluctuate.

Who Should Use It: This EA is ideal for retail forex traders who want to implement a systematic approach to managing their profits and reducing risk exposure.

Main Benefit: The primary advantage of this EA is its ability to automatically secure profits, allowing traders to focus on strategy rather than manual trade management.


2. INPUT PARAMETERS & SETTINGS

This product shares a common set of general input settings with all Expert Advisor products in this series. The following sections are covered in the common guide: General Settings (lot size, SL/TP modes, magic number, trade direction), Breakeven Settings, Trailing Stop Settings, News Filter Settings and News Action Settings, Martingale Settings, Grid Settings, Hedge Settings, Risk Settings, Position Sizing, Alert Settings, Display Settings, Trade Time Settings, Trade Days Settings, Safeguard Settings, and Trend Filter Settings (MA Filter, ADX Filter, RSI Filter, MACD Filter, Parabolic SAR Filter — each with their own strategy options). All of these are fully documented in the Common General Input Settings for Expert Advisors. The sections below cover only the product-specific inputs unique to this product.

Accountstop Settings

This section controls the settings related to the trailing stop functionality of the EA.

Setting Name Type Default Value Description Example
Use Trailing Stop bool true Enables the trailing stop feature, allowing the EA to automatically adjust stop-loss levels as profits increase, thus protecting gains. true - Use this to ensure profits are locked in as the market moves favorably.
Activate double 30 Sets the profit threshold (in pips) at which the trailing stop becomes active, ensuring it only engages after a certain profit level is reached. 30 - Activate trailing stop once profits reach 30 pips.
Trail price by double 20 Defines the distance in pips from the current price to which the stop-loss will trail, allowing for flexibility in profit capture. 20 - The stop-loss will trail 20 pips behind the current price.
Increment by double 10 Specifies how much the trailing stop will be incremented once the price moves favorably, allowing for gradual adjustments to the stop-loss level. 10 - The stop-loss will be adjusted by 10 pips as the price moves in your favor.

Risk Settings

This section manages the risk parameters associated with trading using this EA.

Setting Name Type Default Value Description Example
Risk Per MicroLot double 10 Determines the amount of risk (in currency) you are willing to take per micro lot, influencing position sizing and overall risk management. 10 - Set this to risk $10 per micro lot traded.

3. HOW IT WORKS

Core Calculation & Logic

The Account Trailing Stop Manager monitors the total profit of your account or specific trades, automatically adjusting the stop loss to lock in profits as they increase. It identifies peak profit levels and ensures trades are closed if profits fall below these thresholds, thereby minimizing potential losses.

This EA operates based on a trailing stop mechanism, where the stop loss is dynamically adjusted according to predefined parameters. It is particularly useful in volatile markets where profit levels can quickly change, allowing traders to secure gains while managing risk effectively.

Entry Strategies Explained

Market Trend Following

BUY Signal: Initiates a buy trade when the market shows a consistent upward trend with sufficient momentum.

SELL Signal: Initiates a sell trade when the market shows a consistent downward trend with sufficient momentum.

Best For: Trending markets where momentum can be capitalized upon for sustained profits.

Step-by-Step Workflow

Step 1: Configure Settings Set your desired lot size, stop loss, and take profit levels in the EA settings.

Step 2: Enable Trailing Stop Activate the trailing stop feature to ensure profits are locked in as the market moves in your favor.

Step 3: Set Magic Number If trading multiple strategies, assign a unique magic number for each to manage trades separately.

Step 4: Monitor Performance Regularly check the EA's performance and adjust settings as necessary based on market conditions.

Step 5: Review Logs If enabled, review logs to analyze trade decisions and performance metrics.


4. RISK MANAGEMENT FEATURES

This EA includes various risk management features to help traders protect their investments.

Feature Description
Trailing Stop Loss Automatically adjusts the stop loss to lock in profits as they increase, minimizing potential losses.
Magic Number Allows for separate management of trades by assigning unique identifiers to each strategy.
Lot Size Control Enables traders to specify the lot size for each trade, allowing for tailored risk exposure.
Log Capture Option to capture logs for analyzing trade decisions and performance metrics over time.
Stop Loss and Take Profit Settings Customizable stop loss and take profit levels to suit individual trading strategies and risk tolerance.

Quick Start Guide

Follow these steps to get started in under 5 minutes:

  1. Download the EA: Obtain the Account Trailing Stop Manager from the MQL marketplace.
  2. Install the EA: Add the EA to your MetaTrader platform by dragging it onto a chart.
  3. Configure Settings: Adjust the lot size, stop loss, and take profit parameters according to your trading plan.
  4. Enable Trailing Stop: Ensure the trailing stop feature is activated for dynamic profit management.
  5. Set Magic Number: If necessary, assign a unique magic number for trade identification.
  6. Monitor Trades: Keep an eye on the trades executed by the EA and adjust settings as needed.
  7. Review Performance: Analyze the performance logs to refine your trading strategy over time.

You may also be interested in these related products:


Installation Guide for MQL Products | Updating Purchased MQL Products on MT4/MT5 | General Troubleshooting Guide

Check all my products: https://www.mql5.com/en/users/biswait50/seller

Contact me for support: https://www.mql5.com/en/users/biswait50