tcd:time>=010500 and time<=185500;
emx:ema(c,min(10,TODAYBAR));
kd:l>emx and h>emx;
kk:l<emx and h<emx;
if kd then
begin
sellshort(1,holding,market);
buy(holding=0 and tcd,1,market);
END
if kk then
begin
sell(1,holding,market);
buyshort(holding=0 and tcd,1,market);
END