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

Notification

Icon
Error

Options
Go to last post Go to first unread
plenihanweed  
#1 Posted : Thursday, June 23, 2011 11:15:30 AM(UTC)
plenihanweed

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/23/2011(UTC)
Posts: 2

I have a Layout with three different securities included, (SecA, SecB, SecC) I would like to be able to apply a color to SecA when SecB goes over a certain level, say 100. The effect will be that the line for SecA will appear Red when SecB > 100 but will appear Black when SecB is less than 100 Is this possible? I cannot seem to find how to use a value of one security to color the chart of the other security, so I am not sure if this is possible. If what I need is not an Indicator, what would I need to do? If any more information is needed please let me know.
mstt  
#2 Posted : Thursday, June 23, 2011 1:56:00 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Create an expert and use the Highlights tab to create rules for coloring the price plot. Roy
jjstein  
#3 Posted : Thursday, June 23, 2011 2:00:58 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
You'll need two things:

1. The Security() function, to set the conditions (>100, <100, etc), and
2. The HIGHLIGHTS tab in an Expert.

Use the NEW button to create the following condition sets:
--------------------------------------------------------------------
SecA: Security("\MetaStock Data\INDEX\.DJI",C)>100
{Red}
SecB: Security("\MetaStock Data\INDEX\.IXIC",C)<100
{Black}
Default:
{Yellow?}

Note that this will OVERRIDE the Color/Style Properties in your chart.

plenihanweed  
#4 Posted : Friday, June 24, 2011 12:57:07 PM(UTC)
plenihanweed

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/23/2011(UTC)
Posts: 2

I was able to get it to work, but once I closed and re-opened my Layout, the Expert seems to no longer be working. The Expert is still attached, and nothing was changed, but where it was previously highlighting the line, now it is not. The formula I am using is this: Security("EQDOLL",C)>90 {Red} Does anyone know why the Expert would stop working after I closed and re-opened MetaStock?
jjstein  
#5 Posted : Friday, June 24, 2011 1:28:20 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Do you run in Online or Offline Mode?

If Offline, the folder name has to be within the quotes.

Try opening the EQDOLL chart first, then open the chart with the Expert. You may be running into one of those situations where the default folder is "remembered" until you either open a chart in a different folder or restart Metastock.

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.