// Définition des paramètres du code DEFPARAM CumulateOrders = False // Cumul des positions désactivé // Conditions pour ouvrir une position acheteuse Chinkou = Close[26] BBDown = Average[20](close)-2.5*std[20](close) c1 = (Chinkou CROSSES OVER BBDown) IF time >= 090000 and time <=164500 and c1 THEN BUY 1 SHARES AT MARKET ENDIF // Conditions pour fermer une position acheteuse c2 = (Chinkou CROSSES UNDER BBDown) IF c2 THEN SELL AT MARKET ENDIF