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
Classificação
Projetos
253
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
2
Classificação
Projetos
3
0%
Arbitragem
1
0%
/
100%
Expirado
0
Livre
Informações sobre o projeto
Orçamento
30+ USD