RLConfigInput
Typed RL configuration the frontend submits to assembleRLConfig. The Go counterpart is freqai.RLConfig; model_type and policy_type land inside the freqtrade rl_config sub-block, NOT at the top level of the freqai block.
input RLConfigInput {
modelType: String!
allowAdvancedModel: Boolean
timeframe: String
trainPeriodDays: Int
backtestPeriodDays: Int
identifier: String!
featureParameters: Map
dataSplitParameters: Map
modelRewardParameters: Map
rawRlConfig: Map
}
Fields
RLConfigInput.modelType ● String! non-null scalar
The sb3/sb3-contrib algorithm class name (e.g. "PPO"). Lands at rl_config.model_type.
RLConfigInput.allowAdvancedModel ● Boolean scalar
Admit a free-text modelType outside the curated catalogue (the advanced passthrough escape hatch). When false, only catalogue algorithms validate.
RLConfigInput.timeframe ● String scalar
The strategy's base timeframe (e.g. "1h"). Seeds feature_parameters.include_timeframes — Freqtrade REQUIRES the main timeframe to be ≤ include_timeframes, so a preset whose native timeframe is coarser than the 5m default must pass it here. Falls back to the package default ("5m") when omitted.
RLConfigInput.trainPeriodDays ● Int scalar
Rolling training-window length in days (FreqAI re-trains each window). Defaults applied when omitted.
RLConfigInput.backtestPeriodDays ● Int scalar
How many days each trained model is used before the next rolling re-train. Defaults applied when omitted.
RLConfigInput.identifier ● String! non-null scalar
Namespaces the trained model under user_data/models.
RLConfigInput.featureParameters ● Map scalar
Standard FreqAI feature_parameters sub-block, passed through verbatim.
RLConfigInput.dataSplitParameters ● Map scalar
Standard FreqAI data_split_parameters sub-block, passed through verbatim.
RLConfigInput.modelRewardParameters ● Map scalar
Merged into rl_config.model_reward_parameters (where MyRLEnv.calculate_reward reads it).
RLConfigInput.rawRlConfig ● Map scalar
Advanced passthrough: arbitrary rl_config keys (train_cycles, net_arch, policy_type, cpu_count, …) merged into the assembled rl_config so users reach the full Freqtrade surface. Explicit keys here win over package defaults.
Member Of
assembleRLConfig mutation