3.8.4.3Loading drawings onto trading charts

A call to CreateDialog() or CreateSubWidget() can use the settings:{} block to specify drawings to add to the trading chart. The settings can contain a loadDrawings[] list. For example:

Framework.CreateSubWidget({

…,

settings: {

// Add a horizontal line at 1.35

loadDrawings: [{

type: "horizontalLine",

points: [{value: 1.35}],

text: "Support/resistance level",

style: {line: {color: "blue"}}

}]

}

});

The definition of each drawing is the same as the drawing:{} for a create-drawingChartChange() instruction.