14:40的价格大于今天的开盘价。
以14:40的价格买入开仓,收盘卖出。
应该如何写?
ox:=CALLSTOCK(STKLABEL,VTOPEN,6,0);//今开
if c>ox and TIME=144000 then bb:=1;
if c<ox and TIME=144000 then bb:=-1;
这样可以?
if TIME =144000 then
begin
buy(1,2,market)//市价买入二手
end
if time = 145900 then
begin
sell(1,0,market)
end
CY:=BARSLAST(DATE<>REF(DATE,1))+1;
ox:=CALLSTOCK(STKLABEL,VTOPEN,6,0);//今开
if c>ox and TIME=144000 AND CY>=205 then bb:=1;
if c<ox and TIME=144000 AND CY>=205 then bb:=-1;