以下是同花顺操盘线主图源码
操盘线主图源码:
N1:=5;N2:=10;N3:=20;N4:=30;
PP:=((((WINNER(CLOSE) * 100) – MA((WINNER(CLOSE) * 100),24))) / MA((WINNER(CLOSE) * 100),24)) * 100;
MA1:MA(CLOSE,N1);
MA2:MA(CLOSE,N2);
MA3:MA(CLOSE,N3);
MA4:MA(CLOSE,N4);
STICKLINE(((PP > 0) AND (CLOSE > OPEN)),CLOSE,OPEN,6,0),colorFF;
STICKLINE(((PP > 0) AND (CLOSE < OPEN)),(CLOSE * 0.995),(OPEN * 1.005),8,1),colorFF;
STICKLINE(((PP > 0) AND (CLOSE < OPEN)),CLOSE,OPEN,5,0),colorFFFF00;
STICKLINE(((PP < 0) AND (CLOSE < OPEN)),CLOSE,OPEN,6,0),colorFFFF00;
STICKLINE(((PP < 0) AND (CLOSE > OPEN)),(CLOSE * 1.005),(OPEN * 0.995),8,1),colorFFFF00;
STICKLINE(((PP < 0) AND (CLOSE > OPEN)),CLOSE,OPEN,6,0),colorFF;
DRAWTEXT(((PP > 0) AND (REF(PP,1) < 0)),(LOW * 0.99),’B’),ALIGN0,LINETHICK2,colorFFFF;
DRAWTEXT(((PP < 0) AND (REF(PP,1) > 0)),(HIGH * 1.01),’S’),ALIGN0,LINETHICK2,colorFFFFFF;
评论(0)