breakout orders
This commit is contained in:
@@ -98,13 +98,13 @@ class TrancheShapes {
|
||||
const amountSymbol = buy ? this.symbol.base.s : this.symbol.quote.s
|
||||
const color = buy ? 'green' : 'red'
|
||||
if (intercept !== 0 || slope !== 0) {
|
||||
console.log('tranche line', intercept, slope)
|
||||
// console.log('tranche line', intercept, slope)
|
||||
// line active
|
||||
if (slope === 0) {
|
||||
let price = intercept
|
||||
price *= scale
|
||||
// horizontal line
|
||||
console.log('hline', price)
|
||||
// console.log('hline', price)
|
||||
const model = {price, color, maxAllocation: status.order.amount, amount, amountSymbol};
|
||||
const s = new HLine(model, null, null, null, true)
|
||||
this.shapes.push(s)
|
||||
@@ -120,7 +120,7 @@ class TrancheShapes {
|
||||
let endPrice = (intercept + slope * endTime);
|
||||
startPrice *= scale
|
||||
endPrice *= scale
|
||||
console.log('dline', startTime, endTime, DISTANT_FUTURE, startPrice, endPrice)
|
||||
// console.log('dline', startTime, endTime, DISTANT_FUTURE, startPrice, endPrice)
|
||||
// noinspection EqualityComparisonWithCoercionJS
|
||||
const model = {
|
||||
pointA: {time: startTime, price: startPrice},
|
||||
|
||||
Reference in New Issue
Block a user