mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bollmaker: add DynamicExposurePositionScale
This commit is contained in:
parent
09213b14f3
commit
f9d650cd23
|
@ -100,13 +100,10 @@ type Strategy struct {
|
|||
// -10 means you can hold -10 ETH short position by maximum
|
||||
MaxExposurePosition fixedpoint.Value `json:"maxExposurePosition"`
|
||||
|
||||
// UseDynamicExposurePosition is used for enabling the dynamic position
|
||||
// when UseDynamicExposurePosition is set,
|
||||
// DynamicExposurePositionScale is used to define the exposure position range with the given percentage
|
||||
// when DynamicExposurePositionScale is set,
|
||||
// your MaxExposurePosition will be calculated dynamically according to the bollinger band you set.
|
||||
UseDynamicExposurePosition bool `json:"useDynamicExposurePosition"`
|
||||
|
||||
DynamicExposurePositionScale bbgo.Scale `json:"dynamicExposurePositionScale"`
|
||||
|
||||
DynamicExposurePositionScale *bbgo.PercentageScale `json:"dynamicExposurePositionScale"`
|
||||
|
||||
// Long means your position will be long position
|
||||
// Currently not used yet
|
||||
|
|
Loading…
Reference in New Issue
Block a user