Skip to main content

RLStrategyTemplate

A ready-to-fork code-mode RL strategy template (the Release-1 "ready models"). Bound to the freqai.StrategyTemplate domain type (ADR-0066 — server-owned). The neutral scaffold has an empty modelType; each preset is tuned for a curated algorithm. Each template trains inline when backtested/run.

type RLStrategyTemplate {
name: String!
description: String!
code: String!
modelType: String!
timeframe: String!
tradingMode: String!
marginMode: String!
}

Fields​

RLStrategyTemplate.name ● String! non-null scalar​

Human-readable strategy/template name.

RLStrategyTemplate.description ● String! non-null scalar​

One-line summary for the preset picker.

RLStrategyTemplate.code ● String! non-null scalar​

The full Freqtrade strategy Python source the picker seeds into the editor.

RLStrategyTemplate.modelType ● String! non-null scalar​

The curated RL algorithm this template is tuned for (catalogue ID, e.g. "PPO"). Empty for the neutral scaffold.

RLStrategyTemplate.timeframe ● String! non-null scalar​

The strategy's declared base timeframe (e.g. "1h" for the PPO preset). The frontend aligns the seeded strategy's config base timeframe to this so the strategy's timeframe and the freqai include_timeframes stay consistent (Freqtrade requires main timeframe ≤ include_timeframes).

RLStrategyTemplate.tradingMode ● String! non-null scalar​

The Freqtrade trading_mode the template runs on ("futures": an RL agent opens both long and short positions). The frontend seeds it into the strategy's config rather than deciding the market itself.

RLStrategyTemplate.marginMode ● String! non-null scalar​

The Freqtrade margin_mode that goes with tradingMode ("isolated").

Returned By​

rlStrategyPresets query