TIPTEXT(FILTER(cross(c,LOWER1) and z1>ref(z1,1),5),l*0.999,'▲'),colorwhite;
TIPTEXT(FILTER(cross(UPPER1,c) and z1<ref(z1,1),5),h*1.001,'▼'),colorwhite;
TIPTEXT(FILTER(cross(c,LOWER1) and z2>ref(z2,1),5),l*0.9985,'▲'),coloryellow;
TIPTEXT(FILTER(cross(UPPER1,c) and z2<ref(z2,1),5),h*1.0015,'▼'),coloryellow;
如何将向上箭头改成平多买入,向下箭头改成平多买空条件呢?
{TIPTEXT(FILTER(cross(c,LOWER1) and z1>ref(z1,1),5),l*0.999,'▲'),colorwhite;
TIPTEXT(FILTER(cross(UPPER1,c) and z1<ref(z1,1),5),h*1.001,'▼'),colorwhite;
TIPTEXT(FILTER(cross(c,LOWER1) and z2>ref(z2,1),5),l*0.9985,'▲'),coloryellow;
TIPTEXT(FILTER(cross(UPPER1,c) and z2<ref(z2,1),5),h*1.0015,'▼'),coloryellow;
向上箭头是平空买多,向下箭头是平多买空 }
if cross(c.lower1) then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if cross(upper1,c) then begin
sell(1,0,market);
buyshort(holding=01,market);
end