Function for calculating static TP price for all opened orders by entering money

Trabajo finalizado

Plazo de ejecución 9 horas
Comentario del Cliente
Dasha is professional programmer, she knew exactly what I wanted. I will contact her again. Thanks Dasha.

Tarea técnica

Hi all,

I need somebody to help me with writing a function for MT4 which will calculate static TakeProfit price for all opened orders by entering money in account currency.

I need this function for my grid system EA

For example:

My EA opened 3 market orders in same direction (EURUSD symbol)

1. order - buy with 0,02 lots, opened at 1.17196

2. order - buy with 0,04 lots, opened at 1.16946

3. order - buy with 0,08 lots, opened at 1.16696

my TP money is 10$, I need to calculate TakeProfit price when profit from all 3 orders together will reach 10$

function input parameter will be money, for example: 10 (USD)

function return result will be TP price, for example above: 1.17112

function need to iterate over all opened orders and calculate static TP price.

function will be used for opened buy or sell orders in same direction.

I want to use this function in all of my future EAs, so I need all rights for it.

double calcTPAll(double money)
{
  return TPprice;
}


Han respondido

1
Desarrollador 1
Evaluación
(163)
Proyectos
236
32%
Arbitraje
30
27% / 30%
Caducado
26
11%
Libre
2
Desarrollador 2
Evaluación
(79)
Proyectos
111
37%
Arbitraje
0
Caducado
4
4%
Libre
3
Desarrollador 3
Evaluación
(115)
Proyectos
129
18%
Arbitraje
11
27% / 55%
Caducado
4
3%
Libre
4
Desarrollador 4
Evaluación
(57)
Proyectos
72
22%
Arbitraje
13
46% / 15%
Caducado
5
7%
Libre
5
Desarrollador 5
Evaluación
(163)
Proyectos
258
61%
Arbitraje
4
50% / 25%
Caducado
10
4%
Libre
6
Desarrollador 6
Evaluación
(45)
Proyectos
58
33%
Arbitraje
12
42% / 42%
Caducado
7
12%
Libre
7
Desarrollador 7
Evaluación
(390)
Proyectos
416
30%
Arbitraje
74
19% / 72%
Caducado
52
13%
Trabaja
8
Desarrollador 8
Evaluación
(313)
Proyectos
559
35%
Arbitraje
80
31% / 44%
Caducado
203
36%
Libre
9
Desarrollador 9
Evaluación
(24)
Proyectos
28
32%
Arbitraje
1
0% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
(169)
Proyectos
204
30%
Arbitraje
25
40% / 44%
Caducado
12
6%
Libre
Solicitudes similares
Gold Precision Pro 30 - 100 USD
I want the indicator to be built professionally and carefully because the strategy is strong, but it requires advanced and clean programming. The indicator should work mainly on XAUUSD M15 and should generate more than 2 high-quality signals per day, ideally around 2 to 4 signals maximum, without flooding the chart. The logic must not be random. Each signal must be based on: HTF Bias from H1/H4, Liquidity Sweep
FINAL EA STRATEGY DOCUMENT (Chandelier Exit + EMA Breakout System) ------------------------------------ CORE INDICATOR - Chandelier Exit (MAIN LOGIC) - ATR Period: Editable (Default 22) - ATR Multiplier: Editable (Default 3) IMPORTANT: - ATR must NOT be shown as a separate indicator - ATR must be used ONLY internally inside Chandelier Exit - All SL & trailing must strictly follow Chandelier Exit line
Situation: Please contact me privately so I can provide the source code for review. Thank you. Project Overview: I have developed a high-frequency trading (HFT) EA that performs consistently in demo environments and passes most prop-firm requirements. While short live phases showed profitability, the results were not reproducible over time. My primary goal is stable live performance on retail accounts , not just
I am looking to develop a custom Expert Advisor (EA) for MetaTrader (MT4/MT5) based on a defined technical analysis strategy and flexible risk management rules. The EA should operate on a chart and timeframe that I manually specify, with the ability to adapt its behavior dynamically when the timeframe is changed. Core Strategy Logic The EA will execute trades based on predefined technical analysis zones
🚀 ADAPTIVE GRID HEDGE EA (FULL VERSION) 🧠 📌 GENERAL CONCEPT This Expert Advisor (EA) uses a strategy combining: Grid trading (order grid) Hedge (protection with opposite positions) Lot scaling (progressive) Loss compensation with profits Continuous operation (non-stop) Focus on: Small recurring profits High trade volume (rebate/IB) The system does not depend on direction, but rather on market oscillation . Main
I need a professional MQL5 developer. BEFORE I SHARE ANY DETAILS: 1. You must sign a PERPETUAL NDA with no expiration date 2. NDA includes €100,000 penalty for any breach 3. I require full .mq5 source code ownership 4. Developer must have 500+ completed jobs, 4.9+ rating Budget: €1500 EUR Duration: 14 days Start your application with "RULER" to prove you read this
Hello, I’m looking for an experienced developer who can help convert an existing cTrader indicator into a fully functional Quantower indicator . I already have the complete source code for the cTrader indicator (written in C#) , and I would like the same logic, behavior, and visual output to be accurately replicated in Quantower
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000

Información sobre el proyecto

Presupuesto
30+ USD