hyperprop-charting-library 0.1.75 → 0.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3909,8 +3909,8 @@ function createChart(element, options = {}) {
|
|
|
3909
3909
|
if (activeDrawingTool === "long-position" || activeDrawingTool === "short-position") {
|
|
3910
3910
|
const isLong = activeDrawingTool === "long-position";
|
|
3911
3911
|
const tick = getConfiguredTickSize();
|
|
3912
|
-
const priceOffset = tick > 0 ? tick *
|
|
3913
|
-
const width2 = Math.max(
|
|
3912
|
+
const priceOffset = tick > 0 ? tick * 60 : Math.abs(point.price) * 0.025 || 1;
|
|
3913
|
+
const width2 = Math.max(8, Math.round(xSpan * 0.2));
|
|
3914
3914
|
const entryPrice = point.price;
|
|
3915
3915
|
const targetPrice = isLong ? entryPrice + priceOffset : entryPrice - priceOffset;
|
|
3916
3916
|
const stopPrice = isLong ? entryPrice - priceOffset : entryPrice + priceOffset;
|
|
@@ -3883,8 +3883,8 @@ function createChart(element, options = {}) {
|
|
|
3883
3883
|
if (activeDrawingTool === "long-position" || activeDrawingTool === "short-position") {
|
|
3884
3884
|
const isLong = activeDrawingTool === "long-position";
|
|
3885
3885
|
const tick = getConfiguredTickSize();
|
|
3886
|
-
const priceOffset = tick > 0 ? tick *
|
|
3887
|
-
const width2 = Math.max(
|
|
3886
|
+
const priceOffset = tick > 0 ? tick * 60 : Math.abs(point.price) * 0.025 || 1;
|
|
3887
|
+
const width2 = Math.max(8, Math.round(xSpan * 0.2));
|
|
3888
3888
|
const entryPrice = point.price;
|
|
3889
3889
|
const targetPrice = isLong ? entryPrice + priceOffset : entryPrice - priceOffset;
|
|
3890
3890
|
const stopPrice = isLong ? entryPrice - priceOffset : entryPrice + priceOffset;
|
package/dist/index.cjs
CHANGED
|
@@ -3909,8 +3909,8 @@ function createChart(element, options = {}) {
|
|
|
3909
3909
|
if (activeDrawingTool === "long-position" || activeDrawingTool === "short-position") {
|
|
3910
3910
|
const isLong = activeDrawingTool === "long-position";
|
|
3911
3911
|
const tick = getConfiguredTickSize();
|
|
3912
|
-
const priceOffset = tick > 0 ? tick *
|
|
3913
|
-
const width2 = Math.max(
|
|
3912
|
+
const priceOffset = tick > 0 ? tick * 60 : Math.abs(point.price) * 0.025 || 1;
|
|
3913
|
+
const width2 = Math.max(8, Math.round(xSpan * 0.2));
|
|
3914
3914
|
const entryPrice = point.price;
|
|
3915
3915
|
const targetPrice = isLong ? entryPrice + priceOffset : entryPrice - priceOffset;
|
|
3916
3916
|
const stopPrice = isLong ? entryPrice - priceOffset : entryPrice + priceOffset;
|
package/dist/index.js
CHANGED
|
@@ -3883,8 +3883,8 @@ function createChart(element, options = {}) {
|
|
|
3883
3883
|
if (activeDrawingTool === "long-position" || activeDrawingTool === "short-position") {
|
|
3884
3884
|
const isLong = activeDrawingTool === "long-position";
|
|
3885
3885
|
const tick = getConfiguredTickSize();
|
|
3886
|
-
const priceOffset = tick > 0 ? tick *
|
|
3887
|
-
const width2 = Math.max(
|
|
3886
|
+
const priceOffset = tick > 0 ? tick * 60 : Math.abs(point.price) * 0.025 || 1;
|
|
3887
|
+
const width2 = Math.max(8, Math.round(xSpan * 0.2));
|
|
3888
3888
|
const entryPrice = point.price;
|
|
3889
3889
|
const targetPrice = isLong ? entryPrice + priceOffset : entryPrice - priceOffset;
|
|
3890
3890
|
const stopPrice = isLong ? entryPrice - priceOffset : entryPrice + priceOffset;
|