Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Code Format #1180

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extensions/strategies/trend_ema/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ module.exports = function container (get, set, clear) {
s.acted_on_trend = false
}
s.trend = 'up'
s.signal = !s.acted_on_trend ? 'buy' : null
s.signal = !s.acted_on_trend ? 'sell' : null
s.cancel_down = false
}
else if (!s.cancel_down && s.period.trend_ema_rate < (s.period.trend_ema_stddev * -1)) {
if (s.trend !== 'down') {
s.acted_on_trend = false
}
s.trend = 'down'
s.signal = !s.acted_on_trend ? 'sell' : null
s.signal = !s.acted_on_trend ? 'buy' : null
}
}
cb()
Expand Down
Loading