Log in to see Cloud of Tags

Wealth-Lab Wiki

PTBar - Peaks and Troughs Bar

RSS

Syntax

public PTBar(DataSeries ds, double percent, string description)
public static PTBar Series(DataSeries ds, double percent)

Parameter Description

ds Source Series
percent Specifies the percentage that ds must retrace in order to determine that a peak or trough has occurred.

Description

This is the Peaks & Troughs Indicator (PTBar) as described in the November 2006 issue of Stocks & Commodities; Siligardos' article on Active Trend Lines.

PTBar builds a series containing bar numbers of most recent peaks/troughs, by measuring percent changes from lowest values, that is: using (100*Threshold)/(100+Threshold) when looking for peaks. This is to ensure that any two consecutive peaks (troughs) will have exactly one trough (peak) between them.

Example

 

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.