Description Usage Arguments Value
Stock trading based on xgboost predictions
1 | f_trade(test_data, buy_cut = 0.6, sell_cut = 0.4)
|
test_data |
data. Should be a data.table object with predictions from f_predict |
buy_cut |
cut off determining when to buy. Should be a number between 0 and 1 |
sell_cut |
cut off determining when to sell. Should be a number between 0 and 1 |
list with trades made and earnings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.