Two price pane in one chart window?
Author: kazuna
Creation Date: 7/16/2009 12:56 AM
profile picture

kazuna

#1
Is it possible to have two price pane in one char window but half and half?
I tried CreatePane but the pane is too smaller than PricePane.
profile picture

Cone

#2
CreatePane(100, .. ) should just about split it. Just play with the parameter. You can also drag the panes to size them manually.
profile picture

kazuna

#3
I actually played and tied 40, 80 and 120...but neither worked for me. 100 works perfect! Thanks!

By the way, is it possible to get current color settings (e.g. up/down bar color and trade arrows color) from the PricePane?
profile picture

Eugene

#4
Did you mean automatically?
profile picture

kazuna

#5
If it can be done automatically, that would be great.
But I was wondering if the script can access to the color property of the price pane.
profile picture

Eugene

#6
If I'm not overlooking something, this property doesn't seem to be exposed. I could think of parsing WealthLabConfig.txt directly to get the value, but that's not elegant.
profile picture

Cone

#7
You can use ChartStyle.GetBarColor.
profile picture

kazuna

#8
ChartStyle.GetBarColor seems defined to take one int argument.
What int value should I use to get up-bar color and down-bar color?
profile picture

Cone

#9
It's the bar number. Here's some code that I used in Trending.ChartStyles to discover the color settings.

CODE:
Please log in to see this code.
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).