AlgoHive
Blocks

Entry Rules

Define when and how your strategy opens positions.

Entry rules define the conditions for opening new positions.

Entry Types

Long Entry

Buy expecting price to increase.

  • Opens a long position
  • Profits when price rises
  • Loses when price falls

Short Entry

Sell expecting price to decrease.

  • Opens a short position (requires perpetual/margin)
  • Profits when price falls
  • Loses when price rises

YES Entry (Prediction)

Buy YES outcome on a prediction market.

  • Profits if the event happens
  • Used on Polymarket, Kalshi, etc.

NO Entry (Prediction)

Buy NO outcome on a prediction market.

  • Profits if the event doesn't happen
  • Used on Polymarket, Kalshi, etc.

Configuration

Direction

Choose the entry direction based on your strategy:

  • Long — For bullish signals
  • Short — For bearish signals (requires perpetual)
  • Yes/No — For prediction markets

Market

Which data source to trade. Must be connected to the entry node.

The market determines:

  • Which exchange to execute on
  • Position sizing calculations
  • Available order types

When Condition

The signal that triggers the entry. Must be a boolean (true/false) output from an analysis block.

Examples:

signals.cross_up           # Simple signal
signals.bullish AND filters.volume_ok    # Combined condition
NOT signals.overbought     # Negated signal

Leverage (Perpetual Only)

For perpetual markets, set leverage multiplier:

  • 1x — No leverage (spot-equivalent)
  • 2x-10x — Moderate leverage
  • 10x+ — High leverage (higher risk)

Leverage amplifies both profits and losses.

Entry Execution

When an entry triggers:

  1. Signal evaluated — The when condition becomes true
  2. Risk calculated — Position size based on risk settings
  3. Order placed — Market order at next bar open
  4. Position opened — Entry recorded with details

Multiple Entries

You can have multiple entry rules in a strategy:

Long Entry 1: Cross above signal
Long Entry 2: Support bounce signal
Short Entry: Breakdown signal

Each entry:

  • Has its own trigger condition
  • Can have different manage rules
  • Tracks separately in performance

Entry Limits

Risk settings can limit entries:

  • Max positions — Maximum concurrent positions
  • Max per symbol — Maximum positions per market
  • Cooldown — Minimum time between entries

Connecting to Manage Rules

Link entries to manage rules by:

  1. Dragging from entry output to manage input
  2. Or leaving manage rules unlinked (applies to all entries)

Linked rules only apply to positions from that specific entry.

Best Practices

  • Keep entry conditions clear and testable
  • Use multiple entries for different setups
  • Always connect stop loss rules
  • Consider entry filters (volume, volatility, trend)
  • Document your entry logic in the block description

On this page