你的编写要求描述的不够详细,不知道是不是这样子的:
收盘价大于30日均线以上的K线,上涨为红色空心K线,下跌为红色实心k线,反之为绿色?
MA30:MA(C,30);
STICKLINE(CLOSE>OPEN AND C>MA30,C,O,3,1),COLORRED;
STICKLINE(CLOSE<OPEN AND C>MA30,H,L,0,0),COLORRED;
STICKLINE(CLOSE<OPEN AND C>MA30,O,C,3,0),COLORRED;
STICKLINE(CLOSE>OPEN AND C<MA30,C,O,3,1),COLORCYAN;
STICKLINE(CLOSE>OPEN AND C<MA30,H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(CLOSE>OPEN AND C<MA30,L,MIN(O,C),0,0),COLORCYAN;
STICKLINE(CLOSE<OPEN AND C<MA30,H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(CLOSE<OPEN AND C<MA30,L,MIN(O,C),0,0),COLORCYAN; |