The Volume Oscillator (VO) works on the technical premise that it is not the actual level of volume, but the change in volume relative to the recent past that has more technical significance. The Volume Oscillator displays the difference between two moving averages of a security's volume expressed as a percentage.
By default this strategy is true when the VO value is less than the buy_value
or is greater than or equal to the sell_value
.
Use buy/sell strategy direction to change this if needed.
Use TV built in Volume Oscillator
# Buy when VOLUMEOSCILLATOR is bigger than 5
DEFAULT_A_buy_strategy = VOLUMEOSCILLATOR
DEFAULT_A_buy_strategy_direction = UP
DEFAULT_A_buy_value = 5
# Sell when VOLUMEOSCILLATOR is below -10
DEFAULT_A_sell_strategy = VOLUMEOSCILLATOR
DEFAULT_A_sell_strategy_direction = DOWN
DEFAULT_A_sell_value = -10
# Buy when VOLUMEOSCILLATOR is bigger than 10
DEFAULT_DCA_A_buy_strategy = VOLUMEOSCILLATOR
DEFAULT_DCA_A_buy_strategy_direction = UP
DEFAULT_DCA_A_buy_value = 10
# Sell when VOLUMEOSCILLATOR is below 20
DEFAULT_DCA_A_sell_strategy = VOLUMEOSCILLATOR
DEFAULT_DCA_A_sell_strategy_direction = DOWN
DEFAULT_DCA_A_sell_value = 20
VOLUMEOSCILLATOR_candle_period = 3600
VOLUMEOSCILLATOR_fast_length = 5
VOLUMEOSCILLATOR_slow_length = 10