charting
Open chart
DoveeDocumentation
LanguageFunction reference

Home/Dovee/Function reference

long only

Ignore shorts. sell becomes an exit.

Reference/Language/Language

long only

Put near the top of the script. Opposite of short only.

Return value

—

Example

strategy "Longs"
long only
when ema(9) crosses above ema(21)
  buy
when ema(9) crosses below ema(21)
  sell

See also

  • strategy
  • when
  • then
  • else
  • buy
  • sell
  • exit
  • short only
← exitshort only →