Skip to content

Commit

Permalink
Update hanging-man.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnguyennguyen authored Jun 28, 2023
1 parent e1ec665 commit 3725b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candlestick-pattern/hanging-man.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const BEARD_FACTOR = 3

const isHangingManPattern = async (input) => {
try {
const last = input.open.length - 1
const last = input.open.length - 2 // confirmed candle : last - 2
if (last < 4) {
console.error(`Require OHLCV of last 5 candles`)
return false
Expand Down

0 comments on commit 3725b48

Please sign in to comment.