通达信价格资金趋势副图指标 精品波段 源码 附图

X_1:=REF(LOW,1);
X_2:=SMA(ABS(LOW-X_1),3,1)/SMA(MAX(LOW-X_1,0),3,1)*100;
X_3:=EMA(IF(CLOSE*1.2,X_2*10,X_2/10),3);
X_4:=LLV(LOW,38);
X_5:=HHV(X_3,38);
X_6:=1971101;
X_7:=1971201;
X_8:=IF(DATE>X_6,IF(CLOSE<80,1,0),0);
X_9:=IF(DATE>X_7,1,X_8);
X_10:=IF(X_9=0,1,0);
X_11:=EMA(IF(LOW<=X_4,(X_3+X_5*2)/50,0),3)/258*X_10;
X_12:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X_13:=SMA(X_12,13,8);
主力建仓:X_11,NODRAW,COLORMAGENTA;
吸筹1:STICKLINE(X_11,0,X_11,6,0),COLORRED;
吸筹2:STICKLINE(X_11,0,X_11,5,0),COLOR6600FF;
吸筹3:STICKLINE(X_11,0,X_11,4,0),COLORBB00FF;
吸筹4:STICKLINE(X_11,0,X_11,3,0),COLORMAGENTA;
吸筹5:STICKLINE(X_11,0,X_11,2,0),COLORFF33FF;
吸筹6:STICKLINE(X_11,0,X_11,1,0),COLORFF66FF;
吸筹7:STICKLINE(X_11,0,X_11,0,0),COLORFF99FF;
STICKLINE(1,0,0,6,0),COLOR454545;
STICKLINE(1,100,100,6,0),COLOR454545;
STICKLINE(1,50,50,6,0),COLOR454545;
X_14:=VOL/10000;
X_15:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_16:=IF(CLOSE>OPEN,X_15*(HIGH-LOW),IF(CLOSE<OPEN,X_15*(HIGH-OPEN+(CLOSE-LOW)),IF(CLOSE=OPEN AND CLOSE>REF(CLOSE,1)*1.09,VOL,0)))/10000;
X_17:=IF(CLOSE>OPEN,0-X_15*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-X_15*(HIGH-LOW),IF(CLOSE=OPEN AND CLOSE<REF(CLOSE,1)*0.91,0-VOL,0)))/10000;
X_18:=X_16+X_17;
X_19:=SUM(X_18,5);
X_20:=MA(X_18,1);
X_21:=SMA(SMA(SMA(X_20,2,1),2,1),2,1);
X_22:=REF(X_21,1);
X_23:=SMA(MAX(X_21-X_22,0),7,1)/SMA(ABS(X_21-X_22),7,1)*100;
STICKLINE(X_23>80,97,100,3,0),COLORCYAN;
X_24:=LLV(X_21,35);
X_25:=HHV(X_21,30);
X_26:=EMA((X_21-X_24)/(X_25-X_24)*4,4)*25;
X_27:=X_26;
X_28:=87.5;
X_29:=(X_26-LLV(X_26,4))/(HHV(X_26,4)-LLV(X_26,4))*4*25;
X_30:=EMA(100*(X_21-LLV(X_21,18))/(HHV(X_21,18)-LLV(X_21,18)),3)/4*4*1;
DRAWBAND(X_30,RGB(88,0,0),MA(X_30,2),RGB(0,88,0));
X_31:=(2*CLOSE+HIGH+LOW)/4;
X_32:=LLV(LOW,30);
X_33:=HHV(HIGH,30);
X_34:=IF(X_9!=1,EMA((X_31-X_32)/(X_33-X_32)*100,8),0);
X_35:=EMA(X_34,4);
STICKLINE(X_34-X_35>0,X_34,X_35,2,1),COLOR990099;
STICKLINE(X_34-X_35<0,X_34,X_35,2,1),COLOR999900;
X_36:=X_21;
X_37:=LLV(X_21,30);
X_38:=HHV(X_21,30);
X_39:=IF(X_9!=1,EMA((X_36-X_37)/(X_38-X_37)*100,8),0);
X_40:=EMA(X_39,4);
STICKLINE(X_39-X_40>0,X_39,X_40,4,0),COLOR0000CC;
STICKLINE(X_39-X_40<0,X_39,X_40,4,0),COLOR00CC00;
X_41:=X_39>50 AND X_39-X_40>0 OR (X_39-X_40>0 AND X_34-X_35>0 AND X_30>MA(X_30,2));
X_42:=X_39<50 AND X_39-X_40<0 OR (X_39-X_40<0 AND X_34-X_35<0 AND X_30<MA(X_30,2));
STICKLINE(X_42,X_39,50,1,(-1)),COLOR00CC00;
STICKLINE(X_41,X_39,50,1,(-1)),COLOR0000CC;
X_43:=X_21;
X_44:=LLV(X_21,21);
X_45:=HHV(X_21,34);
X_46:=EMA((X_43-X_44)/(X_45-X_44)*100,13);
X_47:=EMA(0.667*REF(X_46,1)+0.333*X_46,2);
X_48:=EMA(0.382*REF(X_46,2)+0.618*X_46,12);
X_49:=IF(X_9=1,0,1);
X_50:=MA((-100)*(HHV(X_21,34)-X_21)/(HHV(X_21,34)-LLV(X_21,34)),19)*X_49;
流动资金:EMA(100*(X_21-LLV(X_21,18))/(HHV(X_21,18)-LLV(X_21,18)),3)/4*4*X_49,NODRAW,COLOR000088;
资金趋势:X_39,NODRAW,COLOR0000CC;
价格趋势:X_34,NODRAW,COLOR990099;
X_51:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_52:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_53:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_54:=X_51+100;
X_55:=X_52+100;
X_56:=X_53+100;
X_57:=REF(X_56,1)>85 AND REF(X_55,1)>85 AND REF(X_54,1)>65 AND CROSS(X_54,X_55);
X_58:=X_56<REF(X_56,1) AND REF(X_56,1)>80 AND (REF(X_55,1)>95 OR REF(X_55,2)>95) AND X_54>60 AND X_55<83.5 AND X_55<X_56 AND X_55<X_54+4;
X_59:=FILTER(X_58,4);
STICKLINE(X_59,97,100,3,0),COLORCYAN;
X_60:=X_54<12 AND X_56<8 AND (X_55<7.2 OR REF(X_55,1)<5) AND (X_56>REF(X_56,1) OR X_55>REF(X_55,1)) OR (X_54<8 AND X_56<7 AND X_55<15 AND X_55>REF(X_55,1)) OR (X_54<10 AND X_56<7 AND X_55<1);
STICKLINE(X_60,(-3),0,8,0),COLORGREEN;
X_61:=BARSLAST(REF(CROSS(X_39,X_40),1));
X_62:=REF(CLOSE,X_61+1)>CLOSE AND REF(X_39,X_61+1)<X_39 AND CROSS(X_39,X_40) AND X_39<50;
X_63:=BARSLAST(REF(CROSS(X_40,X_39),1));
X_64:=REF(CLOSE,X_63+1)<CLOSE AND REF(X_39,X_63+1)>X_39 AND CROSS(X_40,X_39) AND X_39>50;
DRAWICON(X_62,(-2),7);
DRAWICON(X_64,101,8);
资金底背离:X_62,NODRAW,COLORYELLOW;
资金顶背离:X_64,NODRAW,COLORGREEN;



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


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

