Skip to main content

CreateHyperoptInput

Input for creating a new hyperopt run

input CreateHyperoptInput {
ownerID: String!
strategyID: ID!
runnerID: ID!
epochs: Int
spaces: [String!]
lossFunction: String
minTrades: Int
minProfitFactor: Float
config: Map
startDate: Time
endDate: Time
}

Fields​

CreateHyperoptInput.ownerID ● String! non-null scalar​

Organization that owns the strategy (used for feature gating and billing)

CreateHyperoptInput.strategyID ● ID! non-null scalar​

Strategy to optimize

CreateHyperoptInput.runnerID ● ID! non-null scalar​

Runner to execute hyperopt on

CreateHyperoptInput.epochs ● Int scalar​

Number of optimization epochs (default: 100)

CreateHyperoptInput.spaces ● [String!] list scalar​

Spaces to optimize (e.g., buy, sell, roi, stoploss, trailing)

CreateHyperoptInput.lossFunction ● String scalar​

Loss function to use (default: SharpeHyperOptLoss)

CreateHyperoptInput.minTrades ● Int scalar​

Minimum number of trades an epoch must report before it is eligible to win. Freqtrade's loss functions carry no trade-count constraint, so the lowest-loss epoch is routinely one that entered a handful of times over the whole window. Omit for the platform default; 0 disables the check.

CreateHyperoptInput.minProfitFactor ● Float scalar​

Profit factor an epoch must EXCEED to be eligible to win. Omit for the platform default; 0 disables the check.

CreateHyperoptInput.config ● Map scalar​

Hyperopt configuration overrides (exchange, pairs, timeframe, etc.)

CreateHyperoptInput.startDate ● Time scalar​

Start date for timerange

CreateHyperoptInput.endDate ● Time scalar​

End date for timerange

Member Of​

hyperoptDataAvailability query ● runHyperopt mutation