跨周期引用XCCWEEK:
//30分钟
B30:=STKINDI('','CCD.B',0,4,0);
STICKLINE(B30>=0 ,6.5,7.5,8,0, COLORRED);
STICKLINE(B30<0 , 6.5,7.5,8,0, COLORGREEN );
//1小时
BHOUR:=STKINDI('','CCD.B',0,5,0);
STICKLINE(BHOUR>=0 ,5, 6,8,0,COLORRED );
STICKLINE(BHOUR<0 , 5, 6,8,0, COLORGREEN );
//2小时
B240:=STKINDI('','CCD.B',0,24,0);
STICKLINE(B240>=0,4,4.5,8,0,COLORRED);
STICKLINE(B240<0,4,4.5,8,0,COLORGREEN);
//日
BDAY:=STKINDI('','CCD.B',0,6,0);
STICKLINE(BDAY>=0,2.5,3.5,8,0,COLORRED);
STICKLINE(BDAY<0,2.5,3.5,8,0,COLORGREEN);
//周线
BWEEK:=STKINDI('','CCD.B',0,7,0);
STICKLINE(BWEEK>=0,1,2,8,0,COLORRED);
STICKLINE(BWEEK<0,1,2,8,0,COLORGREEN);
这个画出来了部分柱线,显示的颜色和我想要的相反。 |