Translate code PRT in MQL4

MQL4 その他 変換

指定

I have a code in prorealtime language and I want to code it in MQL4.

I really want to change "size of minimum position" (0.1 instead of 1)

EXEMPLE of prorealtime code: 

CapitalInit = 10000 // Capital initial (pour le réinvestissement des gains)

REINV = 0 // 0 = sans réinvestir / 1 = réinvestir les gains

NCONTRATS = 10 // nombre par défaut de minicontrats MAXI // l'algorithme diminue la taille de certaines positions // Bien vérifier le drawdown

IF REINV = 0 THEN

n = NCONTRATS

ELSIF REINV = 1 THEN

capital = CapitalInit + strategyprofit

n = (capital / CapitalInit)*NCONTRATS

ENDIF IF n < 1 THEN

n=1 // taille minimale par position

ENDIF n = round(n) // nombre entier


応答済み

1
開発者 1
評価
(255)
プロジェクト
261
30%
仲裁
0
期限切れ
3
1%
パブリッシュした人: 2 codes
2
開発者 2
評価
(3)
プロジェクト
3
0%
仲裁
1
0% / 100%
期限切れ
0
類似した注文
Telegram copier 30+ USD
Hello, I am seeking a Telegram copier bot that reads Telegram signal messages and executes the corresponding trades. If you already have an existing, operational tool of this nature, please share the relevant particulars (supported signal formats, execution/confirmation logic, risk controls, and error/failure handling), together with any verifiable performance evidence. I am in a position to proceed promptly should
I have a working MT5 Expert Advisor. I am NOT looking to change the strategy logic. I only need professional optimization and performance improvement. Requirements: • Parameter optimization • Risk adjustment • Max drawdown reduction • Forward testing report • Optimization for Gold (XAUUSD) Please provide previous optimization reports
RED DEVIL AI 30+ USD
50 EMA > 200 EMA → Uptrend confirmed Price pulls back to touch or cross below 50 EMA RSI > 50 ATR(14) > 20-period ATR average (volatility expanding) Current candle closes bullish ➡ Enter BUY at candle close50 EMA < 200 EMA → Downtrend Price pulls back to touch or cross above 50 EMA RSI < 50 ATR filter confirms volatility Current candle closes bearish ➡ Enter SELL at candle closeATR(14) Take Profit: 2.5 × ATR(14) This
Overview: I need a robust MQL5 Expert Advisor (Trade Manager) designed to manage trades initiated by external signals (TradingView via Webhook). The EA will not look for entries itself but will "take over" any trade opened with a specific Magic Number. Core Functionality: Magic Number Management: Monitor and manage all trades with Magic Number: xxxx . Grid/Martingale Logic: Initial Lot: xxxx (User-definable)
Good day to you, I am looking for someone who can convert the actual LuxAlgo smart money concepts indicator from pine script to mql5 and give me the source code what works the same as original indicator
​ Description: I am looking for a professional MQL4 developer/quant trader with a proven track record in EA optimization. This project involves optimizing a third-party EA that currently has a 2-year live track record. ​ The Task: ​ In-Sample Optimization: Optimize the EA parameters using historical data prior to January 1, 2024. ​ Out-of-Sample (Walk-Forward): Validate the optimized settings against the period of

プロジェクト情報

予算
30+ USD