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

Lavoro terminato

Tempo di esecuzione 7 ore
Feedback del dipendente
Thanks! Another great and understanding customer
Feedback del cliente
Job completed quickly and with quality, thanks Khuman. I will definitely contact you again with other jobs.

Specifiche

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


Con risposta

1
Sviluppatore 1
Valutazioni
(115)
Progetti
129
18%
Arbitraggio
11
27% / 55%
In ritardo
4
3%
Gratuito
2
Sviluppatore 2
Valutazioni
(19)
Progetti
35
26%
Arbitraggio
10
30% / 70%
In ritardo
5
14%
Gratuito
3
Sviluppatore 3
Valutazioni
(443)
Progetti
570
37%
Arbitraggio
106
39% / 33%
In ritardo
17
3%
Gratuito
4
Sviluppatore 4
Valutazioni
(70)
Progetti
91
25%
Arbitraggio
26
19% / 54%
In ritardo
25
27%
Gratuito
5
Sviluppatore 5
Valutazioni
(111)
Progetti
139
43%
Arbitraggio
9
33% / 44%
In ritardo
6
4%
Gratuito
Ordini simili
I am looking for a quantitative strategy researcher and MQL5 developer to help research, validate and prototype a fast automated XAUUSD trading system for MT5. The target is tick-level trading with positions typically held for seconds, closely spaced entries, and configurable bursts of multiple positions during a qualifying opportunity. IMPORTANT: We do not yet have a validated profitable strategy. I need someone who
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Hello Developer, I trade ONLY synthetics, ONLY Boom and Crash. No Forex, No XAUUSD, No EURUSD. EA Name: KEITY ROYALTY MARKETS: Only Deriv Boom and Crash. Total 20 markets: Boom 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000 and Crash 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000. Scan all 20 from ONE chart. MAIN LOGIC: 1. After a spike, counter goes to 0. EA must count ticks from history. On start, look back last
We’re building our team for an upcoming crypto project and are looking for skilled professionals to help us move development forward. We’re especially interested in developers experienced with React.js and Node.js, with Web3 knowledge being a strong advantage. We plan to launch the MVP by the mid of Dec and complete the project by Christmas. Our budget is $20–$30 per hour, depending on experience and skill level
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 2 giorno(i)