压力分析 通达信主图指标 贴图
压力分析 通达信主图指标 贴图
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;
- 上一篇公式:主力游资散户 底部游资 通达信副图公式 源码 贴图
- 下一篇公式:轻松抄底逃顶 通达信副图指标 源码 贴图