arrowRight
The arrowRight method places a right-pointing arrow marker at a specific bar and price. It’s useful for marking continuation signals, future expectations, or simply highlighting a zone on the chart with a forward arrow.
Syntax (one line)
arrowRight(time, price, styles?, text?)
Parameters
time (number) · Candle time where the arrow is placed (e.g., time(0) for current bar).
price (number) · Price level where the arrow points (e.g., closeC(0)).
styles (ArrowMarkLineToolOverrides) · Look & label options for the marker.
arrowColor(RGBAColor | BaseColors) · Arrow color (e.g.,color.orange).bold(boolean) · Make label text bold.color(RGBAColor | BaseColors) · Label text color.fontsize(number) · Label font size.italic(boolean) · Make label text italic.showLabel(boolean) · Show/hide the label text.text(string) · Optional short label shown near the arrow (e.g.,"Breakout").
Return Value
(string) · The drawing ID of the created arrow marker.
Example
What this does: Every 50 candles, it places an orange right arrow at the current bar close, with a label.
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 50 === 0) { // draw occasionally to keep charts clean
// 1) Define style once (ArrowMarkLineToolOverrides)
const style = {
arrowColor: color.orange,
color: color.black,
fontsize: 12,
bold: true,
italic: false,
showLabel: true
};
// 2) Place the arrow
arrowRight(time(0), closeC(0), style, "Next move");
}
};Tips
Use right arrows to point out future projections or expected continuations.
Pair them with notes/labels to clearly state your hypothesis.
Warning
Too many arrows pointing forward can confuse the chart — keep them for the most relevant signals.
Good Practice
Stick to consistent colors (e.g., orange for projections, green for bullish, red for bearish) to make reading easier.
Last updated