arrowMarker
Syntax (one line)
Parameters
Return Value
Example
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 60 === 0) { // draw occasionally for clarity
// 1) Style (ArrowMarkerLineToolOverrides)
const style = {
backgroundColor: color.rgba(0, 200, 0, 0.2),
textColor: color.white,
fontsize: 12,
bold: true,
italic: false,
showLabel: true
};
// 2) Place the arrow marker
arrowMarker(time(0), closeC(0), style, "Entry");
}
};Tips
Warning
Good Practice
Last updated