This strategy uses the longTrail and shortTrail as a channel. Unlike the Kuegi strategy, this strategy longs the supports and shorts the resistances (hence ranging strategy).
The SMAs in MarketTrend-indicator are used to identify the prevailing price action and filter possible trades accordingly: longs in bullish and ranging conditions, shorts in ranging and bearish conditions.
Added an addtitional condition in trading_bot.py to prevent divisions by zero.
This strategy uses the longTrail and shortTrail as a channel. Unlike the Kuegi strategy, this strategy longs the supports and shorts the resistances (hence ranging strategy). The SMAs in MarketTrend-indicator are used to identify the prevailing price action and filter possible trades accordingly: longs in bullish and ranging conditions, shorts in ranging and bearish conditions. Added an addtitional condition in trading_bot.py to prevent divisions by zero.