Function for calculating static TP market price for all open orders by entering profit percentage

Работа завершена

Время выполнения 7 часов
Отзыв от заказчика
Job completed quickly and with quality, thanks Khuman. I will definitely contact you again with other jobs.
Отзыв от исполнителя
Thanks! Another great and understanding customer

Техническое задание

Hi all,

I need somebody to help me with writing a function for MT4 which will calculate TakeProfit market price for all open orders entering profit percentage, when profit of winning orders exceeds loss of losing orders.

For example, if I set 10% as input value, profit of open winning orders have to be 10% more than loss of open losing  orders.

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 percentage is 10%, I need to calculate TakeProfit market price when profit from open  winning orders exceeds loss of open losing orders for 10%.

function input parameter will be percentage, for example: 5 or 10 or 15.5 (%)

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

function need to iterate over all open orders and calculate TP market price.

Order swap and order commission must be taken into account in the calculation.

function will be used for open 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 calcTPFromPercentage(double percentage)
{
  return TPMarketPrice;
}


Откликнулись

1
Разработчик 1
Оценка
(115)
Проекты
129
18%
Арбитраж
11
27% / 55%
Просрочено
4
3%
Свободен
2
Разработчик 2
Оценка
(19)
Проекты
35
26%
Арбитраж
10
30% / 70%
Просрочено
5
14%
Свободен
3
Разработчик 3
Оценка
(442)
Проекты
570
37%
Арбитраж
106
39% / 33%
Просрочено
17
3%
Свободен
4
Разработчик 4
Оценка
(70)
Проекты
91
25%
Арбитраж
26
19% / 54%
Просрочено
25
27%
Свободен
5
Разработчик 5
Оценка
(111)
Проекты
139
43%
Арбитраж
9
33% / 44%
Просрочено
6
4%
Свободен
Похожие заказы
I trade manually on M1 chart (XAUUSD) with fractals and alligator. When there is a price break on fractal (or some fractals that form a price level) or a price level created by multiple candles spikes, I enter 2 trades (0.02 lots), and 2 trades (0.04 lots). If I go in profit (5/10€), I close in profit. But if I go in loss with DD, at this point starts the management: every price level (important level) created by
Phahla fx boto 30+ USD
99.99% signal accuracy 10-15 trades distribution all currency trade and meta AI assistance on loss[advice] stop and start robot cyber security firewall protection activation code: 20060605TLP20 Please create a trading bot with any logo with the name elevation
i need ea that execute trade based on CHOCH( market structure change ) and BOS(break of structure) 1. **Indicator Integration**: The EA should be developed utilizing the ''market structure choch/Bos. 2.. **Sell Signals**: The EA must execute a sell order upon the appearance of any of the following bearish signals red(bearish) choch or BoS 3,. **BUY SIGNAL**: The EA must execute a sell order upon the appearance of any
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
RED DEVIL AI 30+ USD
50 EMA > 200 EMA → Uptrend confirmed Price pulls back to touch or cross below 50 EMA RSI > 50 ATR(14) > 20-period ATR average (volatility expanding) Current candle closes bullish ➡ Enter BUY at candle close50 EMA < 200 EMA → Downtrend Price pulls back to touch or cross above 50 EMA RSI < 50 ATR filter confirms volatility Current candle closes bearish ➡ Enter SELL at candle closeATR(14) Take Profit: 2.5 × ATR(14) This
My EA (Expert Advisor) is a powerhouse! 💪 With rock-solid 100% risk management, it lets you trade stress-free while maximizing gains. Free to manage manually, it's designed to boost profitability. 🚀
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction. 2. Trend is determined based on the Exponential Moving Average with the specified period
Project Title Freedom ORB – Fully Automated MT5 Expert Advisor (ORB + Structure + Liquidity) (MT5) Project Description I require a fully automated MT5 Expert Advisor based on a structured Opening Range Breakout (ORB) model with market structure and liquidity confirmation. The EA must: Detect ORB session range Wait for breakout (close-based) Wait for retrace Confirm M1 structure + displacement Execute trade
I’m looking for a trading bot where I can use a balance of £1000 to make regular entries making £20-£40 per entry. obviously, I want to have minimum loss with a lot more profit being made

Информация о проекте

Бюджет
30+ USD
Сроки выполнения
от 1 до 2 дн.