Custom Codes with Datafields

Optuma Forums Optuma Scripting Custom Codes with Datafields

This topic contains 1 reply, has 2 voices, and was last updated by Darren Darren 3 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53075
    Avatar
    Duke
    • Topics: 7
    • Replies: 4
    • Posts: 11

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

    #53077
    Darren
    Darren
    • Topics: 38
    • Replies: 267
    • Posts: 305

    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:

    Capture

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.

Close