admin 发表于 2016-5-7 16:30:02

大智慧如何写隔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;



页: [1]
查看完整版本: 大智慧如何写隔5天显示一根K线