Volume Based Chart
Author: edwkelly
Creation Date: 10/4/2018 4:21 AM
profile picture

edwkelly

#1
Hello,

Is there a way I can use or method available to implement what is known as a volume based chart, meaning, each bar records the open, high, low and closing prices occurring within the period it took to trade some number (20K for example) of shares?

Thanks,
Ed
profile picture

Eugene

#2
Hi Ed,

In Community ChartStyles we've got two volume-based chart styles: Enhanced Candlesticks and Constant Volume Bars. The latter looks like what you're looking for based on your description.

On a related note, you might find some other studies helpful if you install the Community Components library:

* Price Volume Distribution (aka Volume-by-Price)
* Price/Volume Heat Map
* UnusualVolumeOnPricePane (aka volume mountain chart)
profile picture

edwkelly

#3
Gracias
profile picture

Eugene

#4
De nada.
profile picture

edwkelly

#5
You're correct that your Constant Volume Bar looks like what I'm after but the source for it is not included in the Components library, just the studies you mentioned and source is not available in Chart Styles.

Problem is I need to post the volume I want rendered at runtime and can't use a dialog. I am not looking for sensitive information so can you provide an overview of the steps needed to create my own version of the CVB?

Thanks again.
profile picture

Eugene

#6
The source code behind CVB (and all the rest) is disclosed here:

Home - Community ChartStyles

Log in to the Wiki and click on the green Attachments button to download it.
profile picture

edwkelly

#7
Muchas Gracias
profile picture

Eugene

#8
No hay de que.
profile picture

edwkelly

#9
Eugene,

I'm having a problem implementing a CVB app without the dialog (as mentioned above I need to pass it the volume at runtime without a dialog). Without going into the sorted details (ie C# is a single inheritance, multiple interface system and WLP is based on abstract base classes, etc), the bottom line is at this point I can't see how to do it.

I would think I would need to have both a WealthScript and ChartStyle(s) class(es) in the app. WS is needed to gather the information needed to pass to the the CS(s) but I don't see a pointer or property connecting the two. Hopefully this is clear?

Thanks in advance,
Ed
profile picture

Eugene

#10
What do you mean by 'CVB app'? Could you clarify what this is?
profile picture

edwkelly

#11
The app is what i need to create and I am calling it a CVB app. I can't use what is provided in Community ChartStyles because that code uses a dialog to fill a threshold used in the RenderBars override.
profile picture

Eugene

#12
If you're trying to drive Wealth-Lab by your external app to utilize the CVB class then please refer to this FAQ on our position of this unsupported activity: Is it possible to use Wealth-Lab or one of its Extensions as a component in custom or 3rd party application?

Otherwise if you're modifying the ChartStyle to work within WLP then you could use a text file (CSV) for passing the volume threshold to the "app". Just avoid WealthLabConfig.txt for this purpose - this might void your warranty. ;)
profile picture

edwkelly

#13
A text file will have to be used then, thanks.

Sorry I wasn't more clear here..
profile picture

WEALTHPRO25

#14
is it possible to get a 5 day volume chart, thanks
profile picture

Eugene

#15
What is that? Be precise please.
profile picture

WEALTHPRO25

#16
it is the five-day average of daily volume
profile picture

Eugene

#17
This is not related to "Volume Based Chart" so it's off topic here. You'll find how to drop an indicator (average) onto another or OHLC/Volume in the Wealth-Lab User Guide.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).