是不是指标坐标的问题哦。呵呵
常用的日内翻转
hh1:=ref(hhv(h,h1),1);
ll1:=ref(llv(l,l1),1);
Long:=h>hh1 and time>093000 and time<145000;
if Long then
begin
sellshort(holding<0,holding,limitr,hh1);
buy(holding=0,1,limitr,hh1);
end
partline(holding>0,ll1,colorred);
Short:=l<ll1 and time>093000 and time<145000;
if Short then
begin
sell(holding>0,0,limitr,ll1);
buyshort(holding=0,1,limitr,ll1);
end
partline(holding<0,hh1,colorgreen);
sell(time>145500 and holding>0,0,thisclose);
sellshort(time>14500 and holding<0,0,thisclose);
资产:ASSET,LTNETHICKO;
可用现金:CASH(0),LINETHICKO;
持仓:HOLDING,LTNETHICKO;
是 LINETHICK0,不是LINETHICKO