通达信指标公式源码突破瞬间介入主图源码

2020-11-05 17:52:11

N:=9;M1:=3;M2:=3;

短线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORRED,LINETHICK2;

中线:SMA(短线,M1,1),COLORMAGENTA;

空线:SMA(中线,M2,1),COLORLIGREEN;

BB:=IF(BARSLAST(CROSS(中线,短线))>=3 AND CROSS(短线,中线) AND 中线<30,20,0);

买:IF(BB,-20,-40),COLORRED;DRAWICON(BB>0,-35,1);

AA:=IF(BARSLAST(CROSS(短线,中线))>=4 AND CROSS(中线,短线) AND 短线>50,20,0);

STICKLINE(AA,100,120,1,0),COLORLICYAN;

卖:IF(AA,120,140),COLORLICYAN;

VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,-5),10,1);

VAR3:=EMA(VAR2,10);

VAR4:=LLV(LOW,33);

VAR5:=EMA(IF(LOW<=VAR4,VAR3,-5),3);机构:IF(VAR5>REF(VAR5,1),VAR5,-5),COLORYELLOW,NODRAW;

STICKLINE(VAR5>REF(VAR5,1),-5,VAR5,3,1 ),COLORYELLOW;

私募:IF(VAR5<REF(VAR5,1),VAR5,-4),COLORLIRED,NODRAW;

STICKLINE(VAR5<REF(VAR5,1),-4,VAR5,3,1),COLORLIRED,NODRAW;

(0)

相关推荐