Slightly improve trade color scheme

This commit is contained in:
Matthias 2022-08-28 09:14:26 +02:00
parent 977c8814b3
commit d4d30f4005
2 changed files with 3 additions and 2 deletions

View File

@ -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],

View File

@ -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'),
@ -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'),