通达信撑压线指标源码
X_72:=ATAN((REF(LOW,X_68)-REF(LOW,X_69))/REF(LOW,X_69)/(X_69-X_68)*100)/3.141593*180;
X_73:=ATAN((REF(HIGH,X_70)-REF(HIGH,X_71))/REF(HIGH,X_71)/(X_71-X_70)*100)/3.141593*180;
X_74:=X_66=(-1) AND BACKSET(ISLASTBAR,X_69+1);
X_75:=X_66=(-1) AND BACKSET(ISLASTBAR,X_68+1);
X_76:=X_67=1 AND BACKSET(ISLASTBAR,X_71+1);
X_77:=X_67=1 AND BACKSET(ISLASTBAR,X_70+1);
压力:REF(HIGH,X_71)*(1+TAN(X_73*3.141593/180)/100*X_71),NODRAW;
支撑:REF(LOW,X_69)*(1+TAN(X_72*3.141593/180)/100*X_69),NODRAW;
NOTEXT撑:DRAWLINE(X_74,LOW,X_75,LOW,1),COLORRED;
NOTEXT压:DRAWLINE(X_76,HIGH,X_77,HIGH,1),COLORGREEN;
X_78:=IF(X_68>X_70,X_70>=4 OR COUNT(X_7=(-1),X_70)>0,0);
X_79:=IF(X_68<X_70,X_68>=4 OR COUNT(X_7=1,X_68)>0,0);
X_80:=X_72>=0 AND X_68<X_70 AND REF(HHV(CLOSE,X_70),1)<=REF(HIGH,X_70) AND CLOSE>REF(HIGH,X_70);
DRAWICON(BARSSINCEN(X_80,X_70)+1=1,LOW*0.97,28);
DRAWLINE(X_77,HIGH,BARSSINCEN(X_80,X_70)+1=1,REF(HIGH,X_70),0),DOTLINE,COLORGREEN;
X_81:=X_78 OR X_79 AND X_72>=0 AND X_73<0 AND 支撑<压力 AND CLOSE>压力;
DRAWICON(BARSSINCEN(X_81,X_70)+1=1,LOW*0.95,29);
X_82:=X_78 OR X_79 AND X_72<0 AND X_72>X_73 AND X_73<0 AND X_73>(-45) AND CLOSE>压力;
DRAWICON(BARSSINCEN(X_82,X_70)+1=1,LOW*0.93,30);
- 上一篇公式:通达信精品中的精品:撑压线模拟版
- 下一篇公式:矩形突破选股 源码