以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://222.73.7.161/bbs/index.asp)
--  公式模型编写问题提交  (http://222.73.7.161/bbs/list.asp?boardid=4)
----  这以下几种状态什么意思,请老师指导  (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=166650)

--  作者:幸运60
--  发布时间:2018/11/23 21:13:23
--  这以下几种状态什么意思,请老师指导


 variable: as=0, st=0,ao =6.8;
 
 if barpos = 0 then  st := open - ao;

if as = 0 then begin
        if open <= st then begin
            as:= 1;
            st := open+ao;
             end


         if open - ao > st then
             st := open-ao;
              end


 if as = 1 then begin
          if open >= st then  begin
             as:= 0;
             st :=open-ao;
                end
 
         if open + ao < st then
             st := open+ao;
                end


 ==========================

几种状态,什么意思?三种上下轨?

开盘价加减一个6.8的系数?

 


--  作者:FireScript
--  发布时间:2018/11/26 9:03:49
--  
看这代码也就是根据不同情况给st赋值,至于背后有什么思路就不得而知了。