Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 5/10/2006(UTC) Posts: 1 Location: Forest, Ontario, Canada
|
Most charting software allows users to choose to see volume bars in one color for days when price closes up and another color when price closes down. It would make it much easier on the eyes to line up price bars with volume bars. I have searched for advice on how to do this but have only seen one reference that I could not use. I'm sure I have seen Metastock charts with colored volume bars. I would be grateful for advice on how to do this.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Up:=If(C>Ref(C,-1),V,0);
dn:=If(C<Ref(C,-1),v,0);
Neutral:=If(C=Ref(C,-1),v,0);
up;Dn;Neutral;
just adjust the color for each line and plot the style as a histogram
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
|
|
|
|
Rank:: Advanced Member
Groups: Registered, Registered Users You have been a member since:: 11/25/2006(UTC) Posts: 79
|
I just found out that the indicator can not plot the volume for the first day.
I add one more line:
if(isundefined(ref(c,-1))=1,v,0)
It does solve the problem. But 4 numbers in total will be shown in the inner window title bar.
Is there any way to make it just show one number, ie the non zero if not all 4 zeros, like the original volume indicator?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
wblam,
You might consider plotting the actual volume in an inner window, then plotting the coloured volume over the top. The volume on the first bar will be displayed and, so long as you have the scaling matched, the coloured bars will then overwrite and hide the ordinary volume bars.
As for the title bar, there isn't much you can do about this, but if you you use the method I just described you will have a title bar that has, for example:
Volume (1000000) myColouredVolume(1000000,0)
Train your eyes to just look at the left of the title bar, ignoring the rest.
wabbit [:D]
P.S. How are you getting four volume values?
|
|
|
|
Rank:: Advanced Member
Groups: Registered, Registered Users You have been a member since:: 11/25/2006(UTC) Posts: 79
|
wabbit wrote: P.S. How are you getting four volume values?
I create a custom indicator using the code in post number 2.
Each variable returns a value either the volume or zero, so 3 + 1 added by me there are 4 variables in total and thus has 4 values show in the title bar one of each is the volume and ther others 3 zero look like this:
mycolourvol (5000,0,0,0)
for an up day.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
ok...
I was just curious in case you were using the 'synchronised' code and was getting a spurious result?
wabbit [:D]
|
|
|
|
Rank:: Advanced Member
Groups: Registered, Registered Users You have been a member since:: 11/25/2006(UTC) Posts: 79
|
Hi wabbit,
Thank you for your suggestion. However it will also end up with more value show in the title bar.
I use the volume inner window title bar to show some other indicators value. But the vol. indicator already taken up half the title bar leaving not enough space for my other indicator value.
Is there any method to make a inner window just show indicator values ( many values may be more than 10) but not plot the chart?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
wblam, The values that are displayed in the title bar are the values of the indicator that get plotted on the chart. You might use all 20 variables and output one or two lines as a result; it is the value of these lines that is displayed in the bar. Becoming more popular is the practice of using the inner window bars to display data only. To do this write your codes and drop them into the inner window. I say write yuor own codes, so you can keep the indicator names short for display purposes. Once all the required information is plotted in the inner window (it will look like a complete shambles, but this doesnt matter) reduce the size of the inner window to zero, so that only the inner window title bar and the information values are presesnt. You can have a total of eight inner windows, so you can show a lot of information. wabbit [:D] [edit] Notice how Jose has used this technique here: The charts all show the relevant information, but there is a squashed inner window at the very top containing the security (dow in this case) but we only need to see the value, not the chart.
|
|
|
|
Rank:: Advanced Member
Groups: Registered, Registered Users You have been a member since:: 11/25/2006(UTC) Posts: 79
|
wabbit,
thank you for your suggestion.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.