Laabh
BlogPricing
AlgoCodeDocumentation

Get started

  • Overview
  • Deploy a live script

Dovee

  • Language
  • Function reference

Live trading

  • Risk & exits
  • Examples
All documentation

Documentation/AlgoCode/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 →
Laabh

Advanced algorithmic trading platform for the crypto market.

Product

  • Features
  • Pricing
  • API
  • Documentation

Company

  • About
  • Blog
  • Careers
  • Contact

Email: info@seeventicks.com

Address: 1057, sector-65, Faridabad

Subscribe

Get the latest news and updates from Laabh.

© 2026 Laabh. All rights reserved.

Privacy policyTerms of service