您现在的位置:好股网 >> 股票公式 >> 通达信公式

量价指标扣抵主图指标 源码 通达信 贴图

[下载地址]
  • 更新时间:2019-08-26 09:55:00
  • 指标功能:国产软件
  • 公式大小:7.00 KB
  • 解压密码:goodgupiao
  • 推荐星级:
  • 授权方式:共享版
  • 公式分类:通达信公式
  • 指标类型:简体中文
  • 运行环境:Win2000/WinXP/Win2003/
  • 所需积分:0
  • 相关Tags:

量价指标扣抵主图指标 源码 通达信 贴图介绍

好股网(www.goodgupiao.com)提示:您正在下载的是:量价指标扣抵主图指标 源码 通达信 贴图

首先说明公式是我按照“均线抵理论”从量和价分别取分析自己编写的。只能提供判断的趋势,不提供准确的买卖点,作为参考指标使用。

公式研发原理:均线抵理论。

均线的抵概念

均线主要的使用法则是在于它的方向,而其具备的支撑与压力的基本功能只是辅助的用途之一.均线方向,由下往上弯,谓之涨势其具有助涨力道,在操作策略,就是顺涨势尽可能持有多单,直至方向由上往下弯形成下跌走势为止,而下跌走势因方向往下而具备助跌的力道,助跌对于偏空操作者绝对占有优势.

一般投资人在使用均线时皆会观察其方向是否完成,才决定均线是处于上涨或下跌走势,此种观察法似有较”后知后觉”的处境,如能了解均线的结构,而采用抵法去观察均线将在何时有利于反转改变其原先方向,对一个交易者而言预先掌握趋势的反转,对其布局绝对大大增加其获利机会。

均线抵使用法,一般以SMA最具代表性,如咱们用20MA为题,要求出第一个20MA,基本上需有20天的收盘价,取其20天的平均,就是今天的20MA,明日的20MA是上弯或下跌,就要观察明天的收盘价是否高于21天前,如明天价高于21天前,那明天的20MA会上弯,反之如明天收盘价低于21前天的收盘前,则明天的20MA会下弯,谈到现在,相信大家己明暸20MA上弯或下跌是取之于明天收盘价是否高于或低于21天前,这是一种替代作用。

抵值不但要观察明天的收盘价,亦需观察后天,大后天甚至更远的收盘价,一旦日后的收盘都是往下递减的称之“低值“,那对均线是有上弯助涨的意义,如均线上弯当然对涨势有利,如日后的收盘价是逐步走高高值,而收盘线未能高于抵值,那均线将倍受压力而下弯,均线走势当然看弱。

使用均线抵值得宜,交易者必可领先指针拥有,先洞悉趋势即将方向的能力。


使用方法:
公式的左上角写明的不同周期内量和价的情况。
如果背景色是红色,预示着对应周期内的均线指标会上涨。
如果背景颜色是绿色,预示着对应周期内均线指标会下跌。
只有当对应周期内的价和量都预示为上涨或者都预示为下跌的时候。才会在右边出现文字,提示这条均价线是助长涨(支撑),还是领跌(压力)的作用。


DRAWTEXT(CURRBARSCOUNT=5,HIGH*1.01,'5日');
{DRAWLINE(扣抵5,C,C,MA(C,5),0),COLORWHITE,LINETHICK2;}
DRAWTEXT(CURRBARSCOUNT=10,HIGH*1.01,'10日');
{DRAWLINE(扣抵10,C,C, MA(C,10),0),COLORYELLOW,LINETHICK2;}
DRAWTEXT(CURRBARSCOUNT=20,HIGH*1.01,'20日');
{DRAWLINE(扣抵20,C,C, MA(C,20),0),COLORMAGENTA,LINETHICK2;}
DRAWTEXT(CURRBARSCOUNT=60,HIGH*1.01,'60日');
{DRAWLINE(扣抵60,C,C, MA(C,60),0),COLORRED,LINETHICK2;}
DRAWTEXT(CURRBARSCOUNT=120,HIGH*1.01,'120日');
{DRAWLINE(扣抵120,C,C, MA(C,120),0),COLORGRAY,LINETHICK2;}
DRAWTEXT(CURRBARSCOUNT=250,HIGH*1.01,'250日');
{DRAWLINE(扣抵250,C,C, MA(C,250),0),COLORBLUE,LINETHICK2;}


{DRAWICON(CURRBARSCOUNT=5,HIGH,14);
DRAWICON(CURRBARSCOUNT=10,HIGH,14);
DRAWICON(CURRBARSCOUNT=20,HIGH,14);
DRAWICON(CURRBARSCOUNT=60,HIGH,14);
DRAWICON(CURRBARSCOUNT=120,HIGH,14);
DRAWICON(CURRBARSCOUNT=250,HIGH,14);}

MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);

DRAWRECTREL(0,0,240,350,RGB(0,0,1));

