股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信主升浪介入选股指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 4 天前

量能:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
主力活跃力度:=(((量能-LLV(量能,27))/(HHV(量能,27)-LLV(量能,27)))*(4))*(25);
快线:=(((量能-LLV(量能,9))/(HHV(量能,9)-LLV(量能,9)))*(4))*(25);
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD;{//变异kd风险系数}
TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}
TGLXS:=(TFXXS-REF(TFXXS,1))*10;
{//变异KD乖离系数}
乖离系数:=TGLXS;
主线:=EMA(EMA(C,1),5);
本:=EMA(HHV(主线,5),1);
急:=EMA(HHV(本,21),1);
稳:=EMA(HHV(急,21),2);
投:=EMA(HHV(稳,21),3);
散:=EMA(HHV(投,21),4);
集:=EMA(HHV(散,21),5);
疯牛线:=EMA(HHV(集,21),6);
日线:=CLOSE;
涨:=(C-REF(C,1))*100/REF(C,1);
涨50:=(C-REF(C,50))*100/REF(C,50);
B1:=MA(C,1);
持币阶段:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
主升持股波段:=HHV(MA(持币阶段,1),13);
牛股出现预警:=WINNER(C/1.10)*100;
主力赢利25持仓:=WINNER(C/1.25)*100;
主筹码:=EMA(WINNER(CLOSE)*70,3);
散筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
散户套牢筹码:=散筹码/(主筹码+散筹码)*100;
主升浪波段:=主筹码/(主筹码+散筹码)*100;
主力主导行情:=EMA(主升浪波段,55);
金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
界:=MA(CLOSE,27);
ER:=V/FINANCE(7)*100;
A0:=TMA(ER,(1-ER),1);
MAXcyc:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));
T1:=BARSLAST(C>MAXCYC*POW(1.1,0.9));
T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));
T3:=crOSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;
T4:=REF(MAXCYC,BARSLAST(T3));
VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)
-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);
超级主升:=EMA(VAR11,5);
主升1:=超级主升-100;
D8:=EMA(C,5);
D2:=(EMA(C,1)+EMA(C,5)+EMA(C,10)+EMA(C,15)+EMA(C,20)+EMA(C,25)+EMA(C,30)+EMA(C,35)+EMA(C,40)+EMA(C,45)+
EMA(C,50)+EMA(C,55)+EMA(C,60)+EMA(C,65)+EMA(C,70)+EMA(C,75)+EMA(C,80)+EMA(C,85)+EMA(C,90)+EMA(C,95)+
EMA(C,100)+EMA(C,105)+EMA(C,110)+EMA(C,115)+EMA(C,120)+EMA(C,125)+EMA(C,130)+EMA(C,135)+EMA(C,140)+EMA(C,150))/30;
dde:=(D8/D2)*100;
主升2:=DDE-110;
A:=(H+L+2*C)/4;
A1:=(A-REF(A,3))/3+A;
MA5:=EMA(A1,7);
J:=EMA(HHV(A1,20),60);
CB5:=EMA(COST(80),30);
HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20);
金牛线:=(J+CB5+HMX)/3;
MA20:=MA(C,20);
UP:=EMA(EMA(C*1.38,50),50);
白色:=SMA(HIGH,21,2)*1.05;
黄S:=SMA(LOW,21,2)*0.95;
中线:=(白色+黄S)/2;
UP1:=中线+2*STD(中线,20);
UP2:=REF(UP1,0);
CC:=Abs((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);
DT:=DMA(CLOSE,CC);
路线3:=(1+9/100)*DT;
路线4:=(1-7/100)*DT;
界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+路线3)/4,10)+MA(C,20)*1.04)/2;
AHC1:=H*vol;
AHC24:=EMA((expma(AHC1,180)/EXPMA(VOL,180)+EXPMA(AHC1,360)/EXPMA(VOL,360)+EXPMA(AHC1,720)/EXPMA(VOL,720)+EXPMA(AHC1,1440)/EXPMA(VOL,1440))/4,34);
C上X:=1.06*AHC24;
C下X:=AHC24*0.94;
AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
上X:=1.06*AHC22;
下X:=AHC22*0.94;
AHC23:=EMA((EXPMA(AHC1,5)/EXPMA(VOL,5)+EXPMA(AHC1,10)/EXPMA(VOL,10)+EXPMA(AHC1,20)/EXPMA(VOL,20)+EXPMA(AHC1,40)/EXPMA(VOL,40))/4,34);
D上X:=1.06*AHC23;
D下X:=AHC23*0.94;
T:=(C上X+D上X+上X)/3*1.05;
主升3:=(MA5*2/(界限+T)-1)*100;
CBX80:=MA(COST(80),20);
主升4:=(MA5/CBX80-1)*100;
FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);
FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;
主升5:=(FT/FT1-1)*100;
P:=EMA(EMA(C*1.14,55),20);
主升6:=(MA5/P-1)*100;
金k线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;
主升7:=(MA5/金K线-1)*100;
超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2;
持股时段:=IF((金叉疯牛>界)AND(散筹码<主筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0);
主力最大盈利:=LN(C/T4)/LN(1.1)*10;
VAR1:=AMOUNT/VOL/100;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
疯牛强势分界线:=IF(C>200,C,DMA(VAR2,VOL/CAPITAL))*1.1;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,21);
V3:=EMA(V2,5);
WY:=2*(V2-V3)*100;
角度2:=ATAN((主升持股波段/REF(主升持股波段,1)-1)*100)*57.296;
SMA2:=MA(持币阶段,3);
双线合并关注:=主升持股波段;
超牛高:=H=HHV(超牛拉升,10);
日振幅:=(H-L)/REF(C,1)*100;
振幅15:=HHV(日振幅,15);
剔除新股:=BARSCOUNT(CLOSE)>60;
涨1:=(REF(C,1)-REF(C,2))/REF(C,2)*100;
涨2:=(REF(C,2)-REF(C,3))/REF(C,3)*100;
涨20:=(REF(C,1)-REF(C,21))/REF(C,21)*100;
涨10:=(REF(C,1)-REF(C,11))/REF(C,11)*100;
涨5:=HHV(CLOSE,5)/LLV(CLOSE,5);
振幅:=(C-O)/O*100;
跌幅:=(REF(C,1)-C)/REF(C,1)*100;
低开阳线:=((O>REF(H,1) AND L>REF(H,1) AND C>O AND (O-REF(C,1))/REF(C,1)*100>1.5));
大阳线:=(O-REF(C,1))/REF(C,1)*100>5;
连阳1:=COUNT(O>REF(C,1),2)=2;
跳空1:=COUNT(O>REF(H,1) AND L>REF(H,1),10);
跳空2:=COUNT(O>REF(C,1) AND L>REF(C,1),10) AND L<O;
跳空3:=COUNT(O>REF(C,1) AND (O-REF(C,1))/REF(C,1)*100>0.1 AND C>REF(H,1),10);
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);
主力推升股价:=IF(VAR51<REF(VAR51,1)AND(跌幅<3),18,0);
{低开阳线}
快马加鞭:=FILTER((涨>5)AND(涨1>5)AND(超牛拉升>=REF(超牛拉升,1)AND(C>疯牛线)AND(涨10<40)AND(超牛拉升>=REF(超牛拉升,1))),3);
连续下跌:=COUNT(REF(C,2)>REF(C,1),4)>=2;
连续缩量:=COUNT(V<=REF(V,1),4)>=2;
{超强洗筹}
洗筹1:=IF((REF(涨>5,1)AND(REF(涨1,1))AND(振幅<2)AND((涨<2)AND(跌幅<2)AND(涨20<28)AND(主升持股波段=持币阶段))),18,0);
洗筹2:=IF((REF(涨>2,1)AND(涨<2)AND(跌幅<2)AND(主升持股波段>REF(主升持股波段,1))),18,0);
超强洗筹:=IF((洗筹1>8)OR(洗筹2>8)OR((连续下跌)AND(连续缩量)AND(LLV(C,1)>REF(C,5))AND(涨>1)AND(LLV(C,4)>REF(C,7))),18,0);
XA_2:=5;
XA_3:=3;
XA_4:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;
XA_5:=IF(YEAR>=2025,0,1);
XA_6:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55);
XA_7:=EMA(CLOSE/XA_6*(1.88*CLOSE+LOW+OPEN)/2.75,3);
XA_8:=(XA_7-XA_6)/XA_6/2;
XA_9:=EMA(XA_7-XA_8*XA_7,5)*XA_5;
XA_10:=EMA(CLOSE,34)-3*STD(CLOSE,34);
主升浪:=IF(XA_4>XA_9,XA_4,XA_9)*XA_5;
狂涨主升浪:=IF(主升浪>REF(主升浪,1),主升浪,主升浪);
下轨:=IF(XA_9<XA_4 AND XA_9<CLOSE*0.15,EMA(CLOSE,34)-3*STD(CLOSE,34),XA_9);
XA_1:=涨>0.5 AND CROSS(CLOSE,狂涨主升浪);
角度:=ATAN((狂涨主升浪/REF(狂涨主升浪,1)-1)*100)*180/3.1416;
角度选股:=(BARSLASTCOUNT(狂涨主升浪>下轨)=1 AND MA(CLOSE,21)>REF(MA(CLOSE,21),1) AND 剔除新股);
重仓介入:FILTER((COUNT(角度选股,5)=1 AND 涨>0.5 AND 主力赢利25持仓>50 AND 涨10<50 AND 乖离系数>=REF(乖离系数,1)),15);





回复

举报

QQ|

GMT+8, 2024-11-24 03:37

快速回复 返回顶部 返回列表