全息市场情绪通达信公式 副图 贴图和谐源码分享
VAR1:=119052499;
VAR2:=VAR1-7;
VAR3:=VAR1+7;
VAR4:=REFDATE(VOL#WEEK,VAR1);
VAR5:=REFDATE(VOL#WEEK,VAR2);
VAR6:=REFDATE(VOL#WEEK,VAR3);
VAR7:=IF(VAR4=VAR5 AND VAR5=VAR6,1,DRAWNULL);
VAR8:=12;
VAR9:=96;
VAR10:=(HIGH+LOW+CLOSE)/3;
VAR11:=VAR7*(VAR10-MA(VAR10,VAR8))/(0.015*AVEDEV(VAR10,VAR8));
短多2:STICKLINE(VAR11,0,VAR11,3,0),COLORFF0040;
贪婪:VAR11,NODRAW;{ }
VAR12:=VAR7*(VAR10-MA(VAR10,VAR9))/(0.015*AVEDEV(VAR10,VAR9));
恐惧:VAR12,COLORGREEN;
VAR13:=REF(VAR11,1)<VAR11 AND REF(VAR12,1)<=VAR12 AND CROSS(VAR11,VAR12) AND VAR11<0;
VAR14:=REF(VAR11,1)<VAR11 AND REF(VAR12,1)>VAR12 AND CROSS(VAR11,VAR12) AND VAR11<0;
贪婪吧:VAR13,NODRAW;
准备T:VAR14,NODRAW;
DRAWICON(VAR13,VAR12,38);
DRAWICON(VAR14,VAR12,39);
VAR15:=REF(LOW,1);
VAR16:=SMA(ABS(LOW-VAR15),3,1)/SMA(MAX(LOW-VAR15,0),3,1)*100;
VAR17:=EMA(IF(CLOSE*1.3,VAR16*10,VAR16/10),3);
VAR18:=LLV(LOW,30);
VAR19:=HHV(VAR17,30);
VAR20:=IF(MA(CLOSE,58),1,0);
VAR21:=EMA(IF(LOW<=VAR18,(VAR17+VAR19*2)/2,0),3)/618*VAR20;
VAR22:=IF(VAR21>50,50,VAR21);
VAR23:=STICKLINE(VAR22>(-120),0,VAR22,6,1);
零轴平衡线:VAR7*IF(VAR23,1,0),DOTLINE,COLOR0FFFFF;
VAR24:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
多头确认:STICKLINE(CROSS(VAR11,(-150)),0,50,1,0),COLORYELLOW;
VAR25:=REF(CLOSE,1);
VAR26:=SMA(MAX(CLOSE-VAR25,0),6,1)/SMA(ABS(CLOSE-VAR25),6,1)*100;
VAR27:=IF(CROSS(80,VAR26),200,250);
VAR28:=IF(CROSS(VAR12,(-70)),(-100),(-150));
(版权归:DRAWNULL,COLORRED;
庄家的千手千眼:DRAWNULL,COLORRED;
所有):DRAWNULL,COLORRED;
VAR7*150,COLOR9966FF,LINETHICK2;
未来函数检测结果如下:
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:119052499
VAR2赋值:VAR1-7
VAR3赋值:VAR1+7
VAR4赋值:REFDATE(成交量#WEEK,VAR1)
VAR5赋值:REFDATE(成交量#WEEK,VAR2)
VAR6赋值:REFDATE(成交量#WEEK,VAR3)
如果VAR4=VAR5 AND VAR5=VAR6返回1否则返回DRAWNULL
VAR8赋值:12
VAR9赋值:96
VAR10:=(最高价+最低价+收盘价)/3
VAR11:=VAR7*(VAR10-VAR10的VAR8日简单移动平均)/(0.015*AVEDEV(VAR10,VAR8))
当满足条件VAR11时,在0和VAR11之间画柱状线
输出贪婪:VAR11,NODRAW
{ }
VAR12:=VAR7*(VAR10-VAR10的VAR9日简单移动平均)/(0.015*AVEDEV(VAR10,VAR9))
输出恐惧:VAR12,画绿色
VAR13:=1日前的VAR11
VAR14:=1日前的VAR11VAR12 AND VAR11上穿VAR12 AND VAR11<0
贪婪吧:VAR13,NODRAW
输出准备T:VAR14,NODRAW
当满足条件VAR13时,在VAR12和38之间画图标
当满足条件VAR14时,在VAR12和39之间画图标
VAR15:=1日前的最低价
VAR16:=SMA(最低价-VAR15的绝对值,3,1)/SMA(最低价-VAR15和0较大值,3,1)*100
如果收盘价*1.3返回VAR16*10否则返回VAR16/10
VAR18:=30日内最低价最低值
VAR19:=30日内VAR17最高值
VAR20:=IF(收盘价的58日简单移动平均,1,0)
VAR21:=EMA(IF(最低价<=VAR18,(VAR17+VAR19*2)/2,0),3)/618*VAR20
如果VAR21>50返回50否则返回VAR21
VAR23:=STICKLINE(VAR22>(-120),0,VAR22,6,1)
如果VAR23返回1否则返回0
VAR24:=(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
输出多头确认:STICKLINE(CROSS(VAR11,(-150)),0,50,1,0),画黄色
VAR25:=1日前的收盘价
VAR26:=SMA(收盘价-VAR25和0较大值,6,1)/SMA(收盘价-VAR25的绝对值,6,1)*100
VAR27:=IF(80上穿VAR26,200,250)
VAR28:=IF(CROSS(VAR12,(-70)),(-100),(-150))
输出(版权归:DRAWNULL,画红色
输出庄家的千手千眼:DRAWNULL,画红色
输出所有):DRAWNULL,画红色
VAR7*150,COLOR9966FF, 线宽为2