Customizing Safeties
Last updated
Last updated
All the Easy Safety command take a direction parameter. If we set this parameter we can restrict the safety to only work when the position is a specific direction. By doing this we can for example have 2 StopLoss command. One for when we are long and one for when we are short with different percentages.
By default the safetyResult in the TradeBotContainer will only exit the position. If we want to flip from long to short directly, we can use the DoFlipPosition command. This will look at the current position and execute orders the other direction.