issues
search
anandanand84
/
technicalindicators
A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.15k
stars
557
forks
source link
Add Tweezer Top & Tweezer Bottom
#146
Closed
marcus-n3rd
closed
6 years ago
marcus-n3rd
commented
6 years ago
Changes Made
Added indicator functions for five-day candlestick patterns:
Tweezer Top
Tweezer Bottom
Indicator Logic
Tweezer Top
Upward trend is determined from the first three days of closing data (indexes 0, 1, and 2)
AverageGain
and
AverageLoss
are used to extract the respective values from the subset
If gains are greater than losses, then upward trend is true
The high for both the fourth and fifth day's data are equal
Tweezer Bottom
Downward trend is determined from the first three days of closing data (indexes 0, 1, and 2)
AverageGain
and
AverageLoss
are used to extract the respective values from the subset
If losses are greater than gains, then downward trend is true
The low for both the fourth and fifth day's data are equal
Changes Made
Indicator Logic
Tweezer Top
AverageGain
andAverageLoss
are used to extract the respective values from the subsetTweezer Bottom
AverageGain
andAverageLoss
are used to extract the respective values from the subset