您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

彩色成交量指标 公式 源码[同花顺公式]

指标代码分析:

根据给出的代码,这段脚本主要是用于股票的技术分析指标计算和图形展示。以下是对其中使用的一些指标的简要解释和操作建议:
 
1. MAVOL: 计算成交量的移动平均线。可以用于判断成交量的趋势。
 
2. CXH2: 根据最高价和最低价计算价格区间的百分比变化。可以用于衡量价格波动的大小。
 
3. 角度: 根据开盘价和前29个交易日的收盘价之差,计算价格变化的百分比。可以用于衡量价格上涨或下跌的速度。
 
4. 换手: 根据成交量和市值计算换手率。可以用于评估市场的活跃程度。
 
5. CXHB: 根据股票指数的最高值和最低值,计算指数相对于其范围的位置。可以用于判断指数的强弱。
 
6. RSI: 相对强弱指标,通过计算一定周期内收盘价的涨幅和跌幅比例,评估股票的超买和超卖状态。
 
综合以上指标,可以得出一些操作建议:
 
- 如果成交量的移动平均线(MAVOL)向上突破,则可能出现放量上涨的机会。
- 如果价格区间变化百分比(CXH2)超过阈值,则可能出现价格波动加剧的趋势。
- 如果价格变化的角度(角度)较大,则可能存在价格快速上涨或下跌的趋势。
- 如果换手率(换手)明显增加,则可能有大资金介入市场,值得关注。
- 如果相对强弱指标(RSI)超过超买或超卖区域,则可能出现价格反转的机会。
 
当然,以上只是一些基于技术指标的初步判断,具体的操作还需要结合其他因素进行综合分析。此外,股票市场存在风险,投资需谨慎。建议在进行实际操作前,进一步研究和确认相关信息,并充分考虑个人的风险承受能力。

 

 

源码:

MAVOL$1:MA(VOL,N1);

