freqtrade/frequi

[FR] Add price change and % change to candles in UI chart

chepo92 opened this issue · 4 comments

Is your feature request related to a problem? Please describe.
Idk if there exist the option, but would be nice to have the price change and % of change for each candle the FreqTrade UI,

Describe the solution you'd like
Add delta and % change to candle information in the FreqTrade UI

Describe alternatives you've considered
maybe I need to create and populate them as indicator ?, but I don't know if it will add them in candle information section

Additional context
FreqTrade UI:

imagen

Eg. (coinex shows +0.000891 (+0.67%) )

imagen

define "price change of each candle" ?
is it low -> high? open -> close? something else?

it's not defined, really, and i've seen different instances across exchanges over the years.

the easiest is for sure to simply add it as an indicator, and then plot it somewhere - so it'll be shown in the "tooltip" when you mouseover a candle.
it'll be shown in the section you add it to - which most likely will be one of the subplots, as otherwise the scaling will be comletely off, forcing you to zoom in a lot.

Hi Matthias
Usually i've seen it as close - open, but no problem defining it as an indicator
I have added it to my plots, also percent of open-close change, and it displays in the tooltip too, but is there a way to display less digits in it?, and also format the percentage as {xx.xx} % ?,

I already added a .round(n) function in the indicator calculation for the first part, but don't know how to add the percentage format, can an indicator be not a number, so i can convert it to a string and send to plot?

imagen

imagen

well just use the name for that?
like - name it "change_%"? pandas will allow that - and so should everything after that.

You can now use the shift button to interactively measure distances (similar to tradingview charts).

image

either that - or by adding the % to the dataframe to display it on-chart should do what you require.