解决一部分,分时均价2不懂.
ZT:=BARSLAST(C/REF(C,1)-1>=0.1-0.01/REF(C,1) AND C=H);
STICKLINE(C/REF(C,1)-1>=0.1-0.01/REF(C,1) AND C=H,O,C,1,0),COLORYELLOW;
A:=EVERY(C>=REF(L,ZT),ZT);
B:=IF(REF(A,ZT+1) AND REF(ZT,ZT+1)<10,REF(ZT,ZT+1)+ZT+1,ZT);
STICKLINE(ZT<=10 AND A,REF(C,ZT),REF(C,ZT)*0.999,0.1,0),COLORRED;
STICKLINE(ZT<=10 AND A,REF(L,ZT),REF(L,ZT),0.1,0),COLORGREEN;
STICKLINE(ZT<=10 AND A,REF((C+L)/2,ZT),REF((C+L)/2,ZT),0.1,0),COLORLIGREEN;
DRAWTEXT(ZT=0,L*0.98,'阳'),COLORYELLOW;
DRAWTEXT(ZT<=10 AND A,REF(L,ZT)*0.98,VAR2STR(ZT,0)),COLORGREEN;
DRAWTEXT(ZT>=6 AND ZT<=8 AND A,REF(L,ZT)*0.98,VAR2STR(ZT,0)),COLORRED;
DRAWTEXT(B>0 AND B<=10 AND B!=A,REF(L,B)*0.98,VAR2STR(B,0)),COLORGREEN;
DRAWTEXT(B>=6 AND B<=8 AND B!=A,REF(L,B)*0.98,VAR2STR(B,0)),COLORRED; |