From 8bd912c520c63990f8757b93ceca6422e39583af Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Sat, 11 Nov 2023 09:22:01 +0100 Subject: [PATCH] fix: inverted the charts --- src/components/Trade/TradeChart/DataFeed.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Trade/TradeChart/DataFeed.ts b/src/components/Trade/TradeChart/DataFeed.ts index 606121d7..1f07d6f3 100644 --- a/src/components/Trade/TradeChart/DataFeed.ts +++ b/src/components/Trade/TradeChart/DataFeed.ts @@ -432,10 +432,10 @@ export class DataFeed implements IDatafeedChartApi { bars.push({ time: pair1Bar.time, - open: devideByPotentiallyZero(pair1Bar.open, pair2Bar.open), - close: devideByPotentiallyZero(pair1Bar.close, pair2Bar.close), - high: devideByPotentiallyZero(pair1Bar.high, pair2Bar.high), - low: devideByPotentiallyZero(pair1Bar.low, pair2Bar.low), + open: devideByPotentiallyZero(pair2Bar.open, pair1Bar.open), + close: devideByPotentiallyZero(pair2Bar.close, pair1Bar.close), + high: devideByPotentiallyZero(pair2Bar.high, pair1Bar.high), + low: devideByPotentiallyZero(pair2Bar.low, pair1Bar.low), }) }) return bars