柱狀換手率副圖指標公式源碼[通達信公式]
?
原理解析:
?
?來源:程序化99( www.kzuj.com.cn )
源碼:
?
成交:=VOL,COLORFFFF00,LINETHICK0;
BB:=CAPITAL;
換手:成交*100/BB,LINETHICK0;
今日換手:換手,LINETHICK0;
HS:SUM(VOL,0)/CAPITAL,LINETHICK0;
換手次數:FLOOR(HS),LINETHICK0;
BBB:=IF(換手次數>0,換手次數,0);
BBB2:=IF(BBB-REF(BBB,1)>0,BBB,0);
距上次完全換手:=BARSLAST(BBB2),LINETHICK0,COLORGREEN;
平均換手天:=FLOOR((BARSCOUNT(CLOSE)-距上次完全換手)/換手次數),COLORCYAN,LINETHICK0;
A2:=成交/CAPITAL*100;
A3:=A2>3 AND A2<=5;
A4:=A2>5 AND A2<=7;
A5:=A2>7 AND A2<=10;
A6:=A2>10;
{STICKLINE(A2<3 AND C>O,0,A2,6,0),COLOR555500;
STICKLINE(A2<3 AND C>O,0,A2,5,0),COLOR777700;
STICKLINE(A2<3 AND C>O,0,A2,4,0),COLOR999900;
STICKLINE(A2<3 AND C>O,0,A2,3,0),COLORBBBB00;
STICKLINE(A2<3 AND C>O,0,A2,2,0),COLORDDDD00;
STICKLINE(A2<3 AND C>O,0,A2,1,0),COLORFFFF00;}
STICKLINE(A2<3 AND C>O,0,A2,3,0),COLORFFFF00;{STICKLINE(A2<3 AND C<O,0,A2,6,0),COLOR005500;
STICKLINE(A2<3 AND C<O,0,A2,5,0),COLOR007700;
STICKLINE(A2<3 AND C<O,0,A2,4,0),COLOR009900;
STICKLINE(A2<3 AND C<O,0,A2,3,0),COLOR00BB00;
STICKLINE(A2<3 AND C<O,0,A2,2,0),COLOR00DD00;
STICKLINE(A2<3 AND C<O,0,A2,1,0),COLOR00FF00;}
STICKLINE(A2<3 AND C<O,0,A2,3,0),COLOR00FF00;{STICKLINE(A3,0,A2,6,0),COLOR553300;
STICKLINE(A3,0,A2,5,0),COLOR774400;
STICKLINE(A3,0,A2,4,0),COLOR995500;
STICKLINE(A3,0,A2,3,0),COLORBB6600;
STICKLINE(A3,0,A2,2,0),COLORDD7700;
換手積極:STICKLINE(A3,0,A2,1,0),COLORFF8800;}
換手積極:STICKLINE(A3,0,A2,3,0),COLORFF8800;{STICKLINE(A4,0,A2,6,0),COLOR555555;
STICKLINE(A4,0,A2,5,0),COLOR777777;
STICKLINE(A4,0,A2,4,0),COLOR999999;
STICKLINE(A4,0,A2,3,0),COLORBBBBBB;
STICKLINE(A4,0,A2,2,0),COLORDDDDDD;
換手活躍:STICKLINE(A4,0,A2,1,0),COLORYELLOW;}
換手活躍:STICKLINE(A4,0,A2,3,0),COLORYELLOW;{STICKLINE(A5,0,A2,6,0),COLOR550000;
STICKLINE(A5,0,A2,5,0),COLOR770000;
STICKLINE(A5,0,A2,4,0),COLOR990000;
STICKLINE(A5,0,A2,3,0),COLORBB0000;
STICKLINE(A5,0,A2,2,0),COLORDD0000;
換手頻繁:STICKLINE(A5,0,A2,1,0),COLORGREEN;}
換手頻繁:STICKLINE(A5,0,A2,3,0),COLORGREEN;{STICKLINE(A6,0,A2,6,0),COLOR000055;
STICKLINE(A6,0,A2,5,0),COLOR000077;
STICKLINE(A6,0,A2,4,0),COLOR000099;
STICKLINE(A6,0,A2,3,0),COLOR0000BB;
STICKLINE(A6,0,A2,2,0),COLOR0000DD;
巨幅換手:STICKLINE(A6,0,A2,1,0),COLOR0000FF;}
巨幅換手:STICKLINE(A6,0,A2,3,0),COLOR0000FF;
AA:=A2>1 AND A2<=3;
{STICKLINE(AA,0,A2,6,0),COLOR553300;
STICKLINE(AA,0,A2,5,0),COLOR773300;
STICKLINE(AA,0,A2,4,0),COLOR993300;
STICKLINE(AA,0,A2,3,0),COLORBB6600;
STICKLINE(AA,0,A2,2,0),COLORDD7700;}
STICKLINE(AA,0,A2,3,0),COLORDD7700;BBB3:=CON2STR(REF(BBB,距上次完全換手),0);
DRAWTEXT(BBB2,A2,'次換手'),COLORFFFFFF;
DRAWTEXT(換手>REF(換手,1)*2,換手*0.8,'黑馬'),COLORWHITE;
MA5:MA(換手,5),COLORRED,LINETHICK2;
MA10:MA(換手,10),COLORYELLOW,LINETHICK2;DRAWTEXT_FIX(C>O,0.01,0.9,0,' www.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
?
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容