in Search

using symbol name in a formula

Last post 09-27-2009, 13:16 by Anant_Rao. 6 replies.
Sort Posts: Previous Next
  •  09-12-2009, 9:59 30684

    using symbol name in a formula

    I need to use symbol names inside a formula, can anyone help me ?
  •  09-12-2009, 11:59 30686 in reply to 30684

    Re: using symbol name in a formula

    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.
  •  09-12-2009, 18:46 30695 in reply to 30686

    Re: using symbol name in a formula

    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.
  •  09-12-2009, 20:22 30698 in reply to 30695

    Re: using symbol name in a formula

     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.


  •  09-12-2009, 21:46 30699 in reply to 30698

    Re: using symbol name in a formula

    I just figured out how to do it from inside Metastock. Thanks anyways :)
  •  09-13-2009, 0:34 30701 in reply to 30695

    Re: using symbol name in a formula

    ravik:
    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 ? :)
  •  09-27-2009, 13:16 30846 in reply to 30701

    Re: using symbol name in a formula

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

     

View as RSS news feed in XML