龙听期货论坛's Archiver

龙听 发表于 2018-10-19 14:28

[转载]黄金分割-双基点-主图

既单基点黄静分割后,模拟通达信画线工具自编了双基点的黄金分割,神奇还是巧合,找股票试一试就知道,均以前一波的高低点为双基点,参数N为低点,参数M为高点。欢迎讨论!

参数设置{N1:0 9999 5;N2:0 9999 10;M:0 100 1}

[code]
低:N1,COLORYELLOW;
H1:N1+(N2-N1)*(M-1+0.191),DOTLINE,COLORYELLOW;
H2:N1+(N2-N1)*(M-1+0.236),DOTLINE,COLORYELLOW;
H3:N1+(N2-N1)*(M-1+0.382),DOTLINE,COLORYELLOW;
H4:N1+(N2-N1)*(M-1+0.5),DOTLINE,COLORYELLOW;
H5:N1+(N2-N1)*(M-1+0.618),DOTLINE,COLORYELLOW;
H6:N1+(N2-N1)*(M-1+0.809),DOTLINE,COLORYELLOW;
H7:N1+(N2-N1)*(M-1+1),DOTLINE,COLORYELLOW;
高:N2,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,高,'高'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,H1,'0.191'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,H2,'0.236'),COLORBROWN;
DRAWTEXT(CURRBARSCOUNT=1,H3,'0.382'),COLORGRAY;
DRAWTEXT(CURRBARSCOUNT=1,H4,'0.5'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,H5,'0.618'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,H6,'0.809'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,H7,'1'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,低,'低'),COLORRED;
[/code]

[attach]4615[/attach]

页: [1]