EMAShort = ExponentialAverage[n](close)
EMALong = ExponentialAverage[m](close)
BuyCondition = (EMAShort CROSSES OVER EMALong)
SellCondition = (EMAShort CROSSES UNDER EMALong)
IF (TIME > 133000 AND TIME < 233000) OR Volume > 1000 then
IF BuyCondition THEN
DRAWTEXT( "▲", barindex, lowest[1](low), Dialog, bold, 20) COLOURED (0, 0, 255, 255)
DRAWTEXT( "▲", barindex, lowest[1](low) - 10, Dialog, bold, 20) COLOURED (0, 0, 255, 150)
DRAWTEXT( "B", barindex, low - range, Dialog, bold, 15) COLOURED (0, 0, 255, 255)
ENDIF
IF SellCondition THEN
DRAWTEXT( "▼", barindex, highest[1](high) + 30, Dialog, bold, 20) COLOURED (255, 0, 0, 150)
DRAWTEXT( "▼", barindex, highest[1](high) + 20, Dialog, bold, 20) COLOURED (255, 0, 0, 255)
DRAWTEXT("S", barindex, highest[10](high) + range, Dialog, bold, 15) COLOURED (255, 0, 0, 255)
ENDIF
RETURN EMAShort COLOURED (0, 0, 255,150) AS "EMA Short", EMALong COLOURED (255, 0, 0, 150) AS "EMA Long"