DRAWTEXT_FIX(C>0,0.04 ,0.07,1,'当前情况:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.04 ,0.11,1,'005日扣抵:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.04 ,0.15,1,'010日扣抵:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.04 ,0.19,1,'020日扣抵:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.04 ,0.23,1,'060日扣抵:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.04 ,0.27,1,'120日扣抵:'),COLORYELLOW;

DRAWTEXT_FIX(C>0,0.005 ,0.090,0,'----------------------------------------------------------------------------------------'),COLORGRAY;

DRAWTEXT_FIX(C>0,0.065 ,0.03,1,'价(元)'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>0,0.065 ,0.07,1,VAR2STR(C,2)),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,4),0.065 ,0.11,1,VAR2STR(REF(C,4),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,9),0.065 ,0.15,1,VAR2STR(REF(C,9),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,19),0.065 ,0.19,1,VAR2STR(REF(C,19),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,59),0.065 ,0.23,1,VAR2STR(REF(C,59),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,119),0.065 ,0.27,1,VAR2STR(REF(C,119),2)),COLORGREEN;


VART1:=ABS((C-REF(C,4)))*100/C,NODRAW;
VART1_1:=IF(VART1>999,999.9,VART1),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,4),0.09 ,0.11,1,STRCAT(VAR2STR(VART1_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,4),0.09 ,0.11,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,4),0.09 ,0.11,1,STRCAT(VAR2STR(VART1_1,1),'%')),COLORGREEN;

VART2:=ABS((C-REF(C,9)))*100/C,NODRAW;
VART2_1:=IF(VART2>999,999.9,VART2),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,9),0.09 ,0.15,1,STRCAT(VAR2STR(VART2_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,9),0.09 ,0.15,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,9),0.09 ,0.15,1,STRCAT(VAR2STR(VART2_1,1),'%')),COLORGREEN;

VART3:=ABS((C-REF(C,19)))*100/C,NODRAW;
VART3_1:=IF(VART3>999,999.9,VART3),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,19),0.09 ,0.19,1,STRCAT(VAR2STR(VART3_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,19),0.09 ,0.19,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,19),0.09 ,0.19,1,STRCAT(VAR2STR(VART3_1,1),'%')),COLORGREEN;

VART4:=ABS((C-REF(C,59)))*100/C,NODRAW;
VART4_1:=IF(VART4>999,999.9,VART4),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,59),0.09 ,0.23,1,STRCAT(VAR2STR(VART4_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,59),0.09 ,0.23,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,59),0.09 ,0.23,1,STRCAT(VAR2STR(VART4_1,1),'%')),COLORGREEN;

VART5:=ABS((C-REF(C,119)))*100/C,NODRAW;
VART5_1:=IF(VART5>999,999.9,VART5),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,119),0.09 ,0.27,1,STRCAT(VAR2STR(VART5_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C=REF(C,119),0.09 ,0.27,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,119),0.09 ,0.27,1,STRCAT(VAR2STR(VART5_1,1),'%')),COLORGREEN;

DRAWTEXT_FIX(C>0,0.12 ,0.03,1,'量(万)'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>0,0.12 ,0.07,1,VAR2STR(V/10000,2)),COLORYELLOW;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))),NODRAW;
MTIME:=MOD(FROMOPEN,TOTAL),NODRAW;
CTIME:=IF(MTIME<0.5,TOTAL,MTIME),NODRAW;
VVOL:=IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),0),NODRAW;
DRAWTEXT_FIX(C>0,0.18 ,0.03,1,'虚拟量(万)'),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND VVOL>0,0.18 ,0.07,1,VAR2STR(VVOL/10000,2)),COLORYELLOW;


DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,4),0.12 ,0.11,1,VAR2STR(REF(V/10000,4),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,9),0.12 ,0.15,1,VAR2STR(REF(V/10000,9),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,19),0.12 ,0.19,1,VAR2STR(REF(V/10000,19),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,59),0.12 ,0.23,1,VAR2STR(REF(V/10000,59),2)),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,119),0.12 ,0.27,1,VAR2STR(REF(V/10000,119),2)),COLORGREEN;


VART21:=ABS((V-REF(V,4)))*100/V;
VART21_1:=IF(VART21>999,999.9,VART21),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,4),0.155 ,0.11,1,STRCAT(VAR2STR(VART21_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,4),0.155 ,0.11,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,4),0.155 ,0.11,1,STRCAT(VAR2STR(VART21_1,1),'%')),COLORGREEN;

VART22:=ABS((V-REF(V,9)))*100/V;
VART22_1:=IF(VART22>999,999.9,VART22);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,9),0.155 ,0.15,1,STRCAT(VAR2STR(VART22_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,9),0.155 ,0.15,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,9),0.155 ,0.15,1,STRCAT(VAR2STR(VART22_1,1),'%')),COLORGREEN;

