Package com.qtsurfer.api.sdk
Class Strategy
java.lang.Object
com.qtsurfer.api.sdk.Strategy
A compiled strategy handle returned by
QTSurfer.compile(java.lang.String). Use it to
spawn one or more Backtests that reuse the same compilation.-
Constructor Summary
ConstructorsConstructorDescriptionStrategy(String id, BacktestWorkflow workflow) Internal constructor used by the SDK workflow; not part of the public contract.Strategy(String id, List<com.qtsurfer.api.client.model.DeclaredProperty> declaredProperties, BacktestWorkflow workflow) Internal constructor used by the SDK workflow; not part of the public contract. -
Method Summary
Modifier and TypeMethodDescriptionbacktest(BacktestRequest request) Deprecated.backtest(BacktestRequest request, BacktestOptions options) Deprecated.List<com.qtsurfer.api.client.model.DeclaredProperty>Best-effort property vocabulary discovered while compiling this strategy.executeBacktest(BacktestRequest request) Equivalent toexecuteBacktest(BacktestRequest, BacktestOptions)withBacktestOptions.defaults().executeBacktest(BacktestRequest request, BacktestOptions options) Run a backtest with this strategy.id()The compiled strategyId as returned by the backend.toString()Compact debug representation including the compiled strategy id.
-
Constructor Details
-
Strategy
Internal constructor used by the SDK workflow; not part of the public contract. -
Strategy
public Strategy(String id, List<com.qtsurfer.api.client.model.DeclaredProperty> declaredProperties, BacktestWorkflow workflow) Internal constructor used by the SDK workflow; not part of the public contract.
-
-
Method Details
-
id
The compiled strategyId as returned by the backend. -
declaredProperties
Best-effort property vocabulary discovered while compiling this strategy. -
executeBacktest
public CompletableFuture<Backtest> executeBacktest(BacktestRequest request, BacktestOptions options) Run a backtest with this strategy. Prepare + execute start immediately. -
executeBacktest
Equivalent toexecuteBacktest(BacktestRequest, BacktestOptions)withBacktestOptions.defaults(). -
backtest
@Deprecated(forRemoval=false) public CompletableFuture<Backtest> backtest(BacktestRequest request, BacktestOptions options) Deprecated. -
backtest
Deprecated. -
toString
Compact debug representation including the compiled strategy id.
-
executeBacktest(BacktestRequest).