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

Notification

Icon
Error

Options
Go to last post Go to first unread
nasdaqtrader  
#1 Posted : Tuesday, July 15, 2014 11:30:23 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)

Dear MS support;

To get the volume bar to be on up volume color bar green down volume color bar red.

Here is the 2 formula I think may be right not sure.

If(V>Ref(V,-1),V,O);If(V<Ref(V,-1),V,O);If(V=REF(V,-1),V,O);

or

If(C>O,V,O);If(C<O,V,O);If(C=O,V,O);

Any help would be appreciated

Regards

Regards, Frank Koenig Trade Like a Pro Trend is your Friend
FormulaPrimer  
#2 Posted : Tuesday, July 15, 2014 1:31:03 PM(UTC)
FormulaPrimer

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 8/12/2005(UTC)
Posts: 73

Here are several colored coded volume indicators I use. Plot as histograms.
On a side note: From my experience indicators that use volume like money flow , ease of movement,
or any standard indicator in MS default drop list gives a better picture of volume price relation.
Easy way to check if volume is included in the indicator is open a chart like VIX which doesn't include volume in data and if indicator doesn't plot properly then volume is part of the indicator code. Vice Versa if plots.
Good luck.
-FP

Code:

{Volume + -}If(V>=Ref(V,-1),V,0);If(V<Ref(V,-1),V,0);
{Volume Bars Colored}direction:=C-Ref(C,-1); direction:=ValueWhen(1,direction<>0,direction); (direction>0)*V; (direction<0)*V;
{Volume Colored}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;If(IsUndefined(Ref(C,-1))=1,V,0);

{Volume Directional Color Coded}Red:=If(C<Ref(C,-1) OR (Ref(C,-1)<Ref(C,-2)AND C=Ref(C,-1)),V,0);Green:=If(C>Ref(C,-1) OR (Ref(C,-1)>Ref(C,-2)AND C=Ref(C,-1)),V,0);Red;Green;
nasdaqtrader  
#3 Posted : Wednesday, July 16, 2014 4:08:39 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)

FormulaPrimer,

All I'm looking to do is change th volume bar color to read green for up and red for down and have this the the candlestick line chart open everytime i open a new chart.

Thanks

Regards, Frank Koenig Trade Like a Pro Trend is your Friend
MS Support  
#4 Posted : Wednesday, July 16, 2014 10:41:39 AM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
nasdaqtrader wrote:

Dear MS support;

To get the volume bar to be on up volume color bar green down volume color bar red.

Here is the 2 formula I think may be right not sure.

If(V>Ref(V,-1),V,O);If(V<Ref(V,-1),V,O);If(V=REF(V,-1),V,O);

or

If(C>O,V,O);If(C<O,V,O);If(C=O,V,O);

Any help would be appreciated

Regards


The formulas should had 0's on the end, not O's. Once you plot them you would still have to change the style to Histogram, color each of the 3 plots, then save this as part of your default template.

If(V>Ref(V,-1),V,0);

If(V<Ref(V,-1),V,0);

If(V=REF(V,-1),V,0);

or

If(C>O,V,0);

If(C<O,V,0);

If(C=O,V,0);

nasdaqtrader  
#5 Posted : Wednesday, July 16, 2014 10:56:51 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)

MS Support,

Can you send me the step and where to go to have candlesticks defaulted and price volume green for up and red for down volume.

Thank you

Regards, Frank Koenig Trade Like a Pro Trend is your Friend
MS Support  
#6 Posted : Wednesday, July 16, 2014 12:43:43 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
You would change the price style via Format-->Prices and select Candlesticks.

The formula for coloring volume based on candlesticks would be below:

If(C>O,V,0);

If(C<O,V,0);

If(C=O,V,0);

Once you plot the above formula you would change each of the 3 lines to Histogram and then determine which bars need to be which color (i.e. look at the hollow/solid/doji candle and double click on the related volume bar and change to the color you want).


Afterward right-click on the chart and choose "Save As Default Template". If you have already opened a number of Smart Charts, you will need to delete the MSSMART folder within the DataOnDemand Cache folder (you will lose your existing smart charts by doing so). This folder is either in C:\MetaStock Data\DataOnDemand Cache or within C:\Users\(Windows.Username)\App Data\Local homson Reuters\MetaStock\13\DataOnDemand Cache.


If you have any local data folders you would need to remove the MSSMART folder from each folder.

nasdaqtrader  
#7 Posted : Thursday, July 17, 2014 7:37:59 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)

MS support

I do this within the indicator builder is that correct?

Thanks

Regards, Frank Koenig Trade Like a Pro Trend is your Friend
MS Support  
#8 Posted : Thursday, July 17, 2014 10:09:02 AM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
Yes you would put the formula into a New Indicator in the Indicator Builder.
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.