通达信【自动黄金分割】主图指标 江哥小工具 源码分享 附图
{自动黄金分割 普通等系坐标,随压缩而变动,即只认屏幕}
D1:=990;D2:=382;Y:=1;X:=0.382;
DRAWRECTREL(D1,1,D2,1,RGB(250,250,0));DRAWTEXT_FIX(Y,X,0.00,0,'100%'),COLOR00CCCC;
DRAWRECTREL(D1,232,D2,144,RGB(100,100,0));
DRAWRECTREL(D1,188,D2,188,RGB(200,200,0));DRAWTEXT_FIX(Y,X,0.189,0,'19.1%'),COLOR00CCCC;
DRAWRECTREL(D1,375,D2,375,RGB(200,200,0));DRAWTEXT_FIX(Y,X,0.376,0,'38.2%'),COLOR00CCCC;
DRAWRECTREL(D1,491,D2,491,RGB(255,0,0));DRAWTEXT_FIX(Y,X,0.492,0,'50.0%'),COLORRED;
DRAWRECTREL(D1,607,D2,607,RGB(200,200,0));DRAWTEXT_FIX(Y,X,0.608,0,'61.8%'),COLOR00CCCC;
DRAWRECTREL(D1,839,D2,750,RGB(100,100,0));
DRAWRECTREL(D1,794,D2,794,RGB(200,200,0));DRAWTEXT_FIX(Y,X,0.795,0,'80.9%'),COLOR00CCCC;
DRAWRECTREL(D1,982,D2,982,RGB(250,250,0));DRAWTEXT_FIX(Y,X,0.936,0,'BASE'),COLOR00CCCC;
DRAWKLINE(H,O,L,C);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{自动黄金分割 普通等系坐标,随压缩而变动,即只认屏幕}D1赋值:990
D2赋值:382
Y赋值:1
X赋值:0.382
DRAWRECTREL(D1,1,D2,1,RGB(250,250,0))
当满足条件Y时,在横轴X纵轴0.00位置书写文字
DRAWRECTREL(D1,232,D2,144,RGB(100,100,0))
DRAWRECTREL(D1,188,D2,188,RGB(200,200,0))
当满足条件Y时,在横轴X纵轴0.189位置书写文字
DRAWRECTREL(D1,375,D2,375,RGB(200,200,0))
当满足条件Y时,在横轴X纵轴0.376位置书写文字
DRAWRECTREL(D1,491,D2,491,RGB(255,0,0))
当满足条件Y时,在横轴X纵轴0.492位置书写文字
DRAWRECTREL(D1,607,D2,607,RGB(200,200,0))
当满足条件Y时,在横轴X纵轴0.608位置书写文字
DRAWRECTREL(D1,839,D2,750,RGB(100,100,0))
DRAWRECTREL(D1,794,D2,794,RGB(200,200,0))
当满足条件Y时,在横轴X纵轴0.795位置书写文字
DRAWRECTREL(D1,982,D2,982,RGB(250,250,0))
当满足条件Y时,在横轴X纵轴0.936位置书写文字
DRAWKLINE(H,O,L,C)