Equity Close with trailing by sum of a list of Magic Number

MQL4 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 5 días
Comentario del Cliente
thanks for your hard work!
Comentario del Ejecutor
Thank you CHAN

Tarea técnica

I would like to add some new function in the existing utility (or if you think write a new one is easier just go for it)

----------------------------------------------------------------------------------------

short form for easy communication


Magic Number = M#

Trailing Start = TS

Virtual Trailing Distance = VTD

----------------------------------------------------------------------------------------

To be simple, The existing utility allows user to TP/SL by the sum of a list of M#


For example, 

M# = 111;222

Global TP in $$ =10

Then for M# 111, floating gain $4, for M# 222, gain $6, total $10, then TP

———————————----------------------------------------------------------------------------------------

I would like to add the following


Global TP with TS and VTD

Very simple, 

if TS=10, VTD=3, then for sum of M#=111;222, TS when floating gain =10

——————————----------------------------------------------------------------------------------------


Global TP and Trailing per 0.01 Lots

This allows the trailing start and distance vary in different lots sizes



For example,

M# in control = 111;222

Global TS in $$ per 0.01 = 10 , VTD =3

GBPUSD (M#=111)

Long 0.02

EURUSD (M#=222)

short 0.03


in this situation, Total lots = 0.05

TS in reality =50

VTD = 15


Condition - If VTD=0 -> Not in USE, TP immediately when the floating gain hits TS

-------------------------------------------- Dynamic SL--------------------------------------------


one thing extra, can you do it? 

Dynamic Stop Loss by equity top return. 

Dynamic SL Start  =300

Dynamic SL Top Return =100

# of Top Return =2

Ultimate SL =500


This means, for those M# in control, in some points the floating loss is 320, and return to 220(count+1), then hits 350 again, and return to 250(count+1=2), then hits 300 again, at this points stop loss


(Another way to understand this —Like Trailing Stop Loss Start=300, Trailing SL Distance=100, but not SL immediately, just counter+1


In anytime the floating loss hits 500, SL immediately without considering Top Return


Therefore, there are only two results for this function - SL300 or SL500





----------------------------------------------------------Requirement ---------------------------------------------------------

Additional Requirements

  1. Please do testing before delivery
  2. follow up service if there is bug found


--------------------------------------------This is the question you need to let me know--------------------------------------------

Pls state:

Do you understand what I exactly mean, if not, please ask me for clarify!!

Delivery time

Do you understand one thing extra - dynamic SL and can you do this?

What is your quote with or without Dynamic SL 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I will attach the original project specification, parameters, and mql4, 

you may take a look


-------------------------------------------- This is the project specification of the original project --------------------------------------------



I want to do a utility. It is just for closing existing orders (open positions and pending orders both included)


— Close by Time —

Function = ON/OFF

Magic Number = 1,2,3,4,5


(Input -1 for all magic, Input 1,2,3,4,5 for magic only 1,2,3,4,5)


Hour = 16

Minute = 50

—> Close all orders/positions for magic 1,2,3,4,5 at 16:50:00 in broker time


Example 2

Function ON

Magic =1,2,3,4,5

Hour = 0

Minute = 50

—> Close all orders/positions for magic 1,2,3,4,5 at every XX:50 in broker time. It means: close all at 15:50, close all at 16:50, close all at 17:50…. Goes on


— Close by Profit —

Function ON/OFF

Magic Number = -1

Dollars = 5

—> Total floating profit in that magic number (in the case, all magic numbers) > $5 —> close all orders with that magic numbers  (in the case, all magic numbers) 


Example 2

Magic Number = 1,2,3,4,5

Dollars = 10

—> TP when profit > 10, applies for those magic numbers, i.e. the final result is TP $10 for the sum of magic #1,2,3,4,5


— Close by Loss —

Function ON/OFF

Magic Number = 1,2,3,4,5

Dollars = 5


---------------------------------------------------------------------------- End ---------------------------------------------------------------------------- 



Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(298)
Proyectos
427
26%
Arbitraje
18
61% / 33%
Caducado
26
6%
Libre
Ha publicado: 8 ejemplos
2
Desarrollador 2
Evaluación
(16)
Proyectos
26
54%
Arbitraje
1
0% / 0%
Caducado
4
15%
Trabaja
Ha publicado: 3 ejemplos
3
Desarrollador 3
Evaluación
(75)
Proyectos
124
44%
Arbitraje
14
29% / 50%
Caducado
17
14%
Libre
Solicitudes similares
Need an MQL5 Expert Advisor for MT5 that automates my manual trading strategy. Entry logic: Enter only when trend direction, support/resistance level, and RSI all align (Triple Confirmation). Extra confluence from Smart Money Concepts (order blocks, Fair Value Gaps, BOS/CHoCH). Risk rules: 1% risk per trade, minimum 1:2 risk-reward, stop-loss at structure levels (not fixed pips). Must-haves: Works on Islamic
I am looking for a developer experienced in EAs, MT5 and trade management optimization to help me add an intelligent early-exit system to my existing XAUUSD trading robot. The EA is already fully functional and performs best on the M15 timeframe. The entry strategy, BUY/SELL logic, sessions and core structure are already implemented. The work should focus exclusively on adding early exits for trades that are
PHANTOM PROTOCOL V1 35 - 150 USD
PHANTOM PROTOCOL V1 – MT5 EXPERT ADVISOR SPECIFICATION Develop a professional MetaTrader 5 (MT5) Expert Advisor named “PHANTOM PROTOCOL V1”. PRIMARY MARKET: - XAUUSD (Gold) - Designed primarily for M15 and H1 timeframes. - The EA must work with both 3-digit and 2-digit gold pricing where applicable. TRADING LOGIC: Use pure price-action and market-structure analysis rather than relying on a single indicator. The EA
Wanna Create A Trading Robot That Uses Liquidity Sweep And Smart Money Concept EA That Works On PC. I want A Developer Who Can Program Exactly My Strategy That Will Be Shared on A Video Upon The Selection. it Should Follow My Rules .It has To be able To Read Price Action, followed By Liquidity Sweep Areas And Combine with Smart Money Concept Knowledge. We Will Talk about Parameters later on . The robot should be able
1. Overview: I need an Expert Advisor (EA) for MT5 called "Gold Sniper" specifically optimized for XAUUSD (Gold). The EA should be a sniper scalper that takes high-probability trades on M5 and M15. It must work on any broker with low spread. 2. Strategy Logic: The EA should combine 3 confirmations: a) Trend Filter: EMA 50 & EMA 200. Only Buy if EMA 50 > EMA 200, only Sell if EMA 50 < EMA 200. Sniper Entry: Use RSI
I need an experienced trading-data specialist who can help me obtain 3–4 years of historical market data compatible with NinjaTrader 8 . The data will be used for trading strategy development, backtesting, and analysis
I would look for an EA with: ✅ Verified MT4/MT5 live account ✅ At least 6–12 months of live results ✅ Low/moderate drawdown ✅ No dangerous martingale/grid unless you specifically want that ✅ Realistic scalping performance with your broker ✅ Spread & slippage filters ✅ Stop Loss + Take Profit ✅ Break-even and trailing stop ✅ News filter ✅ Adjustable lot size/risk ✅ Source code ( .mq4/.mq5 ) if you're purchasing the EA
Шукаю спеціаліста для розширення діючого функціоналу MT5 "New order" або створення окремого робота. Суть проекта - можливість створення відкладеного ордеру BuyStop або SellStop після досягнення ринковою ціною певного значення. Схема руху ціни - хибний пробій рівня (ціна X) та розворот тренду. Ручне встановлення SL та TP. Опція схожа діючого функціоналу BuyStopLimit або SellStopLimit, але відкладений ордер
Need aggressive M1 gold scalper rewrite of Dev3 + 8 strategies. INPUTS: RiskPercent=3, TP=400, SL=300, MaxTrades=6, Mode=BOTH, DailyProfit 15%, DailyLoss -10% LOT = Balance * RiskPercent / 1000 - works for Cent R350 and $1000. 8 STRATEGIES any true = open instantly, check 1 sec: 1 EMA8/21 cross 2 RSI14 30/70 + engulf 3 Engulfing candle 4 BB 20,2 breakout 5 FVG grab M1 6 M5 trend + M1 entry 7 Wick rejection >2 8
Hi, I want to develop a custom SMC (Smart Money Concepts) EA for MT5. My budget is $100. Here are the strategy requirements: 1. Auto identification of BOS, CHoCH, Order Blocks (OB), and FVG. 2. Auto entry when price returns to OB/FVG. 3. Auto SL above/below OB and TP based on Risk-to-Reward ratio (1:2, 1:3). 4. Risk Management (Risk % per trade or fixed lot size), Trailing Stop, Break-Even, and Max Spread filter. 5

Información sobre el proyecto

Presupuesto
50+ USD