DEFPARAM CumulateOrders = False
DEFPARAM FLATBEFORE = 080000
DEFPARAM FLATAFTER = 025500
n = 10
//long
indicator1 = ExponentialAverage[n](high)
indicator2 = ExponentialAverage[n](high)
c1 = (indicator1[4] >= indicator2[3])
indicator3 = ExponentialAverage[n](high)
indicator4 = ExponentialAverage[n](high)
c2 = (indicator3[3] >= indicator4[2])
indicator5 = ExponentialAverage[n](high)
indicator6 = ExponentialAverage[n](high)
c3 = (indicator5[2] <= indicator6[1])
indicator7 = ExponentialAverage[n](high)
indicator8 = ExponentialAverage[n](high)
c4 = (indicator7[1] <= indicator8)
IF c1 and c2 AND c3 AND c4 THEN
BUY 1 CONTRACT AT MARKET
ENDIF
//short
indicator9 = ExponentialAverage[n](high)
indicator10 = ExponentialAverage[n](high)
c5 = (indicator9[4] <= indicator10[3])
indicator11 = ExponentialAverage[n](high)
indicator12 = ExponentialAverage[n](high)
c6 = (indicator11[3] <= indicator12[2])
indicator13 = ExponentialAverage[n](high)
indicator14 = ExponentialAverage[n](high)
c7 = (indicator13[2] >= indicator14[1])
indicator15 = ExponentialAverage[n](high)
indicator16 = ExponentialAverage[n](high)
c8 = (indicator15[1] >= indicator16)
IF c5 and c6 AND c7 AND c8 then
SELLSHORT 1 CONTRACT AT MARKET
ENDIF
SET STOP pLOSS 28
SET TARGET pPROFIT 88