TAG:

nt:=barslast(month<>ref(month,1));
涨幅:SUM(IF(C>=ref(c,1),(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 ),COLORred,LINETHICK1;
总跌幅:SUM(IF(ref(c,1)>C,(C-ref(c,1))/ref(c,1)*-100,0) ,nt+1 ),COLORgreen;
五点以上总涨:SUM(IF(C>=ref(c,1)*1.05,(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 ),COLORyellow
,LINETHICK2;
中涨:SUM(IF(C>=ref(c,1)*1.03 and ref(c,1)*1.05>C ,(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 ),COLORMAGENTA
,LINETHICK2;
小涨:SUM(IF(C>=ref(c,1) and ref(c,1)*1.03>C ,(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 ),COLORMAGENTA
,LINETHICK1;
总涨比例:SUM(IF(C>=ref(c,1),(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 )*100/(SUM(IF(C>=ref(c,1),(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 )-SUM(IF(ref(c,1)>C,(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 )),COLORred,LINETHICK0;
总跌比例:SUM(IF(ref(c,1)>C,(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 )*100/(SUM(IF(C>=ref(c,1),(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 )-SUM(IF(ref(c,1)>C,(C-ref(c,1))/ref(c,1)*100,0) ,nt+1 )),COLORgreen,LINETHICK0;
大涨比例:五点以上总涨/总涨幅*100,COLORred,LINETHICK0;
五点:SUM(IF(-5>=(C-ref(c,1))/ref(c,1)*100,(C-ref(c,1))/ref(c,1)*-100,0) ,nT+1 ),COLORgreen
,LINETHICK3;
中:SUM(IF(-3>(C-ref(c,1))/ref(c,1)*100 and (C-ref(c,1))/ref(c,1)*100>-5,(C-ref(c,1))/ref(c,1)*-100,0) ,nT+1 ),COLORgreen
,LINETHICK2;
小:SUM(IF((C-ref(c,1))/ref(c,1)*100>-3 and 0>(C-ref(c,1))/ref(c,1)*100,(C-ref(c,1))/ref(c,1)*-100,0) ,nT+1 ),COLORgreen
,LINETHICK1;
0,LINETHICK2;
VERTLINE(nt=0,2),COLORFFEEBB;
DRAWTEXT(BARSTATUS=2,总涨幅,'总涨'),VALIGN2,COLORred;
DRAWTEXT(BARSTATUS=2,五点以上总涨,'大涨'),VALIGN2,COLORyellow;
DRAWTEXT(BARSTATUS=2,中涨,'中涨'),VALIGN2,COLORMAGENTA;
DRAWTEXT(BARSTATUS=2,小涨,'小涨'),VALIGN2,COLORMAGENTA;
DRAWTEXT(BARSTATUS=2,总跌幅,'总跌'),VALIGN2,COLORgreen;
DRAWTEXT(BARSTATUS=2,五点,'大跌'),VALIGN2,COLORgreen;
DRAWTEXT(BARSTATUS=2,中,'中跌'),VALIGN2,COLORgreen;
DRAWTEXT(BARSTATUS=2,小,'小跌'),VALIGN2,COLORgreen;
DRAWTEXTABS(0,15,'左右逢源之四季如春'),COLORgreen;
DRAWTEXTABS(0,0,'月度涨幅统计'),COLORYELLOW;
DRAWTEXTABS(150,0,'《左右逢源qq交流-445733181》'),COLOR0000FF;

大智慧周期的统计涨幅指标公式

智慧周期的统计涨幅指标公式的选股公式如下: