Expert Advisor – Auto-Adjust Lot Size in Trade Panel

Spécifications

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).


Répondu

1
Développeur 1
Évaluation
(51)
Projets
71
37%
Arbitrage
4
25% / 75%
En retard
1
1%
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(50)
Projets
64
20%
Arbitrage
11
27% / 55%
En retard
5
8%
Gratuit
3
Développeur 3
Évaluation
(274)
Projets
403
28%
Arbitrage
40
40% / 50%
En retard
1
0%
Gratuit
4
Développeur 4
Évaluation
(217)
Projets
369
33%
Arbitrage
34
41% / 29%
En retard
108
29%
Gratuit
Publié : 1 code
5
Développeur 5
Évaluation
(64)
Projets
83
28%
Arbitrage
9
33% / 56%
En retard
9
11%
Gratuit
Publié : 1 code
6
Développeur 6
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
7
Développeur 7
Évaluation
(33)
Projets
35
20%
Arbitrage
5
40% / 40%
En retard
0
Gratuit
Publié : 1 code
8
Développeur 8
Évaluation
(290)
Projets
362
30%
Arbitrage
37
27% / 65%
En retard
10
3%
Chargé
Publié : 10 codes
9
Développeur 9
Évaluation
(43)
Projets
49
29%
Arbitrage
4
25% / 25%
En retard
0
Gratuit
10
Développeur 10
Évaluation
(515)
Projets
554
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
11
Développeur 11
Évaluation
(20)
Projets
29
3%
Arbitrage
4
0% / 100%
En retard
5
17%
Gratuit
12
Développeur 12
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
13
Développeur 13
Évaluation
(4)
Projets
6
33%
Arbitrage
7
14% / 57%
En retard
1
17%
Gratuit
14
Développeur 14
Évaluation
(437)
Projets
648
53%
Arbitrage
35
63% / 20%
En retard
7
1%
Travail
15
Développeur 15
Évaluation
(8)
Projets
9
56%
Arbitrage
0
En retard
0
Gratuit
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Développeur 17
Évaluation
(4)
Projets
9
11%
Arbitrage
11
18% / 64%
En retard
4
44%
Gratuit
18
Développeur 18
Évaluation
(22)
Projets
25
24%
Arbitrage
5
20% / 80%
En retard
1
4%
Gratuit
Publié : 6 codes
19
Développeur 19
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
20
Développeur 20
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
21
Développeur 21
Évaluation
(12)
Projets
13
8%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
22
Développeur 22
Évaluation
(162)
Projets
289
35%
Arbitrage
18
22% / 61%
En retard
43
15%
Gratuit
23
Développeur 23
Évaluation
(45)
Projets
91
13%
Arbitrage
34
26% / 59%
En retard
37
41%
Gratuit
24
Développeur 24
Évaluation
(12)
Projets
12
17%
Arbitrage
2
0% / 50%
En retard
1
8%
Gratuit
25
Développeur 25
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
26
Développeur 26
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
27
Développeur 27
Évaluation
(4)
Projets
4
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Commandes similaires
//+------------------------------------------------------------------+ //| UltraBot_MT5_EA.mq5 | //| Copyright 2026, UltraBot Algorithmic Engine | //| Brokers: RCG Markets & Razor Market | //+------------------------------------------------------------------+ #property copyright "UltraBot Automated Algo" #property link "https://ultrabot-mt5.app" #property version
https://www.youtube.com/watch?v=xMNx8f-aGQE&amp ;t=56s risk 1% per trade watch the video carefully and automate the trade setups in XAUUSD i prefer picking the least drawdown and good return expert advisor do not use overfitting(Strict) account type : hedging
FREELANCER JOB ORDER: DEVELOPMENT OF A MULTI-ASSET FTMO-COMPLIANT EXPERT ADVISOR (EA) 1. Project Title Development of a Professional, Configurable MT5 Expert Advisor for FTMO Challenges and Funded Accounts — Forex, Gold, Silver and Commodities 2. Project Overview I am seeking an experienced MQL5 developer to design and develop a professional automated trading system (Expert Advisor) for MetaTrader 5 (MT5). The EA
Project: Custom MT5 Day Trading Expert Advisor I need a custom automated trading robot (EA) for MetaTrader 5, developed in MQL5. Markets: - Gold (XAUUSD) - Selected Forex pairs Trading style: Automated day trading. All positions should be closed according to predefined strategy rules and before the end of the selected trading session. Strategy: The developer should propose a clear trading strategy, explain its rules
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
1. Overview Build an MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD (Gold) as a scalper, using Heiken Ashi candles and a 50 EMA for entries. 2. Platform and symbol MetaTrader 5, Expert Advisor (.mq5 and compiled .ex5) Symbol: XAUUSD (must work with broker suffixes, e.g. XAUUSDm) Default timeframe: M5 (configurable; M1 to M15 should work) 3. Indicators Heiken Ashi candles, calculated inside the EA (no
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester
Hi i'm looking for a trading bot that will trade on mt5/MQL5. The bot must be able to follow trend and works on any pair,chart and symbol. All distance measured with ATR. Trend from a higher time frame (default H1) with a moving average;UP/DOWN. Support and resistance found automatically from recent swing highs and low nothing drawn on the chart. Two kinds of trades, each can be switched on/off. S/R trades; price
I am looking for an EA using MT5, trading XAUUSD on PuPrime-Live6, Standard account. LIMITATIONS No martingale, no grid. Start equity 1000 EUR. Leverate 1:500 Account in USD. PuPrime-Live6 All settings (risk, time, drawdown %, cooldown, lot size) shall be adjustable on init or backtest. VERIFICATIONS The EA needs to reach the profit goals on Actual Ticks, 100ms slippage in backtests for each month 2026. profit goal
To create a unique description that meets the freelance site's requirements, you can type the following: "I am looking for an experienced MQL5 developer to create a custom Forex Expert Advisor. The trading strategy should be based on a moving average crossover system, filtered by the Relative Strength Index indicator. The expert advisor needs to feature distinct strategy modules with adjustable settings for the

Informations sur le projet

Budget
30 - 150 USD
Délais
à 30 jour(s)