以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  <built-in function history_bars> returned NULL without setting an error  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=174104)

--  作者:starmichael
--  发布时间:2020/1/30 11:14:24
--  <built-in function history_bars> returned NULL without setting an error
def handle_bar(context):
    
    bar_len=50
    bar_close=history_bars(\'SQRB05\',bar_len,\'1d\',\'CLOSE\')
            
    log_debug_info(\'d:\\pythonout\\pel_test_log.txt\',context.IDEN)

上面的写法有什么不对的地方么?为什么
图标上显示:<built-in function history_bars> returned NULL without setting an error


--  作者:无为剑
--  发布时间:2020/1/30 12:17:25
--  

图片点击可在新窗口打开查看此主题相关图片如下:tim截图20180904181842.png
图片点击可在新窗口打开查看