CloseLowDiff

See Also...

  Related Topics

 

 

Description

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

 

 

Formula

CloseLowDiff(instrument)=begin

   retval = NONUM

   val1 = VChart(instrument.last)

   if instrument.low != NONUM then begin

      val2 = instrument.low

      if val1 != NONUM then retval = Diff(val1, val2)

   end

   retval

end

 

 

Parameters

instrument

The instrument argument specifies which instrument to evaluate.

 

 

Return Value

A difference between the close 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.