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.
|
|
|
|
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.