Documentation
¶
Index ¶
- Constants
- Variables
- func AbandonedBaby(series Series, penetration float64) []int
- func AdvanceBlock(series Series) []int
- func BeltHold(series Series) []int
- func BreakAway(series Series) []int
- func ClosingMarubozu(series Series) []int
- func ConcealBabySwall(series Series) []int
- func CounterAttack(series Series) []int
- func DarkCloudCover(series Series, penetration float64) []int
- func Doji(series Series) []int
- func DojiStar(series Series) []int
- func DragonFlyDoji(series Series) []int
- func Engulfing(series Series) []int
- func EveningDojiStar(series Series, penetration float64) []int
- func EveningStar(series Series, penetration float64) []int
- func GapSideSideWhite(series Series) []int
- func GraveStoneDoji(series Series) []int
- func Hammer(series Series) []int
- func HangingMan(series Series) []int
- func Harami(series Series) []int
- func HaramiCross(series Series) []int
- func HighWave(series Series) []int
- func Hikkake(series Series) []int
- func InvertedHammer(series Series) []int
- func MatchingLow(series Series) []int
- func MorningStar(series Series, penetration float64) []int
- func Piercing(series Series) []int
- func StickSandwich(series Series) []int
- func ThreeBlackCrows(series Series) []int
- func ThreeInside(series Series) []int
- func ThreeLineStrike(series Series) []int
- func ThreeOutside(series Series) []int
- func ThreeStarsInSouth(series Series) []int
- func ThreeWhiteSoldiers(series Series) []int
- func TwoCrows(series Series) []int
- type Pattern
- type PatternDefinition
- type PatternPenetration
- type Series
- type SimpleSeries
Constants ¶
const DefaultFloat64 = -4e+37
Variables ¶
var ( List = []PatternDefinition{ { Detect: TwoCrows, ShouldApplyOnUptrend: true, Behavior: behavior.RecordLowAndNextSameLowTriggerBear, BehaviorRange: 10, }, } )
Functions ¶
func AbandonedBaby ¶
AbandonedBaby implements ta-lib function TA_CDLABANDONEDBABY.
| Up: 70% ▓ | Down: 30% ▓ ░ Common Rank: J+ ▓ ░ Efficiency Rank: A- | ░ Source: feedroll.com | +
func AdvanceBlock ¶
AdvanceBlock implements ta-lib function TA_CDLADVANCEBLOCK.
| | Up: 64% | ░ Down: 36% | ░ | Common Rank: G ░ | Efficiency Rank: F ░ Source: feedroll.com ░
func BeltHold ¶
BeltHold implements ta-lib function TA_CDLBELTHOLD.
. Up: 71% ░ Down: 29% ░ Common Rank: C+ ░ Efficiency Rank: G+ Source: feedroll.com
func BreakAway ¶
BreakAway implements ta-lib function TA_CDLBREAKAWAY.
| Up: 63% ▓ | Down: 37% ▓ ░ Common Rank: J- | ░ Efficiency Rank: B+ | | | ░ Source: feedroll.com ▓ ░ ▓ | | | |
func ClosingMarubozu ¶
ClosingMarubozu implements ta-lib function TA_CDLCLOSINGMARUBOZU.
| Continuation: 52% ░ ▓ Reversal: 48% ░ ▓ Common Rank: B- ░ ▓ Efficiency Rank: E+ | Source: feedroll.com
func ConcealBabySwall ¶
ConcealBabySwall implements ta-lib function TA_CDL2CROWS.
▓ Up: 25% ▓ Down: 75% ▓ ▓ ▓ Common Rank: J- ▓ | ▓ Efficiency Rank: J- ▓ ▓ Source: feedroll.com
func CounterAttack ¶
CounterAttack implements ta-lib function TA_CDLCOUNTERATTACK.
| Up: 43% ░ | Down: 57% | ▓ Common Rank: F+ | Efficiency Rank: C- Source: feedroll.com
can be bullish or bearish bullish occurs during a downtrend bearish occurs during an uptrend
func DarkCloudCover ¶
DarkCloudCover implements ta-lib function TA_CDLDARKCLOUDCOVER.
| | ░ Up: 40% ▓ ░ Down: 60% ▓ ░ Common Rank: E ▓ | Efficiency Rank: C+ | Source: feedroll.com
close of black candle below the middle of first white candle occurs during an uptrend
func Doji ¶
Doji implements ta-lib function TA_CDLDOJI.
- Up: 43% Down: 57% Common Rank: E- Efficiency Rank: J+ Source: feedroll.com
func DojiStar ¶
DojiStart implements ta-lib function TA_CDLDOJISTAR.
| Up: 36% ▓ Down: 64% ▓ Common Rank: F+ | Efficiency Rank: E- + Source: feedroll.com
func DragonFlyDoji ¶
DragonFlyDoji implements ta-lib function TA_CDLDRAGONFLYDOJI.
--- Continuation: 50% | Reversal: 50% | Common Rank: E | Efficiency Rank: J- | Source: feedroll.com
– A Dragonfly Doji has only the Lower Shadow, that is very long, and no Upper Shadow; in fact it has as High, both the Opening Price and Closing Price.
– If it occurs during a Downtrend, especially if near a Low of the Trend, it means a possible bullish reversal.
/!\ do not use for up/down prediction, but only for continuation/reversal prediction /!\
func Engulfing ¶
Engulfing implements ta-lib function TA_CDLENGULFING.
Bearish:
| | ░ Up: 21% | ░ Down: 79% ▓ ░ Common Rank: B+ ▓ ░ Efficiency Rank: J+ | ░ Source: feedroll.com |
– Normally it should be a signal of reversal of the current Trend.
– You can find it in the variants: Bullish and Bearish, depending on the Trend in which is located.
– Is one of the most reliable Candlestick Pattern; very often is not even required a confirmation from the next Candles (Although it should be better).
– If this Pattern is located near an High or Low of the current Trend, it’s more reliable.
Bullish:
| | ▓ Up: 63% | ▓ Down: 37% ░ ▓ Common Rank: B+ ░ ▓ Efficiency Rank: I | ▓ Source: feedroll.com |
– As you can see from the previous image, the Bullish Engulfing occurs during a Downtrend; normally it should be a signal of bullish reversal.
– Whereas the Bearish Engulfing occurs during an Uptrend; normally it should be a signal of bearish reversal.
func EveningDojiStar ¶
EveningDojiStar implements ta-lib function TA_CDLEVENINGDOJISTAR.
- Up: 28% | | Down: 71% ░ ▓ Common Rank: I ░ ▓ Efficiency Rank: C | ▓ Source: some deduction at http://thepatternsite.com/EveningDojiStar.html |
func EveningStar ¶
EveningStar implements ta-lib function TA_CDLEVENINGSTAR.
| Up: 28% | ░ | Down: 72% ░ | ▓ Common Rank: H+ ░ ▓ Efficiency Rank: A | ▓ Source: feedroll.com |
func GapSideSideWhite ¶
GapSideSideWhite implements ta-lib function TA_CDLGAPSIDESIDEWHITE.
| | Up: 66% ▓ ▓ Down: 34% ▓ ▓ Common Rank: H+ | | Efficiency Rank: E | Source: feedroll.com ▓ ▓ |
– Normally it should be a signal of continuation of the current Trend.
– You can find it in the variants: Bullish and Bearish, depending on the Trend in which is located.
func GraveStoneDoji ¶
GraveStoneDoji implements ta-lib function TA_CDLGRAVESTONEDOJI.
| Continuation: 49% | Reversal: 51% | Common Rank: E+ | Efficiency Rank: H -+- Source: feedroll.com
– A Gravestone Doji has only the Upper Shadow, that is very long, and no Lower Shadow; in fact it has as Low, both the Opening Price and Closing Price.
– If it occurs during an Uptrend, especially if near an High of the Trend, it means a possible bearish reversal.
func Hammer ¶
Hammer implements ta-lib function TA_CDLHAMMER.
| Up: 60% ░ Down: 40% | Common Rank: D | Efficiency Rank: G | Source: feedroll.com
at the end of a downtrend
func HangingMan ¶
HangingMan implements ta-lib function TA_CDLHANGINGMAN.
| | Up: 59% ▓ ░ Down: 41% | O | Common Rank: B | R | Efficiency Rank: I | | Source: feedroll.com
at the end of an uptrend
func Harami ¶
Harami implements ta-lib function TA_CDLHARAMI.
| Up: 53% ░ | Down: 47% ░ ▓ Common Rank: C ░ | Efficiency Rank: D- | Source: feedroll.com
func HaramiCross ¶
HaramiCross implements ta-lib function TA_CDLHARAMI.
| ?: ? ░ | ?: ? ░ + Common Rank: ? ░ | Efficiency Rank: ? |
func HighWave ¶
HighWave implements ta-lib function TA_CDLHIGHWAVE.
| | Continuation: 49% | | Reversal: 54% ░ OR ▓ Common Rank: B | | Efficiency Rank: G | | Source: feedroll.com – In the case there is more than one High Wave, one after the other, they show the indecision of the Markets.
– If they occur during an Uptrend, they are a signal of a future consolidation of the prices or the beginning of a Downtrend; whereas if they occur during a Downtrend, they are a signal of a future consolidation of the prices or the beginning of an Uptrend.
func InvertedHammer ¶
InvertedHammer implements ta-lib function TA_CDLINVERTEDHAMMER.
| Up: 35% | Down: 65% | Common Rank: G+ ░ Efficiency Rank: A | Source: feedroll.com
only to be considered when in downtrend (at the end of a downtrend)
func MatchingLow ¶
MatchingLow implements ta-lib function TA_CDLMATCHINGLOW.
| Up: 39% ▓ | Down: 61% ▓ ▓ Common Rank: F- ▓ ▓ Efficiency Rank: A- ▓ ▓ Source: feedroll.com | |
func MorningStar ¶
MorningStar implements ta-lib function TA_CDLMORNINGSTAR.
| | Up: 78% ░ ▓ Down: 22% ░ ▓ Common Rank: G | | ▓ Efficiency Rank: B+ ░ | Source: feedroll.com |
func Piercing ¶
Piercing implements ta-lib function TA_CDLPIERCING.
| Up: 64% ▓ | Down: 39% ▓ ░ Common Rank: D- ▓ ░ Efficiency Rank: B+ | ░ Source: feedroll.com |
func StickSandwich ¶
StickSandwich implements ta-lib function TA_CDLBREAKAWAY.
| Up: 38% | ▓ Down: 62% | ░ ▓ Common Rank: F- ▓ ░ ▓ Efficiency Rank: B ▓ ░ ▓ Source: feedroll.com ▓ | ▓ |
func ThreeBlackCrows ¶
ThreeBlackCrows implements ta-lib function TA_CDL3BLACKCROWS.
▓ Up: 22% ▓ ▓ Down: 78% ▓ ▓ Common Rank: F- ▓ Efficiency Rank: A+ Source: feedroll.com
func ThreeInside ¶
ThreeInside implements ta-lib function TA_CDL3INSIDE.
| Up: 40% ░ | | Down: 60% ░ ▓ ▓ Common Rank: D+ ░ | ▓ Efficiency Rank: F | ▓ Source: feedroll.com |
func ThreeLineStrike ¶
ThreeLineStrike implements ta-lib function TA_CDL3LINESTRIKE.
| | Up: 35% | ░ ▓ Down: 65% | ░ ░ ▓ Common Rank: J ░ ░ | ▓ Efficiency Rank: A+ ░ | ▓ Source: feedroll.com | ▓ |
func ThreeOutside ¶
ThreeOutside implements ta-lib function TA_CDL3OUTSIDE.
| Up: 31% | ▓ | Down: 69% ░ ▓ ▓ Common Rank: C+ ░ ▓ ▓ Efficiency Rank: D- | ▓ ▓ Source: feedroll.com | ▓ |
func ThreeStarsInSouth ¶
ThreeStarsInSouth implements ta-lib function TA_CDL3STARSINSOUTH.
▓ Up: 86% ▓ ▓ Down: 14% ▓ ▓ ▓ Common Rank: J- | | Efficiency Rank: J- | Source: feedroll.com
func ThreeWhiteSoldiers ¶
ThreeWhiteSoldiers implements ta-lib function TA_CDL3WHITESOLDIERS.
░ Up: 82% ░ ░ Down: 18% ░ ░ Common Rank: G ░ Efficiency Rank: D+ Source: feedroll.com
Types ¶
type PatternDefinition ¶
type PatternPenetration ¶
type SimpleSeries ¶
type SimpleSeries struct { Highs []float64 Opens []float64 Closes []float64 Lows []float64 Volumes []float64 Rands []float64 }
func (SimpleSeries) Close ¶
func (s SimpleSeries) Close(i int) float64
func (SimpleSeries) High ¶
func (s SimpleSeries) High(i int) float64
func (SimpleSeries) Len ¶
func (s SimpleSeries) Len() int
func (SimpleSeries) Low ¶
func (s SimpleSeries) Low(i int) float64
func (SimpleSeries) Open ¶
func (s SimpleSeries) Open(i int) float64
Source Files
¶
- cdl2crows.go
- cdl3blackcrows.go
- cdl3inside.go
- cdl3linestrike.go
- cdl3outside.go
- cdl3starsinsouth.go
- cdl3whitesoldiers.go
- cdlabandonedbaby.go
- cdladvanceblock.go
- cdlbelthold.go
- cdlbreakaway.go
- cdlclosingmarubozu.go
- cdlconcealbabyswall.go
- cdlcounterattack.go
- cdldarkcloudcover.go
- cdldoji.go
- cdldojistar.go
- cdldragonflydoji.go
- cdlengulfing.go
- cdleveningdojistar.go
- cdleveningstar.go
- cdlgapsidesidewhite.go
- cdlgravestonedoji.go
- cdlhammer.go
- cdlhangingman.go
- cdlharami.go
- cdlharamicross.go
- cdlhighwave.go
- cdlhikkake.go
- cdlinvertedhammer.go
- cdlmatchinglow.go
- cdlmorningstar.go
- cdlpiercing.go
- cdlsticksandwich.go
- global.go
- pattern.go
- series.go