Difficulty in using a custom indicator using COT Sentiment and Open interest

Optuma Forums Optuma Scripting Difficulty in using a custom indicator using COT Sentiment and Open interest

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #65475
    Damian
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Hi,
    I want to apply a custom indicator to my futures data.
    The indicator is the COT sentiment indicator divided by Open Interest.
    I’ve added this in Custom Codes: COTS()/OI() .
    I am having difficulty in applying it to my futures charts.
    When I insert it in a new window (right click on the chart, left click the chart icon, left click “New Window”) under the chart of an individual commodity (eg Wheat, Japanese Yen, TBonds etc) nothing appears.

    Do I need to formulate individual custom codes for each individual commodity/futures contract?

    Thanks in advance.
    Damian Clarke

    #65477
    Mathew
    • Topics: 41
    • Replies: 2,042
    • Posts: 2,083

    Hi Damian,

    You can use this on Wheat

    The issue is that the auto selecting does not seem to work in scripts. That is something I will log to be looked at.

    The other issue you have is that Open Interest can fall towards the end of the contract unless it is OI rolled (something we plan to offer later this year). In this chart the green plot is that script and you can see the spikes it creates.

    Hope that helps

    Mathew

    cot

    #65479
    Damian
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Thanks so much Matthew

    #65481
    Damian
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Hi Matthew,

    I’m writing the script in custom codes. I assume this is correct?

    How do you insert in the window under the chart (is my description correct). I’m not having any luck.

    Regards,

    Damian

    #65483
    Mathew
    • Topics: 41
    • Replies: 2,042
    • Posts: 2,083

    Hi Damian,

    You could, then you would have a code that you can use for each commodity.

    I used a “Show View” tool and changed the script.

    All the best

    Mathew

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

Pin It on Pinterest