Bonjour à tous
je n'ai jamais cessé de tester l'algo, le problème c'est que en aillant modifié mon compte démo (réinitialisé) les stats passés n'aparaissent plus en détail, cela dit depuis que je le test je suis très étonné, mais c'est gagnant
Tony, j'ai lu que vous aviez modifié le code, moi j'utilise celui ci peux tu me dire si il inclus les modifs que vous avez fait?/-------------------------------------------------------------------------
// Code principal : dax
//-------------------------------------------------------------------------
DEFPARAM CumulateOrders = False // Cumul des positions désactivé
// Conditions pour ouvrir une position acheteuse
cvente = (close <= close[1]-5)
cjour = dayofweek<>5
c2= time=94500
c3= time=210000
// SHORT
IF cvente and cjour and c2 THEN
sellshort 1 CONTRACT AT MARKET
SET STOP pLOSS 60
set target pprofit 90
ENDIF
If shortonmarket and tradeprice - close > 10 and time>190000 then
exitshort at market
endif
If c3 and shortonmarket then
exitshort at market
endif
If not onmarket then
breakevenLevel=0
endif
startBreakevenShort1 = 10
PointsToKeepShort1 = -35
startBreakevenShort2 = 55
PointsToKeepShort2 = 10
IF ShortONMARKET AND tradeprice - close >= startBreakevenShort2 THEN
if breakevenLevel=0 then
breakevenLevel = tradeprice - PointsToKeepShort2
elsif tradeprice - PointsToKeepShort2 < breakevenLevel then
breakevenLevel = tradeprice - PointsToKeepShort2
endif
elsif ShortONMARKET AND tradeprice - close >= startBreakevenShort1 THEN
if breakevenLevel=0 then
breakevenLevel = tradeprice - PointsToKeepShort1
elsif tradeprice - PointsToKeepShort1 < breakevenLevel then
breakevenLevel = tradeprice - PointsToKeepShort1
endif
ENDIF
IF breakevenLevel > 0 THEN
exitshort AT breakevenLevel STOP
ENDIF