-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve histogram for legend optimization #59
Comments
We have even better one: just copy the |
Thanks, I have read the navy docs, that's a gread idea, but I sitll have a question here. My indicator need antoher data except ohlcv for calculation, say, "amount", how could I introduce the data into navy script? |
For now it's the |
What data format supposed? I past like
|
Try to add in your overlay :
Then:
|
Oh, I see. What if I want to custom an indicator script? Suppose I custom a
and
|
You need scripts to produce new data, overlays for rendering (by design). |
I know ... but how can I pass additional data except ohlcv to an indicator script, for illustration, suppose I download turnover data which cannot be produced by ohlcv , how could I use them as close do in |
Description
NightVision is a great library, I enjoy the most of its fetures. However, there is some minor flaw yet.
I use histogram overlay to chart my indicator, named pc3 in second pane. The indicator doesn't need extra moving average, so I don't put the data of value and signal in overlay. The problem is that legend title still presents two "x" even without data, see my fig below.
I know the histogram overlay is designed for MACD, but it would be nicer with more flexibility.
Appriciating for your attentions.
Suggested solution
Add a propery
Histogram.showLine
in Overlay object likescandles
do. And program checks the value, if true then charts line and displays value on legend, otherwise, doesn't show it.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: