News for hackers. Stuff that matters.
Re:Show HN: Prophet – A financial micro-framework in Python by minimax on Saturday November 22, 2014 @06:18AM (#8645335)
Why do you say you can't reliably get the closing price? You should be able to send an MOC order to the listing exchange to get the official closing price.
Re:Show HN: Prophet – A financial micro-framework in Python by yummyfajitas on Saturday November 22, 2014 @06:55AM (#8645375)
To be more precise, you can't reliably get the closing price and also know what it is before you get it.

If I understand the code right, it looks at the closing price and then decides if it wants to buy.

https://github.com/Emsu/prophet/blob/master/prophet/backtest...

Look at lines 72 and 79. The data in the examples comes from YahooCloseData in data.py.