charting
Open chart
DoveeDocumentation
LanguageFunction reference

Home/Dovee/Function reference

comments

Line comments. The compiler ignores them.

Reference/Language basics/Language

# comment    // comment

Start a line or the rest of a line with # or //. A first line of # dovee (or // dovee) also marks the script as Dovee so Chart Script does not treat it as Pine.

Return value

—

Example

# EMA cross
strategy "EMA Cross"
fast = ema(9)  // 9-bar EMA of close
when fast crosses above ema(21)
  buy

See also

  • operators
  • variables
  • colors
  • true
  • blocks
  • bar-close
  • points
  • percent
operators →