指标编写学习论坛
标题:
大智慧如何写隔5天显示一根K线
[打印本页]
作者:
admin
时间:
2016-5-7 16:30
标题:
大智慧如何写隔5天显示一根K线
大智慧如何写隔5天显示一根K线
正确答案:
t:=MOD(sum(1,0),5);
a:=if(n-1=0,h,HHV(h,n));
b:=if(n-1=0,l,LLV(l,n));
d:=if(n-1=0,o,ref(o,n-1));
e:=c;
STICKLINE(d>e and t=0, d, e, 4,0),COLOR00ff00;
STICKLINE(e>d and t=0, d, e, 4,0),COLOR0000ff;
STICKLINE(d>e and t=0, b,a,0.1 ,0 ),COLOR00ff00;
STICKLINE(e>d and t=0, b,a,0.1 ,0 ),COLOR0000ff;
欢迎光临 指标编写学习论坛 (http://shgm.net/)
Powered by Discuz! X3.2