X_1赋值:1日前的最低价
X_2赋值:SMA(最低价-X_1的绝对值,3,1)/SMA(最低价-X_1和0较大值,3,1)*100
如果收盘价*1.2返回X_2*10否则返回X_2/10
X_4赋值:38日内最低价最低值
X_5赋值:38日内X_3最高值
X_6赋值:1971101
X_7赋值:1971201
X_8赋值:IF(日期>X_6,IF(收盘价<80,1,0),0)
如果日期>X_7返回1否则返回X_8
如果X_9=0返回1否则返回0
X_11:=EMA(IF(最低价<=X_4,(X_3+X_5*2)/50,0),3)/258*X_10
X_12:=(收盘价-21日内最低价最低值)/(21日内最高价最高值-21日内最低价最低值)*100
X_12的13日[8日权重]移动平均
输出主力建仓:X_11,NODRAW,画洋红色
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件X_11时,在0和X_11之间画柱状线
当满足条件1时,在0和0之间画柱状线
当满足条件1时,在100和100之间画柱状线
当满足条件1时,在50和50之间画柱状线
X_14:=成交量/10000
X_15:=成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
X_16:=IF(收盘价>开盘价,X_15*(最高价-最低价),IF(收盘价<开盘价,X_15*(最高价-开盘价+(收盘价-最低价)),IF(收盘价=开盘价 AND 收盘价>1日前的收盘价*1.09,成交量,0)))/10000
X_17:=IF(收盘价>开盘价,0-X_15*(最高价-收盘价+(开盘价-最低价)),IF(收盘价<开盘价,0-X_15*(最高价-最低价),IF(收盘价=开盘价 AND 收盘价<1日前的收盘价*0.91,0-成交量,0)))/10000
X_18:=X_16+X_17
X_19:=5的X_18日累和
X_20:=X_18的1日简单移动平均
X_20的2日[1日权重]移动平均
X_22:=1日前的X_21
X_23:=SMA(X_21-X_22和0较大值,7,1)/SMA(X_21-X_22的绝对值,7,1)*100
当满足条件X_23>80时,在97和100之间画柱状线
X_24:=35日内X_21最低值
X_25:=30日内X_21最高值
X_26:=EMA((X_21-X_24)/(X_25-X_24)*4,4)*25
X_27:=X_26
X_28:=87.5
X_29:=(X_26-4日内X_26最低值)/(4日内X_26最高值-4日内X_26最低值)*4*25
X_30:=EMA(100*(X_21-18日内X_21最低值)/(18日内X_21最高值-18日内X_21最低值),3)/4*4*1
DRAWBAND(X_30,RGB(88,0,0),X_30的2日简单移动平均,RGB(0,88,0))
X_31:=(2*收盘价+最高价+最低价)/4
X_32:=30日内最低价最低值
X_33:=30日内最高价最高值
X_34:=IF(X_9!=1,EMA((X_31-X_32)/(X_33-X_32)*100,8),0)
X_35:=X_34的4日指数移动平均
当满足条件X_34-X_35>0时,在X_34和X_35之间画柱状线
当满足条件X_34-X_35<0时,在X_34和X_35之间画柱状线
X_36:=X_21
X_37:=30日内X_21最低值
X_38:=30日内X_21最高值
X_39:=IF(X_9!=1,EMA((X_36-X_37)/(X_38-X_37)*100,8),0)
X_40:=X_39的4日指数移动平均
当满足条件X_39-X_40>0时,在X_39和X_40之间画柱状线
当满足条件X_39-X_40<0时,在X_39和X_40之间画柱状线
X_41:=X_39>50 AND X_39-X_40>0 OR (X_39-X_40>0 AND X_34-X_35>0 AND X_30>X_30的2日简单移动平均)
X_42:=X_39<50 AND X_39-X_40<0 OR (X_39-X_40<0 AND X_34-X_35<0 AND X_30 STICKLINE(X_42,X_39,50,1,(-1)),COLOR00CC00
STICKLINE(X_41,X_39,50,1,(-1)),COLOR0000CC
X_43:=X_21
X_44:=21日内X_21最低值
X_45:=34日内X_21最高值
X_46:=EMA((X_43-X_44)/(X_45-X_44)*100,13)
X_47:=E0.667*1日前的X_46+0.333*X_46的2日简单移动平均
X_48:=E0.382*2日前的X_46+0.618*X_46的12日简单移动平均
如果X_9=1返回0否则返回1
X_50:=MA((-100)*(34日内X_21最高值-X_21)/(34日内X_21最高值-34日内X_21最低值),19)*X_49
输出流动资金:EMA(100*(X_21-18日内X_21最低值)/(18日内X_21最高值-18日内X_21最低值),3)/4*4*X_49,NODRAW,COLOR000088
输出资金趋势:X_39,NODRAW,COLOR0000CC
输出价格趋势:X_34,NODRAW,COLOR990099
X_51:=MA((-100)*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内最低价最低值),19)
X_52:=(-100)*(14日内最高价最高值-收盘价)/(14日内最高价最高值-14日内最低价最低值)
X_53:=EMA((-100)*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内最低价最低值),4)
X_54:=X_51+100
X_55:=X_52+100
X_56:=X_53+100
X_57:=1日前的X_56>85 AND 1日前的X_55>85 AND 1日前的X_54>65 AND X_54上穿X_55
X_58:=X_56<1日前的X_56 AND 1日前的X_56>80 AND (1日前的X_55>95 OR 2日前的X_55>95) AND X_54>60 AND X_55<83.5 AND X_55 X_59:=X_58的4过滤
当满足条件X_59时,在97和100之间画柱状线
X_60:=X_54<12 AND X_56<8 AND (X_55<7.2 OR 1日前的X_55<5) AND (X_56>1日前的X_56 OR X_55>1日前的X_55) OR (X_54<8 AND X_56<7 AND X_55<15 AND X_55>1日前的X_55) OR (X_54<10 AND X_56<7 AND X_55<1)
STICKLINE(X_60,(-3),0,8,0),画绿色
X_61:=上次1日前的X_39上穿X_40距今天数
X_62:=X_61+1日前的收盘价>收盘价 AND X_61+1日前的X_39 X_63:=上次1日前的X_40上穿X_39距今天数
X_64:=X_63+1日前的收盘价<收盘价 AND X_63+1日前的X_39>X_39 AND X_40上穿X_39 AND X_39>50
DRAWICON(X_62,(-2),7)
当满足条件X_64时,在101和8之间画图标
输出资金底背离:X_62,NODRAW,画黄色
输出资金顶背离:X_64,NODRAW,画绿色

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

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