+ {UI_STRINGS.priceChartCaption}
+
+
+
+
+
+
+ `Date: ${label}`}
+ formatter={(value: any, name: string) => {
+ if (name === "close") return [`$${value?.toFixed(2)}`, UI_STRINGS.priceLabel];
+ if (name.startsWith("ema")) {
+ const period = name.replace("ema", "");
+ return [`$${value?.toFixed(2)}`, `${UI_STRINGS[`ema${period}Label` as keyof typeof UI_STRINGS] ?? `EMA ${period}`}`];
+ }
+ return [value, name];
+ }}
+ />
+
+
+
+
+ {UI_STRINGS.emaTooltip}
+
+