3 ms·
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 closin
by yummyfajitas 12y ago
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.py#L72 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.