applyHyperoptParamsToStrategy
Apply the best hyperopt parameters to the parent strategy as a NEW version. Risk parameters (stoploss, ROI, trailing, max open trades) become the version's Freqtrade config values. Signal parameters are written into the strategy itself: the builder tree of a UI Builder strategy (its code is regenerated), or a marked block at the end of a code strategy's Python. Refused for a degenerate run, and for a builder strategy that no longer has a parameter the run optimised. Requires 'edit' scope on the parent Strategy. The assistant reaches it only through preview_apply_hyperopt_params: a card the user approves (T-FU-HYPEROPT-BESTPARAMS). No Mission step may run it.
applyHyperoptParamsToStrategy(
id: ID!
): Strategy!