emoji

Places a Unicode emoji on the chart at a chosen bar and price. It’s a simple and fun way to tag signals or events with symbols like 🚀, ✅, ⚠️, etc. You can adjust its size and rotation.

Syntax (one line)

emoji(time, price, emoji, styles?)

Parameters

time (number) · Candle time where the emoji is placed (e.g., time(0)). price (number) · Price level where the emoji sits (e.g., closeC(0)). emoji (string) · The emoji character to display (e.g., "🚀", "✅", "⚠️"). styles (EmojiLineToolOverrides) · Visual options for the emoji:

  • angle (number) · Rotation angle of the emoji.

  • size (number) · Size of the emoji.

Return Value

(string) · The drawing ID of the created Emoji.

Example

What this does: Every 60 candles, it drops a rocket emoji 🚀 at the current close, rotated slightly and sized larger for visibility. All visuals live in one const style.

//@version=1
init = () => {
  indicator({ onMainPanel: true, format: 'inherit' });
};

onTick = () => {
  if (index % 60 === 0) { // draw occasionally to keep charts clean
    // 1) Style (EmojiLineToolOverrides)
    const style = {
      angle: 15,  // slight tilt
      size: 26    // larger size
    };

    // 2) Place the emoji at this bar’s close
    emoji(time(0), closeC(0), "🚀", style);
  }
};

Tips

  • Use different emojis to mark specific events (✅ for entries, ❌ for exits, 🚀 for strong moves).

  • Adjust angle to make emojis more dynamic or directional.

Warning

  • Oversized emojis may overlap with candles — keep size reasonable.

Good Practice

  • Reuse style presets (e.g., same size/tilt for all emojis) so your annotations look consistent.

Last updated