MAVOL$2:MA(VOL,N2);
B:=1;
N:=27;N2:=9;N3:=3;N4:=16;
CXH1:=IF(DATE>=1030131,1,1);
CXH2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
获利盘:=ZNZ_HUO;
成交金額:=MONEY;
成本60:=MA(CBJX,60),colorwhite;
MA5:=MA(VOL,5),coloryellow;
MA10:=MA(VOL,10),colorred;
CXH3:=SMA(CXH2,3,1)*CXH1;
CXH4:=SMA(CXH3,N2,1)*CXH1;
CXH5:=3*CXH3-2*CXH4*CXH1;
CXH6:=VOL*CXH1;
//www.cxh99.com
角度:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100*CXH1;
换手: =MA(VOL/CAPITAL*100*CXH1,b)*b;
CXH7:=SUM(换手,30)*CXH1;
CXH8:=LLV(INDEXL,5)*CXH1;
CXH9:=HHV(INDEXH,5)*CXH1;
CXHA:=EMA((INDEXC-CXH8)/(CXH9-CXH8)*100,4);
CXHB:=MA(EMA(0.667*REF(CXHA,1)+0.333*CXHA,2),9);
CXHC:=MA(CXHB,30);
CXHD:=EMA(获利盘,4)*CXH1;
流通股亿:= CAPITAL/100000000;
V5= MA(VOL,5)*2*CXH1;
V13= MA(VOL,13)*2*CXH1;
CROSS(CXHB,CXHC) AND CXHC<29*CXH1;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,9,0),color000055;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,8,0),color000066;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,7,0),color000077;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,6,0),color000088;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,5,0),color000099;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,4,0),color0000aa;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,3,0),color0000bb;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,2,0),color0000cc;
STICKLINE(VOL AND CXH5>CXH4,0,VOL,1,0),color0000dd;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,9,0),colorFF1100;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,8,0),colorFF2200;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,7,0),colorFF3300;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,6,0),colorFF4400;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,5,0),colorFF5500;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,4,0),colorFF6600;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,3,0),colorFF7700;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,2,0),colorFF8800;
STICKLINE(VOL AND CXH5<CXH4,0,VOL,1,0),colorFF9900;
STICKLINE(VOL AND CXH4<N4,0,VOL,9,0),color333333;
STICKLINE(VOL AND CXH4<N4,0,VOL,8,0),color444444;
STICKLINE(VOL AND CXH4<N4,0,VOL,7,0),color555555;
STICKLINE(VOL AND CXH4<N4,0,VOL,6,0),color666666;
STICKLINE(VOL AND CXH4<N4,0,VOL,7,0),color777777;
STICKLINE(VOL AND CXH4<N4,0,VOL,6,0),color888888;
STICKLINE(VOL AND CXH4<N4,0,VOL,5,0),color999999;
STICKLINE(VOL AND CXH4<N4,0,VOL,4,0),coloraaaaaa;
STICKLINE(VOL AND CXH4<N4,0,VOL,3,0),colorbbbbbb;
STICKLINE(VOL AND CXH4<N4,0,VOL,2,0),colorcccccc;
STICKLINE(VOL AND CXH4<N4,0,VOL,1,0),colordddddd;
RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
抛压:STICKLINE(CROSS(84,RSI),0 ,VOL,9,0),COLORFF0033;
STICKLINE(CROSS(84,RSI),0 ,VOL,8,0),COLORFF0044;
STICKLINE(CROSS(84,RSI),0 ,VOL,7,0),COLORff0055;
STICKLINE(CROSS(84,RSI),0 ,VOL,6,0),COLORff0066;
STICKLINE(CROSS(84,RSI),0 ,VOL,5,0),COLORff0077;
STICKLINE(CROSS(84,RSI),0 ,VOL,4,0),COLORFF0088;
STICKLINE(CROSS(84,RSI),0 ,VOL,3,0),COLORff0099;
STICKLINE(CROSS(84,RSI),0 ,VOL,2,0),COLORff00aa;
STICKLINE(CROSS(84,RSI),0 ,VOL,1,0),COLORff00bb;
CXH13:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
CXH14:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
CXH15:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
CXH16:=(CXH13+CXH14+CXH15)/3;
CXH18:=IF(CXH16<=-20,10,0);
CXH19:=HHV(CXH18,10);
//www.cxh99.com
CXH20:=IF(CXH19 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
底部:
STICKLINE(CXH20=20,0 ,VOL,9,0),COLOR005555;
STICKLINE(CXH20=20,0 ,VOL,8,0),COLOR006666;
STICKLINE(CXH20=20,0 ,VOL,7,0),COLOR007777;
STICKLINE(CXH20=20,0 ,VOL,6,0),COLOR008888;
STICKLINE(CXH20=20,0 ,VOL,5,0),COLOR009999;
STICKLINE(CXH20=20,0 ,VOL,4,0),COLOR00aaaa;
STICKLINE(CXH20=20,0 ,VOL,3,0),COLOR00bbbb;
STICKLINE(CXH20=20,0 ,VOL,2,0),COLOR00CCCC;
STICKLINE(CXH20=20,0 ,VOL,2,0),COLOR00dddd;
CXHE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CXHF:=100-3*SMA((CLOSE-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1),15,1);
CXH100:=100-3*SMA((OPEN-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1),15,1);
CXH111:=CXHF<REF(CXH100,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
大资金活动:STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,9,0),coloryellow;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,8,0),COLOR007700;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,7,0),COLOR008800;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,6,0),COLOR009900;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,5,0),COLOR00aa00;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,4,0),COLOR00BB00;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,3,0),COLOR00CC00;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,2,0),COLOR00DD00;
STICKLINE(CXH111 AND COUNT(CXH111,30)=1,0 ,VOL,1,0),COLOR00EE00;
A8:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
B8:=A8*(1+ ((C+O+H+L)/4-SMA(C,10,1))/SMA(C,21,1));
D8:=A8+3*STD(A8,10);//www.cxh99.com
DRAWICON(CROSS(B8,A8) AND A8>REF(A8,1) AND D8>REF(D8,1),0,1);
 

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容