将通达信换手率副图改为大智慧版本
2020/1/16 19:05:35
公式编写说明:
此为通达信换手率副图源码:换手率%:100*VOL/(FINANCE(7)/100)COLORYELLOW,NODRAW;低迷:IF(换手率%<=1,换手率%,DRAWNULL),COLORFF9900,NODRAW;温和:IF(换手率%>1 && 换手率%<=3,换手率%,DRAWNULL),COLORBBBBBB,NODRAW;异动:IF(换手率%>3 && 换手率% <=5,换手率%,DRAWNULL),NODRAW;活跃:IF(换手率%>5 && 换手率%<=8,换手率%,DRAWNULL)COLORMAGENTA,NODRAW; 非常活跃:IF(换手率%>8 && 换手率%<=10,换手率%,DRAWNULL)COLORYELLOW,NODRAW;高度活跃:IF(换手率%>10 && 换手率%<=15,换手率%,DRAWNULL)COLOR0077FF,NODRAW;极度活跃:IF(换手率%>15 && 换手率%<=25,换手率%,DRAWNULL)COLORRED,NODRAW;巨量换手:IF(换手率%>25,换手率%,DRAWNULL)COLOR000099,NODRAW;DRAWTEXT(FILTER(3,150),3*1.05,'活跃分界线'),COLORYELLOW; STICKLINE(低迷,换手率%,0,2.8,0),COLORFF0000;{低迷蓝色}STICKLINE(低迷,换手率%,0,2.3,0),COLORFF3300;STICKLINE(低迷,换手率%,0,1.7,0),COLORFF5500;STICKLINE(低迷,换手率%,0,1.0,0),COLORFF7700;STICKLINE(低迷,换手率%,0,0.3,0),COLORFF9900;STICKLINE(温和,换手率%,0,2.8,0),COLOR555555;{温和灰色}STICKLINE(温和,换手率%,0,2.3,0),COLOR777777; STICKLINE(温和,换手率%,0,1.7,0),COLOR999999;STICKLINE(温和,换手率%,0,1.0,0),COLORBBBBBB;STICKLINE(温和,换手率%,0,0.3,0),COLORDDDDDD;STICKLINE(异动,换手率%,0,2.8,0),COLOR004400;{异动绿色}STICKLINE(异动,换手率%,0,2.3,0),COLOR006600;STICKLINE(异动,换手率%,0,1.7,0),COLOR009900;STICKLINE(异动,换手率%,0,1.0,0),COLOR00CC00;STICKLINE(异动,换手率%,0,0.3,0),COLOR00FF00;STICKLINE(活跃,换手率%,0,2.8,0),COLOR880088;{活跃粉色}STICKLINE(活跃,换手率%,0,2.3,0),COLORAA00AA;STICKLINE(活跃,换手率%,0,1.7,0),COLORCC00CC;STICKLINE(活跃,换手率%,0,1.0,0),COLOREE00EE;STICKLINE(活跃,换手率%,0,0.3,0),COLORFF33FF;STICKLINE(非常活跃,换手率%,0,2.8,0),COLOR008888;{非常活跃黄色}STICKLINE(非常活跃,换手率%,0,2.3,0),COLOR00AAAA;STICKLINE(非常活跃,换手率%,0,1.7,0),COLOR00CCCC;STICKLINE(非常活跃,换手率%,0,1.0,0),COLOR00EEEE;STICKLINE(非常活跃,换手率%,0,0.3,0),COLOR44FFFF;STICKLINE(高度活跃,换手率%,0,2.8,0),COLOR0000AA;{高度活跃橘红}STICKLINE(高度活跃,换手率%,0,2.3,0),COLOR0022CC;STICKLINE(高度活跃,换手率%,0,1.7,0),COLOR0044DD;STICKLINE(高度活跃,换手率%,0,1.0,0),COLOR0055FF;STICKLINE(高度活跃,换手率%,0,0.3,0),COLOR0099FF;STICKLINE(极度活跃,换手率%,0,2.8,0),COLOR000066;{极度活跃红色}STICKLINE(极度活跃,换手率%,0,2.3,0),COLOR000088;STICKLINE(极度活跃,换手率%,0,1.7,0),COLOR0000AA;STICKLINE(极度活跃,换手率%,0,1.0,0),COLOR0000CC;STICKLINE(极度活跃,换手率%,0,0.3,0),COLOR2222FF;STICKLINE(巨量换手,换手率%,0,2.8,0),COLOR000022;{巨量换手酱红色}STICKLINE(巨量换手,换手率%,0,2.3,0),COLOR000033;STICKLINE(巨量换手,换手率%,0,1.7,0),COLOR000055;STICKLINE(巨量换手,换手率%,0,1.0,0),COLOR000077;STICKLINE(巨量换手,换手率%,0,0.3,0),COLOR000099;
公式源码回答:
换手率%:VOL/FINANCE2(37),COLORYELLOW,LINETHICK0;
低迷:IF(换手率%<=1,换手率%,0),COLORFF9900,LINETHICK0;
温和:IF(换手率%>1 AND 换手率%<=3,换手率%,0),COLORBBBBBB,LINETHICK0;
异动:IF(换手率%>3 AND 换手率% <=5,换手率%,0),LINETHICK0;
活跃:IF(换手率%>5 AND 换手率%<=8,换手率%,0),COLORMAGENTA,LINETHICK0;
非常活跃:IF(换手率%>8 AND 换手率%<=10,换手率%,0),COLORYELLOW,LINETHICK0;
高度活跃:IF(换手率%>10 AND 换手率%<=15,换手率%,0),COLOR0077FF,LINETHICK0;
极度活跃:IF(换手率%>15 AND 换手率%<=25,换手率%,0),COLORRED,LINETHICK0;
巨量换手:IF(换手率%>25,换手率%,0),COLOR000099,LINETHICK0;
DRAWTEXT(BARSLAST(DISPSTATUS=1)=1,3*1.05,'活跃分界线'),COLORYELLOW;
POLYLINE(C,3),COLORYELLOW,DOTLINE;
STICKLINE(低迷,换手率%,0,2.8,0),COLORFF0000;{低迷蓝色}
STICKLINE(低迷,换手率%,0,2.3,0),COLORFF3300;
STICKLINE(低迷,换手率%,0,1.7,0),COLORFF5500;
STICKLINE(低迷,换手率%,0,1.0,0),COLORFF7700;
STICKLINE(低迷,换手率%,0,0.3,0),COLORFF9900;
STICKLINE(温和,换手率%,0,2.8,0),COLOR555555;{温和灰色}
STICKLINE(温和,换手率%,0,2.3,0),COLOR777777;
STICKLINE(温和,换手率%,0,1.7,0),COLOR999999;
STICKLINE(温和,换手率%,0,1.0,0),COLORBBBBBB;
STICKLINE(温和,换手率%,0,0.3,0),COLORDDDDDD;
STICKLINE(异动,换手率%,0,2.8,0),COLOR004400;{异动绿色}
STICKLINE(异动,换手率%,0,2.3,0),COLOR006600;
STICKLINE(异动,换手率%,0,1.7,0),COLOR009900;
STICKLINE(异动,换手率%,0,1.0,0),COLOR00CC00;
STICKLINE(异动,换手率%,0,0.3,0),COLOR00FF00;
STICKLINE(活跃,换手率%,0,2.8,0),COLOR880088;{活跃粉色}
STICKLINE(活跃,换手率%,0,2.3,0),COLORAA00AA;
STICKLINE(活跃,换手率%,0,1.7,0),COLORCC00CC;
STICKLINE(活跃,换手率%,0,1.0,0),COLOREE00EE;
STICKLINE(活跃,换手率%,0,0.3,0),COLORFF33FF;
STICKLINE(非常活跃,换手率%,0,2.8,0),COLOR008888;{非常活跃黄色}
STICKLINE(非常活跃,换手率%,0,2.3,0),COLOR00AAAA;
STICKLINE(非常活跃,换手率%,0,1.7,0),COLOR00CCCC;
STICKLINE(非常活跃,换手率%,0,1.0,0),COLOR00EEEE;
STICKLINE(非常活跃,换手率%,0,0.3,0),COLOR44FFFF;
STICKLINE(高度活跃,换手率%,0,2.8,0),COLOR0000AA;{高度活跃橘红}
STICKLINE(高度活跃,换手率%,0,2.3,0),COLOR0022CC;
STICKLINE(高度活跃,换手率%,0,1.7,0),COLOR0044DD;
STICKLINE(高度活跃,换手率%,0,1.0,0),COLOR0055FF;
STICKLINE(高度活跃,换手率%,0,0.3,0),COLOR0099FF;
STICKLINE(极度活跃,换手率%,0,2.8,0),COLOR000066;{极度活跃红色}
STICKLINE(极度活跃,换手率%,0,2.3,0),COLOR000088;
STICKLINE(极度活跃,换手率%,0,1.7,0),COLOR0000AA;
STICKLINE(极度活跃,换手率%,0,1.0,0),COLOR0000CC;
STICKLINE(极度活跃,换手率%,0,0.3,0),COLOR2222FF;
STICKLINE(巨量换手,换手率%,0,2.8,0),COLOR000022;{巨量换手酱红色}
STICKLINE(巨量换手,换手率%,0,2.3,0),COLOR000033;
STICKLINE(巨量换手,换手率%,0,1.7,0),COLOR000055;
STICKLINE(巨量换手,换手率%,0,1.0,0),COLOR000077;
STICKLINE(巨量换手,换手率%,0,0.3,0),COLOR000099;
投股票 网 ww w.tou18.cn
股市公式下载推荐