Description Usage Arguments Value Note
View source: R/backtest_strategy.R
predicts next price for one asset
given previous prices according to LOAD
strategy (see paper mentioned in description of
backtest_LOAD
)
1 2 3 4 5 6 | predict_price_LOAD(
prev_prices,
historic_mean,
regularization_factor,
momentum_threshold
)
|
prev_prices |
a numeric vector of previous prices |
historic_mean |
The historic mean of the prices |
regularization_factor |
λ in the referenced paper, the regularization coeffecient for weight decay when regressing the prices in the recent time window. Must be non-negative |
momentum_threshold |
η in the referenced paper. If the regressed slope is greater than η we say the stock has momentum. This must be greater than 0. |
the predicted next price
NO TYPE CHECKING IS PERFORMED... be careful
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.