通达信高低四区副图源码
公式原码
副图高低四区( 源码 贴图 )
常言曰:物极必反,股票涨跌亦然,现奉献此指标,从短中线的涨跌可见一斑。
副图高低四区源码
N:=8{GPGS};
N1:=13{GPGS};
JL:=Ema(vol,13){GPGS};
JE:=ema(AMOUNT,13){GPGS};
JX:=((JE / JL) / 100){GPGS};
GL:=(((CLOSE - JX) / JX) * 100){GPGS};
绝对底:=GL<(0-18){GPGS};
大底:=GL<(0-14){GPGS};
中底:=GL<(0-10){GPGS};
短底:=GL<(0-6){GPGS};
P1:=N;{N是天的参数可根据需要设定}
P2:=N1;{N1也是天的参数,可根据需要设定,但N必须小于N1}
VAR1:=LLV(LOW,P1){GPGS};
VAR2:=HHV(HIGH,P1){GPGS};
STICKLINE((GL < (0 - 18)),60,85,3,0),COLORWHITE{GPGS};
STICKLINE((GL < (0 - 14)),40,60,3,0),COLORYELLOW{GPGS};
STICKLINE((GL < (0 - 10)),20,40,3,0),COLORBLUE{GPGS};
STICKLINE((GL < (0 - 6)),0,20,3,0),COLORRED{GPGS};
STICKLINE((GL > (0 - 18)),60,85,3,-1),COLORMAGENTA{GPGS};
STICKLINE((GL > (0 - 14)),40,60,3,1),COLORLICYAN{GPGS};
STICKLINE((GL > (0 - 10)),20,40,3,-2),COLORBLUE{GPGS};
STICKLINE((GL > (0 - 6)),0,20,3,2),COLORLIBLUE{GPGS};
短A: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORCYAN,LINETHICK3{GPGS};
算B: EMA(0.667*REF(短A,1)+0.333*短A,2),COLORYELLOW,LINETHICK3;
高抛区:85,COLORWHITE{GPGS};
低吸区:20,COLORRED{GPGS};
VARA:=(2*CLOSE+HIGH+LOW+OPEN)/5{GPGS};
高抛: 80, POINTDOT{GPGS};
VARB:=LLV(LOW,34){GPGS};
VAR3:=HHV(HIGH,34){GPGS};
中A: EMA((VARA-VARB)/(VAR3-VARB)*100,13),COLORRED,LINETHICK3{GPGS};
中B: EMA(中A,3),COLORWHITE,LINETHICK3{GPGS};
IF(中A<REF(中A,1),中A,DRAWNULL),COLORYELLOW,LINETHICK4{GPGS};
IF(中A>REF(中A,1),中A,DRAWNULL),COLORRED,LINETHICK4;
强弱分界: 50;
STICKLINE(中A>85,100,88,2,1),COLORLIMAGENTA{GPGS};
STICKLINE(中A<20,20,8,2,1),COLORYELLOW;
{+W_W-W_G-P_G_S_C*N~{~}