add trailing stop to the exit method

This commit is contained in:
c9s 2022-07-06 10:56:10 +08:00
parent b49f12300c
commit 3d9db2786d
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -26,6 +26,7 @@ type ExitMethod struct {
RoiTakeProfit *RoiTakeProfit `json:"roiTakeProfit"` RoiTakeProfit *RoiTakeProfit `json:"roiTakeProfit"`
LowerShadowTakeProfit *LowerShadowTakeProfit `json:"lowerShadowTakeProfit"` LowerShadowTakeProfit *LowerShadowTakeProfit `json:"lowerShadowTakeProfit"`
CumulatedVolumeTakeProfit *CumulatedVolumeTakeProfit `json:"cumulatedVolumeTakeProfit"` CumulatedVolumeTakeProfit *CumulatedVolumeTakeProfit `json:"cumulatedVolumeTakeProfit"`
TrailingStop *TrailingStop2 `json:"trailingStop"`
} }
// Inherit is used for inheriting properties from the given strategy struct // Inherit is used for inheriting properties from the given strategy struct