Skip to content

Commit

Permalink
Version 5.10.10
Browse files Browse the repository at this point in the history
  • Loading branch information
martynasma committed Dec 30, 2024
1 parent 73ec8e8 commit f8eca2f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@amcharts/amcharts5",
"version": "5.10.9",
"version": "5.10.10",
"author": "amCharts <[email protected]> (https://www.amcharts.com/)",
"description": "amCharts 5",
"homepage": "https://www.amcharts.com/",
Expand Down
7 changes: 7 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
Please note, that this project, while following numbering syntax, it DOES NOT
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.

## [5.10.10] - 2024-12-30

### Fixed
- Fixed restoring serialized Heikin Ashi indicator.
- Heikin Ashi indicator formula fix.


## [5.10.9] - 2024-12-20

### Added
Expand Down
4 changes: 2 additions & 2 deletions src/.internal/charts/stock/indicators/HeikinAshi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export class HeikinAshi extends ChartIndicator {
const newClose = (open + close + high + low) / 4;
const newOpen = (prevOpen + prevClose) / 2;

const newHigh = Math.max(high, open, close);
const newLow = Math.min(low, open, close);
const newHigh = Math.max(high, newOpen, newClose);
const newLow = Math.min(low, newOpen, newClose);

data.push({
valueX: dataItem.get("valueX"),
Expand Down
2 changes: 1 addition & 1 deletion src/.internal/core/Registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Registry {
/**
* Currently running version of amCharts.
*/
readonly version: string = "5.10.9";
readonly version: string = "5.10.10";

/**
* List of applied licenses.
Expand Down
3 changes: 3 additions & 0 deletions src/.internal/plugins/json/Classes-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ import type { GraticuleSeries } from "./../../../map";
import type { Grid } from "./../../../xy";
import type { GridLayout } from "./../../../index";
import type { HeatLegend } from "./../../../index";
import type { HeikinAshi } from "./../../../stock";
import type { Hierarchy } from "./../../../hierarchy";
import type { HierarchyLink } from "./../../../hierarchy";
import type { HierarchyNode } from "./../../../hierarchy";
Expand Down Expand Up @@ -322,6 +323,7 @@ export interface IClasses {
"Grid": () => Promise<typeof Grid>;
"GridLayout": () => Promise<typeof GridLayout>;
"HeatLegend": () => Promise<typeof HeatLegend>;
"HeikinAshi": () => Promise<typeof HeikinAshi>;
"Hierarchy": () => Promise<typeof Hierarchy>;
"HierarchyLink": () => Promise<typeof HierarchyLink>;
"HierarchyNode": () => Promise<typeof HierarchyNode>;
Expand Down Expand Up @@ -552,6 +554,7 @@ const classes: IClasses = {
"Grid": () => import(/* webpackExports: "Grid", webpackMode: "weak" */ "./../../../xy").then((m) => m.Grid),
"GridLayout": () => import(/* webpackExports: "GridLayout", webpackMode: "weak" */ "./../../../index").then((m) => m.GridLayout),
"HeatLegend": () => import(/* webpackExports: "HeatLegend", webpackMode: "weak" */ "./../../../index").then((m) => m.HeatLegend),
"HeikinAshi": () => import(/* webpackExports: "HeikinAshi", webpackMode: "weak" */ "./../../../stock").then((m) => m.HeikinAshi),
"Hierarchy": () => import(/* webpackExports: "Hierarchy", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.Hierarchy),
"HierarchyLink": () => import(/* webpackExports: "HierarchyLink", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.HierarchyLink),
"HierarchyNode": () => import(/* webpackExports: "HierarchyNode", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.HierarchyNode),
Expand Down
3 changes: 3 additions & 0 deletions src/.internal/plugins/json/Classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ import type { GraticuleSeries } from "./../../../map";
import type { Grid } from "./../../../xy";
import type { GridLayout } from "./../../../index";
import type { HeatLegend } from "./../../../index";
import type { HeikinAshi } from "./../../../stock";
import type { Hierarchy } from "./../../../hierarchy";
import type { HierarchyLink } from "./../../../hierarchy";
import type { HierarchyNode } from "./../../../hierarchy";
Expand Down Expand Up @@ -322,6 +323,7 @@ export interface IClasses {
"Grid": () => Promise<typeof Grid>;
"GridLayout": () => Promise<typeof GridLayout>;
"HeatLegend": () => Promise<typeof HeatLegend>;
"HeikinAshi": () => Promise<typeof HeikinAshi>;
"Hierarchy": () => Promise<typeof Hierarchy>;
"HierarchyLink": () => Promise<typeof HierarchyLink>;
"HierarchyNode": () => Promise<typeof HierarchyNode>;
Expand Down Expand Up @@ -552,6 +554,7 @@ const classes: IClasses = {
"Grid": () => import(/* webpackExports: "Grid", webpackChunkName: "json_xy" */ "./../../../xy").then((m) => m.Grid),
"GridLayout": () => import(/* webpackExports: "GridLayout", webpackChunkName: "json_index" */ "./../../../index").then((m) => m.GridLayout),
"HeatLegend": () => import(/* webpackExports: "HeatLegend", webpackChunkName: "json_index" */ "./../../../index").then((m) => m.HeatLegend),
"HeikinAshi": () => import(/* webpackExports: "HeikinAshi", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.HeikinAshi),
"Hierarchy": () => import(/* webpackExports: "Hierarchy", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.Hierarchy),
"HierarchyLink": () => import(/* webpackExports: "HierarchyLink", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.HierarchyLink),
"HierarchyNode": () => import(/* webpackExports: "HierarchyNode", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.HierarchyNode),
Expand Down
1 change: 1 addition & 0 deletions src/stock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export { Trix, ITrixEvents, ITrixPrivate, ITrixSettings } from "./.internal/char
export { MedianPrice, IMedianPriceEvents, IMedianPricePrivate, IMedianPriceSettings } from "./.internal/charts/stock/indicators/MedianPrice";
export { ZigZag, IZigZagEvents, IZigZagPrivate, IZigZagSettings } from "./.internal/charts/stock/indicators/ZigZag";
export { AverageTrueRange, IAverageTrueRangeEvents, IAverageTrueRangePrivate, IAverageTrueRangeSettings } from "./.internal/charts/stock/indicators/AverageTrueRange";
export { HeikinAshi, IHeikinAshiEvents, IHeikinAshiPrivate, IHeikinAshiSettings } from "./.internal/charts/stock/indicators/HeikinAshi";

export { DrawingSeries, IDrawingSeriesPrivate, IDrawingSeriesDataItem, IDrawingSeriesSettings } from "./.internal/charts/stock/drawing/DrawingSeries";
export { PolylineSeries, IPolylineSeriesPrivate, IPolylineSeriesSettings, IPolylineSeriesDataItem } from "./.internal/charts/stock/drawing/PolylineSeries";
Expand Down

0 comments on commit f8eca2f

Please sign in to comment.