Price Volume Distribution
Author: RA81
Creation Date: 7/20/2009 12:46 AM
profile picture

RA81

#1
I can't find the answer in the forum, so make new topic

I need to make such indicator: clasters of volumes.

Description:
I have a Chart with one security. Then I need to calc volumes at any prices and plot a histogramm starting form right side to left side of the chart. Example. At price 137 i have summ volume = 3450045 , at price 136 summ volume = 2004059, and so on. The result is - histogramm of volumes
||||||||||
||||||||
|||||
|||||||||
I can make this histogramm via chartstyle module using Graphics, but there is one problem. How to get area filled with price and date Axis? otherwise my histogramm overlaps with Axis, and volume pane


Or may be there is another way to do the indicator? (Amibroker support drawing everything you want)

PS: and how to use wealthlab Color picker in my settings form for chartstyle?
profile picture

Cone

#2
This isn't a good example of a Chart Style. You can simply draw rectangles like the Price by Volume Study did in v4. See the QuickRef: Cosmetic Chart

Actually, I'm surprised we haven't translated the Price Volume Distribution yet.


QUOTE:
Amibroker support drawing everything you want
What do you like about Wealth-Lab that Amibroker doesn't have?
profile picture

Cone

#3
Actually, it looks like I've already made a stab at it... found this in one of my Strategy folders -

CODE:
Please log in to see this code.
profile picture

Eugene

#4
Just dropped in to say that your method is also available in Community.Components:

Price Volume Distribution
profile picture

Cone

#5
Eugene, you're good. I think Glitch gets the credit for this one in v4 though.
profile picture

Eugene

#6
Done.
profile picture

RA81

#7
QUOTE:
Just dropped in to say that your method is also available in Community.Components:

uups, i didnt use this dll before.

QUOTE:
Actually, it looks like I've already made a stab at it... found this in one of my Strategy folders -

thanks a lot for code :), i can find it in sources of Community.Components

QUOTE:
What do you like about Wealth-Lab that Amibroker doesn't have?

lets forget about amibroker :). It's a good soft, but WLD 5, i think, will be much better.


QUOTE:
This isn't a good example of a Chart Style. You can simply draw rectangles like the Price by Volume Study

but there is one problem, that x coord is binded to bar dates (but i think this is not a big trouble. So YOU WIN).


and how to use wealthlab Color picker in my settings form for chartstyle?
profile picture

Cone

#8
See code for ColorFinder.
profile picture

RA81

#9
QUOTE:
See code for ColorFinder.

no. how to make color picker like in ADX indicator settins for example. I can make button with standart color dialog but may be in WLD there is special component?
profile picture

Eugene

#10
Hardly a special component: the one that pops up when you invoke the ADX is a standard Windows color picker.
profile picture

RA81

#11
QUOTE:
no. how to make color picker like in ADX indicator settins for example. I can make button with standart color dialog but may be in WLD there is special component?

I have the answer: this control is Fidelity.Components.ColorPickerPanel


I have now another problem and may be not only I. How to draw text on the pane relative with Bar number (like DrawLine, DrawPoligon etc)? I try to extend WLD code and WealthLab.WSDrawingObjects namespace but internal abstract void Render(Graphics g, ChartPane pane, ChartRenderer cr). So what to do now?
profile picture

Cone

#12
Until Fidelity releases documentation for these API's, I'm afraid advanced programmers are left to their own devices. Sad, I know.
profile picture

RA81

#13
QUOTE:
Until Fidelity releases documentation for these API's, I'm afraid advanced programmers are left to their own devices. Sad, I know.


problem is deeper. internal restrict access and override methods outside assembly, so may be in higher versions you will change internal to protected? This will be usefull i think.
profile picture

RA81

#14
I have extend WealthLab.WSDrawingObjects with new WSDText2 class and now i Can plot Text(wich is attached to bar number and value not X, Y coords) on any pane. Everybody who intrested in my code please write to me (i cant post it here).
profile picture

Cone

#15
Why wouldn't you just use AnnotateBar for attaching text above and below a specified bar?
profile picture

RA81

#16
QUOTE:
Why wouldn't you just use AnnotateBar for attaching text above and below a specified bar?

sometimes when i plot the result of my calculations on the pane, AnnotateBar will annotate only bar, not group of bars or other figures. But i need annotate MY DRAWINGS not one bar.

For what exist possibility to plot lines/rectangles/circles programmatically if i Can't plot text values which this lines/rectangles/circles represent? Figures are illustrative but, text is informative.
profile picture

SlickChick

#17
Unable to find "Price Volume Distribution" in my current version of WL. Is it still available?
Tried running the C# example...errors


profile picture

Eugene

#18
1. Copy/paste the sample code in WL as is. Your code is incomplete so it will not compile.
2. Install Community Components and restart WLD.
3. Don't use external image hosters, use "Add Attachments" to attach a screenshot (edited your post).
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).