飞狐天字线副图指标
源码
TZ: 100*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39));
HZ1: 0;
HZ2: 25;
HZ3: 34;
HZ4: 50;
HZ5: 90;
IF(TZ
IF(TZ>HZ2,34,0);
DRAWICON(CROSS(TZ,HZ2),35,2);
DRAWICON(CROSS(HZ3,TZ),35,1);
Var1:=(CLOSE-LLV(LOW,39))/(HHV(HIGH,60)-LLV(LOW,39))*100;
天字线: SMA(Var1,5,1)-8;Var2:=REF(LOW,1);
Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100;
Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3);
Var5:=LLV(LOW,60);
Var6:=HHV(Var4,1);
Var7:=IF(MA(CLOSE,1),1,0);
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
Var9:=IF(Var8>1,20,Var8);
STICKLINE(Var8>1,0,Var9,3,0);
DRAWTEXT(Var8>1 AND CROSS(12,天字线),33,'溜 马 期');
DRAWTEXT(Var8>1 AND CROSS(8,天字线),33,'溜 马 期');
DRAWTEXT(Var8>1 AND CROSS(0,天字线),33,'溜 马 期');
DRAWTEXT(Var8>1 AND CROSS(天字线,10),33,'溜 马 期');
DRAWTEXT(Var8>1 AND CROSS(天字线,20),33,'溜 马 期');
DRAWTEXT(Var8>1 AND CROSS(天字线,19.5),33,'溜 马 期');
DRAWTEXT(Var8>1 AND CROSS(天字线,8.4),33,'溜 马 期');