15分钟图表里,
if time=090100 then
今开盘>昨收盘
buy
其余时间 判断
上周期是阳线 且 持仓量<总金额30%,开多
阴线 平多
if time=145500 then
全卖
管理,这些怎么写啊,谢谢!
今开:valuewhen(todaybar,open);
昨收:callstock(stklabel,vtclose,6,-1);
上周期阳线ref(isup,1)
上周期阴线ref(isdown,1)
持仓量<总金额30%,
这个要判断什么数据?
持仓量<总金额30%,
这个要判断什么数据?
就是判断当前持仓量*当前市价>帐户金额30% 阳线也不买
if time=090100 then
今开盘>昨收盘
buy
这句怎么理解?
if time=090100 then
今开盘>昨收盘
buy
这句怎么理解?
我的想法就是,早上一开盘,如果开盘价大于昨天收盘价,那么就等于是阳线,我要买入1手
可能判断的方式不对.
if time=090100 then
今开盘>昨收盘
buy
其余时间 判断
上周期是阳线 且 持仓量<总金额30%,开多
阴线 平多
if time=145500 then
全卖
jk:=valuewhen(todaybar=1,open);
zs:=callstock(stklabel,vtclose,6,-1);
if time <=091000 and jk>zs then begin
buy(holding=0,1,marketr);
end
if time>091000 and ref(isup,1) and holding*close<asset*0.3 then buy(1,1,marketr);
if time>091000 and ref(isdown,1) and holding*close<asset*0.3 then sell(1,1,marketr);
if time=closetime(0) then sell(1,0,marketr);