Translate code PRT in MQL4

MQL4 Outros Conversão

Termos de Referência

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


Respondido

1
Desenvolvedor 1
Classificação
(238)
Projetos
244
31%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
2
Desenvolvedor 2
Classificação
(3)
Projetos
3
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
Pedidos semelhantes
I have multiple python scripts to calculate certain price conducts in multiple forex pairs, in 2 different time frames . The python programs need to be ran every 5 minutes 24/7 in order for them to display the calculations of anomalies, I need to automate this process of running the programs and in addition I need to receive notifications to my phone everytime there is an anomaly. Each program contains different

Informações sobre o projeto

Orçamento
30+ USD
IVA (20%): 6 USD
Total: 36 USD
Desenvolvedor
27 USD