通达信资金量副图
VAR1:=1/WINNER(CLOSE);
VAR2:=MA(CLOSE,13);
VAR3:=100-ABS((CLOSE-VAR2)/VAR2*100);
VAR4:=LLV(LOW,75);
VAR5:=HHV(HIGH,75);
VAR6:=(VAR5-VAR4)/100;
VAR7:=SMA((CLOSE-VAR4)/VAR6,20,1);
VAR8:=SMA((OPEN-VAR4)/VAR6,20,1);
VAR9:=3*VAR7-2*SMA(VAR7,15,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=100-VARA;
VARC:=IF(900101<DATE AND DATE<9999999,1,0);
进场系数: (100-VAR9)*VARC, , {000B0001};
出货量: MA(WINNER(CLOSE*0.95)*100,3)*VARC, , COLORYELLOW;
进货量: (100-IF(VAR1>5,IF(VAR1<100,VAR1,VAR3-10),0))*VARC, , COLORGREEN;
VARD:=出货量>VAR3;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR27:=REVERSE(VAR26);
VAR28:=SMA(VAR26,3,1);
散户: SMA(VAR28,3,1)*VARC, , COLORGREEN;
庄家: SMA(散户,3,1)*VARC, , COLORRED;
见顶: IF(CROSS(散户,庄家) AND 散户<30,庄家,0)*VARC, , COLORRED;
见底: IF(CROSS(庄家,散户) AND 庄家>75,庄家,100)*VARC, , COLORGREEN;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,庄家,'低吸 !'), ,COLORWHITE;
DRAWTEXT(CROSS(庄家,散户) AND 庄家>75,庄家,''), , COLORGREEN;
预警: (IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 AND VAR22<=-150,-15,VAR25))+50)*VARC, , {00050006};
DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,35,'抄底'), , COLORYELLOW;
DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,65,'逃顶'), , COLORCYAN;
STICKLINE(VARD,100,25,1,0), , COLORCYAN;
STICKLINE(1,出货量,0,1,0), , COLORYELLOW;
STICKLINE(1,进货量,100,1,0), , {00010001};
STICKLINE(VAR20,0,80,1,0), , COLORRED;
STICKLINE(出货量>=REF(出货量,1),出货量,0,1,0), , COLORYELLOW;
STICKLINE(出货量<REF(出货量,1),出货量,0,1,0), ,COLORBLUE;
万:AMOUNT/10000,COLORFF00FF,NODRAW;
VAR1M:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入万:IF(CLOSE>OPEN,VAR1M*(HIGH-LOW),IF(CLOSE<OPEN,VAR1M*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,NODRAW;
流出万:IF(CLOSE>OPEN,0-VAR1M*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1M*(HIGH-LOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW;
额万:流入万+流出万,COLORFFFF00,NODRAW;
{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}
YUWEI:=(MA(CLOSE,1)-MA(CLOSE,6))*10,NODRAW;
{量:(线),VOLSTICK;}
分界:0;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:1/收盘价计算的获利盘比例
VAR2赋值:收盘价的13日简单移动平均
VAR3赋值:100-(收盘价-VAR2的绝对值/VAR2*100)
VAR4赋值:75日内最低价最低值
VAR5赋值:75日内最高价最高值
VAR6赋值:(VAR5-VAR4)/100
VAR7赋值:SMA((收盘价-VAR4)/VAR6,20,1)
VAR8赋值:SMA((开盘价-VAR4)/VAR6,20,1)
VAR7的15日[1日权重]移动平均
VAR8的15日[1日权重]移动平均
VARB赋值:100-VARA
如果900101输出
进场系数: (100-VAR9)*VARC, , {000B0001}
输出
出货量: MA(收盘价*0.95计算的获利盘比例*100,3)*VARC, , 画黄色
输出
进货量: (100-IF(VAR1>5,IF(VAR1<100,VAR1,VAR3-10),0))*VARC, , 画绿色
VARD赋值:出货量>VAR3
VARE赋值:1日前的最低价*0.9
VARF赋值:最低价*0.9
VAR10:=(VARF*成交量+VARE*(当前流通股本-成交量))/当前流通股本
VAR11:=VAR10的30日指数移动平均
VAR12:=收盘价-1日前的收盘价
VAR13:=VAR12和0较大值
VAR14:=VAR12的绝对值
VAR13的7日[1日权重]移动平均
VAR13的13日[1日权重]移动平均
VAR17:=收盘价的有效数据周期数
VAR18:=SMA(VAR12和0较大值,6,1)/SMA(VAR12的绝对值,6,1)*100
VAR19:=(-200)*(60日内最高价最高值-收盘价)/(60日内最高价最高值-60日内最低价最低值)+100
VAR1A:=(收盘价-15日内最低价最低值)/(15日内最高价最高值-15日内最低价最低值)*100
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1)
VAR1C:=(INDEXC-14日内INDEXL最低值)/(14日内INDEXH最高值-14日内INDEXL最低值)*100
VAR1C的4日[1日权重]移动平均
VAR1D的3日[1日权重]移动平均
VAR1F:=(30日内最高价最高值-收盘价)/收盘价*100
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-收盘价>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50
VAR21:=(最高价+最低价+收盘价)/3
VAR22:=(VAR21-VAR21的14日简单移动平均)/(0.015*AVEDEV(VAR21,14))
VAR23:=(VAR21-VAR21的70日简单移动平均)/(0.015*AVEDEV(VAR21,70))
如果VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200返回10否则返回0
如果VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200返回-10否则返回VAR24
VAR26:=(收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100
VAR27:=VAR26的相反数
VAR26的3日[1日权重]移动平均
VAR28的3日[1日权重]移动平均
散户的3日[1日权重]移动平均
输出
见顶: IF(散户上穿庄家 AND 散户<30,庄家,0)*VARC, , 画红色
输出
见底: IF(庄家上穿散户 AND 庄家>75,庄家,100)*VARC, , 画绿色
DRAWTEXT(散户上穿庄家 AND 散户<30,庄家,'低吸 !'), ,画白色
DRAWTEXT(庄家上穿散户 AND 庄家>75,庄家,''), , 画绿色
输出
预警: (IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 AND VAR22<=-150,-15,VAR25))+50)*VARC, , {00050006}
DRAWTEXT(VAR20上穿0.5 AND 统计10日满足VAR20=1的天数=1,35,'抄底'), , 画黄色
DRAWTEXT(VARD上穿0.5 AND 统计10日满足VARD=1的天数=1,65,'逃顶'), , 画青色
当满足条件VARD时,在100和25之间画柱状线
当满足条件1时,在出货量和0之间画柱状线
当满足条件1时,在进货量和100之间画柱状线
当满足条件VAR20时,在0和80之间画柱状线
STICKLINE(出货量>=1日前的出货量,出货量,0,1,0), , 画黄色
STICKLINE(出货量<1日前的出货量,出货量,0,1,0), , 画蓝色
输出
万:成交额/10000,COLORFF00FF,NODRAW
VAR1M:=成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出
流入万:IF(收盘价>开盘价,VAR1M*(最高价-最低价),IF(收盘价<开盘价,VAR1M*((最高价-开盘价)+(收盘价-最低价)),成交额/2))/10000,画红色,NODRAW
输出
流出万:IF(收盘价>开盘价,0-VAR1M*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-VAR1M*(最高价-最低价),0-成交额/2))/10000,COLOR00FF00,NODRAW
输出
额万:流入万+流出万,COLORFFFF00,NODRAW
{线赋值:收盘价的1日简单移动平均-收盘价的6日简单移动平均,NODRAW
}
YUWEI赋值:(收盘价的1日简单移动平均-收盘价的6日简单移动平均)*10,NODRAW
输出
{量:(线),成交量STICK
输出}
分界:0
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,4,0)COLOR0D0C6A
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0D06AA
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.5,0)COLOR2108C1
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR9F5DFF
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,4,0)COLOR22736F
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,3,0)COLOR22AAD5
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,1.5,0)COLOR10C7BF
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,0.5,0)COLOR80FFFF
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,4,0)COLOR1B7411
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,3,0)COLOR17A715
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,1.5,0)COLOR08D306
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,0.5,0)COLOR40FF00
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,4,0)COLOR080E71
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0B0E8C
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.52,0)COLOR0905B0
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR0204F2