@fintatech/fintachart 3.1.10 → 3.1.11
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/CHANGELOG.md +46 -0
- package/css/FintaChart.min.css +1 -1
- package/d.ts/FintaChart.d.ts +171 -9
- package/htmldialogs/DemoModePopup.html +35 -9
- package/htmldialogs/IndicatorSettingsDialog.html +55 -17
- package/htmldialogs/PositionShapeContextMenu.html +1 -1
- package/htmldialogs/ShapePositionSettingsDialog.html +19 -5
- package/htmldialogs/Toolbar.html +67 -23
- package/img/svg-icons/open-OHLC-card.svg +1 -0
- package/localization/en.json +26 -1
- package/localization/uk.json +26 -1
- package/multiple-charts.html +2 -2
- package/package.json +1 -1
- package/scripts/FintaChart.min.js +2 -2
- package/scripts/themes/darkTheme.js +3 -3
- package/scripts/themes/defaultTheme.js +3 -3
- package/scripts/themes/fintatechDarkTheme.js +3 -3
- package/scripts/themes/grayTheme.js +3 -3
- package/scripts/themes/oliveTheme.js +3 -3
- package/scripts/themes/orangeTheme.js +3 -3
- package/scripts/themes/purpleTheme.js +3 -3
- package/scripts/themes/skyTheme.js +3 -3
- package/scripts/themes/tealTheme.js +3 -3
package/d.ts/FintaChart.d.ts
CHANGED
|
@@ -590,6 +590,13 @@ declare module FintaChart {
|
|
|
590
590
|
* @param topOffset The top CSS value (e.g. '6rem').
|
|
591
591
|
*/
|
|
592
592
|
static centerHorizontally(el: HTMLElement, topOffset: string): void;
|
|
593
|
+
/**
|
|
594
|
+
* Binds a tap handler firing once on touch or click.
|
|
595
|
+
*
|
|
596
|
+
* @param el The target element.
|
|
597
|
+
* @param handler The tap handler.
|
|
598
|
+
*/
|
|
599
|
+
static onTap(el: HTMLElement, handler: (e: Event) => void): void;
|
|
593
600
|
/**
|
|
594
601
|
* Shows an element by clearing its display style.
|
|
595
602
|
*
|
|
@@ -1878,6 +1885,10 @@ declare module FintaChart {
|
|
|
1878
1885
|
* The ending date to load bars.
|
|
1879
1886
|
*/
|
|
1880
1887
|
endDate?: Date;
|
|
1888
|
+
/**
|
|
1889
|
+
* Reset visible range to default view after load.
|
|
1890
|
+
*/
|
|
1891
|
+
resetVisibleRange?: boolean;
|
|
1881
1892
|
}
|
|
1882
1893
|
}
|
|
1883
1894
|
declare module FintaChart.Formatters {
|
|
@@ -2772,6 +2783,7 @@ declare module FintaChart {
|
|
|
2772
2783
|
*/
|
|
2773
2784
|
constructor(config?: IContextMenuMotionEventConfig);
|
|
2774
2785
|
handleEvent(event: IWindowEvent): boolean;
|
|
2786
|
+
private snapshot;
|
|
2775
2787
|
private finish;
|
|
2776
2788
|
private startTimer;
|
|
2777
2789
|
private stopTimer;
|
|
@@ -2963,6 +2975,15 @@ declare module FintaChart {
|
|
|
2963
2975
|
hide(): void;
|
|
2964
2976
|
private init;
|
|
2965
2977
|
private onClose;
|
|
2978
|
+
private onSubmit;
|
|
2979
|
+
private collectFormData;
|
|
2980
|
+
private validate;
|
|
2981
|
+
private isValidEmail;
|
|
2982
|
+
private sendPurchaseRequest;
|
|
2983
|
+
private sendViaBackend;
|
|
2984
|
+
private showError;
|
|
2985
|
+
private showSuccess;
|
|
2986
|
+
private clearMessages;
|
|
2966
2987
|
}
|
|
2967
2988
|
}
|
|
2968
2989
|
declare module FintaChart {
|
|
@@ -5291,6 +5312,7 @@ declare module FintaChart {
|
|
|
5291
5312
|
static enable(control: HTMLElement, enable: boolean): void;
|
|
5292
5313
|
enable(value?: boolean): void;
|
|
5293
5314
|
private static isElementReady;
|
|
5315
|
+
private static hasSpectrum;
|
|
5294
5316
|
private initSpectrum;
|
|
5295
5317
|
private waitForAttach;
|
|
5296
5318
|
private static initParams;
|
|
@@ -5978,6 +6000,7 @@ declare module FintaChart {
|
|
|
5978
6000
|
private _hasCustomPicker;
|
|
5979
6001
|
private _isActive;
|
|
5980
6002
|
private _last;
|
|
6003
|
+
private _hoverTimer;
|
|
5981
6004
|
private _windowScrollHandler;
|
|
5982
6005
|
private _windowResizeHandler;
|
|
5983
6006
|
private _bodyClickHandler;
|
|
@@ -6179,6 +6202,7 @@ declare module FintaChart {
|
|
|
6179
6202
|
private resetTradePanelOnInstrumentChange;
|
|
6180
6203
|
private onLockShapesClick;
|
|
6181
6204
|
private replaceLockIcon;
|
|
6205
|
+
private getStaticQuantitiesForCalc;
|
|
6182
6206
|
private getQuantityRules;
|
|
6183
6207
|
private normalizeAmountByRules;
|
|
6184
6208
|
private getNumberDecimals;
|
|
@@ -6273,7 +6297,6 @@ declare module FintaChart {
|
|
|
6273
6297
|
private hideDropDown;
|
|
6274
6298
|
private init;
|
|
6275
6299
|
private setValue;
|
|
6276
|
-
private showDropDownForHover;
|
|
6277
6300
|
private showDropDown;
|
|
6278
6301
|
private toggleButton;
|
|
6279
6302
|
private toggleDropDown;
|
|
@@ -9504,6 +9527,8 @@ declare module FintaChart {
|
|
|
9504
9527
|
SLOW: string;
|
|
9505
9528
|
VOLUME_DIVISOR: string;
|
|
9506
9529
|
OFFSET_MULTIPLIER: string;
|
|
9530
|
+
MULTIPLIER: string;
|
|
9531
|
+
BOX_RATIO_SMOOTHING: string;
|
|
9507
9532
|
ENVELOPE_PERCENTAGE: string;
|
|
9508
9533
|
BAR_COUNT: string;
|
|
9509
9534
|
Q_PERIODS: string;
|
|
@@ -10840,6 +10865,8 @@ declare module FintaChart {
|
|
|
10840
10865
|
*/
|
|
10841
10866
|
get period(): number;
|
|
10842
10867
|
set period(value: number);
|
|
10868
|
+
get multiplier(): number;
|
|
10869
|
+
set multiplier(value: number);
|
|
10843
10870
|
/**
|
|
10844
10871
|
* The signal period.
|
|
10845
10872
|
*/
|
|
@@ -11724,6 +11751,8 @@ declare module FintaChart {
|
|
|
11724
11751
|
*/
|
|
11725
11752
|
get period(): number;
|
|
11726
11753
|
set period(value: number);
|
|
11754
|
+
get multiplier(): number;
|
|
11755
|
+
set multiplier(value: number);
|
|
11727
11756
|
protected onInitializeIndicator(): void;
|
|
11728
11757
|
protected onResetDefaults(): void;
|
|
11729
11758
|
protected onInputTick(): void;
|
|
@@ -11880,6 +11909,8 @@ declare module FintaChart {
|
|
|
11880
11909
|
static get type(): string;
|
|
11881
11910
|
private _ema;
|
|
11882
11911
|
private _emv;
|
|
11912
|
+
private _boxRatio;
|
|
11913
|
+
private _smoothedBoxRatio;
|
|
11883
11914
|
/**
|
|
11884
11915
|
* The smooth value.
|
|
11885
11916
|
*/
|
|
@@ -11890,6 +11921,11 @@ declare module FintaChart {
|
|
|
11890
11921
|
*/
|
|
11891
11922
|
get volumeDivisor(): number;
|
|
11892
11923
|
set volumeDivisor(value: number);
|
|
11924
|
+
/**
|
|
11925
|
+
* The box ratio smoothing period.
|
|
11926
|
+
*/
|
|
11927
|
+
get boxRatioSmoothing(): number;
|
|
11928
|
+
set boxRatioSmoothing(value: number);
|
|
11893
11929
|
protected onInitializeIndicator(): void;
|
|
11894
11930
|
protected onResetDefaults(): void;
|
|
11895
11931
|
protected onInputTick(): void;
|
|
@@ -11905,6 +11941,8 @@ declare module FintaChart {
|
|
|
11905
11941
|
static get type(): string;
|
|
11906
11942
|
private _smaFast;
|
|
11907
11943
|
private _smaSlow;
|
|
11944
|
+
private _emaFast;
|
|
11945
|
+
private _emaSlow;
|
|
11908
11946
|
/**
|
|
11909
11947
|
* The fast SMA period.
|
|
11910
11948
|
*/
|
|
@@ -11920,6 +11958,11 @@ declare module FintaChart {
|
|
|
11920
11958
|
*/
|
|
11921
11959
|
get slow(): number;
|
|
11922
11960
|
set slow(value: number);
|
|
11961
|
+
/**
|
|
11962
|
+
* The maType period.
|
|
11963
|
+
*/
|
|
11964
|
+
get maType(): number;
|
|
11965
|
+
set maType(value: number);
|
|
11923
11966
|
protected onInitializeIndicator(): void;
|
|
11924
11967
|
protected onResetDefaults(): void;
|
|
11925
11968
|
protected onInputTick(): void;
|
|
@@ -13515,6 +13558,12 @@ declare module FintaChart {
|
|
|
13515
13558
|
* @param value
|
|
13516
13559
|
*/
|
|
13517
13560
|
formatValue(value: number): string;
|
|
13561
|
+
/**
|
|
13562
|
+
* Formats a volume value in a compact form (e.g. 1.03M, 12.4K).
|
|
13563
|
+
*
|
|
13564
|
+
* @param value
|
|
13565
|
+
*/
|
|
13566
|
+
formatVolume(value: number): string;
|
|
13518
13567
|
/**
|
|
13519
13568
|
* Returns index
|
|
13520
13569
|
*
|
|
@@ -13650,6 +13699,21 @@ declare module FintaChart {
|
|
|
13650
13699
|
* @return
|
|
13651
13700
|
*/
|
|
13652
13701
|
updateHoverRecord(record?: number): void;
|
|
13702
|
+
/**
|
|
13703
|
+
* Renders the live graphics of an OHLC info card: the volume bar (as a
|
|
13704
|
+
* fraction of the max visible volume) and the price sparkline (the last
|
|
13705
|
+
* N closes up to the hovered record).
|
|
13706
|
+
*
|
|
13707
|
+
* @param control The card's bar-info control.
|
|
13708
|
+
* @param record The hovered record index.
|
|
13709
|
+
* @param color The up/down colour for the current bar.
|
|
13710
|
+
*/
|
|
13711
|
+
private renderOhlcCardGraphics;
|
|
13712
|
+
/**
|
|
13713
|
+
* Draws a price sparkline onto a canvas, scaling to its CSS size and
|
|
13714
|
+
* device pixel ratio for a crisp line.
|
|
13715
|
+
*/
|
|
13716
|
+
private drawSparkline;
|
|
13653
13717
|
preserveAutoScaling(): void;
|
|
13654
13718
|
cancelAutoScaling(): void;
|
|
13655
13719
|
verticalAxisLabelMaxWidth(verticalAxis: VerticalAxis): number;
|
|
@@ -13692,6 +13756,7 @@ declare module FintaChart {
|
|
|
13692
13756
|
private initInstrumentPaneTitle;
|
|
13693
13757
|
private initPaneTitle;
|
|
13694
13758
|
private initDraggablePaneTitle;
|
|
13759
|
+
private initOHLCCard;
|
|
13695
13760
|
private layoutHtmlElements;
|
|
13696
13761
|
private motionHitTest;
|
|
13697
13762
|
private updateInstrument;
|
|
@@ -14923,9 +14988,6 @@ declare module FintaChart {
|
|
|
14923
14988
|
}
|
|
14924
14989
|
}
|
|
14925
14990
|
declare module FintaChart {
|
|
14926
|
-
enum MimeType {
|
|
14927
|
-
PNG = "image/png"
|
|
14928
|
-
}
|
|
14929
14991
|
interface IChartSnapshotHandler extends IChartComponent {
|
|
14930
14992
|
/**
|
|
14931
14993
|
* Returns snapshot file name.
|
|
@@ -14949,11 +15011,16 @@ declare module FintaChart {
|
|
|
14949
15011
|
name(): string;
|
|
14950
15012
|
save(): void;
|
|
14951
15013
|
saveToClipboard(): void;
|
|
15014
|
+
private writeBlobToClipboard;
|
|
15015
|
+
private fallbackDownload;
|
|
15016
|
+
private showChartMessage;
|
|
14952
15017
|
private createSnapshot;
|
|
14953
15018
|
private saveImage;
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
15019
|
+
/**
|
|
15020
|
+
* Returns a human-readable reason why the clipboard cannot be used,
|
|
15021
|
+
* or `null` when a clipboard write may be attempted.
|
|
15022
|
+
*/
|
|
15023
|
+
private clipboardUnavailableReason;
|
|
14957
15024
|
private addBorders;
|
|
14958
15025
|
private trimTransparentMargins;
|
|
14959
15026
|
private loadImage;
|
|
@@ -21296,6 +21363,7 @@ declare module FintaChart {
|
|
|
21296
21363
|
private _accountSize;
|
|
21297
21364
|
private _lotSize;
|
|
21298
21365
|
private _riskPercentage;
|
|
21366
|
+
private _leverage;
|
|
21299
21367
|
private _profitTicks;
|
|
21300
21368
|
private _profitPrice;
|
|
21301
21369
|
private _stopTicks;
|
|
@@ -21303,6 +21371,7 @@ declare module FintaChart {
|
|
|
21303
21371
|
private _entryPrice;
|
|
21304
21372
|
private _input_accountSizeHTMLObj;
|
|
21305
21373
|
private _input_lotSizeHTMLObj;
|
|
21374
|
+
private _input_leverageHTMLObj;
|
|
21306
21375
|
private _input_riskPercentageHTMLObj;
|
|
21307
21376
|
private _input_profitTicksHTMLObj;
|
|
21308
21377
|
private _input_profitPriceHTMLObj;
|
|
@@ -21351,6 +21420,7 @@ declare module FintaChart {
|
|
|
21351
21420
|
private handleLevelPriceChange;
|
|
21352
21421
|
private getRelatedInputField;
|
|
21353
21422
|
private updateLevel;
|
|
21423
|
+
private applyEntryChange;
|
|
21354
21424
|
private calculateTicksFromPrice;
|
|
21355
21425
|
private calculatePriceFromTicks;
|
|
21356
21426
|
private validatePrice;
|
|
@@ -21390,6 +21460,8 @@ declare module FintaChart {
|
|
|
21390
21460
|
rewardPips: number;
|
|
21391
21461
|
calculatedStop: number;
|
|
21392
21462
|
calculatedTarget: number;
|
|
21463
|
+
accountTooSmall: boolean;
|
|
21464
|
+
minLotSize: number;
|
|
21393
21465
|
}
|
|
21394
21466
|
interface IPositionDrawingShapeState extends IShapeState {
|
|
21395
21467
|
entry: number;
|
|
@@ -21442,9 +21514,13 @@ declare module FintaChart {
|
|
|
21442
21514
|
*/
|
|
21443
21515
|
lotSize?: number;
|
|
21444
21516
|
/**
|
|
21445
|
-
* Shape risk percentage
|
|
21517
|
+
* Shape risk percentage (display-only — no longer drives Qty)
|
|
21446
21518
|
*/
|
|
21447
21519
|
riskPercentage?: number;
|
|
21520
|
+
/**
|
|
21521
|
+
* Account leverage used to size the position: Qty = (accountSize * leverage) / entryPrice
|
|
21522
|
+
*/
|
|
21523
|
+
leverage?: number;
|
|
21448
21524
|
}
|
|
21449
21525
|
interface IPositionShapeDefaults extends IShapeDefaults {
|
|
21450
21526
|
/**
|
|
@@ -21471,6 +21547,10 @@ declare module FintaChart {
|
|
|
21471
21547
|
* Shape risk percentage
|
|
21472
21548
|
*/
|
|
21473
21549
|
riskPercentage: number;
|
|
21550
|
+
/**
|
|
21551
|
+
* Account leverage used to size the position: Qty = (accountSize * leverage) / entryPrice
|
|
21552
|
+
*/
|
|
21553
|
+
leverage: number;
|
|
21474
21554
|
/**
|
|
21475
21555
|
* Shape visibility config
|
|
21476
21556
|
*/
|
|
@@ -21494,6 +21574,7 @@ declare module FintaChart {
|
|
|
21494
21574
|
const COMPACT_MODE_CHANGED = "compactModeChanged";
|
|
21495
21575
|
const ALWAYS_SHOW_STATS_CHANGED = "alwaysShowStatsChanged";
|
|
21496
21576
|
const VISIBILITY_CONFIG_CHANGED = "visibilityConfigChanged";
|
|
21577
|
+
const ACCOUNT_TOO_SMALL_CHANGED = "accountTooSmallChanged";
|
|
21497
21578
|
}
|
|
21498
21579
|
abstract class PositionDrawingShape extends Shape {
|
|
21499
21580
|
private _entry;
|
|
@@ -21511,6 +21592,7 @@ declare module FintaChart {
|
|
|
21511
21592
|
private _dragStartPoints?;
|
|
21512
21593
|
private _initialTimeframe?;
|
|
21513
21594
|
private _initialWidthInBars?;
|
|
21595
|
+
private _accountTooSmall;
|
|
21514
21596
|
static defaults: IPositionShapeDefaults;
|
|
21515
21597
|
protected get defaults(): IPositionShapeDefaults;
|
|
21516
21598
|
static get type(): string;
|
|
@@ -21531,6 +21613,8 @@ declare module FintaChart {
|
|
|
21531
21613
|
set riskPercentage(value: number);
|
|
21532
21614
|
get lotSize(): number;
|
|
21533
21615
|
set lotSize(value: number);
|
|
21616
|
+
get leverage(): number;
|
|
21617
|
+
set leverage(value: number);
|
|
21534
21618
|
get visibilityConfig(): ITimeFrameVisibilityConfig;
|
|
21535
21619
|
set visibilityConfig(value: ITimeFrameVisibilityConfig);
|
|
21536
21620
|
setCustomPoints(points: IPositionPoint[]): void;
|
|
@@ -21588,6 +21672,7 @@ declare module FintaChart {
|
|
|
21588
21672
|
private paintExecutionPoint;
|
|
21589
21673
|
private addOpacity;
|
|
21590
21674
|
private getShapeWidth;
|
|
21675
|
+
private decimalPlaces;
|
|
21591
21676
|
private findClosestBarIndex;
|
|
21592
21677
|
/**
|
|
21593
21678
|
* Check if the current timeframe matches the initial timeframe
|
|
@@ -21994,6 +22079,7 @@ declare module FintaChart {
|
|
|
21994
22079
|
private generateList;
|
|
21995
22080
|
deleteTemplate(key: string): void;
|
|
21996
22081
|
selectTemplate(key: string): void;
|
|
22082
|
+
private resetFibonacciLevels;
|
|
21997
22083
|
}
|
|
21998
22084
|
}
|
|
21999
22085
|
declare module FintaChart {
|
|
@@ -22402,8 +22488,23 @@ declare module FintaChart {
|
|
|
22402
22488
|
private _motions;
|
|
22403
22489
|
protected state: TradingToolState;
|
|
22404
22490
|
locked: boolean;
|
|
22491
|
+
protected _dim: number | null;
|
|
22405
22492
|
protected get canHandleEvents(): boolean;
|
|
22406
22493
|
get canMove(): boolean;
|
|
22494
|
+
get dim(): number | null;
|
|
22495
|
+
/**
|
|
22496
|
+
* Visually dims the trading tool by multiplying its theme colors by `value`.
|
|
22497
|
+
* Pass `null` (or omit) to undim and restore the original theme.
|
|
22498
|
+
* @param value Number in (0, 1] or null to clear.
|
|
22499
|
+
*/
|
|
22500
|
+
setDimmed(value?: number | null): void;
|
|
22501
|
+
/**
|
|
22502
|
+
* Returns a deep clone of `src` with every `strokeColor` and `fillColor`
|
|
22503
|
+
* leaf multiplied by `value`. Used by subclasses inside `actualTheme` when
|
|
22504
|
+
* `_dim` is set.
|
|
22505
|
+
*/
|
|
22506
|
+
protected _dimThemeColors<T extends object>(src: T, value: number): T;
|
|
22507
|
+
private _dimWalk;
|
|
22407
22508
|
protected constructor();
|
|
22408
22509
|
dispose(): void;
|
|
22409
22510
|
protected onPaneChanged(oldValue: Pane): void;
|
|
@@ -22426,6 +22527,10 @@ declare module FintaChart {
|
|
|
22426
22527
|
private formatProfitDescription;
|
|
22427
22528
|
modifyThemeColor(color: string, opacity?: number): string;
|
|
22428
22529
|
formatValue(value: number): number;
|
|
22530
|
+
protected getDisplayedBidAsk(fallbackPrice?: number): {
|
|
22531
|
+
bid: number;
|
|
22532
|
+
ask: number;
|
|
22533
|
+
};
|
|
22429
22534
|
private _initButtons;
|
|
22430
22535
|
private initMotionEvents;
|
|
22431
22536
|
protected _handleHoverGesture(gesture?: MouseHoverMotionEvent): boolean;
|
|
@@ -22541,6 +22646,10 @@ declare module FintaChart {
|
|
|
22541
22646
|
const defaultLabelZIndex = 500;
|
|
22542
22647
|
const selectedLabelZIndex = 501;
|
|
22543
22648
|
const blur = 10;
|
|
22649
|
+
const priceTypeBadgeWidth = 22;
|
|
22650
|
+
const priceTypeBadgeGap = 5;
|
|
22651
|
+
const STOP_LIMIT_LIMIT_SUFFIX = "limit";
|
|
22652
|
+
const STOP_LIMIT_STOP_SUFFIX = "stop";
|
|
22544
22653
|
class OrderBar extends TradingTool {
|
|
22545
22654
|
private _config;
|
|
22546
22655
|
get localizedKind(): string;
|
|
@@ -22553,6 +22662,7 @@ declare module FintaChart {
|
|
|
22553
22662
|
get theme(): IOrderBarTheme;
|
|
22554
22663
|
set theme(value: IOrderBarTheme);
|
|
22555
22664
|
get actualTheme(): IOrderBarTheme;
|
|
22665
|
+
setDimmed(value?: number | null): void;
|
|
22556
22666
|
get defaultTheme(): IOrderBarTheme;
|
|
22557
22667
|
_cancelButtonOptions: IButtonOptions;
|
|
22558
22668
|
private _acceptedButtonOptions;
|
|
@@ -22629,6 +22739,8 @@ declare module FintaChart {
|
|
|
22629
22739
|
private _forceExpanded;
|
|
22630
22740
|
private _parentOrder?;
|
|
22631
22741
|
get showlabel(): boolean;
|
|
22742
|
+
get priceType(): 'LP' | 'SP' | null;
|
|
22743
|
+
get priceTypeBadgeReservedWidth(): number;
|
|
22632
22744
|
get isSelected(): boolean;
|
|
22633
22745
|
private get _isExitChildOrder();
|
|
22634
22746
|
private _ensureParentLink;
|
|
@@ -22664,6 +22776,7 @@ declare module FintaChart {
|
|
|
22664
22776
|
* @inheritdoc
|
|
22665
22777
|
*/
|
|
22666
22778
|
paint(): void;
|
|
22779
|
+
private _paintPriceTypeBadge;
|
|
22667
22780
|
finishModifyMode(): void;
|
|
22668
22781
|
paintVerticalAxisLabels(): void;
|
|
22669
22782
|
orderModifyStarted(): boolean;
|
|
@@ -22808,6 +22921,7 @@ declare module FintaChart {
|
|
|
22808
22921
|
* Gets current theme of position tool.
|
|
22809
22922
|
*/
|
|
22810
22923
|
get actualTheme(): IPositionBarTheme;
|
|
22924
|
+
setDimmed(value?: number | null): void;
|
|
22811
22925
|
/**
|
|
22812
22926
|
* Gets default theme of position tool.
|
|
22813
22927
|
*/
|
|
@@ -23056,12 +23170,17 @@ declare module FintaChart {
|
|
|
23056
23170
|
private DRAG_THRESHOLD;
|
|
23057
23171
|
_isTP: boolean;
|
|
23058
23172
|
_isSL: boolean;
|
|
23059
|
-
_isTpDrag: boolean;
|
|
23173
|
+
_isTpDrag: boolean | null;
|
|
23060
23174
|
sizeOptions: any;
|
|
23061
23175
|
constructor(parent: OrderBar, isTP: boolean, isSL: boolean);
|
|
23062
23176
|
paintVerticalAxisLabels(): void;
|
|
23063
23177
|
protected _handleHoverGesture(gesture: MouseHoverMotionEvent): boolean;
|
|
23064
23178
|
protected _handleMotionEventPencilDevice(gesture: MoveMotionEvent, event: IWindowEvent): boolean;
|
|
23179
|
+
private _isTakeProfitCreated;
|
|
23180
|
+
private _isStopLossCreated;
|
|
23181
|
+
private _getButtonAreas;
|
|
23182
|
+
private _isOnTakeProfitButton;
|
|
23183
|
+
private _isOnStopLossButton;
|
|
23065
23184
|
private _detectTP;
|
|
23066
23185
|
private _updateStopLossTakeProfit;
|
|
23067
23186
|
/**
|
|
@@ -23498,6 +23617,10 @@ declare module FintaChart {
|
|
|
23498
23617
|
* Is chart OHLC panel showed
|
|
23499
23618
|
*/
|
|
23500
23619
|
ohlcShowed?: boolean;
|
|
23620
|
+
/**
|
|
23621
|
+
* Is chart OHLC info card showed
|
|
23622
|
+
*/
|
|
23623
|
+
ohlcCardShowed?: boolean;
|
|
23501
23624
|
/**
|
|
23502
23625
|
* Scrollbar loaded event emitter
|
|
23503
23626
|
*/
|
|
@@ -23578,6 +23701,7 @@ declare module FintaChart {
|
|
|
23578
23701
|
orderSettings?: GetOrderSettingsType;
|
|
23579
23702
|
useExternalSearchInput?: boolean;
|
|
23580
23703
|
showLogoWatermark?: boolean;
|
|
23704
|
+
useNewBrandedWatermark?: boolean;
|
|
23581
23705
|
isChartWidget?: boolean;
|
|
23582
23706
|
}
|
|
23583
23707
|
/**
|
|
@@ -23608,6 +23732,10 @@ declare module FintaChart {
|
|
|
23608
23732
|
* Is OHLC panel showed
|
|
23609
23733
|
*/
|
|
23610
23734
|
ohlcShowed?: boolean;
|
|
23735
|
+
/**
|
|
23736
|
+
* Is OHLC info card showed
|
|
23737
|
+
*/
|
|
23738
|
+
ohlcCardShowed?: boolean;
|
|
23611
23739
|
/**
|
|
23612
23740
|
* Is chart scroll enabled
|
|
23613
23741
|
*/
|
|
@@ -23621,6 +23749,7 @@ declare module FintaChart {
|
|
|
23621
23749
|
*/
|
|
23622
23750
|
showInstrumentWatermark: boolean;
|
|
23623
23751
|
showLogoWatermark: boolean;
|
|
23752
|
+
useNewBrandedWatermark: boolean;
|
|
23624
23753
|
/**
|
|
23625
23754
|
* Is hide chart scroll to last bar
|
|
23626
23755
|
*/
|
|
@@ -23868,6 +23997,10 @@ declare module FintaChart {
|
|
|
23868
23997
|
private readonly _sessionBreakLines;
|
|
23869
23998
|
private _supportedTimeFrames;
|
|
23870
23999
|
private readonly _handleWindowResizeEvent;
|
|
24000
|
+
private _rootResizeObserver;
|
|
24001
|
+
private _lastObservedWidth;
|
|
24002
|
+
private _lastObservedHeight;
|
|
24003
|
+
private _resizeRafPending;
|
|
23871
24004
|
private readonly _indicatorAlertsHandler;
|
|
23872
24005
|
private readonly _addThemeCssClass;
|
|
23873
24006
|
private readonly _barCountdown;
|
|
@@ -23943,6 +24076,9 @@ declare module FintaChart {
|
|
|
23943
24076
|
private _showAlertId;
|
|
23944
24077
|
private _favoriteIndicators;
|
|
23945
24078
|
private _shapeTemplates;
|
|
24079
|
+
private static readonly _shapeTemplatesStorageKey;
|
|
24080
|
+
private static loadShapeTemplatesFromStorage;
|
|
24081
|
+
private static saveShapeTemplatesToStorage;
|
|
23946
24082
|
private _magnetMode;
|
|
23947
24083
|
private _lockShapes;
|
|
23948
24084
|
private _pendingTimeFrameRangeClamp;
|
|
@@ -23952,6 +24088,7 @@ declare module FintaChart {
|
|
|
23952
24088
|
private _conversionRate;
|
|
23953
24089
|
private _touchPanActive;
|
|
23954
24090
|
private _touchPanLastX;
|
|
24091
|
+
get isTouchPanActive(): boolean;
|
|
23955
24092
|
get conversionRate(): {
|
|
23956
24093
|
ask: number;
|
|
23957
24094
|
bid: number;
|
|
@@ -24167,6 +24304,11 @@ declare module FintaChart {
|
|
|
24167
24304
|
*/
|
|
24168
24305
|
get ohlcShowed(): boolean;
|
|
24169
24306
|
set ohlcShowed(value: boolean);
|
|
24307
|
+
/**
|
|
24308
|
+
* Get is OHLC info card showed
|
|
24309
|
+
*/
|
|
24310
|
+
get ohlcCardShowed(): boolean;
|
|
24311
|
+
set ohlcCardShowed(value: boolean);
|
|
24170
24312
|
/**
|
|
24171
24313
|
* Get chart panes
|
|
24172
24314
|
*/
|
|
@@ -24243,6 +24385,7 @@ declare module FintaChart {
|
|
|
24243
24385
|
get showInstrumentWatermark(): boolean;
|
|
24244
24386
|
set showInstrumentWatermark(value: boolean);
|
|
24245
24387
|
get showLogoWatermark(): boolean;
|
|
24388
|
+
get useNewBrandedWatermark(): boolean;
|
|
24246
24389
|
/**
|
|
24247
24390
|
* Get chart size
|
|
24248
24391
|
*/
|
|
@@ -24549,6 +24692,14 @@ declare module FintaChart {
|
|
|
24549
24692
|
* @param state
|
|
24550
24693
|
*/
|
|
24551
24694
|
restoreIndicatorsState(state: string | IIndicatorState[]): void;
|
|
24695
|
+
/**
|
|
24696
|
+
* Removes orphaned panes (non-primary, no indicators, no savable
|
|
24697
|
+
* shapes). Panes claimed by `indicatorStates` via `paneIndex` are kept.
|
|
24698
|
+
*
|
|
24699
|
+
* @param indicatorStates States whose `paneIndex` marks panes to keep.
|
|
24700
|
+
* @return The number of panes removed.
|
|
24701
|
+
*/
|
|
24702
|
+
pruneEmptyPanes(indicatorStates?: IIndicatorState[]): number;
|
|
24552
24703
|
/**
|
|
24553
24704
|
* Loads shapes state
|
|
24554
24705
|
*
|
|
@@ -24763,6 +24914,7 @@ declare module FintaChart {
|
|
|
24763
24914
|
*
|
|
24764
24915
|
* @param updateInstruments
|
|
24765
24916
|
*/
|
|
24917
|
+
private hasRenderSize;
|
|
24766
24918
|
refresh(updateInstruments?: boolean): void;
|
|
24767
24919
|
/**
|
|
24768
24920
|
* Triggers a repaint after direct property mutations (theme,
|
|
@@ -24836,6 +24988,16 @@ declare module FintaChart {
|
|
|
24836
24988
|
private showDataInfo;
|
|
24837
24989
|
private hideDataInfo;
|
|
24838
24990
|
toggleDataInfo(show: boolean): void;
|
|
24991
|
+
/**
|
|
24992
|
+
* Resolves the root container that holds this chart's OHLC card,
|
|
24993
|
+
* accounting for the multi-chart / mobile layouts where `_rootDiv`
|
|
24994
|
+
* may not be an ancestor of the card element.
|
|
24995
|
+
*/
|
|
24996
|
+
private ohlcCardRootContainer;
|
|
24997
|
+
private showOhlcCard;
|
|
24998
|
+
private hideOhlcCard;
|
|
24999
|
+
toggleOhlcCardButton(show: boolean): void;
|
|
25000
|
+
setOhlcCardVariant(variant: string): void;
|
|
24839
25001
|
private translateClonedShape;
|
|
24840
25002
|
private subscribe;
|
|
24841
25003
|
private unsubscribe;
|
|
@@ -3,20 +3,46 @@
|
|
|
3
3
|
<div class="background tcdSVGIcon default-fill" tcdSVGData="demo-popup-bg"></div>
|
|
4
4
|
|
|
5
5
|
<div class="content-wrapper">
|
|
6
|
-
<div class="img-wrapper dark-img default-fill">
|
|
7
|
-
<div class="tcdSVGIcon default-fill banner dark-banner" tcdSVGData="Illustration-License-b"></div>
|
|
8
|
-
<div class="tcdSVGIcon default-fill banner light-banner" tcdSVGData="Illustration-License-w"></div>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
6
|
<div class="logo-wrapper tcdSVGIcon default-fill" tcdSVGData="fintatech"></div>
|
|
7
|
+
|
|
12
8
|
<div class="text-wrapper">
|
|
13
9
|
<p>This is a demo version with limited functionality</p>
|
|
14
|
-
<p>
|
|
10
|
+
<p>Fill in the form below to purchase the full version</p>
|
|
15
11
|
</div>
|
|
16
12
|
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
13
|
+
<form class="purchase-form" novalidate>
|
|
14
|
+
<div class="form-row">
|
|
15
|
+
<label for="tcdPurchase_fullName">Name and surname<span class="required-mark">*</span></label>
|
|
16
|
+
<input id="tcdPurchase_fullName" name="fullName" type="text" autocomplete="name" required>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="form-row">
|
|
20
|
+
<label for="tcdPurchase_email">Email<span class="required-mark">*</span></label>
|
|
21
|
+
<input id="tcdPurchase_email" name="email" type="email" autocomplete="email" required>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="form-row">
|
|
25
|
+
<label for="tcdPurchase_company">Company name<span class="required-mark">*</span></label>
|
|
26
|
+
<input id="tcdPurchase_company" name="company" type="text" autocomplete="organization" required>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="form-row">
|
|
30
|
+
<label for="tcdPurchase_mainDomain">Main domain<span class="required-mark">*</span></label>
|
|
31
|
+
<input id="tcdPurchase_mainDomain" name="mainDomain" type="text" placeholder="example.com" required>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="form-row">
|
|
35
|
+
<label for="tcdPurchase_secondaryDomain">Secondary domain <span class="optional-mark">(optional)</span></label>
|
|
36
|
+
<input id="tcdPurchase_secondaryDomain" name="secondaryDomain" type="text" placeholder="example.org">
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<p class="form-error" hidden></p>
|
|
40
|
+
<p class="form-success" hidden>Thank you! Your request has been sent.</p>
|
|
41
|
+
|
|
42
|
+
<div class="btn-wrapper">
|
|
43
|
+
<button type="submit" class="btn purchase-btn">Purchase</button>
|
|
44
|
+
</div>
|
|
45
|
+
</form>
|
|
20
46
|
|
|
21
47
|
<span class="close-btn tcdSVGIcon" tcdSVGData="close-windows"></span>
|
|
22
48
|
</div>
|
|
@@ -1,38 +1,76 @@
|
|
|
1
|
-
<div
|
|
1
|
+
<div
|
|
2
|
+
id="tcdIndicatorDialog"
|
|
3
|
+
class="tcdDialog custom-modal-dialog"
|
|
4
|
+
tabindex="-1"
|
|
5
|
+
>
|
|
2
6
|
<div class="custom-modal-content">
|
|
3
7
|
<div class="custom-modal-body tcdIndicatorDialog_body">
|
|
4
8
|
<ul class="tcdTabs">
|
|
5
|
-
<li
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
<li
|
|
10
|
+
class="tcdTabItem parameters-tab active"
|
|
11
|
+
data-id="tcdIndicatorDialog_tab_parameters"
|
|
12
|
+
data-i18n="indicator.all.dialog.parameters"
|
|
13
|
+
></li>
|
|
14
|
+
<li
|
|
15
|
+
class="tcdTabItem styles-tab"
|
|
16
|
+
data-id="tcdIndicatorDialog_tab_style"
|
|
17
|
+
data-i18n="indicator.all.dialog.style"
|
|
18
|
+
></li>
|
|
19
|
+
<!-- TODO: Hide-->
|
|
20
|
+
<!-- <li class="tcdTabItem visibility-tab" data-id="tcdIndicatorDialog_tab_visibility" data-i18n="indicator.all.dialog.visibility"></li>-->
|
|
9
21
|
</ul>
|
|
10
22
|
<div class="tcdTabsContent">
|
|
11
|
-
<div
|
|
23
|
+
<div
|
|
24
|
+
class="tcdTabPane active"
|
|
25
|
+
data-id="tcdIndicatorDialog_tab_parameters"
|
|
26
|
+
>
|
|
12
27
|
<div id="tcdIndicatorDialog_pane_parameters">
|
|
13
|
-
<div class="tcdDialog-body-content">
|
|
14
|
-
</div>
|
|
28
|
+
<div class="tcdDialog-body-content"></div>
|
|
15
29
|
</div>
|
|
16
30
|
</div>
|
|
17
31
|
<div class="tcdTabPane" data-id="tcdIndicatorDialog_tab_style">
|
|
18
32
|
<div id="tcdIndicatorDialog_pane_figure">
|
|
19
|
-
<div class="tcdDialog-body-content">
|
|
20
|
-
</div>
|
|
33
|
+
<div class="tcdDialog-body-content"></div>
|
|
21
34
|
</div>
|
|
22
35
|
</div>
|
|
23
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
class="tcdTabPane"
|
|
38
|
+
data-id="tcdIndicatorDialog_tab_visibility"
|
|
39
|
+
>
|
|
24
40
|
<div id="tcdIndicatorDialog_pane_visibility">
|
|
25
|
-
<div class="tcdDialog-body-content">
|
|
26
|
-
</div>
|
|
41
|
+
<div class="tcdDialog-body-content"></div>
|
|
27
42
|
</div>
|
|
28
43
|
</div>
|
|
29
44
|
</div>
|
|
30
45
|
</div>
|
|
31
46
|
<div class="custom-modal-footer tcdIndicatorDialog-footer">
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
47
|
+
<div class="tcdIndicatorDialog-footer-buttons">
|
|
48
|
+
<button
|
|
49
|
+
type="button"
|
|
50
|
+
class="tcdBtn tcdBtn-link defaultBtnColor"
|
|
51
|
+
id="tcdIndicatorDialog_btn_default"
|
|
52
|
+
tcdModal-data="tcdIndicatorDialog"
|
|
53
|
+
data-i18n="dialog.button.defaults"
|
|
54
|
+
>
|
|
55
|
+
Default
|
|
56
|
+
</button>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="tcdIndicatorDialog-footer-buttons">
|
|
59
|
+
<button
|
|
60
|
+
type="button"
|
|
61
|
+
class="tcdBtn tcdBtn-link tcd_modalClose tcdBtn-close"
|
|
62
|
+
tcdModal-data="tcdIndicatorDialog"
|
|
63
|
+
data-dismiss="modal"
|
|
64
|
+
data-i18n="dialog.button.close"
|
|
65
|
+
></button>
|
|
66
|
+
<button
|
|
67
|
+
type="button"
|
|
68
|
+
class="tcdBtn tcdBtn-primary tcd_modalClose"
|
|
69
|
+
id="tcdIndicatorDialog_btn_apply"
|
|
70
|
+
tcdModal-data="tcdIndicatorDialog"
|
|
71
|
+
data-i18n="dialog.button.apply"
|
|
72
|
+
></button>
|
|
73
|
+
</div>
|
|
36
74
|
</div>
|
|
37
75
|
</div>
|
|
38
76
|
</div>
|