ihzx 发表于 2021-8-28 00:21:09

通达信金牛起航 主力活跃力度副图指标 源码


         <p>以下是通达信金牛起航 主力活跃力度副图指标 源码(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p>通达信金牛起航 主力活跃力度副图指标 源码</p>
<p>出现红黄色块,说明股价进入主升浪阶段。<br>
价量:=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);<br>
主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);<br>
快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);<br>
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;<br>
K1:=SMA(RSV,3,1);<br>
D8:=SMA(K1,3,1);<br>
KK:=INTPART(K1);<br>
DF:=INTPART(D8);<br>
TFXXS:=KK+DF;<br>
TGLXS:=(TFXXS-REF(TFXXS,1));<br>
主力筹码:=EMA(WINNER(CLOSE)*40,3);<br>
散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);<br>
散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;<br>
主升浪波段:=主力筹码/(主力筹码+散户筹码)*100;<br>
散户主导行情:=EMA(散户套牢筹码,55);<br>
主力主导行情:=EMA(主升浪波段,55);<br>
疯牛压力平台:=HHV((H+L)/2,120);<br>
金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);<br>
界:=MA(CLOSE,27);<br>
ER:=V/FINANCE(7)*100;<br>
A0:=TMA(ER,(1-ER),1);<br>
MAXCYC:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));<br>
T1:=BARSLAST(C&gt;MAXCYC*POW(1.1,0.9));<br>
T2:=BARSLAST(C&lt;MAXCYC*POW(1.1,-0.9));<br>
T3:=CROSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;<br>
T4:=REF(MAXCYC,BARSLAST(T3));<br>
主力最大盈利:=LN(C/T4)/LN(1.1)*10;<br>
换手率:=VOL/CAPITAL*100;<br>
获利盘:=WINNER(C/1.10)*100; <br>
牛股出现预警:=WINNER(C/1.20)*100; <br>
主力赢利25持仓:=WINNER(C/1.25)*100;<br>
主线:=EMA(EMA(C,1),5);<br>
本:=EMA(HHV(主线,5),1);<br>
急:=EMA(HHV(本,21),1);<br>
稳:=EMA(HHV(急,21),2);<br>
投:=EMA(HHV(稳,21),3); <br>
散:=EMA(HHV(投,21),4); <br>
集:=EMA(HHV(散,21),5); <br>
日线:=CLOSE;<br>
VAR3:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;<br>
疯牛强势分界线:=IF(C&gt;200,C,DMA(VAR3,VOL/CAPITAL))*1.1;<br>
疯牛马线:=EMA(HHV(集,21),6); <br>
VOLUME:=VOL;<br>
五日均量:=MA(VOLUME,5);<br>
半年均量:=MA(VOLUME,135);<br>
VA:=IF(CLOSE&gt;REF(CLOSE,1),VOL,-VOL);<br>
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);<br>
VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;<br>
主力做空能量线:=SMA(VAR1,3,1);<br>
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;<br>
主力做多能量线:=SMA(VAR2,5,1)-8;<br>
&nbsp;<br>
狂飙临界能量:=(主力做多能量线-主力做空能量线);<br>
Y:=(H+O+L+3*C)/6;<br>
净资金流向:=EMA(100-(100/(1+SUM(IF(Y&gt;REF(Y,1),Y*VOL,0),14)/SUM(IF(Y&lt;REF(Y,1),Y*VOL,0),14))),5);<br>
&nbsp;<br>
AA:=CROSS(日线,疯牛马线);<br>
TT:=(2*CLOSE+OPEN+HIGH+LOW);<br>
主导动能:=(TT/EMA(TT,4)-1)*100;<br>
FF:=主导动能*5;<br>
&nbsp;<br>
角度1:=ATAN((净资金流向/REF(净资金流向,1)-1)*100)*180/3.1416;<br>
角度2:=ATAN((FF/REF(FF,1)-1)*100)*180/3.1416;<br>
放量2:=(FF-REF(FF,1))*100/REF(FF,1);<br>
当日涨幅:=(C-REF(C,1))*100/REF(C,1);<br>
&nbsp;七日涨幅:=SUM((C-REF(C,1))/REF(C,1)*100,15);<br>
停牌:=(DYNAINFO(4)=0);<br>
持股时段:=IF((金叉疯牛&gt;界)AND(散户筹码&lt;主力筹码) AND((主力活跃力度&gt;50)OR(主力活跃力度&gt;REF(主力活跃力度,1))),-40,0);<br>
&nbsp;<br>
金牛:=IF((COUNT(AA,20))AND(主力筹码&gt;散户筹码)AND(主升浪波段&gt;主力主导行情)AND(主力赢利25持仓&gt;30)AND(主力活跃力度&gt;主升浪波段)AND(主力活跃力度&gt;60)AND(当日涨幅&gt;=0.5)AND(MAX(CLOSE,金叉疯牛))AND(COUNT(CLOSE&gt;金叉疯牛,10)),18,0);<br>
&nbsp;<br>
金牛起航:IF((金牛&gt;10)AND(当日涨幅&gt;=0.5)AND(持股时段=-40),88,0),COLORYELLOW,NODRAW;<br>
&nbsp;<br>
DRAWBAND(0,RGB(225,215,0),金牛起航,RGB(255,215,0));<br>
&nbsp;<br>
VARA:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;<br>
狂飙主升浪:EMA((CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100,4)*2,COLOR1E90FF,NODRAW;<br>
弱能量:=EMA(狂飙主升浪,30);<br>
强能量:=IF(VARA&gt;弱能量,0,弱能量);<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
主力疯狂做多:IF((主力最大盈利&gt;0)AND(主力最大盈利&lt;150)AND(主力活跃力度&gt;50)AND(C&gt;疯牛强势分界线)AND(日线&gt;疯牛马线)AND(换手率&lt;20)AND(放量2&gt;10)AND(角度1&gt;2)AND(主力筹码&gt;散户筹码),48,0),COLORRED,NODRAW;<br>
&nbsp;<br>
DRAWBAND(0,RGB(0,0,0),主力疯狂做多,RGB(255,0,0));<br>
&nbsp;<br>
满盘获利无抛压:IF((主力最大盈利&gt;30)AND(获利盘&gt;80)AND(换手率&lt;5),-58,0),COLORFFFF00,NODRAW;<br>
&nbsp;<br>
风险持股:IF((主力最大盈利&gt;120)AND(主力活跃力度&gt;50)AND(C&gt;疯牛强势分界线)AND(日线&gt;疯牛马线)AND(主力活跃力度&gt;主升浪波段)AND(换手率&gt;10)AND(主力筹码&gt;散户筹码),88,0),COLORMAGENTA,NODRAW;<br>
&nbsp;<br>
DRAWBAND(0,RGB(0,255,0),风险持股,RGB(255,0,225));<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
中度锁仓拉升:IF((主力最大盈利&gt;80)AND((主力活跃力度&gt;50)OR(主力活跃力度&gt;REF(主力活跃力度,1)))AND(C&gt;疯牛强势分界线)AND(日线&gt;疯牛马线)AND(主力活跃力度&gt;主升浪波段)AND(换手率&lt;8)AND(换手率&gt;=5)AND(主力筹码&gt;散户筹码),68,0),COLORFF0080,NODRAW;<br>
&nbsp;<br>
DRAWBAND(0,RGB(0,255,0),中度锁仓拉升,RGB(125,38,205));<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
STICKLINE((主力最大盈利&gt;30)AND(获利盘&gt;80)AND(换手率&lt;5) ,-58,0,2,0 ),COLORFFFF00;<br>
&nbsp;<br>
&nbsp;<br>
高度控盘:IF((主力最大盈利&gt;80)AND((主力活跃力度&gt;50)OR(主力活跃力度&gt;REF(主力活跃力度,1)))AND(C&gt;疯牛强势分界线)AND(日线&gt;疯牛马线)AND(换手率&lt;5)AND(主力筹码&gt;散户筹码),-28,0),COLORFF6100,NODRAW;<br>
DRAWBAND(0,RGB(24,106,255),高度控盘,RGB(0,255,0));<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)<br>
-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);<br>
超级主升:=EMA(VAR11,5);<br>
主升1:=超级主升-100;<br>
D1:=EMA(C,5);<br>
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)+<br>
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)+<br>
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;<br>
DDE:=(D1/D2)*100;<br>
主升2:=DDE-110;<br>
A:=(H+L+2*C)/4;<br>
A1:=(A-REF(A,3))/3+A;<br>
MA5:=EMA(A1,7);<br>
J:=EMA(HHV(A1,20),60),LINETHICK3;<br>
CB5:=EMA(COST(80),30),CIRCLEDOT;<br>
HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20),LINETHICK2;<br>
金牛线:=(J+CB5+HMX)/3,LINETHICK2;<br>
MA20:=MA(C,20);<br>
UP:=EMA(EMA(C*1.38,50),50),DOTLINE,COLOR0000FF;<br>
白色:=SMA(HIGH,21,2)*1.05;<br>
黄色:=SMA(LOW,21,2)*0.95;<br>
中线:=(白色+黄色)/2;<br>
UP1:=中线+2*STD(中线,20);<br>
UP2:=REF(UP1,0);<br>
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);<br>
DD:=DMA(CLOSE,CC);<br>
通道3:=(1+9/100)*DD;<br>
通道4:=(1-7/100)*DD;<br>
界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+通道3)/4,10)+MA(C,20)*1.04)/2;<br>
AHC1:=H*VOL;<br>
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);<br>
C上X:=1.06*AHC24;<br>
C下X:=AHC24*0.94;<br>
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);<br>
上X:=1.06*AHC22;<br>
下X:=AHC22*0.94;<br>
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);<br>
D上X:=1.06*AHC23;<br>
D下X:=AHC23*0.94;<br>
T:=(C上X+D上X+上X)/3*1.05;<br>
主升3:=(MA5*2/(界限+T)-1)*100;<br>
CBX80:=MA(COST(80),20);<br>
主升4:=(MA5/CBX80-1)*100;<br>
FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);<br>
FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;<br>
主升5:=(FT/FT1-1)*100;<br>
P:=EMA(EMA(C*1.14,55),20);<br>
主升6:=(MA5/P-1)*100;<br>
金K线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;<br>
主升7:=(MA5/金K线-1)*100;<br>
超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2;<br>
&nbsp;<br>
STICKLINE(狂飙主升浪&gt;30 AND CLOSE&gt;疯牛马线 AND 超牛拉升&gt;REF(超牛拉升,1),狂飙主升浪,30,1.5,0),COLOR1E90FF;<br>
0;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 通达信金牛起航 主力活跃力度副图指标 源码