通達信整合大盤和個股信息的VOL指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 成交量
- 畫線方法: 副圖
- 日期:2023-05-17 來源:互聯網
通達信整合大盤和個股信息的VOL指標公式:
X:=CONST(DATE);
Y:=IF(DATE<X, 240, FROMOPEN);
上證昨日額億:REF("999999$AMOUNT",1)/100000000,NODRAW;
上證今日額億:"999999$AMOUNT"/Y*240/100000000,NODRAW;
上證預計額比:"999999$AMOUNT"/Y*240/REF("999999$AMOUNT",1),NODRAW;
123456, COLORBLACK, NODRAW;
個股預計量萬:VOL/Y*240/10000,NODRAW;
預計量比:VOL/Y*240/REF(VOL,1),COLORYELLOW,NODRAW;
總交易日:=BARSCOUNT(CLOSE);
STICKLINE((VOL/Y*240)=CONST(LLV(VOL,60)),CONST(HHV(VOL,70)),(VOL/Y*240),2,0),COLORYELLOW;
STICKLINE((VOL/Y*240)=CONST(LLV(VOL,總交易日)),CONST(HHV(VOL,70)),0,0.5,0),COLOR006432;
DRAWTEXT((VOL/Y*240)=CONST(LLV(VOL,60)) AND (VOL/Y*240)>CONST(LLV(VOL,總交易日)),CONST(HHV(VOL,70))*0.7,'量底'),COLORYELLOW;
DRAWTEXT((VOL/Y*240)=CONST(LLV(VOL,60)) AND (VOL/Y*240)=CONST(LLV(VOL,總交易日)),CONST(HHV(VOL,70))*0.7,'絕對量底'),COLORYELLOW;
NOTEXTVOLUME:VOL,VOLSTICK;
NOTEXTVOL5:MA(VOL,5);
NOTEXTVOL10:MA(VOL,10);
{上證成交額直觀描述}
預計變化:=(上證預計額比-1)*100;
預計1:=CONST(IF(預計變化>=40,1,0));
預計2:=CONST(IF(預計變化>=30 AND 預計變化<40,1,0));
預計3:=CONST(IF(預計變化>=20 AND 預計變化<30,1,0));
預計4:=CONST(IF(預計變化>=10 AND 預計變化<20,1,0));
預計5:=CONST(IF(預計變化>=5 AND 預計變化<10,1,0));
預計6:=CONST(IF(ABS(預計變化)<5,1,0));
預計7:=CONST(IF(預計變化<=-5 AND 預計變化>-10,1,0));
預計8:=CONST(IF(預計變化<=-10 AND 預計變化>-20,1,0));
預計9:=CONST(IF(預計變化<=-20 AND 預計變化>-30,1,0));
預計10:=CONST(IF(預計變化<=-30 AND 預計變化>-40,1,0));
預計11:=CONST(IF(預計變化<=-40,1,0));
位置1:=PERIOD=5 AND CURRBARSCOUNT=34;
DRAWTEXT(預計1=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤猛烈放量40%以上'), COLORFF00FF;
DRAWTEXT(預計2=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤大幅放量30-40%'), COLORFF00FF;
DRAWTEXT(預計3=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤放量20-30%'), COLORFF00FF;
DRAWTEXT(預計4=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤放量10-20%'), COLORFF00FF;
DRAWTEXT(預計5=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤輕微放量5-10%'), COLORFF00FF;
DRAWTEXT(預計6=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤成交額小幅波動±5%'), COLORFF00FF;
DRAWTEXT(預計7=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤輕微縮量5-10%'), COLORFF00FF;
DRAWTEXT(預計8=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤縮量10-20%'), COLORFF00FF;
DRAWTEXT(預計9=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤縮量20-30%'), COLORFF00FF;
DRAWTEXT(預計10=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤大幅縮量30-40%'), COLORFF00FF;
DRAWTEXT(預計11=1 AND 位置1, CONST(HHV(NOTEXTVOLUME,70))*0.88, '大盤猛烈縮量40%以上'), COLORFF00FF;
{大盤KDJ,RSI超跌,牛熊市都能用}
上證J超跌:=CONST(IF("999999$KDJ.J"<=5,1,0));
上證R超跌:=CONST(IF("999999$RSI.RSI1"<=20,1,0));
DRAWTEXT(上證J超跌=1 AND 上證R超跌=0 AND CURRBARSCOUNT=15, CONST(HHV(NOTEXTVOLUME,70))*0.6, '上證KDJ超跌(小于5),有反彈預期');
DRAWTEXT(上證J超跌=0 AND 上證R超跌=1 AND CURRBARSCOUNT=15, CONST(HHV(NOTEXTVOLUME,70))*0.6, '上證RSI超跌(小于20),有反彈預期');
DRAWTEXT(上證J超跌=1 AND 上證R超跌=1 AND CURRBARSCOUNT=15, CONST(HHV(NOTEXTVOLUME,70))*0.6, '上證KDJ-RSI都超跌(小于5或20)');
通達信整合大盤和個股信息的VOL指標公式實例圖解:
通達信整合大盤和個股信息的VOL指標公式