通达信换手量能饱和和谐源码

VAR1:=EMA(CLOSE,20);
VAR2:=REF(VAR1,1);
廿日均线斜率:(VAR1-VAR2)/VAR2*100,NODRAW;
VAR3:=(HIGH+LOW+CLOSE)/3;
VAR4:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VAR5:=VAR4*(VAR3-MIN(CLOSE,OPEN));
VAR6:=VAR4*(MIN(OPEN,CLOSE)-LOW);
VAR7:=VAR4*(HIGH-MAX(OPEN,CLOSE));
VAR8:=VAR4*(MAX(CLOSE,OPEN)-VAR3);
VAR9:=25;
VAR10:=AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20));
VAR11:=11;
VAR12:=VOL/CAPITAL*100;
VAR13:=SUM(VAR12,VAR11);
VAR14:=100*(CLOSE-REF(CLOSE,VAR11))/REF(CLOSE,VAR11);
VAR15:=MA(CLOSE,13);
VAR16:=MA(CLOSE,75);
VAR17:=REF(CLOSE,1);
VAR18:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
VAR19:=SMA(VAR18,3,1);
VAR20:=3*VAR18-2*VAR19;
VAR21:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR22:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
VAR23:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR21,VAR22);
VAR24:=IF(VOL>=VAR23 AND PERIOD=5,VOL,VAR23);
VAR25:=VAR24/VOL;
VAR26:=DYNAINFO(23)*VAR25;
VAR27:=DYNAINFO(22)*VAR25;
VAR28:=MA(CLOSE,26)+2*STD(CLOSE,26);
VAR29:=EMA((INDEXC-LLV(INDEXL,11))/(HHV(INDEXH,25)-LLV(INDEXL,11))*4,8)+1;
VAR30:=POW(VAR29,2)-10;
VAR31:=EMA((CLOSE-LLV(LOW,11))/(HHV(HIGH,25)-LLV(LOW,11))*4,8)+1;
VAR32:=IF(1=1,POW(VAR31,2)-10,DRAWNULL);
VAR33:=SUM(VAR12,3);
VAR34:=(CLOSE-REF(CLOSE,3))/REF(CLOSE,3)*100;
VAR35:=CAPITAL*CLOSE;
VAR36:=REF(CLOSE,1);
VAR37:=SMA(MAX(CLOSE-VAR36,0),7,1)/SMA(ABS(CLOSE-VAR36),7,1)*100;
VAR38:=WINNER(CLOSE)*100;
VAR39:=100-VAR36;
VAR40:=ABS(VAR36-VAR37);
VAR41:=BACKSET(ISLASTBAR,1);
VAR42:=IF(EMA(CLOSE,3)>MAX(EMA(CLOSE,13),EMA(CLOSE,55)),1,IF(EMA(CLOSE,3)<MIN(EMA(CLOSE,13),EMA(CLOSE,55)),(-1),0));
DRAWBAND(100,RGB(50,50,0),0,RGB(0,0,0));
庄净入:IF(VAR5-VAR6>0,VAR5-VAR6,0)/10000,NODRAW,COLORRED;
庄净出:IF(VAR5-VAR6<0,VAR5-VAR6,0)/10000,NODRAW,COLORGREEN;
散净入:IF(VAR7-VAR8>0,VAR7-VAR8,0)/10000,NODRAW,COLORGREEN;
散净出:IF(VAR7-VAR8<0,VAR7-VAR8,0)/10000,NODRAW,COLORRED;
量能饱和度:IF(VAR10>1,1,VAR10)*100,NODRAW,COLORYELLOW;
预计换手:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,0),NODRAW;
十日换手平均:MA(VAR12,10),NODRAW;
活跃度:IF(DATE>1000101,(MA(VOL,11)+MA(VOL,11*2)+MA(VOL,11*3)+MA(VOL,11*4))/4/CAPITAL*1000,1),NODRAW;
STICKLINE(VAR41,VAR38,0,5,0),COLORRED;
STICKLINE(VAR41,VAR39,0,3,0),COLORYELLOW;
STICKLINE(VAR41,VAR40,0,1,0),COLORMAGENTA;
牛:IF(VAR42=1 AND VOL>1,12,0),COLORRED,LINETHICK4;
熊:STICKLINE(VAR42=(-1) AND VOL>1,0,4,2,0),COLORYELLOW;
马:STICKLINE(VAR42=0 AND VOL>1,0,4,2,0),COLORMAGENTA;
STICKLINE(VAR42=1 AND VOL>1,0,4,2,0),COLORRED;
STICKLINE(CURRBARSCOUNT=VAR9,30*1.9,30*1.5,100,1),COLOR00DDDD;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.88,30*1.52,量能饱和度,0),COLOR0033FF;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.82,30*1.58,量能饱和度,0),COLOR0077FF;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.76,30*1.64,量能饱和度,0),COLOR0099FF;
STICKLINE(CLOSE>OPEN AND CURRBARSCOUNT=VAR9,30*1.7,30*1.7,量能饱和度,0),COLOR00DDFF;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.88,30*1.52,量能饱和度,0),COLORFF7700;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.82,30*1.58,量能饱和度,0),COLORFF9900;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.76,30*1.64,量能饱和度,0),COLORFFBB00;
STICKLINE(CLOSE<OPEN AND CURRBARSCOUNT=VAR9,30*1.71,30*1.69,量能饱和度,0),COLORCYAN;
DRAWTEXT(VAR12<=2 AND ISLASTBAR,50,180);
DRAWTEXT(VAR12>2 AND VAR12<3 AND ISLASTBAR,50,181);
DRAWTEXT(VAR12>3 AND VAR12<5 AND ISLASTBAR,50,182);
DRAWTEXT(VAR12>5 AND VAR12<8 AND ISLASTBAR,50,183);
DRAWTEXT(VAR12>8 AND VAR12<15 AND ISLASTBAR,50,184);
DRAWTEXT(VAR12>15 AND VAR12<25 AND ISLASTBAR,50,185);
DRAWTEXT(VAR12>=25 AND ISLASTBAR,50,186);
DRAWTEXT(VAR13>3*VAR11 AND VAR14>3*VAR11 AND ISLASTBAR,30,187);
DRAWTEXT(VAR13<0.5*VAR11 AND VAR14<VAR11 AND ISLASTBAR,30,188);
DRAWTEXT(VAR13<0.5*VAR11 AND VAR14>(-VAR11) AND VAR14>0 AND ISLASTBAR,10,189);
DRAWTEXT(VAR13>3*VAR11 AND VAR14<(-3)*VAR11 AND ISLASTBAR,30,190);
DRAWTEXT(VAR13>3*VAR11 AND VAR14<VAR11 OR (VAR13<0.5*VAR11 AND VAR14>3*VAR11) OR (VAR13>3*VAR11 AND VAR14>(-VAR11) AND VAR14<0) OR (VAR13<0.5*VAR11 AND VAR14<(-3)*VAR11) AND ISLASTBAR,5,191);
STICKLINE(CURRBARSCOUNT=53,100,0,88,0),COLOR333344;
DRAWTEXT(VOL/CAPITAL>0.075 AND CURRBARSCOUNT=59,80,192),COLORCYAN;
DRAWTEXT(VAR34>0 AND CURRBARSCOUNT=59,90,193);
DRAWTEXT(VAR34<=0 AND CURRBARSCOUNT=59,90,194);
DRAWTEXT(CURRBARSCOUNT=59,60,195),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,50,196),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,40,197),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,20,198),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,10,199),COLORGREEN;
DRAWTEXT(活跃度>=41 AND ISLASTBAR,80,200),COLORGREEN;
DRAWTEXT(活跃度>20 AND 活跃度<=40 AND ISLASTBAR,80,201),COLORGREEN;
DRAWTEXT(活跃度<=20 AND ISLASTBAR,80,202),COLORGREEN;
 


未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图