日天波段和日天主图选股 通达信主/副图指标 源码 贴图
{公式名称: 日天主图选股副图}
VAR1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
VAR2:=DMA(CLOSE,VAR1);
VAR3:=(1-10/100)*VAR2;
VAR4:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR5:=SMA(VAR4,2,1);
VAR6:=SMA(VAR5,2,1);
VAR7:=3*VAR5-2*VAR6;
VAR8:=CROSS(VAR7,0);
VAR9:=EMA(CLOSE,15)-EMA(CLOSE,26);
VAR10:=EMA(VAR9,5);{www.9m8.cn 九毛八公式指标网}
VAR11:=2*(VAR9-VAR10);
VAR12:=VAR11 0 AND VAR11 REF(VAR11,1) AND REF(VAR11,1) REF(VAR11,2);
VAR13:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR14:=SMA(VAR13,2,1);
VAR15:=SMA(VAR14,2,1);
VAR16:=3*VAR14-2*VAR15;
买入:VAR8 AND VAR12 AND HIGH =VAR3;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
压力:PEAK(CLOSE,10,1)*0.98,COLORRED,LINETHICK2;
支撑:TROUGH(CLOSE,10,1)*1.02,COLORGREEN,LINETHICK2;
VAR1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
VAR2:=DMA(CLOSE,VAR1);
安全线:(1-10/100)*VAR2,DOTLINE,COLORMAGENTA;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,2,1);
VAR5:=SMA(VAR4,2,1);
VAR6:=3*VAR4-2*VAR5;
VAR7:=CROSS(VAR6,0);
VAR8:=EMA(CLOSE,15)-EMA(CLOSE,26);
VAR9:=EMA(VAR8,5);
VAR10:=2*(VAR8-VAR9);{www.9m8.cn 九毛八公式指标网}
VAR11:=VAR10 0 AND VAR10 REF(VAR10,1) AND REF(VAR10,1) REF(VAR10,2);
DRAWICON(VAR7 AND VAR11,LOW*0.93,11);
VAR12:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR13:=SMA(VAR12,2,1);
VAR14:=SMA(VAR13,2,1);
VAR15:=3*VAR13-2*VAR14;
VAR16:=CROSS(VAR15,0) AND HIGH =安全线;
DRAWICON(VAR16,LOW*0.97,25);
VAR17:=(CLOSE+HIGH+LOW)/3;
VAR18:=EMA(VAR17,5);
VAR19:=REF(VAR18,1);
持股:STICKLINE(VAR18 VAR19,VAR18*0.98,VAR19*0.98,3,0),COLORYELLOW;
DRAWTEXT_FIX(1,0.85,0,0,STRCAT(1,0)),COLORBLUE;
DRAWTEXT_FIX(1,0.85,0.1,0,STRCAT(2,0)),COLORBLUE;