drawicon(cross(b,d) ,bottom,0);
drawicon(cross(d,b) ,top,1);
drawkline('k', kline);
drawtext(cross(aa20,aa10),aa20*0.99871,'▼',cllime,2);
drawtext(cross(aa10,aa20),aa20*1.00685,'▲',clyellow,2);
stickline(bb20<1,aa20,ref(aa20,1),8,1,clwhite);
stickline(bb20>1,aa20,ref(aa20,1),8,1,clyellow);
stickline(bb10<1,aa10,ref(aa10,1),8,1,cllime);
stickline(bb10>1,aa10,ref(aa10,1),8,1,clred);
a:=(3*c+l+o+h)/6;
b:(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/210, color000000, line;
d:ma(b,10), color000000, line;
支撑极限:llv(a,21), color00FFFF, line;
阻力极限:hhv(a,21), color0000FF, line;
q:=(3*close+high+low+open)/6;
aa10:=ema(q,10);
bb10:=arctan((aa10-ref(aa10,1)))*180/3.1416;
aa20:=ma(q,26);
bb20:=arctan((aa20-ref(aa20,1)))*180/3.1416;
mid:ma(close,n), color000000, line;
tmp2:=std(close,m);
top:mid+p*tmp2, color808000, line, pensize2;
bottom:mid-p*tmp2, color808000, line, pensize2;
ah:=hhv(high,m);
al:=llv(low,m);
ac:=(hhv(close,m)+llv(close,m))/2; |