charting
Open chart
DoveeDocumentation
LanguageFunction reference

Home/Dovee/Function reference

else

Opposite side of the previous when.

Reference/Language/Language

when condition
  buy
else
  exit

Attaches to the when above it. Use it for the other side of a cross or threshold without repeating the condition inverted.

Return value

—

Example

when rsi(14) is below 30
  buy
else
  exit

See also

  • strategy
  • when
  • then
  • buy
  • sell
  • exit
  • long only
  • short only
← thenbuy →