{ Function: _JMATrueRange DO NOT COMPILE THIS UNLESS YOU HAVE PURCHASED AND INSTALLED JURIK FUNCTIONS Purpose: ATR using Jurik Moving Average. Author: MarkSanDiego Date: 05/06/07 original version 09/06/08 TrueRange function converted to inline code 01/04/09 inline code produces unexpected outputs during first Length*2 bars Build in TrueRange function restored to code 01/23/11 posted to forum } Inputs: Length(NumericSimple); { Length must not change } vars: Len(MaxList(1, Length)); { JAM can not accept a Length = 0 } // uncomment the line below if you have purchased and installed Jurik Moving Average functions // _JMATrueRange = JRC.JMA.2k(TrueRange, Len, 0);