acttrader-charts 1.0.19 → 1.0.21
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.
- package/dist/{MACD-DZxpf0eQ.d.cts → MACD-DGFPNwy9.d.cts} +27 -0
- package/dist/{MACD-DZxpf0eQ.d.ts → MACD-DGFPNwy9.d.ts} +27 -0
- package/dist/index.cjs +508 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -5
- package/dist/index.d.ts +103 -5
- package/dist/index.js +508 -168
- package/dist/index.js.map +1 -1
- package/dist/indicators/index.d.cts +2 -2
- package/dist/indicators/index.d.ts +2 -2
- package/dist/webview/chart.html +7 -7
- package/package.json +1 -1
|
@@ -257,6 +257,8 @@ interface TradeLabels {
|
|
|
257
257
|
stop: string;
|
|
258
258
|
/** Market order type label. */
|
|
259
259
|
market: string;
|
|
260
|
+
/** Separator word between order descriptor and price (e.g. "at"). */
|
|
261
|
+
at: string;
|
|
260
262
|
/** Quantity input label in the draft-order input. */
|
|
261
263
|
qty: string;
|
|
262
264
|
/** Tooltip on the floating trade button (⊕). */
|
|
@@ -397,6 +399,10 @@ interface IndicatorOverlayColors {
|
|
|
397
399
|
}
|
|
398
400
|
/** Colors for trade/position horizontal level lines. */
|
|
399
401
|
interface TradeLevelColors {
|
|
402
|
+
/** Solid accent color for buy-side UI elements (popover text, button, icon). */
|
|
403
|
+
buySide: string;
|
|
404
|
+
/** Solid accent color for sell-side UI elements (popover text, button, icon). */
|
|
405
|
+
sellSide: string;
|
|
400
406
|
/** Line + box border color for open executed trades. */
|
|
401
407
|
tradeLine: string;
|
|
402
408
|
/** Line + box border color for open positions. */
|
|
@@ -1023,6 +1029,27 @@ interface ChartState {
|
|
|
1023
1029
|
};
|
|
1024
1030
|
/** Whether TFC (Trade from Charts) is currently active (user toggle state). */
|
|
1025
1031
|
tfcEnabled?: boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* Visible time window, anchored by absolute unix-ms timestamps of the
|
|
1034
|
+
* viewport edges. Persisted separately from `drawings` so that pan/zoom
|
|
1035
|
+
* state survives a refresh without affecting drawing anchors. Stored as
|
|
1036
|
+
* time (not bar indexes) so the window remains meaningful after timeframe
|
|
1037
|
+
* changes and data backfill.
|
|
1038
|
+
*/
|
|
1039
|
+
viewport?: {
|
|
1040
|
+
startTime: number;
|
|
1041
|
+
endTime: number;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* User-applied Y-axis adjustments. `factor` is the price-range scale
|
|
1045
|
+
* (>1 = zoomed out, <1 = zoomed in); `panOffset` is the vertical drag
|
|
1046
|
+
* offset in price units. Resets to `{factor: 1, panOffset: 0}` in
|
|
1047
|
+
* auto-fit mode.
|
|
1048
|
+
*/
|
|
1049
|
+
priceScale?: {
|
|
1050
|
+
factor: number;
|
|
1051
|
+
panOffset: number;
|
|
1052
|
+
};
|
|
1026
1053
|
}
|
|
1027
1054
|
interface CrosshairPosition {
|
|
1028
1055
|
x: number;
|
|
@@ -257,6 +257,8 @@ interface TradeLabels {
|
|
|
257
257
|
stop: string;
|
|
258
258
|
/** Market order type label. */
|
|
259
259
|
market: string;
|
|
260
|
+
/** Separator word between order descriptor and price (e.g. "at"). */
|
|
261
|
+
at: string;
|
|
260
262
|
/** Quantity input label in the draft-order input. */
|
|
261
263
|
qty: string;
|
|
262
264
|
/** Tooltip on the floating trade button (⊕). */
|
|
@@ -397,6 +399,10 @@ interface IndicatorOverlayColors {
|
|
|
397
399
|
}
|
|
398
400
|
/** Colors for trade/position horizontal level lines. */
|
|
399
401
|
interface TradeLevelColors {
|
|
402
|
+
/** Solid accent color for buy-side UI elements (popover text, button, icon). */
|
|
403
|
+
buySide: string;
|
|
404
|
+
/** Solid accent color for sell-side UI elements (popover text, button, icon). */
|
|
405
|
+
sellSide: string;
|
|
400
406
|
/** Line + box border color for open executed trades. */
|
|
401
407
|
tradeLine: string;
|
|
402
408
|
/** Line + box border color for open positions. */
|
|
@@ -1023,6 +1029,27 @@ interface ChartState {
|
|
|
1023
1029
|
};
|
|
1024
1030
|
/** Whether TFC (Trade from Charts) is currently active (user toggle state). */
|
|
1025
1031
|
tfcEnabled?: boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* Visible time window, anchored by absolute unix-ms timestamps of the
|
|
1034
|
+
* viewport edges. Persisted separately from `drawings` so that pan/zoom
|
|
1035
|
+
* state survives a refresh without affecting drawing anchors. Stored as
|
|
1036
|
+
* time (not bar indexes) so the window remains meaningful after timeframe
|
|
1037
|
+
* changes and data backfill.
|
|
1038
|
+
*/
|
|
1039
|
+
viewport?: {
|
|
1040
|
+
startTime: number;
|
|
1041
|
+
endTime: number;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* User-applied Y-axis adjustments. `factor` is the price-range scale
|
|
1045
|
+
* (>1 = zoomed out, <1 = zoomed in); `panOffset` is the vertical drag
|
|
1046
|
+
* offset in price units. Resets to `{factor: 1, panOffset: 0}` in
|
|
1047
|
+
* auto-fit mode.
|
|
1048
|
+
*/
|
|
1049
|
+
priceScale?: {
|
|
1050
|
+
factor: number;
|
|
1051
|
+
panOffset: number;
|
|
1052
|
+
};
|
|
1026
1053
|
}
|
|
1027
1054
|
interface CrosshairPosition {
|
|
1028
1055
|
x: number;
|