public final class SMA2App extends Object
Using this example. Uses the library crossover signal inside a custom full-equity Strategy, then runs independent funded accounts for underlying buy-and-hold and S&P 500. This sizing differs from the fixed-unit library SMA2 demo. Read warm-up data, trade timing, quantity calculation and measure collection as separate stages before adapting the app.
| Modifier and Type | Class and Description |
|---|---|
static class |
SMA2App.Fill |
static class |
SMA2App.Point |
static class |
SMA2App.Request |
static class |
SMA2App.Result |
static class |
SMA2App.StrategyStatistics |
| Modifier and Type | Field and Description |
|---|---|
static double |
CAPITAL |
static List<String> |
SYMBOLS |
| Constructor and Description |
|---|
SMA2App(boolean synthetic)
Synthetic mode is only enabled by explicit server configuration for offline verification.
|
| Modifier and Type | Method and Description |
|---|---|
SMA2App.Result |
run(SMA2App.Request req) |
public static final double CAPITAL
public SMA2App(boolean synthetic)
public SMA2App.Result run(SMA2App.Request req)
Copyright © 2026. All rights reserved.