updated allocationText()

This commit is contained in:
tim
2025-02-23 10:12:59 -04:00
parent 2397ebfe45
commit 956d79c3dc
6 changed files with 15 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ class TrancheShapes {
price *= scale
// console.log('price', price)
const channel = buy?'low':'high';
const text = (buy ? 'Buy ' : 'Sell ') + allocationText(weight, amount, amountSymbol, '\n')
const text = allocationText(buy, weight, amount, amountSymbol, '\n')
const s = createShape(buy?'arrow_up':'arrow_down', {time, price}, {channel,text,lock:true})
// console.log('created fill shape at', time, price)
this.fills.push(s)