Hoi Nicolas
Thanks for you anwser.
But do you now how I can close my position every evening ?
This is wat i test.
// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated
//DEFPARAM FLATBEFORE = 090000
//DEFPARAM FLATAFTER = 220000
// Conditions to enter long positions
//indicator1 = Average[50](close)
//c1 = (close > indicator1)
//c2 = (open > close)
//IF c1 and c2 THEN
//BUY 1 CONTRACT AT MARKET
//ENDIF
// Conditions to enter short positions
indicator2 = Average[50](close)
c3 = (close < indicator2)
c4 = (close < open[1])
IF c3 and c4 THEN
SELLSHORT 1 CONTRACT AT MARKET
ENDIF