mhallsmoore / qstrader

QuantStart.com - QSTrader backtesting simulation engine.
https://www.quantstart.com/qstrader/
MIT License
2.88k stars 856 forks source link

Datetime attribute in OrderEvent and SignalEvent classes #254

Closed erenkeskus closed 7 months ago

erenkeskus commented 6 years ago

Hello,

I noticed that there are no attributes holding the time of the event in OrderEvent and SignalEvent classes in event.py. The log contains this information, but since the algorithm is iterative, there is no way to hold on to it. I want to reach both and plot them against my price curve when I am runnig a backtest, so that I have a visual understanding of what is going on inside the strategy and risk manager. I would like to make alterations in tearsheet.py accordingly, as well. I hope I am not missing anything.

Cheers, Eren

JamesKBowler commented 6 years ago

Hi @erenkeskus, do you mean in real time as the backtest is running?

Regards, James