通达信一箭双雕主图指标公式

通达信简洁日周月主图指标公式

通达信一箭双雕主图指标公式:

MA8:MA(CLOSE,8),COLORWHITE,LINETHICK2;

MA20:MA(CLOSE,20),COLORMAGENTA,LINETHICK2;

X_1:=IF(CLOSE>REF(CLOSE,1),vol,0);

X_2:=IF(CLOSE<REF(CLOSE,1),VOL,0);

X_3:=EMA(CLOSE,12)-EMA(CLOSE,26);

X_4:=EMA(X_3,9);

X_5:=(X_3-X_4)*2;

X_6:=MA(CLOSE,60);

X_7:=MA(CLOSE,3);

X_8:=3*SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1),3,1);

X_9:=13;

X_10:=90;

X_11:=BArslAst(X_8=LLV(X_8,21));

X_12:=crOSS(REF(X_8,3),REF(X_9,3)) AND (REF(CLOSE,3)<REF(MA8,3) AND REF(CLOSE,2)<REF(MA8,2) AND REF(CLOSE,1)<REF(MA8,1) OR (REF(CLOSE,1)<REF(MA20,1) AND REF(CLOSE,2)<REF(MA20,2) AND REF(CLOSE,3)<REF(MA20,3) AND CLOSE>=MA20 AND REF(MA20,3)/REF(CLOSE,3)-1<2.8/100) OR (REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE>REF(OPEN,1))) AND CLOSE>=MA8 AND (MA20/CLOSE-1>1.6/100 OR CLOSE>=MA20) AND (CLOSE>=OPEN OR CLOSE>=REF(CLOSE,1)) AND X_8>=X_9;

X_13:=CROSS(REF(X_8,2),REF(X_9,2)) AND (REF(CLOSE,2)<REF(MA8,2) AND REF(CLOSE,1)<REF(MA8,1) OR (REF(CLOSE,1)<REF(MA20,1) AND REF(CLOSE,2)<REF(MA20,2) AND CLOSE>=MA20 AND REF(MA20,2)/REF(CLOSE,2)-1<3/100) OR (REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>=REF(OPEN,1))) AND CLOSE>=MA8 AND (MA20/CLOSE-1>2/100 OR CLOSE>=MA20) AND (CLOSE>=OPEN OR CLOSE>=REF(CLOSE,1)) AND (LOW>REF(CLOSE,1) OR CLOSE-REF(CLOSE,1)>HIGH-CLOSE OR CLOSE-OPEN>HIGH-CLOSE OR OPEN-LOW>HIGH-CLOSE OR CLOSE>=REF(CLOSE,1)) AND X_8>=X_9;

X_14:=CROSS(X_8,X_9) OR (CROSS(REF(X_8,1),REF(X_9,1)) AND (REF(CLOSE,1)<REF(MA8,1) OR (REF(CLOSE,1)<REF(MA20,1) AND CLOSE>=MA20 AND REF(MA20,1)/REF(CLOSE,1)-1<1.6/100) OR (REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>REF(OPEN,1)))) AND CLOSE>=MA8 AND (MA20/CLOSE-1>2/100 OR CLOSE>MA20) AND (CLOSE>=OPEN OR CLOSE>=REF(CLOSE,1)) AND (LOW>REF(CLOSE,1) OR CLOSE-REF(CLOSE,1)>HIGH-CLOSE OR CLOSE-OPEN>HIGH-CLOSE OR CLOSE-LOW>HIGH-CLOSE OR CLOSE>=REF(CLOSE,1)) AND X_8>=X_9;

DRAWICON(X_12 OR X_13 OR X_14,LOW*0.9999,1),COLORYELLOW;

DRAWICON(X_12 OR X_13 OR X_14,LOW*0.99,5),COLORYELLOW;

DRAWICON(X_12 OR X_13 OR X_14 AND X_11>=4 AND X_11<=10 AND (MA20/CLOSE-1>5/100 OR CLOSE>MA20) AND CLOSE-LOW>=HIGH-CLOSE,LOW*0.965,9),COLORYELLOW;

X_15:=CROSS(X_4,X_3) AND X_3>0.1;

X_16:=COUNT(CROSS(X_4,X_3),BARSLAST(X_4<=0));

X_17:=CROSS(X_4,X_3) AND X_4>0 AND COUNT(X_16=2,60)=1;

X_18:=BARSLAST(REF(CROSS(X_4,X_3),1));

X_19:=REF(CLOSE,X_18+1)<CLOSE AND X_3<REF(X_3,X_18+1) AND CROSS(X_4,X_3);

