Hi! Need help to code a custom indicator that shows the “real” closing price on Heikin Ashi candlesticks. “return d.close()” seems to always returns the closing price on the current candlesticks displayed on the chart. Are there any other functions that can return the real OHLC data ? Here’s the basic code I’m currently working on:
const predef = require("./tools/predef");
class RealClosePlotter {
map(d) {
return d.close()
}
}
module.exports = {
name: "PlotRealClose",
description: /*i18n*/ "Plots the real closing price (including Heiken Ashi)",
calculator: RealClosePlotter,
params: {},
overlay: true,
schemeStyles: predef.styles.solidLine("#3498db")
};
