logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Metarminator  
#1 Posted : Sunday, October 28, 2007 11:19:21 PM(UTC)
Metarminator

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/29/2007(UTC)
Posts: 6

I would really appreciatte if someone could give me a hand on the following. Many softwares have the volume bars in green when the close was positive and in red when the close was negative.

Can you do that with Metastock?

What should I do?

Thank you very much,

hayseed  
#2 Posted : Monday, October 29, 2007 6:17:19 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey metarminator.... thats the way i used to do it also.... however it will leave days where the close did not change as undefined .....

here is roy's code which has the addittional yellow colored bars for the no change days.... just create the indicator using the 'indicator builder' ...... that will create an odd lookin bunch of lines.... right click on the one above an obvious up day and change style to histogram..... then right click on the line for an obvious down day and change to histogram...... in the picture i have left the no change day still as the orignal plot so you can see what it looks like prior.....

it might sound confusing at first but you get it.... the right click and change to histogram will be a technique that comes in handy on many indicators.......

holler back if still unclear.....h

------------------------------------------

{roys colored volume}
Red:=(C<Ref(C,-1))*V;
Green:=(C>Ref(C,-1))*V;
Yellow:=(C=Ref(C,-1))*V;
Red;
Green;
Yellow;

------------------------------------------

Metarminator  
#3 Posted : Monday, October 29, 2007 7:22:17 AM(UTC)
Metarminator

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/29/2007(UTC)
Posts: 6

Hello,

thank you so much¡¡¡¡ I'v been trying to get that answer from equis during a couple of months , and I received from you in just a few hours.

Although it sounds a bit confusing to me (do not program normally), I will try it , with the 'indicator builder', and if it does not work I would come to you if that's ok for you.

Thank you very much again,

hayseed  
#4 Posted : Monday, October 29, 2007 2:57:21 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey metarminator.... sure holler anytime....... much of my time is spent with metatrader but i try to pass thru here daily......

pyradius had responded also and apparently deleted his post..... he made a very good point about troubles arising from attaching a moving average to indicators such as this.... meta will target the last plot, in the roys indicator it's the yellow line, for creating the moving average..... that will not work well.....

we need to change the indicator some to incorporate it's own moving average such as below.... you might have to change that line to 'line' for histogram style.... if you right click and fiddle with the styles you'll see.....h

--------------------------------------------------

{roys colored volume}
pds:=Input("periods",1,200,10);
Red:=(C<Ref(C,-1))*V;
Green:=(C>Ref(C,-1))*V;
Yellow:=(C=Ref(C,-1))*V;

a:=Mov(V,pds,S);
Red;
Green;
Yellow;
a { a will be the moving average plot}

--------------------------------------------

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.