@Demo public class TutorialStrategyDemo extends Object
Using this example. End-to-end wiring for TutorialStrategy: Yahoo history is sampled monthly, wrapped in OrderBookCaches and passed to SimpleSimulatorBuilder. Initial capital is set to the first sampled price, while the strategy still targets one unit. Registered yearly measures use annual return periods even though the strategy receives monthly observations.
Model and publication. No single original research publication is claimed for this library/example policy.
Implementation in this tutorial. This is an event-handling lesson rather than a published econometric model. Price direction selects a fixed signed-unit target and the existing position determines the incremental order. See TutorialStrategy for equal-price behavior and the companion demo for monthly sampling.
| Constructor and Description |
|---|
TutorialStrategyDemo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
run()
Downloads and samples HSI history, runs one fresh strategy and logs its measures.
|
Copyright © 2026. All rights reserved.