A call to CreateDialog() or CreateSubWidget() can use the settings:{} block to specify event markers to add to the trading chart. The settings can contain a loadEventMarkers[] list:
Framework.CreateSubWidget({
…,
settings: {
// Add an event marker, using a red cross as an icon
loadEventMarkers: [{
date: 1778112000000,
icon: "f00d",
color: "red"
}]
}
});
The definition of each marker is the same as the marker:{} for a create-event-markerChartChange() instruction.