GigiParticipant
Senior
Bonsoir,
je voudrai sélectionner les jours de trading après vous avoir demander de sélectionner les mois pour un algorithme.
Ci dessous le début du code :
TradeTime = (OpenMonth >= 1 and OpenMonth <= 6) or (OpenMonth >= 10 and OpenMonth <= 12)
IF TRADETIME THEN
CtimeVente1 = time >= 091500 and time < 093000
endif
// SHORTS
c1v = MACD[12,26,9](close) crosses under 0
c2v = MACDline[12,26,9](close) < 0
c3v = close < ExponentialAverage[2400](close)
IF c1v AND c2v and c3v and CtimeVente1 and not onmarket THEN
Sellshort n shares at market
Par avance, merci.
Autoriser ou non certains jours de la semaine ?
GigiParticipant
Senior
Bonjour Nicolas, j’ai trouvé la solution.