Skip to main content

StrategyChangeInput

A change to the latest version of a strategy, in the user's terms. Every field but change is optional, and an absent one leaves that part as it is.

input StrategyChangeInput {
strategyID: ID!
change: String!
description: String
timeframe: String
direction: PositionMode
stoploss: Float
stopPosture: StrategyStopPosture
profitTargets: StrategyProfitTargets
entryThreshold: Float
exitThreshold: Float
}

Fields​

StrategyChangeInput.strategyID ● ID! non-null scalar​

The latest version of the strategy to change.

StrategyChangeInput.change ● String! non-null scalar​

What the user asked to change, in their words.

StrategyChangeInput.description ● String scalar​

A replacement description for the new version.

StrategyChangeInput.timeframe ● String scalar​

New candle interval.

StrategyChangeInput.direction ● PositionMode enum​

New long/short posture.

StrategyChangeInput.stoploss ● Float scalar​

The exact stop as a negative fraction (-0.05). Wins over stopPosture.

StrategyChangeInput.stopPosture ● StrategyStopPosture enum​

StrategyChangeInput.profitTargets ● StrategyProfitTargets enum​

StrategyChangeInput.entryThreshold ● Float scalar​

New entry level for a level-triggered strategy.

StrategyChangeInput.exitThreshold ● Float scalar​

New exit level for a level-triggered strategy.

Member Of​

proposeStrategyChange mutation