Scripting function help.

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



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