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;之字幅度:=25;横向调节:=1; 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;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!