This strategy is a % visualization of MACD strategy HISTOGRAM value. See the formula for how the percentage is calculated.
If a positive buy/sell_value
is used the MACDPERCENTAGE value must ve above the buy/sell_value
. If a negative buy/sell_value
is used the MACDPERCENTAGE value must be below your buy/sell_value
.
Use Tradingview to visualize this indicator.
View on Tradingview
MACDPERCENTAGE_candle_period
Longer candle periods tend to work better for MACD.
MACDPERCENTAGE_fast_length
MACDPERCENTAGE_slow_length
MACDPERCENTAGE_signal
The values of 12, 26 and 9 are the typical fast, slow, signal setting used with the MACD, however other values can be substituted depending on your trading style and goals.
DEFAULT_A_buy_strategy = MACDPERCENTAGE
DEFAULT_A_buy_value = 1
DEFAULT_DCA_B_buy_strategy = MACDPERCENTAGE
DEFAULT_DCA_B_buy_value = -0.5
MACDPERCENTAGE_candle_period = 300
MACDPERCENTAGE_fast_length = 12
MACDPERCENTAGE_slow_length = 26
MACDPERCENTAGE_signal = 9
MACDPERCENTAGE_return_value = MACDLINE