VAR1:=LLV(LOW,10); VAR2:=HHV(HIGH,25); 操盤線: EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4),COLORRED; 絕底:0.3,LINETHICK2,COLOR0000FF; 短底:1,LINETHICK2,COLORBLUE; 短頂:3,COLORGREEN; 絕頂:3.5,LINETHICK2,COLORFF00FF; 分界:2,COLOR00FFFF; DRAWICON(CROSS(絕底,操盤線),0.3,5); DRAWTEXT(CROSS(操盤線,短底),1,'注意'); DRAWTEXT(CROSS(短頂,操盤線),3.1,'注意'); DRAWICON(CROSS(絕頂,操盤線),3.8,6); DRAWTEXT_FIX(1,0,0,0,'市盈率:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.08,0,0,CONST(DYNAINFO(39))),COLORYELLOW; DRAWTEXT_FIX(1,0.16,0,0,'每股收益(元):'),COLOR0080FF; DRAWNUMBER_FIX(1,0.29,0,0,CONST(FINANCE(33))),COLOR0080FF; DRAWTEXT_FIX(1,0.36,0,0,'蕕利比例:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.46,0,0,CONST(WINNER(C )*100)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.05,0,'總股本(萬股):'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.13,0.05,0,CONST(FINANCE(1)/10000)),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.1,0,'所屬板塊:'),COLORYELLOW; DRAWTEXT_FIX(1,0.1,0.1,0,HYBLOCK),COLOR0080FF; DRAWTEXT_FIX(1,0.21,0.1,0,DYBLOCK),COLOR0080FF; {量能飽和} SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100); DRAWTEXT_FIX(1,0.35,0.9,0,'量能飽和度:')COLOR00FFFF; DRAWNUMBER_FIX(1,0.48,0.9,0,CONST(SAT)),COLORYELLOW;
|