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