Skip to main content

FreqAIProfile

FreqAI / reinforcement-learning recognition derived from the strategy AST. Lets the UI flag "this strategy uses RL" and validate before a run that the required FreqAI hooks are present (missingHooks). Recognition keys on method/attribute names, not bodies, so user edits to the reward/features never break it.

type FreqAIProfile {
usesFreqai: Boolean!
usesRl: Boolean!
declaredHooks: [String!]!
missingHooks: [String!]!
hasRewardEnv: Boolean!
}

Fields

FreqAIProfile.usesFreqai ● Boolean! non-null scalar

The strategy declares at least one FreqAI hook or calls self.freqai.start().

FreqAIProfile.usesRl ● Boolean! non-null scalar

The strategy is specifically a ReinforcementLearner strategy (reward env and/or the &-action target / can_short).

FreqAIProfile.declaredHooks ● [String!]! non-null scalar

Required FreqAI hooks present, in canonical order.

FreqAIProfile.missingHooks ● [String!]! non-null scalar

Required FreqAI hooks absent — populated only for a FreqAI strategy (drives pre-run validation).

FreqAIProfile.hasRewardEnv ● Boolean! non-null scalar

A calculate_reward method (the MyRLEnv reward stub) is defined in the module.

Member Of

StrategyAnalysis object