下面是公式指標,希望看貼的朋友能回帖,就是頂一下也好,或者NO,也是對一個新人莫大的安慰variable:y11=0,y12=0,y21=0,y22=0,y31=0,y32=0;
REFLINE: 0, 20, 50, 80, 100;
LC := REF(CLOSE,1);
ZC:=IF(BARPOS=1,1,DAYS1970-ref(DAYS1970,1)<>WEEKDAY-ref(WEEKDAY,1));
{上市第一日ZC取1,每周初交易日取1,其他交易日取0 }
M:=BARSLAST(ZC)+1; { 最后一周交易日 }
LC := REF(CLOSE,m);
y1:=max(CLOSE-LC,0);
y2:=abs(CLOSE-LC);
y11:=(y1+(n1-1)*ref(y11,m))/n1;
y12:=(y2+(n1-1)*ref(y12,m))/n1;
rsiw1:y11/y12*100;
y21:=(y1+(n2-1)*ref(y21,m))/n2;
y22:=(y2+(n2-1)*ref(y22,m))/n2;
rsiw2:y21/y22*100;
y31:=(y1+(n3-1)*ref(y31,m))/n3;
y32:=(y2+(n3-1)*ref(y32,m))/n3;
rsiw3:y31/y32*100;
STICKLINE(DAYS1970-ref(DAYS1970,1)<>WEEKDAY-ref(WEEKDAY,1) ,0 ,10 ,0.8 ,1 ),colorffffff;
{ 標記每周第一個交易日 }(南方財富網SOUTHMONEY.COM)
(責任編輯:張曉軒)