源码

均价:sum(AMOUNT,1)/sum(v,1)/100,PRECISION2,LINETHICK0;
均价差:(均价-ref(均价,1))/ref(均价,1)*1000,LINETHICK0;
 sma1:=sma(均价差,3,1);
 sma2:=sma(均价差,8,1);
 DRAWTEXT(均价差>0,0,’☆’),COLOR0000FF,PXUP8;
 DRAWTEXT(均价差<0,0,’☆’),COLOR00FF00,PXUP8;
 STICKLINE(sma1>sma2,sma1,sma2,6,0),color955fDc;
 STICKLINE(sma1>20,sma1,20,6,0),color00ff;
 STICKLINE(sma1>sma2 AND sma1<10,sma1,sma2,6,0),color55DDfc;
 STICKLINE(sma1<sma2,sma1,sma2,6,0),colordd9966;
 STICKLINE(sma1<-20,sma1,-20,6,0),colorff6600;
 STICKLINE(sma1<sma2 AND sma1>-10,sma1,sma2,6,0),color99DD66;

看线:ma((sma1+sma2+均价差)/3,3),COLORFFFF99,LINETHICK2;
 PARTLINE(MA(C,5)>REF(MA(C,5),1),看线),COLOR0000FF,LINETHICK2;

6,LINEDOT,colorffffff;-6,LINEDOT,colorffffff;
 20,LINEDOT,colorffffff;-20,LINEDOT,colorffffff;

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