源码
N:=5;
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;
STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;
STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;
cb:=(HIGH+LOW+CLOSE)/3,LINETHICK0;
cb1:=((ref(cb,1)+ref(cb,2))/2*0.618+cb*0.382),LINETHICK0;
卖预测值:FORCAST(h,n),SHIFT0;
卖估算值:cb1+STD(h,n),SHIFT0;
估算成本:cb1,SHIFT0;
买估算值:cb1-STD(l,n),SHIFT0;
买预测值:FORCAST(l,n),SHIFT0;
A:=(OPEN+HIGH+LOW+CLOSE*2)/5,LINETHICK0;
STICKLINE(BETWEEN(A,HIGH,LOW),A,A,4,0),COLORFFAA33;
s:=(h-a)*0.618+a,LINETHICK0;
STICKLINE(BETWEEN(s,HIGH,a),s,s,2,0),COLORFFAA33;
x:=(a-l)*0.382+l,LINETHICK0;
STICKLINE(BETWEEN(x,l,a),x,x,2,0),COLORFFAA33;
卖出价:(CLOSE*2.5/100+CLOSE),LINETHICK0;
买入价:c-CLOSE*2.5/100,LINETHICK0;