A call to CreateDialog() or CreateSubWidget() can use the settings:{} block to specify bar highlights to add to the trading chart. The settings can contain a loadBarHighlights[] list:
Framework.CreateSubWidget({
…,
settings: {
// Highlight the candle at 2026-05-07 in red
loadBarHighlights: [{
date: 1778112000000,
color: "red"
}]
}
});
The definition of each highlight is the same as the highlight:{} for a create-bar-highlightChartChange() instruction.