通達信斷層交易線主圖指標公式原始碼

指标公式分享發表於2024-03-09
{ 通達信斷層交易線主圖指標公式原始碼 }

DRAWTEXT_FIX(ISLAstBAR,0.01,0.01,0,HYBLOCK),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORFF00FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK),COLOR0080FF;
A:=(3*C+H+L+O)/6;
多頭線:(ma(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
IF(多頭線<=REF(多頭線,1),多頭線,DRAWNULL),COLORGREEN,LINETHICK2;
MA5:MA(CLOSE,5),COLORYELLOW;
MA20:MA(CLOSE,20),COLORCYAN;
MA120:MA(CLOSE,120),COLORMAGENTA;
X_1:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_2:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_3:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_4:=X_2+100;
X_5:=IF(CLOSE>REF(CLOSE,1),vol,0);
X_6:=IF(CLOSE<ref(close,1),vol,0);
X_7:=SUM(X_5,13);
X_8:=SUM(X_6,13);
X_9:=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);
X_10:=MA(X_9,2);
X_11:=X_4<10 OR REF(X_4,1)<10 OR REF(X_4,2)<10 OR REF(X_4,3)<10;
X_12:=X_4<10 OR REF(X_4,1)<10 OR REF(X_4,2)<10 OR REF(X_4,3)<10 AND (X_10<10 OR REF(X_10,1)<10 OR REF(X_10,2)<10 OR REF(X_10,3)<10);
X_13:=(CLOSE+LOW+HIGH)/1.5;
X_14:=EMA(X_13,3);
X_15:=EMA(X_14,2.5);
DRAWICON(crOSS(X_14,X_15) AND X_11>0.1,LOW*0.98,9),COLORRED;

相關文章