Skip to content

Commit

Permalink
Slightly improve trade color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 28, 2022
1 parent 977c881 commit d4d30f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/charts/CandleChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ export default defineComponent({
itemStyle: {
// color: tradeSellColor,
color: (v) => v.data[4],
opacity: 0.9,
},
symbol: (v) => v[2],
symbolRotate: (v) => v[3],
Expand Down
4 changes: 2 additions & 2 deletions src/shared/charts/tradeChartData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function getTradeEntries(dataset: PairHistory, filteredTrades: Trade[]) {
ENTRY_SYMB,
trade.is_short ? 180 : 0,
// (trade.profit_abs ?? 0) > 0 ? '#31e04b' : '#fc0505',
trade.is_short ? '#b21dbf' : '#0099ff',
trade.is_short ? '#AD00FF' : '#0066FF',
'',
// trade.profit_abs,
buildToolTip(trade, 'entry'),
Expand All @@ -58,7 +58,7 @@ export function getTradeEntries(dataset: PairHistory, filteredTrades: Trade[]) {
trade.close_rate,
EXIT_SYMB,
trade.is_short ? 180 : 0,
trade.is_short ? '#b21dbf' : '#0099ff',
trade.is_short ? '#AD00FF' : '#0066FF',
// (trade.profit_abs ?? 0) > 0 ? '#31e04b' : '#fc0505',
formatPercent(trade.profit_ratio, 2),
buildToolTip(trade, 'exit'),
Expand Down

0 comments on commit d4d30f4

Please sign in to comment.