@Demo public class AccumulationDistributionLineDemo extends Object
--live downloads Yahoo history.
Pass --charts to plot the ADL; performance measures appear in the console.
Using this example. Adapts OHLCV bars to an indicator-driven strategy and sends only the change from current position to the target. Order quantities are signed product units; this fixed-unit example does not invest all account cash. DemoSupport controls licensing, synthetic data and optional live downloads.
Model and publication. No single original research publication is claimed for this library/example policy.
Implementation in this tutorial. Accumulation/distribution aggregates volume signed by the close’s location within its high-low range. The demo combines that indicator with smoothed price changes. Its actual target rule, documented above, is an example policy and is not evidence that a divergence signal has positive expected return.
| Modifier and Type | Class and Description |
|---|---|
static class |
AccumulationDistributionLineDemo.SimpleADLStrategy |
Copyright © 2026. All rights reserved.