主圖指標(biāo)源碼如下: 總股本:=STRCAT(STRCAT(' 總股本:',CON2STR(TOTALCAPITAL/1000000,2)),'億'); 流通股:=STRCAT(STRCAT(' 流通股:',CON2STR(CAPITAL/1000000,2)),'億'); 全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%'); 市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'億'); 股本市值:=STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(總股本,流通股),全流通),市值)); 市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2)); 凈益率:=STRCAT(' 凈益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2)); 主營利潤率:=STRCAT(' 主營利潤率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 當(dāng)前業(yè)績:=STRCAT('【當(dāng)前業(yè)績】:',STRCAT(STRCAT(市盈率,凈益率),主營利潤率)); DRAWTEXT_FIX(1,0.005,0.02,0,STRCAT('【所屬板塊】:',STRCAT(STRCAT(' [行業(yè)]—',HYBLOCK),STRCAT(' [概念]—',GNBLOCK)))),COLORYELLOW; DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT('【風(fēng)格板塊】:',STRCAT(STRCAT(' [地域]—',DYBLOCK),STRCAT(' [風(fēng)格]—',FGBLOCK)))),COLORYELLOW; DRAWTEXT_FIX(1,0.005,0.12,0,股本市值),COLORMAGENTA; DRAWTEXT_FIX(1,0.005,0.17,0,當(dāng)前業(yè)績),COLORMAGENTA; DRAWTEXT_FIX(1,0.01,0.9,0,'微信公眾號:整點(diǎn)財(cái)經(jīng)'),COLORRED; 主力:EMA(EMA(EMA(C,2),2),3),COLORRED,LINETHICK1; 散戶:EMA(EMA(EMA(EMA(EMA(C,2),2),2),2),7),COLORBLUE,LINETHICK1; DRAWBAND(主力,RGB(50,50,125),散戶,RGB(0,105,0)); 五日位置:=WMA(((2*C H L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2); 五日加權(quán):=WMA(0.618*REF(五日位置,1) 0.382*五日位置,2); DRAWTEXT(CROSS(五日加權(quán),五日位置) AND 五日位置>70 AND 主力>散戶 AND ((H-O)<(O-C) AND C<O) AND REF(C,1)<REF(C,2)*1.095,H 0.07,'←洗盤'),COLORGREEN; 長莊強(qiáng)度:=(EMA(C,14)-REF(EMA(C,14),1))/REF(EMA(C,14),1)*100,NODRAW; DRAWTEXT(CROSS(長莊強(qiáng)度,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(主力,散戶) AND C>=主力 AND C>O,L*0.98,'←打首板')COLORYELLOW; STICKLINE(CROSS(長莊強(qiáng)度,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(主力,散戶) AND C>=主力 AND C>O,C,O,2,0),COLORYELLOW; STICKLINE(CROSS(長莊強(qiáng)度,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(主力,散戶) AND C>=主力 AND C>O,H,L,0,0),COLORYELLOW; STICKLINE(CROSS(長莊強(qiáng)度,0),(C O)/2,O,1,0),COLORRED; STICKLINE(CROSS(0,長莊強(qiáng)度),(C O)/2,O,1,0),COLORYELLOW; 生命線:MA(CLOSE,60),COLORRED,LINETHICK1; DRAWTEXT(((REF(C,1)>REF(C,2)*1.096 AND REF(C,2)>REF(C,3)*1.096 ) AND C<REF(C,1)*1.095),H,'←清倉'),COLORYELLOW; DRAWSL(主力=散戶,REF(H,1),0,3,0),LINETHICK2; 漲停板:=(C>=ZTPRICE(REF(C,1),IF(FINANCE(3)=4,0.2,0.1))); 一板:=漲停板 AND NOT(REF(漲停板,1)) AND H=C AND FINANCE(42)>20; 二連板:STICKLINE(EVERY(漲停板,2) AND NOT(REF(漲停板,2)) AND FINANCE(42)>30 AND V<REF(V,1),(O C)/2,C,1,0),COLORRED; 三連板:=EVERY(漲停板,3) AND NOT(REF(漲停板,3)) AND FINANCE(42)>20 AND V<REF(V,1); DRAWTEXT(一板 AND C>O AND V>REF(MA(V,5),1)*2,L*0.98,'←試倉'),COLORRED; STICKLINE(一板 AND C>O AND V>REF(MA(V,5),1)*2,C,O,2,0),COLORYELLOW; STICKLINE(一板 AND C>O AND V>REF(MA(V,5),1)*2,H,L,0,0),COLORYELLOW; DRAWTEXT(二連板 ,L-0.07,'二進(jìn)三'),COLORYELLOW; DRAWTEXT(三連板 ,O,'龍妖'),COLORYELLOW; T1:=C>REF(C,1)*1.095 AND REF(C,1)<REF(C,2)*1.095 AND REF(C,2)>REF(C,3)*1.095 AND REF(C,3)<REF(C,4)*1.095; T2:=C>REF(C,1)*1.095 AND REF(C,1)<REF(C,2)*1.095 AND REF(C,2)<REF(C,3)*1.095 AND REF(C,3)>REF(C,4)*1.095 AND REF(C,4)<REF(C,5)*1.095; DRAWTEXT(T1 OR T2 ,L-0.09,'一進(jìn)二'),COLORYELLOW; DRAWKLINE(H,O,L,C); 做個順勢打板的選股指標(biāo),源碼如下: A1:=EMA(C,14); A1X:=(EMA(C,14)-REF(EMA(C,14),1))/REF(EMA(C,14),1)*100; K:=EMA(C,2); K1:=EMA(EMA(C,2),2); K2:=EMA(EMA(EMA(C,2),2),2); K3:=EMA(EMA(EMA(EMA(C,2),2),2),2); 主力:=EMA(EMA(EMA(C,2),2),3); 散戶:=EMA(EMA(EMA(EMA(EMA(C,2),2),2),2),7); XG:CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(主力,散戶) AND C>=主力 AND C>O; |
|