Specific hour trading with daily interval data



  • Hello :)

    I try to implement a strategy which buys or sells stocks an hour before the market closes. Is this possible with daily interval data?

    The problem atm is that I decide on a day whether to buy or not, but the trade gets executed on the next day. But I want it to happen on the same day.

    Thanks for the help. And happy trading :)
    Dennis



  • Check out cheat-on-close feature in the docs. It will allow you to buy on close of the bar.



  • Ah nice, I saw the cheat on open but didn't find a the coc :)


Log in to reply
 

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.