通达信蓝色量柱寻庄、量能饱和度指标源码分享

ZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL /2)),POINTDOT,COLORRED;
主卖:IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA*(HIGH-LOW),VOL /2)),COLORCYAN,POINTDOT;
V5:=MA(V,5);
V12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
STICKLINE(C,0,VOL,2,0),COLORGRAY;
STICKLINE(CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,VOL,2,0),COLORRED;
STICKLINE(CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,0,VOL,2,0),COLORGREEN;
STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,0,VOL,2,0),COLORYELLOW;
STICKLINE(VOL<MA(VOL,5)/2 AND V<V12/2,0,VOL,2,0),COLORBLUE;
STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,VOL*0.5,0,2,0),COLORRED;
STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,VOL*0.5,0,2,0),COLORWHITE;
 
N:=27;
N2:=9;
N4:=16;
VAR1:=IF(DATE>=1030131,1,1);
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,3,1)*VAR1;
VAR4:=SMA(VAR3,N2,1)*VAR1;
VAR5:=3*VAR3-2*VAR4*VAR1;
STICKLINE(VOL AND VAR5>VAR4,0,VOL,2,1),COLORRED;
STICKLINE(VOL AND VAR5<VAR4,0,VOL,2,1),COLORGREEN;
STICKLINE(VOL AND VAR4<N4,-10,VOL*0.5,2,0),COLORBLUE;
VARN2:=CLOSE-REF(CLOSE,1);
VARN3:=IF(CLOSE-REF(CLOSE,1)>=0,VARN2,0);
VARN4:=REF(CLOSE,1)-CLOSE;
VARN5:=IF(CLOSE-REF(CLOSE,1)<=0,VARN4,0);
VARN6:=SUM(VARN3,16)/SUM(VARN5,16);
VARN7:=100-100/(1+VARN6);
VARN8:=EMA(VARN7,16);
VARN9:=EMA(VARN8,8);
VARNA:=EMA(VARN8,45);
MO:=(VARN8-VARNA);
ML:=(VARN9-VARNA);
VARN1A:=EMA(CLOSE,32);
VARN2A:=MA(OPEN,32);
趋势:=(VARN1A-VARN2A);
STICKLINE(MO>ML AND 趋势<0 AND MO>REF(MO,3) AND 趋势>REF(趋势,3),VOL,0,3,0) COLORYELLOW;
MV1:MA(VOL,5),LINETHICK0;
MV2:MA(VOL,10),LINETHICK0;
MV3:MA(VOL,20),LINETHICK0;
DRAWTEXT (VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,V,'天'),COLORYELLOW;
DRAWTEXT (VOL<MA(VOL,5)/2 AND V<V12/2,(V5+V)/2,'地'),COLOR0099FF;
DRAWTEXT (CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,V,'吸'),COLOR0099FF;
DRAWTEXT (CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,V,'出'),COLORGREEN;
 
 



来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

ZZ赋值:IF(1日前的C>1日前的O AND O>1日前的C*1.014 AND C SAT赋值:(AMOUNT/C)/(20日内AMOUNT最高值/20日内C最高值)
如果SAT>1返回1否则返回SAT
AA赋值:成交量/((最高价-最低价)*2-收盘价-OPEN的绝对值)
输出主买:IF(收盘价>OPEN,AA*(最高价-最低价),IF(收盘价 输出主卖:IF(收盘价>OPEN,AA*((最高价-收盘价)+(OPEN-最低价)),IF(收盘价 V5赋值:V的5日简单移动平均
V12赋值:V的12日简单移动平均
V34赋值:V的34日简单移动平均
C6赋值:C的6日简单移动平均
当满足条件C时,在0和成交量之间画柱状线
STICKLINE(C上穿C6 AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,成交量,2,0),画红色
STICKLINE(C6上穿C AND V>V5*1.2 AND V>V12*1.2,0,成交量,2,0),COLORGREEN
STICKLINE(成交量>成交量的5日简单移动平均*2 AND V>V34*3 AND C<1日前的C*1.05,0,成交量,2,0),画黄色
STICKLINE(成交量<成交量的5日简单移动平均/2 AND V STICKLINE(成交量>成交量的5日简单移动平均*2 AND V>V34*3 AND C<1日前的C*1.05 AND C上穿C6 AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,成交量*0.5,0,2,0),画红色
STICKLINE(成交量>成交量的5日简单移动平均*2 AND V>V34*3 AND C<1日前的C*1.05 AND C6上穿C AND V>V5*1.2 AND V>V12*1.2,成交量*0.5,0,2,0),画白色
  N赋值:27
N2:=9
N4:=16
如果日期>=1030131返回1否则返回1
VAR2赋值:(收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100
VAR2的3日[1日权重]移动平均
VAR3的N2日[1日权重]移动平均
VAR5赋值:3*VAR3-2*VAR4*VAR1
当满足条件成交量 AND VAR5>VAR4时,在0和成交量之间画柱状线
当满足条件成交量 AND VAR5当满足条件成交量 AND VAR4 VARN2:=收盘价-1日前的收盘价
VARN3:=IF(收盘价-1日前的收盘价>=0,VARN2,0)
VARN4:=1日前的收盘价-收盘价
VARN5:=IF(收盘价-1日前的收盘价<=0,VARN4,0)
VARN6:=16的VARN3日累和/16的VARN5日累和
VARN7:=100-100/(1+VARN6)
VARN8:=VARN7的16日指数移动平均
VARN9:=VARN8的8日指数移动平均
VARNA:=VARN8的45日指数移动平均
MO赋值:(VARN8-VARNA)
ML赋值:(VARN9-VARNA)
VARN1A:=收盘价的32日指数移动平均
VARN2A:=OPEN的32日简单移动平均
趋势赋值:(VARN1A-VARN2A)
STICKLINE(MO>ML AND 趋势<0 AND MO>3日前的MO AND 趋势>3日前的趋势,成交量,0,3,0) 画黄色
输出MV1:成交量的5日简单移动平均,LINETHICK0
输出MV2:成交量的10日简单移动平均,LINETHICK0
输出MV3:成交量的20日简单移动平均,LINETHICK0
DRAWTEXT (成交量>成交量的5日简单移动平均*2 AND V>V34*3 AND C<1日前的C*1.05,V,'天'),画黄色
DRAWTEXT (成交量<成交量的5日简单移动平均/2 AND V DRAWTEXT (C上穿C6 AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,V,'吸'),COLOR0099FF
DRAWTEXT (C6上穿C AND V>V5*1.2 AND V>V12*1.2,V,'出'),COLORGREEN
   

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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