@Demo public class Dai2011LongOnlyDemo extends Object
Using this example. Constructs Dai2011LongOnly, supplies Yahoo order books and initial capital, then runs the simulator and reads its PerformanceReport. The plotter opens a desktop chart. Inspect the model parameters and trade sizing independently of the initial cash balance.
Model and publication. The paper models bull/bear drift as an unobserved Markov state. A filtered bull probability drives entry and exit boundaries for a transaction-cost-aware stopping problem. The package’s 2011 label differs from the linked 2010 journal publication.
Implementation in this tutorial. Dai2011LongOnly adapts the idea with a three-year burn-in, yearly recalibration, a 21-observation regime-identification window, threshold 0.10 and rho=0. These are example calibration choices, not the paper’s complete experiment. Read its additional sizing and stop logic before comparing results. Initial cash is 1,000,000; report measures mix SIMPLE information-ratio returns with ABSOLUTE Omega inputs, so their scales differ.
| Constructor and Description |
|---|
Dai2011LongOnlyDemo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
run(Stock stock) |
Copyright © 2026. All rights reserved.