3:00是指下午3点?
//确定当3点时的高低价,如果3点不是下午3点而是凌晨3点的话,把150000改为030000
VARIABLE:a=10000000,b=0;
if time=150000 and c>O then a:=h;
if time=150000 and c<O then b:=l;
//b1:a;
//a1:b;
//买卖单
if c>a then buyshort(holding=0,1,market);
if c<b then buy(holding=0,1,market);
//止损
if OPENPROFIT<-15*mindiff*MULTIPLIER and holding>0 then sell(holding>0,0,market);
if OPENPROFIT<-15*mindiff*MULTIPLIER and holding<0 then sellshort(holding<0,0,market);
//止盈
if OPENPROFIT>15*mindiff*MULTIPLIER and holding>0 then sell(holding>0,0,market);
if OPENPROFIT>15*mindiff*MULTIPLIER and holding<0 then sellshort(holding<0,0,market);
o1:OPENPROFIT,linethick0;
时间是交易所时间,如果是24小时交易的,那么第一根k线将会被调整到当日0点
后面那个是15个点的盈利/亏损