通达信神针起爆副图指标 实战解读与应用指南 源码

{变量定义部分}

X_1:=HHV(HIGH,12)-LLV(LOW,26);
X_2:=HHV(HIGH,9)-CLOSE;
X_3:=CLOSE-LLV(LOW,9);
X_4:=X_2/X_1*100-70;
X_5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
X_6:=(2*CLOSE+HIGH+LOW)/4;
X_7:=SMA(X_3/X_1*100,3,1);
X_8:=LLV(LOW,34);
X_9:=SMA(X_7,3,1)-SMA(X_4,9,1);
X_10:=IF(X_9>100,X_9-100,0);
X_11:=HHV(HIGH,34);
X_12:=EMA((X_6-X_8)/(X_11-X_8)*100,13);
X_13:=EMA(0.667*REF(X_12,1)+0.333*X_12,2);
X_14:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
X_15:=MA(X_14,3);

{天地线公式线计算}
天地线:EMA(X_13,1),COLORMAGENTA;

{以下是重复类似计算逻辑部分,用于计算B2公式线等}
X_16:=HHV(HIGH,9)-LLV(LOW,9);
X_17:=HHV(HIGH,9)-CLOSE;
X_18:=CLOSE-LLV(LOW,9);
X_19:=X_17/X_16*100-70;
X_20:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
X_21:=(2*CLOSE+HIGH+LOW)/4;
X_22:=SMA(X_18/X_16*100,3,1);
X_23:=LLV(LOW,34);
X_24:=SMA(X_22,3,1)-SMA(X_19,9,1);
X_25:=IF(X_24>100,X_24-100,0);
X_26:=HHV(HIGH,34);
X_27:=EMA((X_21-X_23)/(X_26-X_23)*100,8);
B2:EMA(X_27,5),COLORFF7000;

{绘制柱状图,体现X_27与B2差值情况}
STICKLINE(X_27-B2>0,X_27,B2,2,0),COLORRED;
STICKLINE(X_27-B2<0,X_27,B2,2,0),COLORGREEN;

{以下是神针起爆信号相关条件判断及输出}
X_28:=MA(CLOSE,5)=HHV(MA(CLOSE,5),20);
X_29:=MA(CLOSE,5)>MA(CLOSE,10);
X_30:=MA(VOL,5)>MA(VOL,40)*1.01;
X_31:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),2)=2;
X_32:=X_28 AND X_29 AND X_30 AND X_31;
X_33:=EMA(CLOSE,8);
X_34:=EMA(X_33,20);
X_35:=CROSS(X_33,X_34);
X_36:=X_33<EMA(CLOSE,120);
X_37:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);
神针起爆:IF(CROSS(X_12,天地线) AND X_12>X_13 AND X_12<55 AND CLOSE>OPEN,50,0),STICK,COLORRED,LINETHICK4;



来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图