X_20:=MA(CLOSE,8);

X_21:=CLOSE<MA20 AND COUNT(X_19=1,21)>=1 AND X_5<0;

X_22:=COUNT(X_21,21)=1;

DRAWICON(CROSS(90,rsi.RSI1) AND CLOSE<=X_7,HIGH*1.001,45),COLORGREEN;

DRAWICON(CROSS(X_10,X_8) AND CLOSE<=X_20 OR (CROSS(REF(X_10,1),REF(X_8,1)) AND CLOSE<=X_20 AND REF(CLOSE,1)>REF(X_20,1)),HIGH*1.015,6),COLORGREEN;

DRAWICON(CROSS(X_10,X_8) AND CLOSE<=X_20 OR (CROSS(REF(X_10,1),REF(X_8,1)) AND CLOSE<=X_20 AND REF(CLOSE,1)>REF(X_20,1)),HIGH*1.005,2),COLORGREEN;

X_23:=HIGH-CLOSE<=CLOSE-OPEN;

X_24:=CLOSE>=OPEN;

X_25:=LOW>REF(CLOSE,1) AND REF(HIGH,1)<REF(CLOSE,2);

X_26:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND REF(HIGH,1)<REF(CLOSE,3) AND REF(HIGH,2)<REF(CLOSE,3);

X_27:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND REF(HIGH,1)<REF(CLOSE,4) AND REF(HIGH,2)<REF(CLOSE,4) AND REF(HIGH,3)<REF(CLOSE,4);

X_28:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND REF(HIGH,1)<REF(CLOSE,5) AND REF(HIGH,2)<REF(CLOSE,5) AND REF(HIGH,3)<REF(CLOSE,5) AND REF(HIGH,4)<REF(CLOSE,5);

X_29:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND REF(HIGH,1)<REF(CLOSE,6) AND REF(HIGH,2)<REF(CLOSE,6) AND REF(HIGH,3)<REF(CLOSE,6) AND REF(HIGH,4)<REF(CLOSE,6) AND REF(HIGH,5)<REF(CLOSE,6);

X_30:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND REF(HIGH,1)<REF(CLOSE,7) AND REF(HIGH,2)<REF(CLOSE,7) AND REF(HIGH,3)<REF(CLOSE,7) AND REF(HIGH,4)<REF(CLOSE,7) AND REF(HIGH,5)<REF(CLOSE,7) AND REF(HIGH,6)<REF(CLOSE,7);

X_31:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND REF(HIGH,1)<REF(CLOSE,8) AND REF(HIGH,2)<REF(CLOSE,8) AND REF(HIGH,3)<REF(CLOSE,8) AND REF(HIGH,4)<REF(CLOSE,8) AND REF(HIGH,5)<REF(CLOSE,8) AND REF(HIGH,6)<REF(CLOSE,8) AND REF(HIGH,7)<REF(CLOSE,8);

X_32:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND REF(HIGH,1)<REF(CLOSE,9) AND REF(HIGH,2)<REF(CLOSE,9) AND REF(HIGH,3)<REF(CLOSE,9) AND REF(HIGH,4)<REF(CLOSE,9) AND REF(HIGH,5)<REF(CLOSE,9) AND REF(HIGH,6)<REF(CLOSE,9) AND REF(HIGH,7)<REF(CLOSE,9) AND REF(HIGH,8)<REF(CLOSE,9);

X_33:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND LOW>REF(HIGH,9) AND REF(HIGH,1)<REF(CLOSE,10) AND REF(HIGH,2)<REF(CLOSE,10) AND REF(HIGH,3)<REF(CLOSE,10) AND REF(HIGH,4)<REF(CLOSE,10) AND REF(HIGH,5)<REF(CLOSE,10) AND REF(HIGH,6)<REF(CLOSE,10) AND REF(HIGH,7)<REF(CLOSE,10) AND REF(HIGH,8)<REF(CLOSE,10) AND REF(HIGH,9)<REF(CLOSE,10);

X_34:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND LOW>REF(HIGH,9) AND LOW>REF(HIGH,10) AND REF(HIGH,1)<REF(CLOSE,11) AND REF(HIGH,2)<REF(CLOSE,11) AND REF(HIGH,3)<REF(CLOSE,11) AND REF(HIGH,4)<REF(CLOSE,11) AND REF(HIGH,5)<REF(CLOSE,11) AND REF(HIGH,6)<REF(CLOSE,11) AND REF(HIGH,7)<REF(CLOSE,11) AND REF(HIGH,8)<REF(CLOSE,11) AND REF(HIGH,9)<REF(CLOSE,11) AND REF(HIGH,10)<REF(CLOSE,11);

