MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA250:=MA(C,250);
低ZK:=REF(C,1)
HSLZ:=V*10000/FINANCE(46);
穿多线:C>REF(C,1)*1.06 AND H
一阳穿5线过30:DRAWTEXT(crOSS(C,MA30) AND 穿多线,0.8,'一阳穿30'),COLORFF00FF;
一阳穿5线过60:DRAWTEXT(CROSS(C,MA60) AND 穿多线,0.5,'一阳穿60'),COLORLIMAGENTA;
LBQ:=BArslAST(一阳穿5线过30 OR 一阳穿5线过60);
止损价:REF(O-(O-C)*2/3,LBQ),NODRAW;
近离:=BETWEEN(L,止损价-0.1,止损价+0.1) OR BETWEEN(C,止损价-0.1,止损价+0.1) OR BETWEEN(O,止损价-0.1,止损价+0.1);
建仓:LBQ>3 AND FILTER(近离,5),COLORYELLOW;
DAY3:=REF(C