HighLowDiff

See Also...

Related Topics

 

 

Description

This formula identifies the difference between the current high and current low, an essential determination in calculating Wilder's True Range.

 

 

Formula

HighLowDiff(instrument)=begin

   retval = NONUM

   if instrument.high != NONUM and instrument.low != NONUM then begin

      retval = Diff(instrument.high, instrument.low)

   end

   retval

end

 

 

Parameters

instrument

The instrument argument specifies which instrument to evaluate.

 

 

Return Value

The difference between the high and low.

 

 

Examples

TrueRange(instrument)=if(HighLowDiff(instrument) > HighPreviousCloseDiff(instrument), if(HighLowDiff(instrument) > CloseLowDiff(instrument), HighLowDiff(instrument), CloseLowDiff(instrument)), if(HighPreviousCloseDiff(instrument) > CloseLowDiff(instrument), HighPreviousCloseDiff(instrument), CloseLowDiff(instrument)))

 

 

Comments

NA

 

©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.