通达信压力分析主图指标公式
2021/2/16 18:25:20
{使用说明:图中每条线都是压力线,相反每一条也是支撑线。股价在一些压力点附近来回震荡,下跌过程中绿线成为支撑点,上涨过程中绿线就成了压力点。}
M:=1.5;
A:=V>=REF(V,1)*M AND C>O;
T:=BARSLAST(A);
T1:=REF(T,T+1)+1+T+1;
T2:=REF(T1,T+1)+T+1;
T3:=REF(T2,T+1)+T+1;
T4:=REF(T3,T+1)+T+1;
AA1:=V>=REF(V,1)*M AND COUNT(L=LLV(L,15),5)>=1 AND C<O;
TT:=BARSLAST(AA1);
TT1:=REF(TT,TT+1)+1+TT+1;
TT2:=REF(TT1,TT+1)+TT+1;
TT3:=REF(TT2,TT+1)+TT+1;
TT4:=REF(TT3,TT+1)+TT+1;
H1:=IF(A,C,0);
L2:=IF(A,O,0);
D1:=(SUM(H1,SUMBARS(H1>0,5)))/5,LINETHICK2,COLORWHITE;
D2:=(SUM(L2,SUMBARS(L2>0,5)))/5,LINETHICK2,COLORMAGENTA;
第一压力位:(D1+D2)/2,LINETHICK2,COLORMAGENTA;
HH1:=IF(AA1,C,0);
LL2:=IF(AA1,O,0);
DD1:=(SUM(HH1,SUMBARS(HH1>0,3)))/3;
DD2:=(SUM(LL2,SUMBARS(LL2>0,3)))/3,LINETHICK2,COLORMAGENTA;
第二压力位:=(DD1+DD2)/2,LINETHICK2,COLORWHITE;
AAA1:DRAWLINE(CURRBARSCOUNT=CONST(TT)+1,C,ISLASTBAR,REF(C,TT),0),COLORGREEN;
AAA2:DRAWLINE(CURRBARSCOUNT=CONST(TT1),C,ISLASTBAR,REF(C,CONST(TT1)-1),0),COLORGREEN;
AAA3:DRAWLINE(CURRBARSCOUNT=CONST(TT2),C,ISLASTBAR,REF(C,CONST(TT2)-1),0),COLORGREEN;
AAA4:DRAWLINE(CURRBARSCOUNT=CONST(TT3),C,ISLASTBAR,REF(C,CONST(TT3)-1),0),COLORGREEN;
BBB1:DRAWLINE(CURRBARSCOUNT=CONST(TT)+1,O,ISLASTBAR,REF(O,TT),0),COLORGREEN;
BBB2:DRAWLINE(CURRBARSCOUNT=CONST(TT1),O,ISLASTBAR,REF(O,CONST(TT1)-1),0),COLORGREEN;
BBB3:DRAWLINE(CURRBARSCOUNT=CONST(TT2),O,ISLASTBAR,REF(O,CONST(TT2)-1),0),COLORGREEN;
BBB4:DRAWLINE(CURRBARSCOUNT=CONST(TT3),O,ISLASTBAR,REF(O,CONST(TT3)-1),0),COLORGREEN;
投股票 网 www.tou18.c n
股市公式下载推荐