Custom Codes with Datafields

Optuma Forums Optuma Scripting Custom Codes with Datafields

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #53075
    • Topics: 10
    • Replies: 5
    • Posts: 15

    Is it possible to create a custom code for a specific security using a datafield.  For example if I wanted to have a code of the TTM P/E (Trail_12M_EPS) of the Russell 1000 Value index (RLV Index BLBM) and one of the Russell 1000 Growth (RLG Index BLBM)  so that I can create a ratio of the two data streams….

    • Topics: 62
    • Replies: 521
    • Posts: 583

    Hi Duke,

    Sure can! Once the Trail_12M_EPS field has been added as an External Datafield you can use the following as a custom code by nesting the GetData variable in the Datafield function:

    Note that the EPS data seems to move the most at the end of the month, hence the shape of the ratio chart, but with RLV TTM currently at 59.65 and RLG at 50.6 the current ratio of 1.18 is correct:


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.