通達信開紅花買波段指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2018-09-14 來源:互聯網
通達信開紅花買波段指標公式:
N:=21;
VAR1:=(CLOSE+LOW+HIGH)/3;
VAR2:=SUM(((VAR1-REF(LOW,3))-(HIGH-VAR1))*VOL/10000/(HIGH-LOW),1);
VAR3:=EMA(VAR2,3),COLORFFEE3C;
JCS0:VAR3,CIRCLEDOT,LINETHICK1,COLORFFEE3C;
波段買入或持股:IF(JCS0>REF(JCS0,1),JCS0,DRAWNULL),LINETHICK4;
波段賣出或觀望:IF(JCS0<REF(JCS0,1),JCS0,DRAWNULL),LINETHICK3,COLORFFEE3C;
IF(VAR1>REF(VAR1,1),VAR3,10),CIRCLEDOT,COLORRED,LINETHICK2;
IF(VAR1<REF(VAR1,1),VAR3,10),CIRCLEDOT,COLOR00FF00,LINETHICK2;
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
JCS:=VAR3;
JCS1:VAR3,COLORRED,CIRCLEDOT,LINETHICK1;
JCS2:VAR3,COLORRED,,LINETHICK1;
JCM:=MA(VAR3,12)COLORYELLOW;
JCL:=MA(VAR3,26)COLORMAGENTA;
JCM1:IF(JCM<VAR3,JCM,DRAWNULL),,COLORYELLOW,LINETHICK2;
JCM2:IF(JCM>VAR3,JCM,DRAWNULL),,COLORBLUE,LINETHICK2;
JCL1:IF(JCL<VAR3,JCL,DRAWNULL),,COLORMAGENTA,LINETHICK2;
JCL2:IF(JCL>VAR3,JCL,DRAWNULL),,COLORCYAN,LINETHICK2;
開紅花大漲:=FILTER(CLOSE/REF(CLOSE,3)>=1.1,3);
買入:=IF((開紅花大漲 AND COUNT(開紅花大漲,3)=1),30,0),COLORYELLOW,LINETHICK3;
OP:=STICKLINE(買入,O,C,4,0)COLORYELLOW;
B:IF(買入>0 ,JCL,DRAWNULL),CROSSDOT,LINETHICK6,COLORRED;
B2:IF(買入>0 ,JCL,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;
開藍花跌:=VAR1A;
賣出:=IF((開藍花跌 AND COUNT(開藍花跌,3)=1),30,0),COLORYELLOW,LINETHICK3;
OP1:=STICKLINE(開藍花跌,O,C,4,0)COLORYELLOW;
IF(賣出>0 ,JCL,DRAWNULL),CROSSDOT,LINETHICK6,COLORCYAN;
IF(賣出>0 ,JCL,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;
通達信開紅花買波段指標公式實例圖解:
通達信開紅花買波段指標公式