我把上圖的公式源碼放在這兒: a1:=INDEXC;收:a1,pointdot; a2:=INDEXO;開:a2,pointdot; a3:=INDEXH;高:a3,pointdot; a4:=INDEXL;低:a4,pointdot; 大盤漲跌幅:(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100,linethick0; 個(gè)股漲跌幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,linethick0; stickline(a1>a2,a1,a2,7,1),colorred; stickline(a1>a2,a3,max(a1,a2),0,0),colorred; stickline(a1>a2,min(a1,a2),a4,0,0),colorred; stickline(a1<a2,a1,a2,7,0),colorcyan; stickline(a1<a2,a3,max(a1,a2),0,0),colorcyan; stickline(a1<a2,min(a1,a2),a4,0,0),colorcyan; m5:ma(a1,5); m10:ma(a1,10); m20:ma(a1,20); M60:MA(a1,60); M120:MA(a1,120); |
|