N:=5;
var1:=(c-ma(c,21))/ma(c,21)*200;
var2:=(c-llv(l,43))/(hhv(h,43)-llv(l,43))*200;
var3:=sma(var2,2,1);
顶:170+-(abs(var1));生死线:100;
底:abs(var1);
股价:sma(var3,2,1);
STICKLINE(股价<底,100,0,3,0),coloryellow;
DRAWTEXT(股价<底 ,120,'▲'),coloryellow;
stickline(股价>顶,200,100,3,0),colorred;
DRAWTEXT(股价>顶 ,120,'▼'),colorred;
LZ:=(H+L+O+C)/4;
VAR1:=forcast((1-(MA(LZ,5))/MA(LZ,35))*100-N/10,25);
HZ:=IF(VAR1>0,10*(VAR1*REF(LZ,3))/C,0);
FNZH:=IF(HZ>100 and HZ<130,99,IF(HZ>130,100,HZ));
慨率准不准:IF(HZ>0,FNZH,0),,Colorwhite;
STICKLINE(HZ>99,0,FNZH,1,0),colorblue;
202108211152.jpg
|