通達信【t+0分時】專攻高拋低吸T+0戰(zhàn)法 指標源碼
一.指標圖解:
RCC:=DYNAINFO(3);
S2:=SMA(C,13,1);
S6:=SMA(C,13,1);
DK:=(S2-S6);
KK:=IF(REF(C,1),1,1);
STICKLINE(DK>0,RCC*KK,RCC*KK+DK,0,1),COLORRED;
STICKLINE(DK<0,RCC*KK,RCC*KK+DK,0,1),COLORCYAN;
最高價:=HHV(H,480),DOTLINE,COLORLIBLUE;
STICKLINE(FILTER(CROSS(C,REF(最高價,1)),10),C*0.99,C,8,0),COLORGREEN;
DRAWTEXT(FILTER(CROSS(C,REF(最高價,1)),10),C*0.99,'上突'),COLORYELLOW;
今日開盤線:=DYNAINFO(4),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,今日開盤線,'今日開盤線'),COLORGREEN;
現(xiàn)價:=C,COLORWHITE,LINETHICK1;
H11:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H11-L1;
阻力:=L1+P1*7/8,DOTLINE;
支撐A:=L1+P1*0.5/8,DOTLINE;
中:=(支撐A+阻力)/2,DOTLINE;
VAR4:=EXPMA(現(xiàn)價,55);
賣點:EXPMA(VAR4*1.013,1),COLORGREEN;
抄底:EXPMA(VAR4*0.993,1),COLORRED;
DRAWTEXT(LONGCROSS(支撐A,現(xiàn)價,3),支撐A,'----★B吸'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(現(xiàn)價,阻力,3),現(xiàn)價,'----★S拋'),COLORGREEN;{拋};
DRAWTEXT(ISLASTBAR,賣點,'突破轉強'),COLORGREEN;
DRAWTEXT(ISLASTBAR,抄底,'破了轉弱'),COLORRED;
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主力:=EXPMA(CLOSE/XX,20);大戶:=EXPMA(CLOSE/XX,60);散戶:=EXPMA(CLOSE/XX,120);
DRAWICON(主力>大戶 AND 大戶>散戶 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C,38);
DRAWTEXT(主力>大戶 AND 大戶>散戶 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C*0.999,'-主力'),COLORYELLOW;{ 婧琪創(chuàng)意信息}
攻擊量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻擊量A:=SUM(IF(C>REF(C,1),攻擊量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻擊量B:=-SUM(IF(C<REF(C,1),攻擊量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻擊流量:=攻擊量A+攻擊量B,COLORSTICK;
攻擊比:=攻擊流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
資金攻擊度:=IF(攻擊比>=0,(攻擊比+50),100-ABS((攻擊比-50)));
資金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
資金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
資金出入:=資金流入+資金流出,COLORSTICK;
資金比:=資金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
資金流量比:=IF(資金比>=0,(資金比+100)/2,100-ABS((資金比-100)/2));
DRAWTEXT_FIX(1,0.250,0.88,0,STRCAT(STRCAT('【資金流量比】',CON2STR(資金流量比,2)),'%買')),COLORCYAN;
DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【資金攻擊度】',CON2STR(資金攻擊度,2)),' %買')),COLORCYAN;
A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((BARSTATUS=2),((100*A2)/A6),0);
A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));
A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));
A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));
機構買盤:=(A2),LINETHICK2;
機構賣盤:=(A3),LINETHICK2;
散戶買盤:=(A4);
散戶賣盤:=(A5);
DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【機構買盤】',CON2STR(機構買盤,2)),'萬')),COLORRED;
DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【機構賣盤】',CON2STR(機構賣盤,2)),'萬')),COLOR00FF00;
DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散戶買盤】',CON2STR(散戶買盤,2)),'萬')),COLORRED;
DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散戶賣盤】',CON2STR(散戶賣盤,2)),'萬')),COLOR00FF00;
DD1:=1;{ 婧琪創(chuàng)意信息}
AAA1:=STRCAT(STRCAT('機構買',CON2STR((100*A2)/A6,0)),'%');
AAA2:=STRCAT(STRCAT('機構賣',CON2STR((100*A3)/A6,0)),'%');
AAA22:=STRCAT(STRCAT('機構差',CON2STR((100*(A2-A3))/A6,0)),'%');
AAA3:=STRCAT(STRCAT('散戶買',CON2STR((100*A4)/A6,0)),'%');
AAA4:=STRCAT(STRCAT('散戶賣',CON2STR((100*A5)/A6,0)),'%');
AAA33:=STRCAT(STRCAT('散戶差',CON2STR((100*(A4-A5))/A6,0)),'%');
DRAWTEXT_FIX(DD1=1,0.3,0.05,0,AAA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0.3,0.09,0,AAA2),COLORFFFF55;
DRAWTEXT_FIX(DD1=1,0.3,0.14,0,AAA22),COLOR00FFFF;
DRAWTEXT_FIX(DD1=1,0.4,0.05,0,AAA3),COLOR5555FF;
DRAWTEXT_FIX(DD1=1,0.4,0.09,0,AAA4),COLOR55FF55;
DRAWTEXT_FIX(DD1=1,0.4,0.14,0,AAA33),COLOR00FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.05,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.09,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.01,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.5,0.1,0,'10點之前不買票,買的股票必須得比大盤指數(shù)強,越強越好,不追高,找機會抄底 婧琪創(chuàng)意信息'),COLORLIMAGENTA;
編輯于 2024-07-14 10:24?IP 屬地陜西