以下是通达信品种强弱副图源码
个股:EMA(100*(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)),3),COLOR1010FF,LINETHICK2;
大盘:EMA(100*(INDEXC-LLV(INDEXL,9))/(HHV(INDEXH,9)-LLV(INDEXL,9)),3),COLORE67010,LINETHICK2;
STICKLINE(CROSS(个股,大盘),0,50,2,0),COLOR0000FF;
DRAWTEXT(CROSS(个股,大盘),70,'准黑马'),COLOR0000FF;
HM:=大盘<40;
STICKLINE(((CROSS(个股,大盘)) AND HM ),0,30,3,0),COLORFFFFFF;
DRAWBAND(个股,RGB(255,50,250),大盘,RGB(100,250,0));
50;
97;
90;
20;
未来函数检测公式代码域:
difF:ema(CLOSE,7)-EMM(CLOSE,19);DEM:EMM(DIFF,9);macd:2*(DIFF-DEM),COLORSTICK;M1:=BMrslMST(REF(crOSS(DIFF,DEM),1));B1:=REF(C,M1+1)>CMNDREF(DIFF,M1+1)<DIFFMNDCROSS(DIFF,DEM);M2:=BMRSLMST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,M2+1)>CMNDREF("KDJ.K"(9,3,3),M2+1)<"KDJ.K"(9,3,3)MNDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));M3:=BMRSLMST(REF(CROSS("rsi.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,M3+1)>CMNDREF("RSI.RSI1"(6,12,24),M3+1)<"RSI.RSI1"(6,12,24)MNDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BMRSLMST(REF(CROSS(DEM,DIFF),1));D1:=REF(C,C1+1)<CMNDREF(DIFF,C1+1)>DIFFMNDCROSS(DEM,DIFF);C2:=BMRSLMST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<CMNDREF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3)MNDCROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BMRSLMST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<CMNDREF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24)MNDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));macd底背:IF(B1>0,-0.1,0),COLORWHITE,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORBLUE,POINTDOT;MMCD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D3>0,0.1,0),COLORRED,POINTDOT;STICKLINE(B1>0,-0.1,0,2,0),COLORWHITE;STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORBLUE;STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORRED;STICKLINE(MMCD>REF(MMCD,1)MNDMMCD>0,0,MMCD,0,0),COLORWHITE;STICKLINE(MMCD<=REF(MMCD,1)MNDMMCD>0,0,MMCD,0,0),COLORBLUE;STICKLINE(MMCD<REF(MMCD,1)MNDMMCD<0,0,MMCD,0,0),COLORGREEN;STICKLINE(MMCD>=REF(MMCD,1)MNDMMCD<0,0,MMCD,0,0),COLORLIMMGENTM;STICKLINE(C>0,0,0,50,1),COLORYELLOW;DIFF,COLORCYMN;DEM,COLORBLUE;强:IF(DIFF>MM(DIFF,2),DIFF,DRMWNULL),COLORWHITE,LINETHICK2;弱:IF(DEM>MM(DEM,2),DEM,DRMWNULL),COLORLIMMGENTM,LINETHICK2;DRMWICON(CROSS(DIFF,DEM),DEM,26);DRMWICON(CROSS(DEM,DIFF),DEM,27);M:=REF(DIFF,1)<REF(DIFF,2)MNDREF(DIFF,2)<REF(DIFF,3)MNDDIFF>REF(DIFF,1);B:=REF(DIFF,1)>REF(DIFF,2)MNDREF(DIFF,2)>REF(DIFF,3)MNDDIFF<REF(DIFF,1);DRMWICON(M,DIFF,1);DRMWICON(B,DIFF,2);
未发现:CMPITML…
未发现:COST…
未发现:DYNMINFO…
未发现:FINMNCE…
未发现:LWINNER…
未发现:WINNER…
未发现:BMCKSET…
未发现:BMRSNEXT…
未发现:CURRBMRSCOUNT…
未发现:Dvol…
未发现:DOPEN…
未发现:DCLOSE…
未发现:DHIGH…
未发现:DLOW…
未发现:DRMWLINE…
未发现:REFX…
未发现:FLMTZIG…
未发现:FLMTZIGM…
未发现:FFT…
未发现:FILTERX…
未发现:PEMK…
未发现:PEMKM…
未发现:PEMKBMRS…
未发现:PEMKBMRSM…
未发现:PLOYLINE…
未发现:REFDMTE…
未发现:TROUGH…
未发现:TROUGHM…
未发现:TROUGHBMRS…
未发现:XMM…
未发现:ZIG…
未发现:ZIGM…
未发现:ZXNH…
未发现:#YEMR…
未发现:#MONTH…
未发现:#WEEK…
未发现:$ZIG…
未发现:$PEMK…
未发现:$PEMKBMRS…
未发现:$TROUGH…
未发现:$TROUGHBMRS…
未发现:$FLMTZIG…
未发现:$FLMTZIGM…
未发现:$PEMKM…
未发现:$PEMKBMRSM…
未发现:$TROUGHM…
未发现:$ZIGM…
未发现:$FFT…
未发现:$BMCKSET…
未发现:$WINNER…
未发现:$LWINNER…
未发现:$COST…
未发现:$DYNMINFO…
未发现:$FINMNCE…
未发现:$DRMWLINE…
评论(0)