看股吧 www.kanguba.com [今日大盘指数 欧美全球股市行情 股票公式查询网站] 手机APP下载 | 手机访问 | 加入收藏 | 保存到桌面
看股吧
看股吧股票网-今日大盘指数 欧美全球股市行情 股票公式查询网站
股票查询: 行情分析 DDX指标 走势点评 股票公告 大事 主力持仓 股权质押 分红 大小非 十大股东 股本结构 高管持股 研报 高管 主营 龙虎榜 股吧
当前位置: 看股吧 > 股票公式 > 通达信公式
股票公式搜索:

通达信双向黄金分割主图指标公式

2020/7/9 18:22:27

N:=6000;
高:=REFDATE(HHV(H,N),DATE);
低:=REFDATE(LLV(L,N),DATE);
H1:=高-(高-低)*0.191;
H2:=高-(高-低)*0.382;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.618;
H5:=高-(高-低)*0.809;
H6:=高-(高-低)*0.764;
H7:=高-(高-低)*0.236;
STICKLINE(CURRBARSCOUNT=8,高,高,0,1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=8,H1,H1,0,1),COLORCYAN;
STICKLINE(CURRBARSCOUNT=8,H2,H2,0,1),COLORCCCCCC;
DRAWTEXT(CURRBARSCOUNT=10,高,' 1.000'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=10,H1,'0.809'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.618'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.500'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.382'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.236'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=10,H5,' 0.191'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=10,H7,' 0.764'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=10,低,' 0.000'),COLORRED;
STICKLINE(CURRBARSCOUNT=8,H3,H3,0,1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=8,H4,H4,0,1),COLORLIRED;
STICKLINE(CURRBARSCOUNT=8,H6,H6,0,1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=8,H5,H5,0,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=8,低,低,0,1),COLORRED;
STICKLINE(CURRBARSCOUNT=8,H7,H7,0,1),COLORRED;
DRAWTEXT(CURRBARSCOUNT=50,高*0.99,CON2STR(高,2)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=50,H1,CON2STR(H1,2)),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=50,H2,CON2STR(H2,2)),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=50,H3,CON2STR(H3,2)),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=50,H6,CON2STR(H6,2)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=50,H4,CON2STR(H4,2)),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=50,H5,CON2STR(H5,2)),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=50,H7,CON2STR(H7,2)),COLORRED;
DRAWTEXT(CURRBARSCOUNT=50,低*1.01,CON2STR(低,2)),COLORRED;
HDAY:=800;LDAY:=800;调点:=3;角度:=100;
CURR:=CURRBARSCOUNT;
TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));
GTT:=CONST(BARSLAST(TCH=H))+1;
SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));
BCL:=CONST(FINDLOW(L,0,LDAY*10,1));
DTT:=CONST(BARSLAST(BCL=L))+1;
SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));
涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));
跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));
最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));
L斜率:=角度/IF(C<300,1000,10);
最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));
H斜率:=角度/IF(C<300,1000,10);
IM68:=((SX跌H-SX涨L)/6-(SX跌H-SX涨L)/8);
GH跌X:=SX跌H+(SX跌H-SX涨L)/8;
DL涨X:=SX涨L-(SX跌H-SX涨L)/8;
GTHT:=IF(DTT>GTT,DTT,GTT);
{黄金分割}
X000:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.000,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X000)*1.001,STRCAT(' 0.000 ',CON2STR(X000,2))),COLORF5CCEB;
X191:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.191,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X191)*1.001,STRCAT(' 0.191 ',CON2STR(X191,2))),COLORF5CCEB;
X236:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.236,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X236)*1.001,STRCAT(' 0.236 ',CON2STR(X236,2))),COLORF5CCEB;
X382:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.382,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X382)*1.001,STRCAT(' 0.382 ',CON2STR(X382,2))),COLORF5CCEB;
X500:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.500,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X500)*1.001,STRCAT(' 0.500 ',CON2STR(X500,2))),COLORF5CCEB;
X618:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.618,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X618)*1.001,STRCAT(' 0.618 ',CON2STR(X618,2))),COLORF5CCEB;
X764:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.764,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X764)*1.001,STRCAT(' 0.764 ',CON2STR(X764,2))),COLORF5CCEB;
X809:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.809,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X809)*1.001,STRCAT(' 0.809 ',CON2STR(X809,2))),COLORF5CCEB;
X1:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*1.000,DRAWNULL),DOTLINE,COLOR556600;
DRAWTEXT(CURR=GTHT,(X1)*1.001,STRCAT(' 1.000. ',CON2STR(X1,2))),COLORF5CCEB;

看股吧 公式 www.kanguba.c om

其它股票公式列表
看股吧查股导航:个股行情分析查询 股票DDX指标查询 走势点评 股票公告查询 大事提醒 股权质押查询 股票分红查询 解禁查询 高管持股 高管查询
神农科技 300189+3.44% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
铜牛信息 300895+3.42% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
浩云科技 300448+3.42% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
厦门象屿 600057+3.42% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
驰宏锌锗 600497+3.42% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
科恒股份 300340+3.40% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
恒基达鑫 002492+3.37% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
ST星源 000005+3.37% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
亚星锚链 601890+3.35% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
锌业股份 000751+3.35% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
看股网力求但不保证数据的完全准确,不对因网站全部内容或部分内容而引致的盈亏承担任何责任,本站所有内容仅供参考。
本站不提供任何股票服务,站内广告不代表看股吧的观点,由此引起的一切法律责任均与本站无关,请股民自行识别判断,谨慎投资,预防上当受骗!
联系我们:nlfen9@hotmail.com
手机版(手机访问当前页面) | 手机APP下载 | 电脑端(适合电脑或大屏用户) | 备案号:沪ICP备2024045114号-121