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

Notification

Icon
Error

Options
Go to last post Go to first unread
ravik  
#1 Posted : 16 years ago
ravik

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 9/12/2009(UTC)
Posts: 6

I need to use symbol names inside a formula, can anyone help me ?
Data  
#2 Posted : 16 years ago
Data

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/20/2008(UTC)
Posts: 53

What kind of symbol ?
You might want to use the "Security" function in order to call data from an other security.

Tell us more about what you want and we might be able to help you.
ravik  
#3 Posted : 16 years ago
ravik

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 9/12/2009(UTC)
Posts: 6

I want to write a conditional formula where I want a value 1 assigned to a variable x if the symbol is IBM, 2 if the symbol is MSFT, 3 if the symbol us PRTY etc.
johnl  
#4 Posted : 16 years ago
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

I believe someone else asked the same question a while ago and the answer was
that you can not without doing programming outside of the basic Metastock
language. Wabbit could tell you more if you want to pursue it further.
Feel free to correct me if I am wrong.


ravik  
#5 Posted : 16 years ago
ravik

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 9/12/2009(UTC)
Posts: 6

I just figured out how to do it from inside Metastock. Thanks anyways :)
Data  
#6 Posted : 16 years ago
Data

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/20/2008(UTC)
Posts: 53

ravik wrote:
I want to write a conditional formula where I want a value 1 assigned to a variable x if the symbol is IBM, 2 if the symbol is MSFT, 3 if the symbol us PRTY etc.

I guess that would be something like :
If( C=Security("C:\MS\Data\IBM",C), value1, if(C=Security("C:\MS\Data\MSFT",C), Value2, if(C=Security("C:\MS\Data\PRTY",C), value3,0)))

How did you do it ? :)
Anant_Rao  
#7 Posted : 16 years ago
Anant_Rao

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 9/27/2009(UTC)
Posts: 1

Mate... try to give the exact path of MSFT....
i.e. C:\MSD\nse\NIFTY\MSFT...

sometimes MSFT is recognised by a number viz..70001113 so in that case replace MSFT with that number...
hope this solves ur problem...

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.

information You have 1 unread message(s) in your Inbox.