Automatic Trailing Stop Based on Take Profit Percentage with Profit MT5

MQL5 Asesores Expertos Conversión

Tarea técnica

Hello, I want to create an EA like this. There's a version for MT4 but I can't find it for MT5.

Lock in your profits and "let your winners run" past your 100% take profit target with this EA. 

This Expert Advisor automatically adjusts your Stop Loss based on up to 4 user-defined Take Profit Target Percentages, locking in your profit.  If price pushes past your 100% take profit target, the EA will automatically trail the price by user-defined pips, so you won't miss that runaway train again.  

EA Features

The EA can be used on multiple, multi-direction trades on the same asset by attaching itself to specific trades based on order/ticket number.  (Just attach the EA to a new chart for each trade and input the correct order number).
Stop Loss automatically adjusts to previous take profit target
Stop Loss activates Trailing By Points feature to lock in extra profits on trades that go past your initial 100% take profit target
How this EA works (do this after executing a trade):

1. User defines an initial take profit target and initial stop loss in points (Note:  You must use POINTS, NOT PIPS here).

2. User defines 4 take profit percent targets.  

For example:

TP1 = 25% (of total initial take profit target)
TP2 = 50% (of total initial take profit target)
TP3 = 75% (of total initial take profit target)
TP4 = 100% (of total initial take profit target)

3.  User defines the Stop Loss percent steps.

For example:

When TP1 (25%) is hit, SL adjusted to 12.5% (of total initial take profit target).
When TP2 (50%) is hit, SL is adjusted to 25% (of total initial take profit target).
When TP3 (75%) is hit, SL is adjusted to 50% (of total initial take profit target).
When TP4 (100% is hit, SL is adjusted to 85% (of total initial take profit target)

*** When TP4 (100%) is hit, the "Trail By Points" feature is also activated, following the trade indefinitely by user-defined points.***


This EA will allow you to lock in your profits while also allowing you to capitalize on trades that push way past your original target!



EA Input Parameters


Ticket Number:  The specific order/ticket number of your trade.  
Take profit in Points : Set your initial take profit in points (very important to use points here, not pips)
Stop-Loss in Points : Set your initial stop loss in points (very important to use points here, not pips)
TP1 - TP4 Percents : Split up your initial Take Profit into percentages at which you want the EA to step up the Stop Loss (default is 25%, 50%, 75%, 100%)
SL1 - SL4 Percents : Set the percentages at which you want your Stop Loss to adjust when hitting corresponding Take Profit Targets
***For example, when TP1 25% is hit, EA moves SL to 12.5% (SL1);  when TP2 50% is hit, EA moves SL to 25% (SL2), and so on***

Han respondido

1
Desarrollador 1
Evaluación
(19)
Proyectos
35
26%
Arbitraje
10
30% / 70%
Caducado
5
14%
Libre
2
Desarrollador 2
Evaluación
(199)
Proyectos
287
52%
Arbitraje
0
Caducado
1
0%
Libre
3
Desarrollador 3
Evaluación
(5)
Proyectos
9
11%
Arbitraje
5
40% / 60%
Caducado
1
11%
Libre
Solicitudes similares
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity
Hi, I would like the HARSI RSI indicator from TradingView (link below) converted to MT4: Heikin-Ashi RSI Oscillator on TradingView It appears that Mr. Tools from Forex Station has already created an MT4 version of this indicator. I've included the reference indicator here: !!rsi - heiken ashi averages smoothed (mtf + sw + alerts + arrows). I don't need the divergence settings in the indicator. I only need the
I need an expert to convert a TradeStation script over to pine please let me know if this is something you can do perfectly. I will be expecting your message. thanks
I need an expert to convert a TradeStation script over to pine please let me know if this is something you can do perfectly. I will be expecting your message. thanks
Hello, I have indicators for tradestation written in easylanguage and I need them in tradingview pinescript. So I need someone to convert these tradestation indicators to tradingview. Do you think you can help me with that
Dear Freelancers, I'm seeking a skilled MT4/MT5 developer to collaborate on a valuable trading indicator. Project Description: I'm looking to develop a powerful Elliott Wave indicator compatible with the MT4 and MT5 trading platforms. This indicator will be based on the highly successful [LuxAlgo] indicator currently available on TradingView. Key Features: In-indicator Alerts: The ability to receive pop-up
I am currently seeking a highly skilled developer for an important project. I need a professional developer to convert an Indicator to tradingview on MT4. If you are highly skilled and capable of handling this project, kindly reach out now
I HAVE A EX4 FILE,I NEED TO CONVERT THE EX5 FILE AS A EXPERT ADVISOR, I WANT SAME INPUT OF EX4. I ATTACHED MY EX4 FILE WITHHERE. PLS CONVERT THE SAME INPUT TO EX5. Thanks
Hello there, I'm looking for an experienced developer to convert a TradingView indicator script into an MT4 (MetaTrader 4) compatible format. The script, written in Pine Script version 5, includes custom indicators and graphical elements such as lines, boxes, and labels that we need to be accurately replicated in MT4. Check the attached file below
Hello Developers, I am currently seeking a highly skilled and experienced developer to assist with an important project. I requested the conversion of an existing TradingView code to MetaTrader 4 (MT4). The main objective is to convert a TradingView script to an exact MT4 equivalent. If you have the expertise and are interested in this project, please provide a quote and your estimated timeline for the conversion

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD