黄金分割双基点主图指标 (源码)
N1:=5;N2:=10;M:=1;
低: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;
- 上一篇公式:强势拉升主图指标 (源码)
- 下一篇公式:黄金分割单基点主图指标 (源码)