以下是同花顺操盘线主图源码

操盘线主图源码:

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; 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。