admin 发表于 2016-5-7 15:13:43

写一个K线公式,使它在0与此100之间摆动

写一个K线公式,使它在0与此100之间摆动
正确答案:
       0;50;100;
       b:=100/(SYSPARAM(4)-SYSPARAM(5));
       y:=(SYSPARAM(4)+SYSPARAM(5))*b/2-50;
       fc:=c-ref(c,1);
       STICKLINE(o<c or (o=c and fc>0),L*b-y,h*b-y,0.1,0),COLORRED;
       STICKLINE(o<c or (o=c and fc>0),o*b-y,c*b-y,6,1),COLORRED;
       STICKLINE(o>c or (o=c and fc<0),L*b-y,h*b-y,0.1,0),COLORCYAN;
       STICKLINE(o>c or (o=c and fc<0),o*b-y,c*b-y,6,0),COLORCYAN;


页: [1]
查看完整版本: 写一个K线公式,使它在0与此100之间摆动