md.stat missing attributes

Hi,

The md.stat object appears to be missing some attributes when running a backtest. For example, the following is from the documentation, but a ValueError exception is raised on 'atr' when executed. Please advise.

Thanks.

    print '  md.stat.atr  -  ', md.stat.atr
    print '  md.stat.avol  -  ', md.stat.avol
    print '  md.stat.beta  -  ', md.stat.beta
    print '  md.stat.dividend_amount  -  ', md.stat.dividend_amount
    print '  md.stat.dividend_comment  -  ', md.stat.dividend_comment
    print '  md.stat.dividend_percent  -  ', md.stat.dividend_percent
    print '  md.stat.exchange  -  ', md.stat.exchange
    print '  md.stat.lot_size  -  ', md.stat.lot_size
    print '  md.stat.prev_close  -  ', md.stat.prev_close
    print '  md.stat.split_ratio  -  ', md.stat.split_ratio

Comments

  • superquantsuperquant Posts: 28
    edited March 2017

    For which symbol and date did you see this exception?

Sign In or Register to comment.