A script that helps you set trailing stops.
A trailing stop is a type of stop order that automatically closes a position once the price reaches a certain level.
Unlike a stop loss, this order doesn't have a fixed value; it's floating, meaning it sets a distance from the current price in points, rather than a specific point at which the position will be closed.
This means that while the price moves toward profit, the trailing stop follows it, but as soon as the price reverses, the stop order will be triggered after a certain number of points.
Additional information on working with this order can be found in the article " Trailing Stop ," where you'll also find a description of all the steps for manual setup.
The trailing stop script allows you to set a trailing stop in fully automated mode. It's a kind of expert advisor that requires no additional configuration.
For proper operation, first copy the downloaded "e-Trailing" program file to the "scripts" folder.
Afterward, restart the trader's terminal and find the installed trailing stop script in the list of scripts.
Then, proceed directly to opening positions; the program only works on existing orders.
Once the position is opened, click "e-Trailing." It is automatically set to the open position with the following parameters:
TrailingStop=15 – the stop point will be 15 pips from the current price.
ProfitTrailing=true – the program will begin its work as soon as the position becomes profitable.
TrailingStep=2 – the values are adjusted every 2 pips.
Parameters can only be changed in the script settings using the code editor.
Download the trailing stop script.

