Diamant cloner bleu
Voici le code du BACKTEST : // ALGORITHME "DIAMANT BLEU" // EUR/USD M15 DEFPARAM CumulateOrders = false DEFPARAM Preloadbars = 4000 // TAILLE DES POSITIONS REINV = 0 LEVIER = 3 CAPITALinit = 10000 IF REINV = 0 THEN n = levier ELSIF REINV = 1 THEN capital = CAPITALinit + strategyprofit n = (capital / CAPITALinit)*levier IF n < 1 THEN n = 1 ENDIF n = round(n) ENDIF // LONGS ca1 = close > Average