Library/class for calculating Required Margin.

仕事が完了した

実行時間29 日
開発者からのフィードバック
Positive experience with a great client, developer himself. Calm and attentive to details, appreciative of and willing to accommodate unexpected job complexity.
依頼者からのフィードバック
great developer, has extensive programming knowledge, strongly committed, effective in solving encountered problems in the project.

指定

I need to write a library to calculate Required Margin in MT4 and MT5 according to the following requirements:

Create a ReqMargin class and add a public function in it

double ReqMarginCalc(string symbol, double lot)

which calculates and returns the required margin for the given symbol and lot.
The function must work for both MT4 and MT5.
It is best to have one common mqh file with the class and divide the code inside with directives:

#ifdef __MQL5__
// MQL5 code
#else
// MQL4 code
#endif

The function must correctly calculate Required Margin for all types of instruments available in metatrader, not only currency pairs but indices, commodities, cryptos, etc.

All source code must be provided.

応答済み

1
開発者 1
評価
(296)
プロジェクト
368
30%
仲裁
37
27% / 65%
期限切れ
10
3%
仕事中
パブリッシュした人: 10 codes
2
開発者 2
評価
(195)
プロジェクト
242
34%
仲裁
11
45% / 45%
期限切れ
8
3%
暇
パブリッシュした人: 1 article, 8 codes
3
開発者 3
評価
(19)
プロジェクト
27
26%
仲裁
2
0% / 100%
期限切れ
2
7%
暇
4
開発者 4
評価
(16)
プロジェクト
35
23%
仲裁
4
0% / 50%
期限切れ
2
6%
仕事中
5
開発者 5
評価
(45)
プロジェクト
46
24%
仲裁
34
9% / 85%
期限切れ
10
22%
暇
6
開発者 6
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 9 codes
7
開発者 7
評価
(32)
プロジェクト
42
43%
仲裁
2
100% / 0%
期限切れ
4
10%
暇
8
開発者 8
評価
(1)
プロジェクト
2
0%
仲裁
2
50% / 50%
期限切れ
0
暇
類似した注文
I am looking for the original developer from Egypt who sent me the MJ v3.01 Gold EA (mj.ex5) on December 2, 2026, with a 10-day demo trial. You were Developer #28 in my previous Freelance job and offered the EA for $200. Unfortunately, I lost access to our previous conversation and would like to reconnect with you. I am still interested in your EA and would like to complete the testing, discuss the settings, and
EA 30+ USD
Build an MT5 Expert Advisor using MQL5. I want an automated trading bot for Exness MT5. Markets: XAUUSD (Gold) BTCUSD (Bitcoin), subject to the broker's actual symbol name. Trading strategy: H1 timeframe for trend direction. M15 timeframe for trade entries. EMA 20 and EMA 50 for trend identification. Only buy when the confirmed trend is bullish. Only sell when the confirmed trend is bearish. Use candle-close
Gulu 30+ USD
create money on forex ensuring nothing but profit basically also crypto an d ensure you use every means possible to ensure in turn a profit is made that what i want i want perfection
If you already have a working gold order-flow EA that matches the logic described here, I'm open to buying or licensing it instead of a custom build. Please provide: A demo version that I can run in the MT5 Strategy Tester (for example, a time-limited or demo-account-only build) A clear explanation of the trading logic: what triggers an entry, how the stop loss and take profit are set, and which order-flow or
1. Overview: Build a lightweight MT5 alert utility (no trade execution, no heavy UI needed) designed to run 24/5 on a VPS. It monitors a customizable list of broker symbols on M1 and M5 and sends an MT5 Mobile Push Notification ( SendNotification ) telling me which pair to check when a strong Bollinger Band flare occurs. Symbol Input: Comma-separated list of exact broker symbols including # suffixes (e.g
I'm looking to purchase an already-developed, profitable trading bot specifically for Deriv. I'm not interested in building a new one from scratch. The bot must have a test version that I can try out, as well as verifiable historical live trading results demonstrating its profitability. I'm only interested in proven bots with a track record of real-market performance
I am looking to purchase an existing, fully developed and operational XAUUSD scalping Expert Advisor (EA) for MetaTrader 5. IMPORTANT: I am NOT looking for new development, custom programming, or an experimental strategy. I am only interested in an existing, ready-made and proven trading system. Requirements: Fully automated XAUUSD scalping EA for MT5. Short-duration trades with an active trading frequency. Hard Stop
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 (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is
I want experience developer , developing on new ea , but my hand in ex5 file only .I need modify my ea file iwant to fixing on daily profit maximum percentage and maximum loss production
Looking to Purchase a Proven and Profitable XAUUSD Scalping EA for MT4 I am looking to purchase an existing, fully automated Gold (XAUUSD) scalping EA specifically designed for MetaTrader 4 (MT4) , with proven and verifiable real-money trading performance. Mandatory Requirements: Exclusively designed for XAUUSD (Gold). Fully automated trading on MetaTrader 4. Genuine scalping strategy with relatively short trade

プロジェクト情報

予算
30+ USD
締め切り
最高 3 日