

Code : #
if STE[10]<=y then
f=1
else
f=0
endif
Set target pprofit A-f
Code : #
nATR = 14 // Période de l'ATR adaptée à mon unité de temps : le 10s
facteurTP = C // Multiplicateur du TP
// Calcul de la volatilité
ATRValue = AverageTrueRange[nATR]
// Définition du Take Profit basé sur l'ATR
TakeProfit = ATRValue * facteurTP
Set target pprofit X + TakeProfit
Code : #
DEFPARAM CumulateOrders = False // Cumul des positions désactivé, A ne pas oublier !
IF DayOfWeek[0]=6 or DayOfWeek[0]=7 or month=1 and (day=1 or day=9 or day=20) or month=2 and day=17 or month=4 and day=18 or month=5 and day=26 or month=6 and day=19 or month=7 and day=4 or month=9 and day=1 or month=11 and day=27 or month=12 and day=25 then
JourTrading = 0
ELSE
JourTrading = 1
endif
Code : #
tc = ((CurrentDayOfWeek < 5) and (Time > 080000 and Time < 220000 ) or (CurrentDayOfWeek = 5) and (Time < 180000))