通达信三道防线多空指标公式
通达信三道防线多空指标公式:
80,COLORRED;
VAR1:=(HHV(HIGH,9)-LLV(LOW,9));
VAR2:=(HHV(HIGH,9)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,9));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*C+H+L)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IF(VAR9>100,VAR9-100,0);
VARA:=HHV(HIGH,34);
防线A:VAR10*2, COLORGREEN;
SMA(防线A,2,1),COLORMAGENTA;
防线B:EMA((VAR6-VAR8)/(VARA-VAR8)*100,13),COLORCYAN;
B1:=EMA(0.667*REF(防线B,1)+0.333*防线B,2);
B1,COLORRED;
防线C:SMA(VAR5,20,1),COLORBLUE;
SMA(防线C,5,1),COLORBROWN;
A:=SMA(防线A,2,1)-防线A;
B:=EMA(0.667*REF(防线B,1)+0.333*防线B,2)-防线B;
S:EMA(0.382*REF(防线B,2)+0.618*防线B,12),COLORYELLOW;
STICKLINE(REF(防线A,1)<防线A,防线A,SMA(防线A,2,1),5,0),COLORGREEN ;
STICKLINE(REF(防线A,1)>防线A,防线A,SMA(防线A,2,1),5,0),COLORMAGENTA;
STICKLINE(防线B-B1>0,防线B,B1,5,0),COLORCYAN;
STICKLINE(防线B-B1<0,防线B,B1,5,0),COLORRED;
STICKLINE(防线C-SMA(防线C,5,1)>0,防线C,SMA(防线C,5,1),5,0),COLORBLUE;
STICKLINE(防线C-SMA(防线C,5,1)<0,防线C,SMA(防线C,5,1),5,0),COLORBROWN;
通达信三道防线多空指标公式实例图解:
通达信三道防线多空指标公式