Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Testing signal backtest with add_signal function

    General Discussion
    1
    2
    483
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sirhc
      sirhc last edited by sirhc

      Hello,

      Where can I see all options,arguments available in function "cerebro.run" and "cerebro.add_signal" ?
      It seems that I miss an option.

      I am trying to run a simple signal using (bt.Signal) class.
      My feed is in 1 minute bar but orders generated by the signal are executed once a day at market open.

      As my signal is correctly moving around 0 in min bar, why does it not send order on 1min bar basis ?

      0_1535732654033_add_signal.png

      Regards

      Chris

      1 Reply Last reply Reply Quote 0
      • sirhc
        sirhc last edited by

        My bad...
        Everything is working as expected.
        My pandas dataframe was not correctly indexed.
        Thank you

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors