趋势顶底实战指标介绍
趋势顶底实战指标
{
50,COLORRED;
FILLRGN(1,20,80),color222222;
FILLRGN(1,90,100),color000068;
FILLRGN(1,79,90),color663366;
FILLRGN(1,10,20),color666600;
FILLRGN(1, 0,10),color663300;
}
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
d:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),linethick2;
长期线:A+100,color9900FF;
短期线:B+100,color888888;
中期线:d+100,coloryellow,linethick2;
{见顶:(长期线>85 or ref(长期线,1)>85 ) and (cross(中期线,短期线) or cross(ref(中期线,1),ref(短期线,1)) )and cross(长期线,短期线);
}
见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;
顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5
and 短期线<中期线 and 短期线<长期线+4;
顶部:=filter(顶部区域,4);
{DRAWICON( 见顶, 108, 2 );}
底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))
or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;
stickline( {见顶 or} 顶部,99,103,20,1 ),colorred,linethick2;
stickline( 底部区域,-4,0,22,0 ),colorgreen;
低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线
and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线 or ref( 短期线,1)<1 );
stickline( 低位金叉,0,5,11,0 ),colorred;
VAR1:=3;
VAR2:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
股价启动在即:IF(CROSS(VAR2,VAR1),90,0),COloryellow;
秘密买点:IF((VAR2 <= 3),45,0),COlorFF00FF;
机构建增补仓:IF((VAR2 < 5),65,0),COlor00FF00;;;
VARAa:=LLV(LOW,35);
VARBa:=HHV(HIGH,30);
VARCa:=EMA((CLOSE-VARAa)/(VARBa-VARAa)*4,4)*25;
趋势:= VARCa,COLORFF00FF,LINETHICK2;
底背: STICKLINE(VARCa<10 AND 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))>97,0,25,5,0),COLORYELLOW;
顶背: STICKLINE(VARCa>90,100,85,3,0),COLORRED,linethick1;
VARDa:=87.5;
VAREa:=(VARCa-LLV(VARCa,4))/(HHV(VARCa,4)-LLV(VARCa,4))*4*25;
目标位: DRAWTEXT(IF(CROSS(趋势,VARDa) AND VAREa=100,50,0),56,'目标'),COLORFF00FF;
跑: DRAWTEXT(IF(CROSS(VARDa,趋势),87,0),100,'●跑'),COLOR00FF00;
卖: DRAWTEXT(IF(CROSS(趋势,VAREa) AND 趋势>87,87,0),70,'卖'),COLOR00FF00;
VAR6a:=(2*C+H+L)/4;
VAR8a:=LLV(LOW,30);
VARA1:=HHV(HIGH,30);
Ba:=EMA((VAR6a-VAR8a)/(VARA1-VAR8a)*100,8);
B1a:=EMA(Ba,5);
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,21);
VA:=HHV(HIGH,34);
防线B:=EMA((V1-V2)/(VA-V2)*100,13);
防线BB:=EMA((0.667*REF(防线B,1)+0.333*防线B),2);
战略线:=EMA(0.382*REF(防线B,2)+0.618*防线B,12),COLORffffff,linethick3;
80,COLOR996699;
20,COLORGREEN;
10,COLORCC6633,LINETHICK2;
90,COLOR9966FF,LINETHICK2;
gd19517