X_35:=LOW>REF(CLOSE,1) AND LOW>REF(HIGH,2) AND LOW>REF(HIGH,3) AND LOW>REF(HIGH,4) AND LOW>REF(HIGH,5) AND LOW>REF(HIGH,6) AND LOW>REF(HIGH,7) AND LOW>REF(HIGH,8) AND LOW>REF(HIGH,9) AND LOW>REF(HIGH,10) AND LOW>REF(HIGH,11) AND REF(HIGH,1)<REF(CLOSE,12) AND REF(HIGH,2)<REF(CLOSE,12) AND REF(HIGH,3)<REF(CLOSE,12) AND REF(HIGH,4)<REF(CLOSE,12) AND REF(HIGH,5)<REF(CLOSE,12) AND REF(HIGH,6)<REF(CLOSE,12) AND REF(HIGH,7)<REF(CLOSE,12) AND REF(HIGH,8)<REF(CLOSE,12) AND REF(HIGH,9)<REF(CLOSE,12) AND REF(HIGH,10)<REF(CLOSE,12) AND REF(HIGH,11)<REF(CLOSE,12);

X_36:=BARSLAST(CLOSE<REF(LOW,1));

X_37:=HHV(HIGH,X_36+1);

X_38:=LOW>X_37;

DRAWICON(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 AND X_24,LOW*0.99,1);

DRAWICON(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 AND X_24,LOW*0.97,25);

DRAWTEXT(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 AND X_24,LOW*0.95,'加仓'),COLORYELLOW;

DRAWNUMBER(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 AND X_24,LOW*0.9,REF(CLOSE,1)),LINETHICK9;

X_39:=HIGH<REF(CLOSE,1) AND REF(LOW,1)>REF(CLOSE,2);

X_40:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND REF(LOW,1)>REF(CLOSE,3) AND REF(LOW,2)>REF(CLOSE,3);

X_41:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND REF(LOW,1)>REF(CLOSE,4) AND REF(LOW,2)>REF(CLOSE,4) AND REF(LOW,3)>REF(CLOSE,4);

X_42:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND REF(LOW,1)>REF(CLOSE,5) AND REF(LOW,2)>REF(CLOSE,5) AND REF(LOW,3)>REF(CLOSE,5) AND REF(LOW,4)>REF(CLOSE,5);

X_43:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND HIGH<REF(LOW,5) AND REF(LOW,1)>REF(CLOSE,6) AND REF(LOW,2)>REF(CLOSE,6) AND REF(LOW,3)>REF(CLOSE,6) AND REF(LOW,4)>REF(CLOSE,6) AND REF(LOW,5)>REF(CLOSE,6);

X_44:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND HIGH<REF(LOW,5) AND HIGH<REF(LOW,6) AND REF(LOW,1)>REF(CLOSE,7) AND REF(LOW,2)>REF(CLOSE,7) AND REF(LOW,3)>REF(CLOSE,7) AND REF(LOW,4)>REF(CLOSE,7) AND REF(LOW,5)>REF(CLOSE,7) AND REF(LOW,6)>REF(CLOSE,7);

X_45:=HIGH<REF(CLOSE,1) AND HIGH<REF(LOW,2) AND HIGH<REF(LOW,3) AND HIGH<REF(LOW,4) AND HIGH<REF(LOW,5) AND HIGH<REF(LOW,6) AND HIGH<REF(LOW,7) AND REF(LOW,1)>REF(CLOSE,8) AND REF(LOW,2)>REF(CLOSE,8) AND REF(LOW,3)>REF(CLOSE,8) AND REF(LOW,4)>REF(CLOSE,8) AND REF(LOW,5)>REF(CLOSE,8) AND REF(LOW,6)>REF(CLOSE,8) AND REF(LOW,7)>REF(CLOSE,8);

DRAWICON(X_39 OR X_40 OR X_41 OR X_42 OR X_43 OR X_44 OR X_45,HIGH*1.01,2);

DRAWICON(X_39 OR X_40 OR X_41 OR X_42 OR X_43 OR X_44 OR X_45,HIGH*1.03,27);

DRAWTEXT(X_39 OR X_40 OR X_41 OR X_42 OR X_43 OR X_44 OR X_45,HIGH*1.05,'逃'),COLORGREEN;

DRAWNUMBER(X_39 OR X_40 OR X_41 OR X_42 OR X_43 OR X_44 OR X_45,HIGH*1.07,REF(CLOSE,1)),LINETHICK9;

通达信大资金活动指标公式