Smart MA Trailing Stop EA – MT4 – EA MetaTrader 4

Smart MA Trailing Stop EA - MT4 - expert for MetaTrader 4
Smart MA Trailing Stop EA is a straightforward and efficient tool designed for trending markets. It automatically adjusts your stop losses based on the selected Moving Average (MA) period and the distance between the price and the MA. What it does: (Click on the image to see how the EA works) Automated Stop Loss Adjustments: … Read more

Trailing Stop Management Function – script MetaTrader 5

Trailing Stop Management Function - script for MetaTrader 5
//+——————————————————————+ //|                                       TrailingStopManagement.mq5 | //|                                  Copyright 2023, MetaQuotes Ltd. | //|                                             | //+——————————————————————+ #property copyright “Copyright 2023, MetaQuotes Ltd.” #property link      “” #property version   “1.00” #define _MagicNum  NULL//set magic number input int    Stoplose      =992;// set stoplose value input int    TrailingStop  =986;// set TrailingStop value //+——————————————————————+ //| Script program start function                                    | //+——————————————————————+ void OnStart()   { //—    Management();   } //+——————————————————————+ //+——————————————————————+ //| Management … Read more

Trailing stop tutorial using ATR indicator – EA MetaTrader 5

Trailing stop tutorial using ATR indicator - expert for MetaTrader 5
I. Main function 1. Using condition buy or sell base on price action. 2. Auto caculate lot size 3. Auto trailling stop by ATR. 4. Backtest result II. Main function code 1. Trailling and count position function //+——————————————————————+ //|Count position and Trailling Functiom                              | //+——————————————————————+ void  count_position(int &count_buy, int &count_sell, double &_atr[])   {       count_buy=0; count_sell=0; … Read more

Classic and Virtual Trailing – EA MetaTrader 4

Classic and Virtual Trailing - expert for MetaTrader 4
Classic Trailing => Use Stop Loss to Trail and it does reflect in your broker serverVirtual Trailing => Does not Trail using Stop Loss and it does not reflect in your broker server.Trailing Gap = A Gap from Bid/Ask PriceTrailing Start = Distance from Order Entry Price (Order Open Price) to start trailing Classic and … Read more

Virtual SL TP Pending with SL Trailing for Symbol Chart – EA MetaTrader 4

Virtual SL TP Pending with SL Trailing for Symbol Chart - expert for MetaTrader 4
T”Virtual_SL_TP_Pending_with_SL_Trailing.mq4.” It’s designed to manage trades by setting virtual stop loss and take profit levels, along with a virtual pending order with an optional trailing stop loss feature. Here’s a breakdown of the script: Copyright and Link: Specifies the copyright information and a link to the creator’s website. Version: Indicates the version of the script. … Read more

Code Block for “Trailing Stop” based on current market price. (Ask / Bid) – EA MetaTrader 5

Code Block for "Trailing Stop" based on current market price. (Ask / Bid) - expert for MetaTrader 5
This code block works if you use either a Stop Loss or Not.  Requirements  You need to include “Trade.mqh ” to get access to the CTrade class which allows you to work with positions and orders. #include <Trade\Trade.mqh> // <<—————————————— Include this “Trade.mqh” to access the CTrade Class You need to set an input parameter … Read more

TradeProtector-1.1 – Automatic Stop Loss and proprotional Trailing Stop (updated version) – EA MetaTrader 4

TradeProtector-1.1 - Automatic Stop Loss and proprotional Trailing Stop (updated version) - expert for MetaTrader 4
Updated version of the: List of fixes: – Added SYMBOL (currency pair) checking. Version 1.0 was processing all orders, no matter what currency pairs was there. Currently this EA is only processing orders of the same symbol. If you want to use it for – let’s say EURGBP and EURUSD – attach trade_protector-1.1 to the … Read more

Universal trailing stop – EA MetaTrader 4

Universal trailing stop - expert for MetaTrader 4
Description: Can run as a single Expert Advisor or a script, together with any Expert Advisor. Depending on the variable TrailingStop, trailing may be performed using the fractals, the extremal values of bar in the past or using the specified points. If TrailingStop is greater than 0, then trailing will be carried out with the … Read more

A WPR Based Trailing Stop Module – library MetaTrader 5

Fig. 1. An example of the module
The trailing module is based on two stop levels: a short and a long one. The long stop level is similar to a fixed trailing stop. A short stop level is activated when the WPR indicator leaves the overbought/oversold areas. The width of the overbought/oversold areas is defined by the module settings. Module settings: Timeframe … Read more