public final class DemoSupport extends Object
Using this example. Centralizes technical-demo setup: initialize(args) selects the license and runtime options before any data or simulation calls. Generated bars are deterministic weekday fixtures shared across symbols, not a realistic multi-asset market. Use the verification helper to inspect NAV output without assuming that orders necessarily filled.
Model and publication. No single original research publication is claimed for this library/example policy.
Implementation in this tutorial. This class prepares licensed data, charting and result checks for the technical lessons. It is infrastructure, not a separate statistical model.
| Modifier and Type | Method and Description |
|---|---|
static SequentialCache<StockEOD> |
eod(Stock stock,
dev.nm.misc.datastructure.time.LocalDateTimeInterval interval)
Returns Yahoo history in live mode, or generated weekday OHLCV bars otherwise.
|
static void |
initialize(String[] args)
Validates options and loads the external license before licensed objects are created.
|
static OrderBookCacheFactory<Stock> |
orderBooks()
Adapts daily adjusted closes to simulated order books, or uses cached Yahoo history.
|
static StrategyPlotter |
plotter(String title)
Selects a desktop plotter only when requested, allowing headless CI by default.
|
static boolean |
quick()
Whether the dynamic example should use its short interval and single parameter set.
|
static void |
verify(PerformanceReport report)
Checks nonempty, finite NAV output; prints execution count without requiring a trade.
|
public static void initialize(String[] args)
--live selects Yahoo downloads, --charts enables desktop plots,
and --quick reduces the dynamic demo's workload.
Set -Dnm.license=/path/nm.lic to override license/nm.lic.args - command-line options passed to the demopublic static boolean quick()
public static StrategyPlotter plotter(String title)
public static OrderBookCacheFactory<Stock> orderBooks()
public static SequentialCache<StockEOD> eod(Stock stock, dev.nm.misc.datastructure.time.LocalDateTimeInterval interval) throws Exception
Exceptionpublic static void verify(PerformanceReport report)
Copyright © 2026. All rights reserved.