源码
{295、HZ大盘顶底}{n1,60,13}
N:=16;
Var2:=MA(CLOSE,194.16);
Var3:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
STICKLINE((CROSS(84,Var3)),0,43,12,0),colorred;
DRAWTEXT((CROSS(84,Var3)),50,'预警'),colorred;
趋势线一:WINNER(CLOSE)*60,colorffff00;
天字大盘线:=100*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39));
Var4:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA
(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
天字主力线:=(-1)*(EMA((100-Var4),1)-50)+50;
Var1:=EMA(CLOSE,2)-EMA(CLOSE,150);
Var21:=EMA(Var1,100);
Var31:=(Var1-Var21)*2;
Var2A:=POW(Var31,3)*0.1+POW(Var3,1);
Var2F:=IF(Var31>0.1,Var2A,0)*5;
黑马针:=Var2F;
沪市底:stickline(趋势线一<0.3 and 黑马针=0,0,35,6,0),colorwhite;
沪市波段底:stickline(cross(趋势线一,11),0,35,6,0),colorgreen;
小底:stickline(cross(趋势线一,29) and 天字大盘线<33,0,18,6,0),colorff00ff;
深市底:stickline( 趋势线一<0.12 and 黑马针=0,0,25,6,1),colorffff00;
深市波段底:stickline(cross(趋势线一,26),0,25,6,1),coloryellow;
DRAWTEXT((CROSS(趋势线一,8)),趋势线一,'起跳'),colorFF00FF;
0,coloryellow;
个股安全线:8,colorff00ff;
大盘个股参考:0,colorwhite;