// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated
DEFPARAM FLATBEFORE = 080000
DEFPARAM FLATAFTER = 220000
// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated
// Conditions to enter long positions
indicator1 = ExponentialAverage[9](MACDline[12,26,9](close))
c1 = (indicator1 < -4.5)
indicator2 = BollingerDown[20](close)
c2 = (close <= indicator2)
IF c1 AND c2 THEN
BUY 1 CONTRACT AT MARKET
ENDIF
myATRLL = 13* averagetruerange[1](close)
myATRPL = 34* averagetruerange[32](close)
SET stop loss myATRLL
SET target profit myATRPL