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. -
Method Summary
Modifier and TypeMethodDescriptionbacktest(BacktestRequest request) Equivalent tobacktest(BacktestRequest, BacktestOptions)withBacktestOptions.defaults().backtest(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.
-
-
Method Details
-
id
The compiled strategyId as returned by the backend. -
backtest
Run a backtest with this strategy. Prepare + execute start immediately. -
backtest
Equivalent tobacktest(BacktestRequest, BacktestOptions)withBacktestOptions.defaults(). -
toString
Compact debug representation including the compiled strategy id.
-