A:=CURRBARSCOUNT;
A1:=DAY!=REF(DAY,1);
A2:=BARSLAST(A1)+1;
A3:=REF(IF(A2=1,1,A2),A2);
A4:=CONST(REF(HHV(H,A3),A2));
A5:=CONST(REF(LLV(L,A3),A2));
A6:=MA(AMO,A3)/MA(VOL,A3)/100;
A7:=REF(MA((H+O+L+C)/4,A3),A2);
A8:=IF(CAPITAL>0,REF(A6,A2),A7);
昨高:IF(A<=CONST(A3+A2),A4,DRAWNULL);
昨低:IF(A<=CONST(A3+A2),A5,DRAWNULL);
暖气带 冷气带 代码
STICKLINE( MA(CLOSE,62)>MA(CLOSE,130),MA(CLOSE,62),MA(CLOSE,130),8,0),COLOR000044;
STICKLINE( MA(CLOSE,62)<MA(CLOSE,130),MA(CLOSE,62),MA(CLOSE,130),8,0),COLOR004400;
DRAWKLINE(H,O,L,C);