Mplfinance: How to number the candles?

Created on 5 Apr 2021  路  4Comments  路  Source: matplotlib/mplfinance

I would like to number the candles according to some indicators, but I do not know how to?

For example (TD Sequantial Indicator):
Screen Shot 2021-04-05 at 13 44 46

question

Most helpful comment

@ismailbayram
Ismail,

There are a couple of different ways to do this. First make sure you are familiar with mplfinance additional plot functionality.

I hope that helps. All the best.
--Daniel

All 4 comments

@ismailbayram
Ismail,

There are a couple of different ways to do this. First make sure you are familiar with mplfinance additional plot functionality.

I hope that helps. All the best.
--Daniel

Thank you very much. This reply is very helpful.

@DanielGoldfarb the addplot / scatterplot is super easy to use, but unfortunately only for numbers under 10.
So, @ismailbayram in case you need a decimal point or 2 digits, you have to use the text() method.

@fxhuhn , Yes it gets trickier with 2 or more digit numbers, or with decimal. You can do it, for example setting scatter marker to $12$ or to $123$, however then the scatter marker may get smaller and you have to increase its size to make it more visible. At that point it may be just as easy to use text() which ultimately prints numbers more clearly anyway.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattcambs picture mattcambs  路  3Comments

franklee00 picture franklee00  路  4Comments

simonholzapfel picture simonholzapfel  路  5Comments

obahat picture obahat  路  3Comments

Full4me picture Full4me  路  3Comments