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 12 months ago.

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

    • Topics: 6
    • Replies: 13
    • Posts: 19

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



    • Topics: 15
    • Replies: 830
    • Posts: 845

    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


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.