仿制資金主圖源碼 http://www./file/107256.html
{188冠軍一號主圖} HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1; LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1; D90H:=EMA(HH,90),COLORRED,LINETHICK1; D90L:=EMA(LL,90),COLORRED,LINETHICK1; DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1;DDL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1;D90C:=D90H-D90L;D90D:=D90H+D90C*2,COLORRED,LINETHICK1;D90T:=D90L-D90C*2,COLORRED,LINETHICK1;G0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK1,COLORWHITE;D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORWHITE;DTD:=D0>=D90T AND G0>=D90D;KTD:=G0<=D90D AND D0<=D90T;ZDD:=D0>=D90T AND G0<=D90D;BDD0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60),LINETHICK2,COLORGREEN;BDT0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3,LINETHICK2,COLORGREEN;STICKLINE(DTD=1,G0,D0,5,0),COLOR000066;STICKLINE(KTD=1,G0,D0,5,0),COLOR003300;STICKLINE(ZDD=1,G0,D0,5,0),COLOR555555; ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORWHITE; ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,DOTLINE,COLORWHITE; STICKLINE(1=1,D90H,D90L,5,0),COLORLIGRAY; HD:=DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),HHV(HIGH,4),1),LINETHICK2,COLORMAGENTA; HK:=DRAWLINE(LOW<=LLV(LOW,20),LOW,HIGH>=HHV(HIGH,20),LLV(LOW,4),1),LINETHICK2,COLORWHITE; BSB:=EMA((CLOSE+HIGH+LOW)/3,3); BSM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48),POINTDOT,COLORYELLOW; STICKLINE(BSB>=BSM,LOW,HIGH,0.0,0),COLORRED; STICKLINE(BSB>=BSM,CLOSE,OPEN,3,1),COLORRED; STICKLINE(BSB<=BSM,LOW,HIGH,0.0,0),COLORGREEN; STICKLINE(BSB<=BSM,CLOSE,OPEN,3,1),COLORGREEN; 白色點(diǎn)多定位1:=L<ZD1 AND H>ZD1; 白色點(diǎn)空定位1:=H>ZK1 AND L<ZK1; STICKLINE(白色點(diǎn)多定位1=1,L,ZD1,3,0),COLORWHITE; STICKLINE(白色點(diǎn)空定位1=1,H,ZK1,3,0),COLORWHITE; 白色點(diǎn)多定位2:=H<ZD1; 白色點(diǎn)空定位2:=L>ZK1; STICKLINE(白色點(diǎn)多定位2=1,L,H,0.0,0),COLORWHITE; STICKLINE(白色點(diǎn)多定位2=1,C,O,3,0),COLORWHITE; STICKLINE(白色點(diǎn)空定位2=1,L,H,0.0,0),COLORWHITE; STICKLINE(白色點(diǎn)空定位2=1,C,O,3,0),COLORWHITE; 多頭多定位:=CROSS(ZD1,L) AND DTD=1; 多頭平定位:=CROSS(H,ZK1) AND DTD=1 AND ZDD=0; 空頭空定位:=CROSS(H,ZK1) AND KTD=1; 空頭平定位:=CROSS(ZD1,L) AND KTD=1 AND ZDD=0; 震蕩多定位:=CROSS(ZD1,L) AND ZDD=1; 震蕩空定位:=CROSS(H,ZK1) AND ZDD=1; DRAWICON(空頭平定位=1,L,3); DRAWICON(多頭平定位=1,H,4); DRAWICON(多頭多定位=1 OR 震蕩多定位=1,L,3); DRAWICON(空頭空定位=1 OR 震蕩空定位=1,H,4); DRAWTEXT(ISLASTBAR,ZK1,'賣'),COLORGREEN; DRAWTEXT(ISLASTBAR,ZD1,'買'),COLORRED; 大單動向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7); 漲跌動因:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0); 大單差分:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0); DDZ1:=大單差分*7; DDZ2:=大單差分*3; 主力活躍度:=LARGEINTRDVOL-LARGEOUTTRDVOL; 主力凈流入:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000; 買入力度:=LARGEINTRDVOL*100/VOL; 賣出力度:=LARGEOUTTRDVOL*100/VOL; 超B:=L2_AMO(0,2)/10000.0; 大B:=L2_AMO(1,2)/10000.0; 中B:=L2_AMO(2,2)/10000.0; 小B:=L2_AMO(3,2)/10000.0; 超S:=L2_AMO(0,3)/10000.0; 大S:=L2_AMO(1,3)/10000.0; 中S:=L2_AMO(2,3)/10000.0; 小S:=L2_AMO(3,3)/10000.0; 資金流向:=(超B+大B+中B+小B)-(超S+大S+中S+小S); 資金選股:=資金流向>0 AND 大單動向>0 AND 漲跌動因>0 AND DDZ1>0 AND DDZ2>0 AND 主力活躍度>0 AND 主力凈流入>0 AND 買入力度>賣出力度; STICKLINE(資金選股=1 AND (H-C)<(C-L),LOW,HIGH,0.0,0),COLORRED; STICKLINE(資金選股=1 AND (H-C)<(C-L),CLOSE,OPEN,3,0),COLORRED; 灰色線:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*4+XMA(XMA(H,60),60),LINETHICK2,COLORGREEN; 綠色線:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*5+XMA(XMA(H,60),60),LINETHICK2,COLORGREEN; 紅色線:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*6+XMA(XMA(H,60),60),LINETHICK2,COLORGREEN; 冠軍線:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*7+XMA(XMA(H,60),60),LINETHICK2,COLORGREEN; DRAWTEXT(1=1 AND CURRBARSCOUNT=50,紅色線,'【紅色:多頭趨勢,順勢買賣】'),COLORRED; DRAWTEXT(1=1 AND CURRBARSCOUNT=50,綠色線,'【綠色:空頭趨勢,空倉觀望】'),COLORGREEN; DRAWTEXT(1=1 AND CURRBARSCOUNT=50,灰色線,'【灰色:震蕩趨勢,投機(jī)買賣】'),COLORLIGRAY; {288冠軍一號副} 多止損:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*3.5,LINETHICK0,COLORYELLOW; 多止盈:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK0,COLORWHITE; 空止損:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*3.5+XMA(XMA(H,25),25),LINETHICK0,COLORYELLOW; 空止盈:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK0,COLORWHITE; 短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1; 短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1; D90H:=EMA(短高H,90),COLORRED,LINETHICK1; D90L:=EMA(短低L,90),COLORRED,LINETHICK1; D90差:=D90H-D90L; D90頂:=D90H+D90差*2,COLORRED,LINETHICK1; D90底:=D90L-D90差*2,COLORRED,LINETHICK1; 高0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK1,COLORWHITE; 低0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORWHITE; 多頭定位:=低0>=D90底 AND 高0>=D90頂; 空頭定位:=高0<=D90頂 AND 低0<=D90底; 震蕩定位:=低0>=D90底 AND 高0<=D90頂; 短頂:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*2+XMA(XMA(H,25),25),LINETHICK2,COLORGREEN; 短底:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*2,LINETHICK2,COLORGREEN; 短線收盤:=(C-短底)/(短頂-短底)*100000,LINETHICK2,COLORRED; 短線開盤:=(O-短底)/(短頂-短底)*100000,LINETHICK2,COLORRED; 短線高盤:=(H-短底)/(短頂-短底)*100000,LINETHICK2,COLORRED; 短線低盤:=(L-短底)/(短頂-短底)*100000,LINETHICK0,COLORRED; 頂1:=110000,COLORYELLOW,LINETHICK0; 底1:=-10000,COLORYELLOW,LINETHICK0; STICKLINE(多頭定位=1,頂1,底1,5,0),COLOR000066; STICKLINE(空頭定位=1,頂1,底1,5,0),COLOR003300; STICKLINE(震蕩定位=1,頂1,底1,5,0),COLOR555555; 震蕩頂:=(XMA(XMA(短線高盤,25),25)-XMA(XMA(短線低盤,25),25))*1+XMA(XMA(短線高盤,25),25),DOTLINE,COLORWHITE; 震蕩底:=XMA(XMA(短線低盤,25),25)-(XMA(XMA(短線高盤,25),25)-XMA(XMA(短線低盤,25),25))*1,DOTLINE,COLORWHITE; 做空:80000,COLORWHITE,LINETHICK1; 做多:20000,COLORWHITE,LINETHICK1; 空損:110000,COLORMAGENTA,LINETHICK2; 多損:-10000,COLORMAGENTA,LINETHICK2; DRAWTEXT(ISLASTBAR,108000,'頂'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,80000,'賣'),COLORGREEN; DRAWTEXT(ISLASTBAR,20000,'買'),COLORRED; DRAWTEXT(ISLASTBAR,-9000,'底'),COLORMAGENTA; BSB:=EMA((CLOSE+HIGH+LOW)/3,3); BSM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48),POINTDOT,COLORYELLOW; STICKLINE(BSB>=BSM,短線低盤,短線高盤,0.0,0),COLORRED; STICKLINE(BSB>=BSM,短線收盤,短線開盤,3,1),COLORRED; STICKLINE(BSB<=BSM,短線低盤,短線高盤,0.0,0),COLORGREEN; STICKLINE(BSB<=BSM,短線收盤,短線開盤,3,1),COLORGREEN; 白色點(diǎn)多定位1:=短線低盤<做多 AND 短線高盤>做多; 白色點(diǎn)空定位1:=短線高盤>做空 AND 短線低盤<做空; STICKLINE(白色點(diǎn)多定位1=1,短線低盤,做多,3,0),COLORWHITE; STICKLINE(白色點(diǎn)空定位1=1,短線高盤,做空,3,0),COLORWHITE; 白色點(diǎn)多定位2:=短線高盤<做多; 白色點(diǎn)空定位2:=短線低盤>做空; STICKLINE(白色點(diǎn)多定位2=1,短線低盤,短線高盤,0.0,0),COLORWHITE; STICKLINE(白色點(diǎn)多定位2=1,短線收盤,短線開盤,3,0),COLORWHITE; STICKLINE(白色點(diǎn)空定位2=1,短線低盤,短線高盤,0.0,0),COLORWHITE; STICKLINE(白色點(diǎn)空定位2=1,短線收盤,短線開盤,3,0),COLORWHITE; 多頭多定位:=CROSS(做多,短線低盤) AND 多頭定位=1; 多頭平定位:=CROSS(短線高盤,做空) AND 多頭定位=1 AND 震蕩定位=0; 空頭空定位:=CROSS(短線高盤,做空) AND 空頭定位=1; 空頭平定位:=CROSS(做多,短線低盤) AND 空頭定位=1 AND 震蕩定位=0; 震蕩多定位:=CROSS(做多,短線低盤) AND 震蕩定位=1; 震蕩空定位:=CROSS(短線高盤,做空) AND 震蕩定位=1; DRAWICON(空頭平定位=1,短線低盤,3); DRAWICON(多頭平定位=1,短線高盤,4); DRAWICON(多頭多定位=1 OR 震蕩多定位=1,短線低盤,3); DRAWICON(空頭空定位=1 OR 震蕩空定位=1,短線高盤,4); 冠軍1號VOL 股價(jià):VOL,VOLSTICK; 短3:XMA(XMA(股價(jià),3),3),LINETHICK0,COLORWHITE; 短5:XMA(XMA(股價(jià),5),5),LINETHICK0,COLORWHITE; 短6:XMA(XMA(股價(jià),6),6),LINETHICK0,COLORWHITE; 短中2:(短3+短5+短6)/3,LINETHICK0,COLORYELLOW; 短底2:短中2*0.7,LINETHICK0,COLORWHITE; 短7:XMA(XMA(股價(jià),8),8),LINETHICK0,COLORWHITE; 短8:XMA(XMA(股價(jià),10),10),LINETHICK0,COLORWHITE; 短9:XMA(XMA(股價(jià),12),12),LINETHICK0,COLORWHITE; 短中3:(短7+短8+短9)/3,LINETHICK0,COLORWHITE; 短頂3:短中3*1.3,LINETHICK0,COLORGREEN; 短底3:短中3*0.7,LINETHICK0,COLORGREEN; 中1:XMA(XMA(股價(jià),16),16),LINETHICK0,COLORWHITE; 中2:XMA(XMA(股價(jià),19),19),LINETHICK0,COLORWHITE; 中3:XMA(XMA(股價(jià),22),22),LINETHICK0,COLORWHITE; 中4:XMA(XMA(股價(jià),25),25),LINETHICK0,COLORWHITE; 中5:XMA(XMA(股價(jià),28),28),LINETHICK0,COLORWHITE; 中6:XMA(XMA(股價(jià),31),31),LINETHICK0,COLORWHITE; 中中2:(中1+中2+中3+中4+中5+中6)/6,LINETHICK0,COLORGREEN; 中頂2:中中2*1.4,LINETHICK0,COLORGREEN; 中底2:中中2*0.6,LINETHICK0,COLORGREEN; 中40:XMA(XMA(股價(jià),40),40),LINETHICK0; 中50:XMA(XMA(股價(jià),50),50),LINETHICK0; 中60:XMA(XMA(股價(jià),60),60),LINETHICK0; 中中3:(中40+中50+中60)/3,LINETHICK0,COLORWHITE; 中頂3:中中3*1.5,LINETHICK0,COLORRED; 中底3:中中3*0.5,LINETHICK0,COLORRED; 長90:XMA(XMA(股價(jià),90),90),LINETHICK0,COLORWHITE; 長120:XMA(XMA(股價(jià),120),120),LINETHICK0,COLORWHITE; 長150:XMA(XMA(股價(jià),150),150),LINETHICK0,COLORWHITE; 長中:(長90+長120+長150)/3,LINETHICK0,COLORYELLOW; 長頂:=長中*1.6,LINETHICK1,COLORWHITE; 長頂頂:=長中*3,LINETHICK1,COLORRED; 長底:=長中*0.4,LINETHICK1,COLORYELLOW; MA短中2:EMA(短中2,10),LINETHICK0,COLORWHITE; MA中中2:EMA(中中2,10),LINETHICK0,COLORGREEN; V2:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED; STICKLINE(V2>=1,0,VOL,2,0),COLORYELLOW; VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK; 大底VOL:=短底2<短底3 AND 短底3<中底2 AND 中底2<中底3 AND 中底3<長底,LINETHICK5,COLORRED; 中底VOL:=短底2<短底3 AND 短底3<中底2 AND 中底2<中底3 AND 中底2<長底,LINETHICK2,COLORGREEN; 小底VOL:=短底2<短底3 AND 短底3<中底2 AND 中底2<中底3,LINETHICK1,COLORYELLOW; STICKLINE(中中2>MA中中2,0,VOL,2,1),COLORFF00FF; STICKLINE(短中2>MA短中2,0,VOL,2,0),COLORRED; STICKLINE(中中2>MA中中2 AND VOL<長底,0,VOL,3,0),COLORWHITE; STICKLINE(中中2>MA中中2 AND VOL<中底3 AND VOL<中底2 AND VOL>長底,0,VOL,3,0),COLORBLUE; STICKLINE(中中2<MA中中2,0,VOL,2,0),COLORGREEN; STICKLINE(中中2<MA中中2 AND 短中2>MA短中2,0,VOL,2,0),COLORYELLOW; STICKLINE(中底VOL=1 OR 小底VOL=1,0,VOL,2,0),COLORBLUE; STICKLINE(中中3>REF(中中3,1) AND 股價(jià)<長底,0,VOL,3,0),COLORWHITE; 長底1:長中*0.4,LINETHICK1,COLORWHITE; |
|