logo
Welcome Guest! To enable all features please Registers on the forum or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
peterherbert  
#1 Posted : Thursday, July 24, 2014 3:31:05 PM(UTC)
peterherbert

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/27/2012(UTC)
Posts: 1

I am running metastock version 12. I would like to compare the closing price of two stocks and print out the answer.

For example -- HPQ ended today at 35.04, GMCR ended today at 121…. So I would like to divide GMCR by hpq… or 121/ 35.04 = 3.45 .. so I would like to graph that number.

I tried to use security put it did not work.

MS Support  
#2 Posted : Thursday, July 24, 2014 6:17:09 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)
peterherbert wrote:

I am running metastock version 12. I would like to compare the closing price of two stocks and print out the answer.

For example -- HPQ ended today at 35.04, GMCR ended today at 121…. So I would like to divide GMCR by hpq… or 121/ 35.04 = 3.45 .. so I would like to graph that number.

I tried to use security put it did not work.


You can open a chart of GMCR.O and then plot the Relative Strength Comparative Indicator and select HPQ.

You could also write this as a custom indicator using the Security function, i.e.:


Security("GMCR.O",C)/Security("HPQ",C)

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.