ihzx 发表于 2021-8-28 00:20:25

通达信60分钟、日周超级共振副图指标源码


         <p>以下是通达信60分钟、日周超级共振副图指标源码(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p>能量线,RSI3.KDJ,W&amp;R,CCI,五个指标共振线.[红].[绿].变化是买卖信号.颜色及标记是配合信号,重点关注60分MACD和周K拐头,周K金叉<br>
65,COLORBLACK;<br>
DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);<br>
DEA60:=EMA(DIF60,9/2);<br>
STICKLINE(DIF60&gt;=DEA60,54,58,3,0),COLORRED;<br>
STICKLINE(DIF60&lt;DEA60,54,58,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,56,'★60分钟MACD★'),COLORWHITE;</p>
<p>RSV60:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));<br>
K60:=SMA(RSV60,3,1);<br>
D60:=SMA(K60,3,1);<br>
STICKLINE(K60&gt;= D60,60,64,3,0),COLOR00FFFF;<br>
STICKLINE(K60 &lt; D60,60,64,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,62,'★60分钟KDJ★ '),COLORWHITE;</p>
<p>DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);<br>
DEA:=EMA(DIF,9);<br>
STICKLINE(DIF&gt;=DEA,48,52,3,0),COLOR00BBBB;<br>
STICKLINE(DIF&lt;DEA,48,52,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,50,'★MACD日线★'),COLOR00FFFF;<br>
周MD:=MACD.DIF#WEEK;<br>
周MA:=MACD.DEA#WEEK;<br>
STICKLINE(周MD&gt;=周MA,42,46,3,0),COLOR00BBBB;<br>
STICKLINE(周MD&lt;周MA,42,46,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,44,'★MACD周线★'),COLOR00FFFF;<br>
月MD:=MACD.DIF#MONTH;<br>
月MA:=MACD.DEA#MONTH;<br>
STICKLINE(月MD&gt;=月MA,36,40,3,0),COLOR00BBBB;<br>
STICKLINE(月MD&lt;月MA,36,40,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,38,'★月MACD★'),COLORWHITE;</p>
<p>RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12));<br>
K:=SMA(RSV,3,1);<br>
D:=SMA(K,3,1);<br>
J:=3*K-2*D; <br>
STICKLINE(K&gt;=D,30,34,3,0),COLORFF00FF;<br>
STICKLINE(K&lt;D,30,34,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,32,'★KDJ日线★'),COLORFFFFFF;</p>
<p><br>
周K:=MA(&quot;KDJ.K#WEEK&quot;(9,3,3) ,5);</p>
<p>周D:=MA(&quot;KDJ.D#WEEK&quot;(9,3,3) ,5);</p>
<p>周J:=MA(&quot;KDJ.J#WEEK&quot;(9,3,3) ,5);<br>
STICKLINE(周K&gt;=周D,24,28,3,0),COLORRED;<br>
STICKLINE(周K&lt;周D,24,28,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,26,'★KDJ周线★'),COLORWHITE;<br>
月K:=&quot;KDJ.K#MONTH&quot; ;<br>
月D:=&quot;KDJ.D#MONTH&quot; ;<br>
STICKLINE(月K&gt;=月D,18,22,3,0),COLORFF00FF;<br>
STICKLINE(月K&lt;月D,18,22,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,20,'★KDJ月线★'),COLORWHITE;</p>
<p>{RSI日}<br>
日RSI1:=&quot;RSI.RSI1#DAY&quot;(9);<br>
日RSI2:=&quot;RSI.RSI2#DAY&quot;(9);<br>
STICKLINE(日RSI1&gt;=日RSI2,12,16,3,0),COLOR990066;<br>
STICKLINE(日RSI1&lt;日RSI2,12,16,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,14,'★日R金叉★'),COLORFFFFFF;<br>
{RSI周}<br>
周RSI1:=&quot;RSI.RSI1#WEEK&quot;(9);<br>
周RSI2:=&quot;RSI.RSI2#WEEK&quot;(9);<br>
STICKLINE(周RSI1&gt;=周RSI2,6,10,3,0),COLOR990066;<br>
STICKLINE(周RSI1&lt;周RSI2,6,10,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,8,'★周R金叉★'),COLORFFFFFF;<br>
{RSI月}<br>
月RSI1:=&quot;RSI.RSI1#MONTH&quot;(9);<br>
月RSI2:=&quot;RSI.RSI1#MONTH&quot;(9);<br>
STICKLINE(月RSI1&gt;=月RSI2,0,4,3,0),COLOR990066;<br>
STICKLINE(月RSI1&lt;月RSI2,0,4,3,1),COLOR696969;<br>
DRAWTEXT(CURRBARSCOUNT=98,2,'★月R金叉★'),COLORFFFFFF;</p>
<p>STICKLINE(周K&gt;=REF(周K,1),-6,-2,3,0),COLORRED;<br>
STICKLINE (周K&lt;REF(周K,1),-6,-2,3,0),COLOR333333;<br>
DRAWTEXT(CURRBARSCOUNT=98,-4,'★周K拐头★'),COLOR00FFFF;</p>
<p><br>
STICKLINE(周J&gt;=REF(周J,1),-12,-8,3,0),COLORRED;</p>
<p>STICKLINE(周J&lt;REF(周J,1),-12,-8,3,0),COLOR333333;</p>
<p>DRAWTEXT(CURRBARSCOUNT=98,-10,'★周J拐头★'),COLORFFFFFF;</p>
<p><br>
VOLUME:=VOL,VOLSTICK;</p>
<p>MAVOL1:=MA(VOLUME,5);</p>
<p>MAVOL2:=MA(VOLUME,10);</p>
<p>STICKLINE(MAVOL1&gt;=MAVOL2,-18,-14,3,0),COLORBLUE;</p>
<p>STICKLINE (MAVOL1&lt;MAVOL2,-18,-14,3,1),COLOR333333;</p>
<p>DRAWTEXT(CURRBARSCOUNT=98,-16,'★成交量★'),COLORFFFFFF;</p>
<p>PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);<br>
JJ:=REF(EMA(PJJ,3),1);<br>
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));<br>
XVL:=IF(CLOSE&gt;OPEN,QJJ*(HIGH-LOW),IF(CLOSE&lt;OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF<br>
(CLOSE&gt;OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE&lt;OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));<br>
HSL:=(XVL/20)/1.15;<br>
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));<br>
GJJ:=EMA(攻击流量,8);<br>
LLJX:=EMA(攻击流量,3);<br>
资金流量:=LLJX,LINETHICK0,COLOR0000FF;</p>
<p>A10:=资金流量&gt;0;</p>
<p>STICKLINE(资金流量&gt;=0,-24,-20,3,0),COLORYELLOW;</p>
<p>STICKLINE (资金流量&lt;0,-24,-20,3,1),COLOR333333;</p>
<p>DRAWTEXT(CURRBARSCOUNT=98,-22,'★资金流量★'),COLORFFFFFF;</p>
<p>DRAWICON(周K&gt;=REF(周K,1) AND DIF60&gt;=DEA60,-30,25);</p>
<p><br>
{1指.能量线}<br>
能量线:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3),LINETHICK0;<br>
{2指.RSI}<br>
RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,LINETHICK0;<br>
{3指.KDJ}<br>
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK0;<br>
K1:=SMA(RSV1,3,1);<br>
D1:=SMA(K1,3,1);<br>
J1:=3*K1-2*D1,LINETHICK0;<br>
{4指.W&amp;R}<br>
威廉WR:=(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))*100,LINETHICK0;<br>
{5指.CCI}<br>
TYP := (HIGH + LOW + CLOSE)/3;<br>
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;</p>
<p>五指A:WMA((能量线+RSI+J-威廉WR+CCI)/5,5);<br>
五指B:WMA((能量线+RSI+J-威廉WR+CCI)/5,13);</p>
<p>WMA((能量线+RSI+J-威廉WR+CCI)/5,5),COLOR00FF00,LINETHICK3;<br>
IF(五指A&gt;REF(五指A,1),五指A,DRAWNULL),COLOR0000FF,LINETHICK3;</p>
<p><br>
DRAWTEXT_FIX(1,0.02,0,0,'能量线,RSI3.KDJ,W&amp;R,CCI,五个指标共振线.[红].[绿].变化是买卖信号.颜色及标记是配合信号,重点关注60分MACD和周K拐头,周K金叉'),COLORRED,LINETHICK3;</p>
<p><br>
KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);<br>
AAX:=(KC-MA(KC,9))/MA(KC,9)*100;<br>
VAR0:=MIN(EXIST(KC,55),9);<br>
AAX1:=EMA(AAX,VAR0)*VAR0;<br>
AAX2:=MA(AAX1,3);<br>
AAX3:=MA(AAX1,5);<br>
卖:=AAX3&gt;3&nbsp; AND AAX1&lt;REF(AAX1,1) AND CROSS(AAX2,AAX1);<br>
VBA:=FILTER(卖,5);<br>
DRAWTEXT(VBA,五指A*1.08,'★卖出'),COLORGREEN;<br>
DRAWICON(FILTER(VBA=1,3),40,2),COLORFFFF00;<br>
STICKLINE(FILTER(VBA=1,5),36,0,1.25,0),COLORBLUE;<br>
STICKLINE(FILTER(VBA=1,5),35,0,0.35,1),COLORBLUE,COLORGREEN;<br>
VB2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;<br>
VB3:=IF(LLV(VB2,3)=LLV(VB2,11) AND COUNT(VB2&lt;0,2) AND CROSS(VB2,MA(VB2,2)),1,0);<br>
VB4:=FILTER(VB3=1,5);<br>
DRAWTEXT(VB4,五指A*1,'★买入'),COLORD9D919;</p>
<p>DRAWICON(FILTER(VB4=1,3),40,1),COLORFFFF00;<br>
STICKLINE(FILTER(VB4=1,5),36,0,1.25,0),COLORRED;<br>
STICKLINE(FILTER(VB4=1,5),35,0,0.35,1),COLORRED,COLORYELLOW;</p>
<p><br>
震幅0:=(H-L)/REF(C,1)*100; <br>
震幅:震幅0,NODRAW,COLORRED;</p>
<p>超级大盘股:FINANCE(7)&gt;=8000000000,COLORRED,NODRAW;<br>
大盘股:FINANCE(7)&lt;8000000000 AND FINANCE(7)&gt;=800000000,COLORYELLOW,NODRAW;<br>
中盘股:FINANCE(7)&lt;800000000 AND FINANCE(7)&gt;=400000000,COLORGREEN,NODRAW;<br>
小盘股:FINANCE(7)&lt;400000000,COLORWHITE,NODRAW;<br>
盘小绩优:FINANCE(7)&lt;1000000000 AND DYNAINFO(39)&gt;0 AND DYNAINFO(39)&lt;=28,COLOR9933FF,NODRAW;<br>
换手率:V/CAPITAL*100 NODRAW;</p>
<p></p>
页: [1]
查看完整版本: 通达信60分钟、日周超级共振副图指标源码