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

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
once
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 →
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