コード例 #1
0
 def Test():
     #StartDebug()
     p = LivePolicySwitch()
     #p.Regist(qjjy.Strategy(live_policy.Live()))
     p.Regist(boll_pramid.Strategy_Boll_Pre(live_policy.Live()))
     #agl.LOG("LivePolicyRun")
     p.Run()
コード例 #2
0
def run_policy():
    p = live_policy_runner.LivePolicySwitch()
    s = boll_pramid.Strategy_Boll_Pre(data_interface.TdxData())
    if agl.is_function(s.setParams):
        s.setParams()
    p.Regist(s)

    while 1:
        agl.tic()
        p.Run()
        agl.toc()
        time.sleep(3)
        if stock.IsShouPan():
            break