Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
phmatray committed Sep 13, 2023
2 parents de9f657 + e40d698 commit 3a48c08
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/TechnicalAnalysis.Candles/Candle2Crows/Candle2Crows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public override bool GetPatternRecognition(int i)
// 3rd: black
IsColorRed(i) &&
// opening within 2nd rb
Open[i] < Open[i - 1] && Open[i] > Close[i - 1] &&
Open[i] < Open[i - 1] && Open[i] >= Close[i - 1] &&
// closing within 1st rb
Close[i] > Open[i - 2] && Close[i] < Close[i - 2];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ public override bool GetPatternRecognition(int i)
GetLowerShadow(i) < GetCandleAverage(ShadowVeryShort, _shadowVeryShortPeriodTotal[0], i) &&
// 2nd black opens within 1st black's rb
Open[i - 1] < Open[i - 2] &&
Open[i - 1] > Close[i - 2] &&
Open[i - 1] >= Close[i - 2] &&
// 3rd black opens within 2nd black's rb
Open[i] < Open[i - 1] &&
Open[i] > Close[i - 1] &&
Open[i] >= Close[i - 1] &&
// 1st black closes under prior candle's high
High[i - 3] > Close[i - 2] &&
// three declining
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public override bool GetPatternRecognition(int i)
IsColorGreen(i - 1) &&
IsColorRed(i - 2) &&
Close[i - 1] > Open[i - 2] &&
Open[i - 1] < Close[i - 2] &&
Open[i - 1] <= Close[i - 2] &&
// third candle higher
Close[i] > Close[i - 1]
)
Expand All @@ -115,7 +115,7 @@ public override bool GetPatternRecognition(int i)
// black engulfs white
IsColorRed(i - 1) &&
IsColorGreen(i - 2) &&
Open[i - 1] > Close[i - 2] &&
Open[i - 1] >= Close[i - 2] &&
Close[i - 1] < Open[i - 2] &&
// third candle lower
Close[i] < Close[i - 1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public override bool GetPatternRecognition(int i)
// 2nd: smaller candle
GetRealBody(i - 1) < GetRealBody(i - 2) &&
// that opens higher but within 1st range
Open[i - 1] > Close[i - 2] &&
Open[i - 1] >= Close[i - 2] &&
Open[i - 1] <= High[i - 2] &&
// and trades lower than 1st close
Low[i - 1] < Close[i - 2] &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ public override bool GetPatternRecognition(int i)
IsColorGreen(i) &&
IsColorRed(i - 1) &&
Close[i] > Open[i - 1] &&
Open[i] < Close[i - 1]
Open[i] <= Close[i - 1]
)
||
(
// black engulfs white
IsColorRed(i) &&
IsColorGreen(i - 1) &&
Open[i] > Close[i - 1] &&
Open[i] >= Close[i - 1] &&
Close[i] < Open[i - 1]
);

Expand Down

0 comments on commit 3a48c08

Please sign in to comment.