Scripting function help.

Optuma Forums Optuma Scripting Scripting function help.

This topic contains 1 reply, has 2 voices, and was last updated by Mathew Mathew 2 weeks, 6 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44103

    Colin
    • Topics: 1
    • Replies: 0
    • Posts: 1

    Can someone please tell me where I go to get scripting help that properly defines what the functions actually do?<br /><br />I have had troubles finding the mathematical definitions of what the scripting functions do.

    For example. TRUERANGE(). I do not want to know what the parameters are. I want to know what truerange does, having never seen it before.<br /><br />1) If I type TRUERANGE into the knowledgebase help screen. It tells me there’s no FAQ or something. Goes nowhere.<br />2) If,  on the knowledge base screen, I try to find a help for scripting functions as a category, I can find nothing that leads me to it.<br />3) If I press the ‘scripting reference’ on the script editor I get to https://help.optuma.com/kb/faq.php?cid=51  help on 20 or 30 functions, none of which are truerange or point to where truerange might be.<br /><br />Clearly I am missing something.<br /><br />What am I missing? Where do you keep this kind of information?<br /><br />regards

    Colin

     

    #44107
    Mathew
    Mathew
    • Topics: 11
    • Replies: 657
    • Posts: 668

    Hi Colin,

    You’re right, we are not explaining some of these function because we’ve used them for 20 years without thinking about them. We’ll see what we can do about filling in documentation for things like this.

    In the mean time, TrueRange is a concept that Wells Wilder came up with. It is the value that is being averaged in an Average True Range (ATR). Normally we consider the range of the day to be the High – Low. Wilder wanted to have a value that also considered any overnight gaps in the data, so he came up with the True Range. It is the greater of the following three:

    Today’s High – Yesterday’s Close
    Yesterday’s Close – Today’s High
    Today’s High – Today’s Low

    So all three are calculated and the greatest value used for the value.

    Hope that helps

    Mathew

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

Share This