周期的统计涨幅.成交量甚至资金其实很有意义.周期k线
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
查看完整内容【开通VIP会员】
VIP会员数十万个公式随便用