飛狐,分析家 {周月K線} voo:=month<>ref(month,1); vd11:=barslast(voo); vd22:=ref(vd11,vd11+1); ccc:=ref(c,vd11+1); koo:=ref(o,vd22+1); hhh:=hhv(ref(h,1),vd22); lll:=llv(ref(l,1),vd22); vo:=weekday=1; vd1:=barslast(vo); vd2:=ref(vd1,vd1+1); cc:=ref(c,vd1+1); ko:=ref(o,vd2+1); hh:=hhv(ref(h,1),vd2); ll:=llv(ref(l,1),vd2); stickline(vo and cc>ko,cc,ko,4,0),colorred; stickline(vo and cc>ko,hh,ll,1,0),colorred; stickline(vo and cc<=ko,cc,ko,4,0),colorFFFF52; stickline(vo and cc<=ko,hh,ll,1,0),colorFFFF52; 周收陽:if(vo and cc>ko,cc,ko),colorred,linethick0; 周收陰:if(vo and cc<=ko,cc,ko),colorFFFF52,linethick0; stickline(voo and ccc>koo,ccc,koo,4,0),colorff00ff; stickline(voo and ccc>koo,hhh,lll,1,0),colorff00ff; stickline(voo and ccc<=koo,ccc,koo,4,0),color00dd00; stickline(voo and ccc<=koo,hhh,lll,1,0),color00dd00; 月收陽:if(voo and ccc>koo,ccc,koo),colorff00ff,linethick0; 月收陰:if(voo and ccc<=koo,ccc,koo),color00bb00,linethick0; {紅表示周收陽,淺綠表示周收陰,, 粉表示月收陽,,綠表示月收陰,。}; -------------------------- 大智慧 {周月K線} voo:=month<>ref(month,1); vd11:=barslast(voo); vd22:=ref(vd11,vd11+1); ccc:=ref(c,vd11+1); koo:=ref(o,vd22+1); hhh:=hhv(ref(h,1),vd22); lll:=llv(ref(l,1),vd22); vo:=weekday=1; vd1:=barslast(vo); vd2:=ref(vd1,vd1+1); cc:=ref(c,vd1+1); ko:=ref(o,vd2+1); hh:=hhv(ref(h,1),vd2); ll:=llv(ref(l,1),vd2); stickline(vo and cc>ko,cc,ko,4,0),colorred; stickline(vo and cc>ko,hh,ll,1,0),colorred; stickline(vo and cc<=ko,cc,ko,4,0),colorFFFF52; stickline(vo and cc<=ko,hh,ll,1,0),colorFFFF52; 周收陽:if(vo and cc>ko,cc,ko),colorred,pointdot; 周收陰:if(vo and cc<=ko,cc,ko),colorFFFF52,pointdot; stickline(voo and ccc>koo,ccc,koo,4,0),colorff00ff; stickline(voo and ccc>koo,hhh,lll,1,0),colorff00ff; stickline(voo and ccc<=koo,ccc,koo,4,0),color00dd00; stickline(voo and ccc<=koo,hhh,lll,1,0),color00dd00; 月收陽:if(voo and ccc>koo,ccc,koo),colorff00ff,pointdot; 月收陰:if(voo and ccc<=koo,ccc,koo),color00bb00,pointdot; {紅表示周收陽,,淺綠表示周收陰,, 粉表示月收陽,綠表示月收陰,。}股票論壇 www.55188.com |
|