Skip to content

πŸ“ˆ Get real-time stocks from TradingView

Bug fix !

Mathieu Colmonf5278d3f922e
diff --git a/src/chart/study.js b/src/chart/study.js
index 1dc55aa..5a222cc 100644
--- a/src/chart/study.js
+++ b/src/chart/study.js
@@ -121,7 +121,7 @@ module.exports = (chartSession) => class ChartStudy {
/** @return {{}[]} List of periods values */
get periods() {
- return Object.values(this.#periods).sort((a, b) => b.time - a.time);
+ return Object.values(this.#periods).sort((a, b) => b.$time - a.$time);
}
/** @type {StrategyReport} */