VART23:=ABS((V-REF(V,19)))*100/V;
VART23_1:=IF(VART23>999,999.9,VART23);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,19),0.155 ,0.19,1,STRCAT(VAR2STR(VART23_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,19),0.155 ,0.19,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,19),0.155 ,0.19,1,STRCAT(VAR2STR(VART23_1,1),'%')),COLORGREEN;

VART24:=ABS((C-REF(C,59)))*100/C;
VART24_1:=IF(VART24>999,999.9,VART24);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,59),0.155 ,0.23,1,STRCAT(VAR2STR(VART24_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,59),0.155 ,0.23,1,VAR2STR(0,2)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,59),0.155 ,0.23,1,STRCAT(VAR2STR(VART24_1,1),'%')),COLORGREEN;

VART25:=ABS((C-REF(C,119)))*100/C;
VART25_1:=IF(VART25>999,999.9,VART25);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V>REF(V,119),0.155 ,0.27,1,STRCAT(VAR2STR(VART25_1,1),'%')),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V=REF(V,119),0.155 ,0.27,1,VAR2STR(0,2)),COLORWHITE;{WWW.GOODGUPIAO.COM}
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND V<REF(V,119),0.155 ,0.27,1,STRCAT(VAR2STR(VART25_1,1),'%')),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,4) AND VVOL>REF(V,4),0.16 ,0.11,0,'5日均线助涨'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,4) AND VVOL<REF(V,4),0.16 ,0.11,0,'5日均线领跌'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,9) AND VVOL>REF(V,9),0.16 ,0.15,0,'10日均线助涨'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,9) AND VVOL<REF(V,9),0.16 ,0.15,0,'10日均线领跌'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,19) AND VVOL>REF(V,19),0.16 ,0.19,0,'20日均线助涨'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,19) AND VVOL<REF(V,19),0.16 ,0.19,0,'20日均线领跌'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,59) AND VVOL>REF(V,59),0.16 ,0.23,0,'60日均线助涨'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,59) AND VVOL<REF(V,59),0.16 ,0.23,0,'60日均线领跌'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C>REF(C,119) AND VVOL>REF(V,119),0.16 ,0.27,0,'120日均线助涨'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C<REF(C,119) AND VVOL<REF(V,119),0.16 ,0.27,0,'120日均线领跌'),COLORGREEN;

 

量价指标扣抵主图指标 源码 通达信 贴图量价指标扣抵主图指标 源码 通达信 贴图

量价指标扣抵主图指标 源码 通达信 贴图量价指标扣抵主图指标 源码 通达信 贴图


好股网(www.goodgupiao.com)提醒您:股市有风险,投资需谨慎。
量价指标扣抵主图指标 源码 通达信 贴图下载地址
下载必看(为了保障您的权益,请在下载指标前务必看清楚相关说明)
  • 网站注册、找回密码、下载过程遇到问题,请您联系,我们会在第一时间指导反馈。
  • 积分指标使用遇到问题,如指标安装不成功或指标介绍的特点与实际发布的不符,请联系好股网客服进行问题处理。
  • 指标来源网络收集和会员提供,不保证提供的下载资源的准确性、安全性和完整性。请自行谨慎甄别公式相关描述后再下载,好股网不保障和承担使用该指标公式投资带来的一切损失。
  • 指标仅供学习和研究使用,不得用于商业或者非法用途。本站对于提供下载的指标、软件等不拥有任何权利,其版权归该下载资源的合法拥有者所有,如有侵犯您的版权,请查看《侵权投诉》,本站将移除相关内容。
更多最新置顶指标公式
相关说明
  • 目前市场常用软件有通达信、大智慧等,通达信版本从高到低的指标格式有tn6、tne、tni,股票池格式为XML。大智慧指标格式有fnc,股票池格式为XML。
  • 通达信指标导入安装快捷方法:快捷键CTRL+F > 公式管理器面板 导入公式 > 选择要导入的公式 打开 > 在导入公式面板中 勾选公式,确定。
  • 通达信指标呈现快捷方法:点击指标面板要显示的主图或副图,快捷键CTRL+I > 选择指标,确定。
  • alg格式股票公式,仅仅可以用飞狐交易师股票软件引入使用;
  • fnc格式股票公式,可以用大智慧新一代高速行情分析系统股票软件使用,少部分可以用分析家股票软件引入使用;
  • exp格式股票公式,仅可以用大智慧经典版股票软件引入使用;
  • tnctni格式股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
  • tn6格式公式,仅可以用通达信公式编辑器5.0版导入,高版本兼容低版本;
  • hxf格式股票公式,仅可以用同花顺股票软件引入使用。
  • 如果引入公式的时候,发现公式名称栏空白,调整电脑时间到1997年,能出现公式名称并正常显示,可能是公式使用期限已过。
  • 如果您发现下载链接错误,请点击报告错误谢谢!