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

İş tamamlandı

Tamamlanma süresi: 7 saat
Müşteri tarafından geri bildirim
Job completed quickly and with quality, thanks Khuman. I will definitely contact you again with other jobs.
Geliştirici tarafından geri bildirim
Thanks! Another great and understanding customer

Şartname

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


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(115)
Projeler
129
18%
Arabuluculuk
11
27% / 55%
Süresi dolmuş
4
3%
Serbest
2
Geliştirici 2
Derecelendirme
(19)
Projeler
35
26%
Arabuluculuk
10
30% / 70%
Süresi dolmuş
5
14%
Serbest
3
Geliştirici 3
Derecelendirme
(443)
Projeler
570
37%
Arabuluculuk
106
39% / 33%
Süresi dolmuş
17
3%
Serbest
4
Geliştirici 4
Derecelendirme
(70)
Projeler
91
25%
Arabuluculuk
26
19% / 54%
Süresi dolmuş
25
27%
Serbest
5
Geliştirici 5
Derecelendirme
(111)
Projeler
139
43%
Arabuluculuk
9
33% / 44%
Süresi dolmuş
6
4%
Serbest
Benzer siparişler
I am selling FTMO prop-firm ready EA which passes the 2 step challenges (PROOFS ATTACHED). Screenshots, qr codes, video calls, screen sharing available to prove performance. I have personally passed 70k challenge, and 2 times 10k challenge. The EA is based on two principles: Range Breakout and Trend Following. Both strategies run on 4 instrument each, so total is 8 instruments. Proofs
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit
Need an MT5 EA coded in MQL5. Strategy uses internally calculated MT5 Heikin Ashi candles, EMA 9 and EMA 21 on M1 USDJPY. Fixed lot size 12.20. One trade at a time. 40-point stop loss. Exit after 3 consecutive opposite Heikin Ashi candles. I have a detailed strategy document and video examples of valid and invalid entries. Videos linked show MT5 IOS but custom EA code will be used for windows MT5
Just a straight forward ea that reacts from candle close and open area using martingale option knowing what the broker charges per pair because will use it in a Z spread account so the ea will know what they charge or I can manually set charges so before ea close in profit it makes sure it covers the charges and added little profit before closing
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'
Use the H4 timeframe to determine the main trend direction. Identify valid order blocks on the H1 timeframe. Identify liquidity zones and liquidity sweeps. Wait for M15 confirmation before opening a trade. Only take buy trades in bullish market conditions and sell trades in bearish market conditions. Risk a fixed percentage of account balance per trade (user adjustable). Automatically calculate lot size based on
I need an MT5 Indicator that DOES NOT open trades automatically. Its purpose is to analyze the market and send me a notification whenever all the conditions of my strategy are met. INDICATORS USED - RSI (14) - SMA (100) - Volume - H4 Support Detection CONDITIONS 1. RSI on M15 - RSI (14) must be equal to or below 30. 2. RSI on H1 - RSI (14) must be equal to or below 35. 3. SMA 100 - Use a Simple Moving Average (SMA)
MC Trader's 30+ USD
If Buy: it must Buy when a conformation is done Bye the candle that would be a bullish engolfing candle or after liqudity swip or when sellers has stepped down the market and the market regains energy and trand upwards, it's stop loss must be below the Buy position and it's take profit must be at the top of all candles
i am looking to upgrade my trading telegram bot and add live data to it and also make it linked to a dashboard where i can trace the users who register in my bot and pay and make them go in my private channel and manages the expiry date of each user
Title: MT4 One Click Trader EA (Custom Development) I am looking for an experienced MQL4 developer to build a custom One Click Trader Expert Advisor for MetaTrader 4. The objective is a fast, reliable, execution-focused trading panel with minimal visual clutter and robust operation on both standard and offline charts. Requirements Trade Panel The EA must provide a simple trading panel containing: Buy button Sell

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 1 to 2 gün