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

İş tamamlandı

Tamamlanma süresi: 9 saat
Müşteri tarafından geri bildirim
Dasha is professional programmer, she knew exactly what I wanted. I will contact her again. Thanks Dasha.

İş Gereklilikleri

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


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(163)
Projeler
236
32%
Arabuluculuk
30
27% / 30%
Süresi dolmuş
26
11%
Serbest
2
Geliştirici 2
Derecelendirme
(79)
Projeler
111
37%
Arabuluculuk
0
Süresi dolmuş
4
4%
Serbest
3
Geliştirici 3
Derecelendirme
(115)
Projeler
129
18%
Arabuluculuk
11
27% / 55%
Süresi dolmuş
4
3%
Serbest
4
Geliştirici 4
Derecelendirme
(57)
Projeler
72
22%
Arabuluculuk
13
46% / 15%
Süresi dolmuş
5
7%
Serbest
5
Geliştirici 5
Derecelendirme
(163)
Projeler
258
61%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
10
4%
Serbest
6
Geliştirici 6
Derecelendirme
(45)
Projeler
58
33%
Arabuluculuk
12
42% / 42%
Süresi dolmuş
7
12%
Serbest
7
Geliştirici 7
Derecelendirme
(390)
Projeler
416
30%
Arabuluculuk
74
19% / 72%
Süresi dolmuş
52
13%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(308)
Projeler
553
35%
Arabuluculuk
79
32% / 42%
Süresi dolmuş
200
36%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(24)
Projeler
28
32%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
10
Geliştirici 10
Derecelendirme
(169)
Projeler
204
30%
Arabuluculuk
25
40% / 44%
Süresi dolmuş
12
6%
Serbest
Benzer siparişler
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
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
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
I’m hiring an experienced MQL5 developer to finish and fix an existing project (NOT building from scratch). I have: An existing MT5 EA (.mq5 + .ex5) that is based on my TradingView logic A TradingView indicator version used for signals/alerts The EA works but has logic/consistency issues and needs improvements + cleanup Goal Make the EA reliable and consistent: Ensure entries/exits match the intended logic Fix
The indicator a bit inverted. But it doesn’t matter to me as long as the winrate make sense for investment. For brief details regarding the indicator. What should have been a sell, i inverted it into buy with sl and tp swapped(only change the name of sl and tp for visualisation , but the code still on right tp and sl) . And in script ive inverted the signal command code. But the trouble is the tp and sl cant be
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries
I would like to create a robot with the smart money concepts, that integrates order block,FVG,supply & demand ,read the market structure,liquidity and also trade with the session and also after a liquidity sweep a market structure is needed to verify the reversal and a retracement to the order block and sometimes fair value Gap
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Trailing Stop Based on Thresholds . Other Necessary Filters already Coded . Live Chart Only . The strategy already coded - needs a fresh new draft . To Start from Signal Trigger
I am looking for a professional MQL5 developer to build a structured MT5 Expert Advisor. This is NOT a martingale or high-risk grid bot. Platform: • MT5 only (MQL5 source code required) Symbols: • XAUUSD • GBPUSD • GBPJPY Timeframe: • M5 Risk Management: • Adjustable risk per trade (default 0.5% equity) • Daily drawdown protection (max 3%, auto-lock trading for the day) • Maximum 2 open trades • Minimum 120 seconds

Proje bilgisi

Bütçe
30+ USD