Library/class for calculating Required Margin.

MQL5 资料库 外汇 统计和数学

工作已完成

执行时间29 天
客户反馈
great developer, has extensive programming knowledge, strongly committed, effective in solving encountered problems in the project.
员工反馈
Positive experience with a great client, developer himself. Calm and attentive to details, appreciative of and willing to accommodate unexpected job complexity.

指定

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
等级
(249)
项目
311
28%
仲裁
33
27% / 64%
逾期
10
3%
空闲
2
开发者 2
等级
(194)
项目
241
34%
仲裁
10
50% / 50%
逾期
8
3%
工作中
发布者: 1 文章, 8 代码
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 代码
7
开发者 7
等级
(31)
项目
41
41%
仲裁
2
100% / 0%
逾期
4
10%
空闲
8
开发者 8
等级
(1)
项目
2
0%
仲裁
2
50% / 50%
逾期
0
空闲
相似订单
Features Manual/other bot entry Progressive fix incremental lot size X Numbers of position Step distance SL from first position (close the entire basket) 4 TP (close by %) BE + X after profit X from the highest profit position Trailing SL X These is the minimum requirement
SavannaFX Pro 100+ USD
//+------------------------------------------------------------------+ //| SavannaFX Pro | //| Created for Junior | //+------------------------------------------------------------------+ #property strict input int FastMA = 20; input int SlowMA = 50; input int RSIPeriod = 14; input double LotSize = 0.1; input int StopLoss = 300; input int TakeProfit = 600; int
Recent EA 30+ USD
PROP-FIRM FOREX EA (SAFE MODE) 1. EA OBJECTIVE Develop a low-drawdown, high-discipline Forex EA designed to: Pass prop-firm challenges Respect strict risk rules Trade consistently, not aggressively 2. TRADING STYLE Strategy type: Trend continuation + pullback No scalping noise No martingale No grid No hedge abuse 3. TIMEFRAME & SESSIONS Primary TF: M15 Confirmation TF: H1 Trading sessions: London Open → London Close
Specification Hi Free lancers, I need an EA which relates to Sure Fire Hedging EA base on Below parameters needed. Overview how it works: This EA will be able to open a trade with either Buy or Sell selection (manual- to be manually switch buy or sell selection ), another selection for automatic open trading can choose only buy. Once the EA already open trade (example -buy position) with starting lot size 0.01
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
Busco programador profesional con experiencia demostrable en MQL5 para crear un Expert Advisor en MetaTrader 5 basado en Price Action , con lógica jerárquica, reglas objetivas y gestión de zonas dinámicas. La estrategia esta explicada en un documento Word de 30 páginas (con imágenes) explicado en español. Características del EA: Operaciones Buy, Sell, Buy Limit y Sell Limit (máx. 2 operaciones pendientes simultáneas
Multi-Slave Inverse Hedging EA with Martingale Grid — MT5 Category: Experts Description: I am looking for an experienced MQL5 developer to build a professional-grade Expert Advisor system called Hedging EA Trader . This is a well-documented project — I have a full 30+ page Software Requirements Specification (SRS) ready to share with the selected developer. System Overview: The EA uses a Master/Slave architecture: 1
I want a modification on my ea . A spread filter or slipage filter such that when the market price is less than 50 point away from the pend order , then ea check the spread if less than the set filter spread. If spread is more than the set spread, the ea will delete the pend order . Secondly , if the broker price is moved or sliped the pending order from the original price it was set by the tolerable slipage distance
Hi, I’m currently looking to purchase a profitable Expert Advisor (EA) for XAUUSD on MT4 and different Symbols . If you have an EA that has consistently been profitable, I’d be interested in purchasing the source code. I would like to backtest the strategy and evaluate it before making any purchases. What I’m ideally looking for: Designed specifically for XAUUSD (MT4) Consistent profitability with solid risk
1. Objective Create an MT5 automation script (or set of scripts) that fully automates my strategy optimization workflow, including: • Batch optimization runs • Automatic filtering of results • Automatic forward testing • Exporting and organizing results into structured files/folders The goal is to reduce manual work and allow one‑click execution of the entire pipeline. 2. Platform & Environment • MetaTrader 5 •

项目信息

预算
30+ USD
截止日期
 3 天