Expert Advisor – Auto-Adjust Lot Size in Trade Panel

Tarea técnica

I need an Expert Advisor (EA) for MetaTrader 5 that automatically adjusts the lot size in the volume field at the top-left of the terminal based on a fixed 1% risk of my equity.

Features:

1. Display a movable horizontal line on the chart that I can drag.

2. Calculate the distance from the line to the live price in pips.

3. Retrieve my account equity in real-time.

4. Get the pip value of the symbol dynamically.

5. Use this formula to calculate the correct lot size:


Lot Size = (Equity × 0.01) / (Stop Loss in Pips × Pip Value)


6. Automatically update the “Volume” field at the top-left trade panel (so I don’t need to manually enter the lot size).

7. If the line is below the price, it means I want to place a Buy trade (stop-loss at the line).

8. If the line is above the price, it means I want to place a Sell trade (stop-loss at the line).

9. Display the calculated lot size as a text on the chart for confirmation.


🚨 Important: This EA must automatically set the lot size in the trade panel at the top-left of MetaTrader 5, not just display it on the screen.


Platform: MetaTrader 5 only (not MT4).


Han respondido

1
Desarrollador 1
Evaluación
(51)
Proyectos
69
35%
Arbitraje
4
25% / 75%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(50)
Proyectos
64
20%
Arbitraje
11
27% / 55%
Caducado
5
8%
Libre
3
Desarrollador 3
Evaluación
(273)
Proyectos
401
27%
Arbitraje
40
40% / 50%
Caducado
1
0%
Libre
4
Desarrollador 4
Evaluación
(216)
Proyectos
368
33%
Arbitraje
34
41% / 29%
Caducado
108
29%
Libre
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(64)
Proyectos
83
28%
Arbitraje
9
33% / 56%
Caducado
9
11%
Libre
Ha publicado: 1 ejemplo
6
Desarrollador 6
Evaluación
(60)
Proyectos
87
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
7
Desarrollador 7
Evaluación
(33)
Proyectos
35
20%
Arbitraje
5
40% / 40%
Caducado
0
Libre
Ha publicado: 1 ejemplo
8
Desarrollador 8
Evaluación
(253)
Proyectos
316
29%
Arbitraje
34
26% / 65%
Caducado
10
3%
Libre
9
Desarrollador 9
Evaluación
(43)
Proyectos
49
29%
Arbitraje
4
25% / 25%
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(511)
Proyectos
549
53%
Arbitraje
13
69% / 15%
Caducado
3
1%
Libre
11
Desarrollador 11
Evaluación
(18)
Proyectos
26
0%
Arbitraje
4
0% / 100%
Caducado
5
19%
Libre
12
Desarrollador 12
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
13
Desarrollador 13
Evaluación
(4)
Proyectos
6
33%
Arbitraje
7
14% / 57%
Caducado
1
17%
Libre
14
Desarrollador 14
Evaluación
(432)
Proyectos
632
53%
Arbitraje
32
53% / 22%
Caducado
6
1%
Trabajando
15
Desarrollador 15
Evaluación
(8)
Proyectos
9
56%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(4)
Proyectos
9
11%
Arbitraje
11
18% / 64%
Caducado
4
44%
Libre
18
Desarrollador 18
Evaluación
(16)
Proyectos
18
6%
Arbitraje
5
20% / 80%
Caducado
1
6%
Libre
19
Desarrollador 19
Evaluación
(296)
Proyectos
475
40%
Arbitraje
105
40% / 24%
Caducado
80
17%
Ocupado
Ha publicado: 2 ejemplos
20
Desarrollador 20
Evaluación
(6)
Proyectos
5
0%
Arbitraje
3
33% / 33%
Caducado
2
40%
Trabaja
21
Desarrollador 21
Evaluación
(12)
Proyectos
13
8%
Arbitraje
1
0% / 100%
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(162)
Proyectos
287
34%
Arbitraje
18
22% / 61%
Caducado
42
15%
Trabaja
23
Desarrollador 23
Evaluación
(45)
Proyectos
91
13%
Arbitraje
34
26% / 59%
Caducado
37
41%
Libre
24
Desarrollador 24
Evaluación
(12)
Proyectos
12
17%
Arbitraje
2
0% / 50%
Caducado
1
8%
Libre
25
Desarrollador 25
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
26
Desarrollador 26
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
27
Desarrollador 27
Evaluación
(4)
Proyectos
4
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
Hi, I hope you’re doing great. I’d like to share the project details. The original EA is already working, but I need you to first review and verify that all existing features are functioning correctly. After confirming everything works properly, the next task is to add a simple user dashboard that shows the number of detected zones, buy/sell/none status, and includes an ON/OFF button. Also, please make sure that
looking for Expert to create or ready made solution for bonus hedge auto set cross trading of opposite trading strategy. the expert may guide what max and best he can do to make the EA perfect
Set specific time to run this function(order). The time can be hard-coded or inputted by user. Time format: HH:MM:SS:ss Example: 17:58:48:59 -> This means an order will be triggered at 5 pm 58min 48sec 59 today. Set “Stop loss” and order a Sell stop. “At price” triggered automatically: current(specific time set above 1) Gold price - 2$ Stop loss: current Gold price + 2$ Volume: 0.1 (It can be hard-coded or inputted
Simplebot 30+ USD
#include <Trade/Trade.mqh> CTrade trade; input double LotSize = 0.1; input int FastMA = 10; input int SlowMA = 20; int fastHandle, slowHandle; // Initialize indicators int OnInit() { fastHandle = iMA(_Symbol, PERIOD_CURRENT, FastMA, 0, MODE_SMA, PRICE_CLOSE); slowHandle = iMA(_Symbol, PERIOD_CURRENT, SlowMA, 0, MODE_SMA, PRICE_CLOSE); return(INIT_SUCCEEDED); } void OnTick() { double fastMA[2]; double
MODIFY AN EA TO OPEN MULTIPLE TRADES AT SAME TIME WITH DIFFERENT PRE-SET-TP LEVELS AND DIFFERENT ENTRY TECHNIQUES. (personal job) 30+ USD1 application Hie, either way is ok, i will open job in a moment, with only a few requirements ,which i have observed now 1--To completely remove martingale 2-its confusing how SL FROM and SL TYPE differ, also the fact 2 types of SL s can be selected at the same time , so its
In need of an automated bot that strongly detect support and resistance zones where price has a high probability of reacting ,rejecting or reversing. The zones should be built on combibation of of : (a)swing high and swing low.(b)repeated price reaction c)rejection strength (d)break and retest behaviour (e) consolidation origin before implusive move (f) strong displacement candles
I need a mt5 Expert advisor ea to manage intraday trades with strict risk management. The EA must -Handle between 5 to 8 clean trades a day max altogether throughout all 3 sessions. no big news trading times and no overnight trades -Use 1% on forex pairs and upto 2% on XAUUSD risk per trade - Automatically calculate lot size based on stop loss -use fixed RR ratio [1:2] For forex pairs, the stop loss should be
Ninjatrdaer Script 500 - 1000 USD
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I need a clean, bug-free MT5 Expert Advisor (MQL5) based on this exact mechanical scalping strategy on M5 timeframe for EURUSD. Indicators (built-in): - EMA 9 and EMA 21 on M5 - RSI 14 - ADX 14 (>25 for strong trend) - H1 EMA 21 above/below H1 EMA 9 for trend alignment Entry Rules (ALL must be true): BUY: EMA9 crosses above EMA21 (on closed bar) + RSI > 50 + ADX > 25 + H1 EMA21 > H1 EMA9 SELL: Mirror (cross below
Im after a person to copy, exactly MACD in TRADINGVIEW to use on MT5. Ive tryed alot of the apps available...Tradingview works for me. Im also after a person to make a real time chart, overlayed on the delayed chart Thanks

Información sobre el proyecto

Presupuesto
30 - 150 USD
Plazo límite de ejecución
a 30 día(s)