Closed aivisol closed 9 months ago
Thank you for joining LiuAlgoTrader community and submitting your first issue. Feel free to check out Liu community: https://gitter.im/LiuAlgoTrader/community
Stale issue message
I had this issue too. Not sure if a fix is planned for this, so for a quick workaround, you can directly modify the executable script. Here's some steps on how to do it:
import liualgotrader.trading.alpaca
print(liualgotrader.trading.alpaca.file)
2. Now, open this file in your editor and replace with @aivisol's suggested code above. Until a fix is implemented/merged in, you should be able to run the backtester!
Describe the bug Running backtesting on day when markets are closed, throws following error:
Most likely caused by this: https://github.com/amor71/LiuAlgoTrader/blob/3df70067cf7a419115259956c64b50c5c07931db/liualgotrader/trading/alpaca.py#L58
Suggesting to change it to:
Let me know if this makes sense, I can send a PR.
thanks.