猎庄珍藏很久很准的好公式通达信公式 副图 源码附图
VAR1:=55;
VAR2:=34;
VAR3:=REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),3,1)/SMA(ABS(CLOSE-VAR3),3,1)*100;
VAR5:=EMA(CLOSE,3);
VAR6:=EMA(CLOSE,21);
DRAWTEXT(CROSS(85,VAR4),75,76),COLORGREEN;
VAR7:=(CLOSE-LLV(LOW,VAR2))/(HHV(HIGH,VAR2)-LLV(LOW,VAR2))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,3,1);
VAR10:=3*VAR8-2*VAR9;
VAR11:=MAX(HHV(CLOSE,5),HHV(OPEN,5));
VAR12:=MIN(LLV(CLOSE,5),HHV(OPEN,5));
VAR13:=(VAR11/VAR12-1)*100;
VAR14:=VAR13<7;
VAR15:=EMA(VAR10,20);
有戏:EVERY(VAR15>REF(VAR15,1),3) AND VAR14;
STICKLINE(有戏,0,20,4,0),COLORWHITE;
VAR16:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR17:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR18:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR19:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR20:=(VAR17+2*VAR18+3*VAR19)/6;
VAR21:=MA(VAR20,3);
关注:STICKLINE(VAR21<=(-8),5,25,7,0);
出击:STICKLINE(VAR21<=(-10),80,100,5,0),COLORYELLOW;
引导雷达:STICKLINE(VAR21<=(-10),65,35,4,0),COLORYELLOW;
制导雷达:STICKLINE(VAR21<=(-10),40,0,4,1),COLORRED;
VAR22:=STICKLINE(VAR21<=(-10),80,30,3,0);
导弹:STICKLINE(VAR21<=(-10),80,60,3,0),COLORWHITE;
雷达:IF(VAR21<=(-10),20,0),COLORRED,LINETHICK3;
VAR23:=150;
VAR24:=3;
VAR25:=REF(HHV(HIGH,VAR23),VAR24);
VAR26:=REF(LLV(LOW,VAR23),VAR24);
VAR27:=VAR25-(VAR25-VAR26)*0.618;
VAR28:=REFDATE(VAR27,DATE);
VAR29:=BARSLASTCOUNT(CLOSE<VAR28);
VAR30:=CROSS(CLOSE,VAR28);
VAR31:=VAR29>100;
VAR32:=REF(VAR31,1);
VAR33:=VAR32 AND VAR30;
DRAWICON(VAR33,50,34);
VAR34:=EMA(HHV(HIGH,1),8);
VAR35:=EMA(CLOSE,8);
VAR36:=VAR35<REF(VAR35,1) AND CLOSE<VAR35;
VAR37:=IF(VAR34<REF(VAR34,1) OR VAR36,1,0);
全仓出击:(COUNT(VAR37=1,4)=3 AND VAR37=0 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.085)*89;
STICKLINE(全仓出击,66,0,3,0),COLORGREEN;
DRAWICON(全仓出击>=89,67,1);
DRAWTEXT(全仓出击>=89,69,77);
VAR38:=IF(YEAR>=2098 AND MONTH>=1,0,1);
VAR39:=REF(LOW,1)*VAR38;
VAR40:=SMA(ABS(LOW-VAR39),3,1)/SMA(MAX(LOW-VAR39,0),3,1)*100*VAR38;
VAR41:=EMA(IF(CLOSE*1.3,VAR40*10,VAR40/10),3)*VAR38;
VAR42:=LLV(LOW,30)*VAR38;
{股票指标网 WWW. 整理}
VAR43:=HHV(VAR41,30)*VAR38;
VAR44:=IF(MA(CLOSE,58),1,0)*VAR38;
VAR45:=EMA(IF(LOW<=VAR42,(VAR41+VAR43*2)/2,0),3)/618*VAR44*VAR38;
吸筹:IF(VAR45>100,100,VAR45)*VAR38,COLORRED;
庄家吸筹:STICKLINE(吸筹>(-150),0,吸筹,5,0),COLORRED;
散户:100*(HHV(HIGH,VAR1)-CLOSE)/(HHV(HIGH,VAR1)-LLV(LOW,VAR1)),COLOR2F4F2F,LINETHICK2;
庄家:EMA(VAR10,1),COLORYELLOW,LINETHICK3;
VAR46:=EMA(EMA(CLOSE,9),9);
VAR47:=(VAR46-REF(VAR46,1))/REF(VAR46,1)*1000;
STICKLINE(VAR47<0,VAR47,0,1,0),COLORWHITE;
VAR48:=CROSS(VAR47,0);
VAR49:=IF(VAR47<0,VAR47,0);
开始控盘:IF(VAR48,5,0),COLORYELLOW;
STICKLINE(VAR47>REF(VAR47,1) AND VAR47>0,VAR47,0,1,0),COLORRED;
有庄控盘:IF(VAR47>REF(VAR47,1) AND VAR47>0,VAR47,0),NODRAW,COLORRED;
VAR50:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR50>50 AND COST(85)<CLOSE AND VAR47>0,VAR47,0,1,0),COLORMAGENTA;
高度控盘:IF(VAR50>50 AND COST(85)<CLOSE AND VAR47>0,VAR47,0),NODRAW,COLORMAGENTA;
STICKLINE(VAR47<REF(VAR47,1) AND VAR47>0,VAR47,0,1,0),COLORGREEN;
主力出货:IF(VAR47<REF(VAR47,1) AND VAR47>0,VAR47,0),NODRAW,COLORGREEN;
多头力量:SUM(IF(CLOSE>OPEN,VOL,0),30)/SUM(VOL,30)*100,COLORWHITE,LINETHICK2;
VAR51:=EMA(WINNER(CLOSE)*70,3);
VAR52:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
主力控盘:VAR51/(VAR51+VAR52)*100,COLORGREEN,LINETHICK2;
VAR53:=90;
VAR54:=80;
平衡:50,COLORGREEN;
VAR55:=20;
VAR56:=0;
DRAWTEXT(CROSS(主力控盘,20),VAR55,78),COLORYELLOW;
DRAWTEXT(CROSS(主力控盘,50),平衡,78),COLORRED;
{股票指标网 WWW. 整理}
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:55
VAR2赋值:34
VAR3赋值:1日前的收盘价
VAR4赋值:SMA(收盘价-VAR3和0较大值,3,1)/SMA(收盘价-VAR3的绝对值,3,1)*100
VAR5赋值:收盘价的3日指数移动平均
VAR6赋值:收盘价的21日指数移动平均
DRAWTEXT(85上穿VAR4,75,76),画绿色
VAR7赋值:(收盘价-VAR2日内最低价最低值)/(VAR2日内最高价最高值-VAR2日内最低价最低值)*100
VAR7的3日[1日权重]移动平均
VAR8的3日[1日权重]移动平均
VAR10:=3*VAR8-2*VAR9
VAR11:=MAX(5日内收盘价最高值,5日内开盘价最高值)
VAR12:=MIN(5日内收盘价最低值,5日内开盘价最高值)
VAR13:=(VAR11/VAR12-1)*100
VAR14:=VAR13<7
VAR15:=VAR10的20日指数移动平均
输出有戏:EVERY(VAR15>1日前的VAR15,3) AND VAR14
当满足条件有戏时,在0和20之间画柱状线
VAR16:=(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
VAR17:=(收盘价-收盘价的6日简单移动平均)/收盘价的6日简单移动平均*100
VAR18:=(收盘价-收盘价的12日简单移动平均)/收盘价的12日简单移动平均*100
VAR19:=(收盘价-收盘价的24日简单移动平均)/收盘价的24日简单移动平均*100
VAR20:=(VAR17+2*VAR18+3*VAR19)/6
VAR21:=VAR20的3日简单移动平均
输出关注:STICKLINE(VAR21<=(-8),5,25,7,0)
输出出击:STICKLINE(VAR21<=(-10),80,100,5,0),画黄色
输出引导雷达:STICKLINE(VAR21<=(-10),65,35,4,0),画黄色
输出制导雷达:STICKLINE(VAR21<=(-10),40,0,4,1),画红色
VAR22:=STICKLINE(VAR21<=(-10),80,30,3,0)
输出导弹:STICKLINE(VAR21<=(-10),80,60,3,0),画白色
输出雷达:IF(VAR21<=(-10),20,0),画红色, 线宽为3
VAR23:=150
VAR24:=3
VAR25:=REF(VAR23日内最高价最高值,VAR24)
VAR26:=REF(VAR23日内最低价最低值,VAR24)
VAR27:=VAR25-(VAR25-VAR26)*0.618
VAR28:=REFDATE(VAR27,DATE)
VAR29:=BARSLASTCOUNT(收盘价
VAR30:=收盘价上穿VAR28
VAR31:=VAR29>100
VAR32:=1日前的VAR31
VAR33:=VAR32 AND VAR30
当满足条件VAR33时,在50和34之间画图标
VAR34:=E1日内最高价最高值的8日简单移动平均
VAR35:=收盘价的8日指数移动平均
VAR36:=VAR35<1日前的VAR35 AND 收盘价
VAR37:=IF(VAR34<1日前的VAR34 OR VAR36,1,0)
全仓输出出击:(统计4日满足VAR37=1的天数=3 AND VAR37=0 AND (收盘价-1日前的收盘价)/1日前的收盘价>0.085)*89
当满足条件全仓出击时,在66和0之间画柱状线
当满足条件全仓出击>=89时,在67和1之间画图标
当满足条件全仓出击>=89时,在69和77位置书写文字
如果YEAR>=2098 AND MONTH>=1返回0否则返回1
VAR39:=1日前的最低价*VAR38
VAR40:=SMA(最低价-VAR39的绝对值,3,1)/SMA(最低价-VAR39和0较大值,3,1)*100*VAR38
如果收盘价*1.3返回VAR40*10否则返回VAR40/10
VAR42:=30日内最低价最低值*VAR38
{股票指标网 WWW. 整理}
VAR43:=30日内VAR41最高值*VAR38
VAR44:=IF(收盘价的58日简单移动平均,1,0)*VAR38
VAR45:=EMA(IF(最低价<=VAR42,(VAR41+VAR43*2)/2,0),3)/618*VAR44*VAR38
如果VAR45>100返回100否则返回VAR45
庄家输出吸筹:STICKLINE(吸筹>(-150),0,吸筹,5,0),画红色
输出散户:100*(VAR1日内最高价最高值-收盘价)/(VAR1日内最高价最高值-VAR1日内最低价最低值),COLOR2F4F2F, 线宽为2
输出庄家:VAR10的1日指数移动平均,画黄色, 线宽为3
VAR46:=收盘价的9日指数移动平均,9)
VAR47:=(VAR46-1日前的VAR46)/1日前的VAR46*1000
当满足条件VAR47<0时,在VAR47和0之间画柱状线
VAR48:=VAR47上穿0
如果VAR47<0返回VAR47否则返回0
如果VAR48返回5否则返回0
STICKLINE(VAR47>1日前的VAR47 AND VAR47>0,VAR47,0,1,0),画红色
输出有庄控盘:IF(VAR47>1日前的VAR47 AND VAR47>0,VAR47,0),NODRAW,画红色
VAR50:=100*收盘价*0.95计算的获利盘比例
STICKLINE(VAR50>50 AND 获利盘为85%的成本分布<收盘价 AND VAR47>0,VAR47,0,1,0),画洋红色
输出高度控盘:IF(VAR50>50 AND 获利盘为85%的成本分布<收盘价 AND VAR47>0,VAR47,0),NODRAW,画洋红色
STICKLINE(VAR47<1日前的VAR47 AND VAR47>0,VAR47,0,1,0),画绿色
输出主力出货:IF(VAR47<1日前的VAR47 AND VAR47>0,VAR47,0),NODRAW,画绿色
如果收盘价>开盘价返回成交量否则返回0
VAR51:=EMA(收盘价计算的获利盘比例*70,3)
VAR52:=EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,3)
输出主力控盘:VAR51/(VAR51+VAR52)*100,画绿色, 线宽为2
VAR53:=90
VAR54:=80
输出平衡:50,画绿色
VAR55:=20
VAR56:=0
DRAWTEXT(主力控盘上穿20,VAR55,78),画黄色
DRAWTEXT(主力控盘上穿50,平衡,78),画红色
{股票指标网 WWW. 整理}