Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Anyway to plot custom indicator with custom colour ? #748

Unanswered
VietnameseRick asked this question in Q&A
Discussion options

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 ?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

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:

def colorgen():
yield from cycle(Category10[10])

https://docs.bokeh.org/en/latest/docs/reference/palettes.html#d3-palettes
You must be logged in to vote
1 reply
Comment options

Thank you, I am still writing my indicator. Will response when it ran successfully. 👍

Comment options

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 :)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /