Profile Picture

Peak and Trough

Posted By kaizen 6 Years Ago
Message
Posted Wednesday November 02 2011
Another function that would be usefull to add to BarUtils is Peak and Trough. Most other products have those functions built in.

SYNTAX Peak(Nth, Data Array, %Minimum Change)

Nth _ The number of the peak you wish to refer to. For example, N = 1 would return the value of the most recent peak in the data array, and N = 2 would return the value of the peak before that one.

Data Array _ The data array searched to identify where the peak occurred; this is normally the closing price.

% Minimum Change _ The minimum percentage required for a data array to move away from a high before it is classed as a peak.

and the inverse for Trough.

Thanks.




Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems