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

Job finished

Execution time 9 hours
Feedback from customer
Dasha is professional programmer, she knew exactly what I wanted. I will contact her again. Thanks Dasha.

Specification

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;
}


Responded

1
Developer 1
Rating
(161)
Projects
232
32%
Arbitration
27
26% / 26%
Overdue
25
11%
Loaded
2
Developer 2
Rating
(79)
Projects
111
37%
Arbitration
0
Overdue
4
4%
Free
3
Developer 3
Rating
(115)
Projects
129
18%
Arbitration
11
27% / 55%
Overdue
4
3%
Free
4
Developer 4
Rating
(57)
Projects
72
22%
Arbitration
13
46% / 15%
Overdue
5
7%
Free
5
Developer 5
Rating
(161)
Projects
256
61%
Arbitration
4
50% / 25%
Overdue
9
4%
Free
6
Developer 6
Rating
(45)
Projects
58
33%
Arbitration
12
42% / 42%
Overdue
7
12%
Free
7
Developer 7
Rating
(385)
Projects
409
30%
Arbitration
64
20% / 69%
Overdue
52
13%
Loaded
8
Developer 8
Rating
(280)
Projects
505
36%
Arbitration
63
33% / 35%
Overdue
182
36%
Working
9
Developer 9
Rating
(24)
Projects
28
32%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 1 code
10
Developer 10
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
Similar orders
My EA is an order management EA that places pending orders and repeats them when they close at TP/SL but 1- the repeat functions has been acting up and not performing well, i need that fixed. 2- the Close all open positions when the floating P/L is reached is also not functioning. 3- I want to add the option to Hide Take Profit and Stop loss. 4- I need to change the name of the EA as well
Looking for a reliable trading algo that actually performs across multiple assets and market conditions? I’ve developed an EA that delivers consistent results, with five years of backtesting (2020–2024) across top assets: ✅ Backtest Performance Highlights: ✅ 65.86% average win rate ✅ Tested on EURUSD, GBPUSD, XAUUSD, BTCUSD, and US30 ✅ Same capital used each year to reflect realistic annual performance ✅ Entry/exit
Engulfing based strategy (EA). -Definition of engulfing candle the candle must be determined based on a specific point Determining the prices of other candles before the engulfing candle -Opening conditions It is defined by the engulfing candle, therefore it is dynamic. -Definition of TP There are two possible scenarios for the Take Profit (TP), both defined by the engulfing candle: Scenario 1: Exit based on RSI
We are launching an exciting competition to find the best MQL5 developers who can present a highly profitable Expert Advisor (EA) for MetaTrader 5. The goal is an automated trading system that delivers high-performance results with consistent profitability. Every participant who submits a backtest with a description will automatically enter a draw for a $1,000 USDT prize. The top developer will have the opportunity
Please introduce yourself when applying . Please note the expert is already profitable . Professional approach to this application (will be of high regards). Timing The Trade Entry with The Correct Threshold Input Value for live chart is one of the Primary Objective of this project , When The Trades are being placed 90 % of the time it reaches the take profit level of 10 pips (avg) . To Take from this project : ATR
Please introduce yourself when applying . Professional approach to this application (will be of high regards). Timing The Trade Entry with The Correct Threshold Input Value for live chart is one of the Primary Objective of this project , When The Trades are being placed 90 % of the time it reaches the take profit level of 10 pips (avg) . To Take from this project : ATR Threshold Levels are used for trend confirmation
Hello Developers! I’ve found a reliable Forex signal provider that sends signals in a structured format via Telegram . I want to automate this workflow so that every new signal is automatically copied and executed in MetaTrader 5 (MT5) . 🔁 What I Need Every time a new signal appears in the Telegram channel, the bot should: ✅ Read the signal ✅ Parse key trade details ✅ Instantly execute the trade in MT5 📥 Example
Please introduce yourself when applying . Professional approach to this application ( will be of high regards ). Timing The Trade Entry with The Correct Threshold Input Value for live chart is one of the Primary Objective of this project , When The Trades are being placed 90 % of the time it reaches the take profit level of 10 pips (avg) . To Take from this project : - ATR Threshold Levels are used for trend
## MT5 Expert Advisor – Multi-Timeframe Order Block + ChoCH + Premium/Discount Zone Strategy ### 💼 Job Type: Custom MT5 Expert Advisor (Trading Robot) ### 💰 Budget: $50 - $100 ### ⏱ Deadline: 5-7 Days ### 📈 Platform: MetaTrader 5 (MT5) --- ### 🔧 Strategy Summary I need a developer to build a fully automated EA for MT5 that trades based on SMC logic across multiple timeframes using Order Blocks (OB), Change of
I need a low-risk, high-consistency Expert Advisor (EA) that is capable of passing prop firm challenges like FTMO, MyForexFunds, TFF, etc., and also suitable for long-term use on funded accounts. The EA should be designed to make 1.5–3% profit daily with strong risk management to remain within all prop firm rules. 🎯 OBJECTIVES: - Pass a challenge in 5–10 trading days - Strict risk control and low drawdown -

Project information

Budget
30+ USD
VAT (23%): 6.9 USD
Total: 36.9 USD
For the developer
27 USD