先建立引用指標(biāo)
名zrcjj QA:REF(AMO,1)/10000; QB:REF(AMO,2)/10000; QC:REF(AMO,3)/10000; QD:REF(AMO,4)/10000; QE:REF(AMO,5)/10000; 再建立主圖指標(biāo) 名:分時指標(biāo) QQ1:="ZRCJJ.QA#DAY"; 昨日成交額:=STRCAT(STRCAT('昨日成交額:',CON2STR(QQ1,2)),'萬'); DRAWTEXT_FIX(1,0,0.96,0,昨日成交額),COLORYELLOW; QQ2:="ZRCJJ.QB#DAY"; 前日成交額:=STRCAT(STRCAT('前日成交額:',CON2STR(QQ2,2)),'萬'); DRAWTEXT_FIX(1,0.13,0.96,0,前日成交額),COLORYELLOW; {分時均價線和分時線} 最新:CLOSE,COLORWHITE; AQA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C)); DRAWTEXT( ISLASTBAR DRAWTEXT( ISLASTBAR 均價:SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK1; IF(均價<=REF(均價,1),均價,DRAWNULL),COLORGREEN,LINETHICK3; IF(均價>=REF(均價,1),均價,DRAWNULL),COLORYELLOW,LINETHICK3; DRAWTEXT(CURRBARSCOUNT=8,均價,'均'),COLORYELLOW,LINETHICK3; DRAWNUMBER(CURRBARSCOUNT=1,均價,均價),COLORYELLOW,LINETHICK3; |
|