arrowLeft
Syntax (one line)
Parameters
Return Value
Example
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 45 === 0) { // draw occasionally to keep charts clean
// 1) Define style once (ArrowMarkLineToolOverrides)
const style = {
arrowColor: color.yellow,
color: color.black,
fontsize: 12,
bold: true,
italic: false,
showLabel: true
};
// 2) Place the arrow
arrowLeft(time(0), closeC(0), style, "Left mark");
}
};Tips
Warning
Good Practice
Last updated