Timeframe(Daily,UpdateOnClose)
Sma100 = average[100,0](close)
Timeframe(default)
l1 = close > Sma100
l2 = (Dopen(0) >= Dlow(1)) AND (Dopen(0) <= Dhigh(1))
l3 = Dopen(0) < Dclose(1)
IF (Time = 100000) OR ((Time > 100000) AND (Time[1] < 100000)) then
BUY 1 Contract AT Market
SET Stop pLoss 300
SET Target pProfit 300
ENDIF
IF (Time = 170000) OR ((Time > 170000) AND (Time[1] < 170000)) AND LongOnMarket then
SELL at Market
ENDIF
//graphonprice Dopen(0) coloured(0,0,255,85)
//graphonprice Dopen(1) coloured(0,0,255,255)
//graphonprice Dhigh(1) coloured(0,255,0,200)
//graphonprice Dlow(1) coloured(255,0,0,255)
//graphonprice Dclose(1) coloured(0,0,255,80)
//graphonprice Sma100