icon
Syntax (one line)
Parameters
Return Value
Example
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 48 === 0) { // draw occasionally to keep charts clean
// 1) Style (IconLineToolOverrides)
const style = {
angle: 0,
color: color.green,
size: 22
};
// 2) Place the icon (from iconList) at this bar’s close
icon(time(0), closeC(0), iconList.arrowUp, style);
}
};Tips
Warning
Good Practice
Last updated