Skip to content

Commit

Permalink
Fix short entries not showing
Browse files Browse the repository at this point in the history
closes #839
  • Loading branch information
xmatthias committed Jul 3, 2022
1 parent 062dc1c commit 0a13da3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/charts/CandleChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ export default defineComponent({
);
const hasShorts =
props.dataset.enter_short_signals &&
props.dataset.enter_short_signals > 0 &&
props.dataset.exit_short_signals &&
props.dataset.exit_short_signals > 0;
(props.dataset.enter_short_signals && props.dataset.enter_short_signals > 0) ||
(props.dataset.exit_short_signals && props.dataset.exit_short_signals > 0);
const colShortEntryData = props.dataset.columns.findIndex(
(el) => el === '_enter_short_signal_close',
);
Expand Down

0 comments on commit 0a13da3

Please sign in to comment.