Customize Trend Detection and Scoring Formulas

Table of Content

Trendline Settings

TrendSpider lets you customize the mathematical formulas used to determine the strength of the trend lines.

The values in these settings represent the potential variables in any trend ranking formula.

Analysis Trends

Please see ‘Trend formula reference’ on the formula editor itself for details as to what variables are available.

A copy is provided below:

length: Number of bars covered by the line

seriesLength: Total number of bars in the series

priceDev25: 25th quantile of deviation% between trendline and (H+L)/2. From 0 to 1.

priceDev50: 50th quantile (mean value) of deviation% between trendline and (H+L)/2

priceDev75: 75th quantile of deviation% between trendline and (H+L)/2

hits: Number of Highs or Lows touching the line

Hit.png

points: HighestHighs or LowestLows, calculated at your given window size

Point.png

points2x: HighestHighs or LowestLows, calculated at your given window size * 2. Every “point2x” is also “point”

Point2x.png

bounceUp: A case when line is touched by High of a bar, but not by its adjacent bar’s Highs.

Bounce up.png

peaksUp: A case when line is touched by High of a long bar. ‘Long’ means that difference between this bar’s high and its adjacent bars’ highs is greater than (1.5 * ATR14). Every peakUp is also a bounceUp

Peak up.png

bounceDown: A case when line is touched by Low of a bar, but not by its adjacent bar’s Lows.

Bounce down.png

peaksDown: A case when line is touched by Low of a long bar. ‘Long’ means that difference between this bar’s high and its adjacent bars’ highs is greater than (1.5 * ATR14). Every peakDown is also a bounceDown

Peak down.png

violations: Number of bars which actually cross the line

Violation.png