ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Math question
Posted by Andy on May-11-2015 20:06
Hi
I am new here

A question i will in the Finance chart add an indicator

(Highest high + Lowest low) / 2 over the last 52 trading days

ist this so correct?

Dim movLow As Double() = New ArrayMath(m_lowData).movMin(52).result()
            Dim movHigh As Double() = New ArrayMath(m_highData).movMax(52).result()
            Dim movRange As Double() = New ArrayMath(movHigh).[add]
(movLow).div2(2).result

  Re: Math question
Posted by Peter Kwan on May-12-2015 01:46
Hi Andy,

The code looks correct, although I am not sure if the square brackets in [add] is necessary.
Also, the code assumes your data are daily data.

Hope this can help.

Regards
Peter Kwan