-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Anyway to plot custom indicator with custom colour ? #748
-
I am currently building a custom indicator of myself. I want to ask if the colour when bt.plot() depend on the backtesting.py or pandas_ta ?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
The indicator color can be set by the color=
parameter passed into Strategy.I()
indicator wrapper.
By default, colors are assigned sequentially from a pool:
backtesting.py/backtesting/_plotting.py
Lines 84 to 85 in 8b36a6b
https://docs.bokeh.org/en/latest/docs/reference/palettes.html#d3-palettes
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you, I am still writing my indicator. Will response when it ran successfully. 👍
Beta Was this translation helpful? Give feedback.
All reactions
-
Is it also possible to set the size of the scattered dots?
If not, is there any plan to implement that logic? I'd like to take a shot at it :)
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1