通达信风云共振主图指标 利用线性回归拐点和MACD,RSI,KDJ,量形成共振 源码

X_1:=6;
X_2:=2;
X_3:=CLOSE;
X_4:=LOW;
X_5:=HIGH;
A1:EXPMEMA(SLOPE(X_3,X_1)*X_1+X_3,X_1);
A2:EXPMEMA(FORCAST(X_3,4),4);
IF(A1>=REF(A1,1),A1,DRAWNULL),COLORRED,LINETHICK2;
IF(A1<REF(A1,1),A1,DRAWNULL),COLORGREEN,LINETHICK2;
IF(A2>=REF(A2,1),A2,DRAWNULL),COLORRED,LINETHICK2;
IF(A2<REF(A2,1),A2,DRAWNULL),COLORGREEN,LINETHICK2;
X_6:=A1>REF(A1,1) OR A2>REF(A2,1);
X_7:=NOT(X_6);
STICKLINE(X_6,LOW,HIGH,0,1),COLORRED;
STICKLINE(X_6,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(X_7,LOW,HIGH,0,1),COLORGREEN;
STICKLINE(X_7,CLOSE,OPEN,3,1),COLORGREEN;
X_8:=X_6 AND HHV(REF(X_6,1),1)=0;
X_9:=NOT(X_6) AND HHV(REF(X_6,1),1)=1;
DRAWICON(X_8,LOW,1);
DRAWICON(X_9,HIGH,2);
X_10:=CROSS(A1,A2);
X_11:=CROSS(A2,A1);
X_12:=12;
X_13:=26;
X_14:=9;
X_15:=EMA(X_3,X_12)-EMA(X_3,X_13);
X_16:=EMA(X_15,X_14);
X_17:=(X_15-X_16)*2;
X_18:=CROSS(X_15,X_16) OR (X_17>REF(X_17,1) AND REF(X_17,2)>REF(X_17,1));
X_19:=(X_3-LLV(X_4,9))/(HHV(X_5,9)-LLV(X_4,9))*100;
X_20:=SMA(X_19,3,1);
X_21:=SMA(X_20,3,1);
X_22:=3*X_20-2*X_21;
X_23:=CROSS(X_20,X_21) OR (X_22>REF(X_22,1) AND REF(X_22,2)>REF(X_22,1));
X_24:=REF(X_3,1);
X_25:=SMA(MAX(X_3-X_24,0),6,1)/SMA(ABS(X_3-X_24),6,1)*100;
X_26:=SMA(MAX(X_3-X_24,0),12,1)/SMA(ABS(X_3-X_24),12,1)*100;
X_27:=SMA(MAX(X_3-X_24,0),24,1)/SMA(ABS(X_3-X_24),24,1)*100;
X_28:=CROSS(X_25,X_27) OR (X_25>REF(X_25,1) AND REF(X_25,2)>REF(X_25,1));
X_29:=IF(OPEN=CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.8,AMOUNT,AMOUNT/((HIGH-LOW)*2-ABS(OPEN-CLOSE))*(CLOSE-LOW));
X_30:=X_29/AMOUNT*100;
X_31:=AMOUNT*X_30/10000000000;
X_32:=AMOUNT/100000000-X_31;
X_33:=X_31-X_32;
X_34:=X_33>IF(MA(X_33>0,5)*2>1.5,MA(X_33>0,5)*2,1.5);
X_35:=HHV(X_8,X_2)>0 AND HHV(X_23,X_2)>0 AND HHV(X_18,X_2)>0 AND HHV(X_28,X_2)>0 AND X_34;
X_36:=X_35 AND REF(X_35,1)=0;
DRAWICON(X_36,LOW*0.99,11);
X_37:=REF(CLOSE,1);
X_38:=SMA(MAX(CLOSE-X_37,0),5,1)/SMA(ABS(CLOSE-X_37),5,1)*100;
X_39:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),10);
X_40:=HIGH-REF(HIGH,1);
X_41:=REF(LOW,1)-LOW;
X_42:=SUM(IF(X_40>0 AND X_40>X_41,X_40,0),10)*100/X_39;
X_43:=SUM(IF(X_41>0 AND X_41>X_40,X_41,0),10)*100/X_39;
X_44:=MA(ABS(X_43-X_42)/(X_43+X_42)*100,5);
X_45:=X_38+X_44;
X_46:=(X_44+REF(X_44,5))/2+X_38;
X_47:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));
X_48:=SMA(SMA(CROSS(X_45+(X_38-X_47),0),3,1),3,1);
X_49:=SMA(X_48,3,1);
X_50:=CROSS(X_48,X_49) AND X_48<40;
X_51:=HHV(X_8,X_2)>0 AND HHV(X_23,X_2)>0 AND HHV(X_18,X_2)>0 AND HHV(X_28,X_2)>0 AND HHV(X_50,X_2)>0;
X_52:=X_51 AND REF(X_51,1)=0;
DRAWICON(X_52,LOW*0.95,14);


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

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

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

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