「翔博精选指标」快进快出,紫色买绿色卖(通达信公式 主图 源码
2022-04-13原创 编 辑:翔博软件
公式的用法:粉底红顶是买点,绿顶黄底是卖点
{公式名称: 快进快出
{公式名称: 快进快出
公式描述: 紫色买绿色卖
公式源码:}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.3,0.03,0,75),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.3,0.2,0,76),COLORYELLOW;
X_1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
X_2:=REF(X_1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_3:=REF(X_2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_4:=REF(X_3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_5:=REF(X_4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_6:=REF(X_5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_7:=REF(X_6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_8:=REF(X_7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_9:=REF(X_8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_10:=REF(X_9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_11:=REF(X_10,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_12:=REF(X_11,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(X_1 OR X_2 OR X_3 OR X_4 OR X_5 OR X_6 OR X_7 OR X_8 OR X_9 OR X_10 OR X_11 OR X_12,CLOSE,REF(CLOSE,1),3,0),COLORRED;
X_13:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
X_14:=REF(X_13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_15:=REF(X_14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_16:=REF(X_15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_17:=REF(X_16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_18:=REF(X_17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_19:=REF(X_18,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_20:=REF(X_19,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_21:=REF(X_20,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_22:=REF(X_21,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_23:=REF(X_22,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_24:=REF(X_23,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),3,0),COLORYELLOW;
X_25:=REF(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,1) AND X_1;
STICKLINE(X_25,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA;
X_26:=REF(X_1 OR X_2 OR X_3 OR X_4 OR X_5 OR X_6 OR X_7 OR X_8 OR X_9 OR X_10 OR X_11 OR X_12,1) AND X_13;
STICKLINE(X_26,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR008800;
X_27:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
X_28:=SMA(X_27,3,1);
X_29:=SMA(X_28,3,1);
X_30:=3*X_28-2*X_29;
X_31:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
X_32:=SMA(X_31,3,1);
X_33:=SMA(X_32,3,1);
X_34:=3*X_32-2*X_33;