signpost
Syntax (one line)
Parameters
Return Value
Example
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 42 === 0) { // draw occasionally to keep charts clean
// 1) Style (SignpostLineToolOverrides)
const style = {
plateColor: color.rgba(255, 193, 7, 0.9), // amber plate
emoji: "📌",
showImage: true,
fontSize: 12,
bold: true,
italic: false
};
// 2) Place the signpost at this bar’s close
signpost(time(0), closeC(0), style, "Key level");
}
};Tips
Warning
Good Practice
Last updated