Skip to content

Conversation

@hanwencheng
Copy link

  • Replace incorrect 'std=' parameter with 'lower_std=' and 'upper_std='
  • Update BBP column references to use correct format: BBP_{length}{lower_std}{upper_std}

Affected files:

  • bots/controllers/generic/quantum_grid_allocator.py
  • bots/controllers/directional_trading/macd_bb_v1.py
  • bots/controllers/directional_trading/bollinger_v1.py
  • bots/controllers/directional_trading/dman_v3.py
  • bots/controllers/directional_trading/bollingrid.py

This fixes KeyError exceptions when trying to access BBP columns that weren't properly created due to incorrect pandas_ta.bbands() parameters.

- Replace incorrect 'std=' parameter with 'lower_std=' and 'upper_std='
- Update BBP column references to use correct format: BBP_{length}_{lower_std}_{upper_std}

Affected files:
- bots/controllers/generic/quantum_grid_allocator.py
- bots/controllers/directional_trading/macd_bb_v1.py
- bots/controllers/directional_trading/bollinger_v1.py
- bots/controllers/directional_trading/dman_v3.py
- bots/controllers/directional_trading/bollingrid.py

This fixes KeyError exceptions when trying to access BBP columns that
weren't properly created due to incorrect pandas_ta.bbands() parameters.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@cardosofede
Copy link
Contributor

@rapcmia @david-hummingbot can you tag the dev working on the upgrade to validate this fix?
thanks @hanwencheng for the contribution

@david-hummingbot
Copy link
Contributor

@lgrawet Can you check this PR?

@lgrawet
Copy link

lgrawet commented Dec 10, 2025

Hi @david-hummingbot and @hanwencheng, it looks good to me excepted for dman_v3.py where a fix is also required in get_spread_multiplier method, line 182.

@hanwencheng
Copy link
Author

Thanks, updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants