Skip to main content

Take profit / Stop loss - Distances and Validation

Overview

Take Profit (TP) and Stop Loss (SL) can be set when:

  • opening a new order

  • modifying an existing order

When TP or SL is enabled, the platform:

  1. Automatically fills default values

  2. Validates minimum distance from the reference price

  3. Clears the value if the option is disabled

The rules depend on the symbol group.

Symbol group Distance type
Crypto Percentage
Other instruments (Forex, indices, commodities, etc.) Pips / points

Symbol Groups

The system determines the rule set based on the symbol group.

Group Behavior
Crypto Percentage-based TP/SL
Other groups Pip / point-based TP/SL

Default TP / SL Values

When a user enables Take Profit or Stop Loss, the system automatically inserts a default value.

Asset class Side Default Take Profit Default Stop Loss
Crypto BUY Ask + 1% Ask − 1%
Crypto SELL Bid − 1% Bid + 1%
Other instruments BUY Ask + 100 pips Ask − 100 pips
Other instruments SELL Bid − 100 pips Bid + 100 pips

Important

  • Defaults are intentionally larger than the minimum allowed distance.

  • This ensures automatically generated TP/SL values are always valid.


Minimum Distance

TP and SL must be placed at least a minimum distance away from the reference price.

Asset class Minimum distance
Crypto 0.1% of reference price
Other instruments 1 pip

The system prevents users from placing TP or SL inside this restricted zone.


Validation Rules

BUY Orders

Rule
Take Profit must be above the reference price
Stop Loss must be below the reference price

Additionally:

  • TP must be at least minimum distance above

  • SL must be at least minimum distance below


SELL Orders

Rule
Take Profit must be below the reference price
Stop Loss must be above the reference price

Additionally:

  • TP must be at least minimum distance below

  • SL must be at least minimum distance above


Reference Price

The reference price used for TP/SL calculation depends on context.

Context Order type Reference price
New order MARKET Current Ask for BUY, Bid for SELL
New order LIMIT Limit price entered in the form
Modify order MARKET Order execution price
Modify order LIMIT Updated limit price (if edited), otherwise existing order price

Example Calculations

Crypto Example

Reference price:

BTC = 50,000
Value Result
Default TP 50,500
Default SL 49,500
Minimum distance 50

EUR/USD Example

Reference price:

Ask = 1.0850
Value Result
Default TP 1.0950
Default SL 1.0750
Minimum distance 0.0001

USD/JPY Example

Reference price:

Ask = 150.25
Value Result
Default TP 151.25
Default SL 149.25
Minimum distance 0.01

Where These Rules Apply

Order Form (New Orders)

When creating a new order:

  • Default TP/SL values are inserted when enabled

  • Validation ensures minimum distance rules are respected

  • TP/SL values are cleared when disabled


Modify Order

When editing an existing order:

  • Default TP/SL values follow the same rules

  • Reference price is based on the order price

  • Validation rules remain identical


Key Principles

The system follows three main principles:

  1. Automatic defaults
    When TP/SL is enabled, reasonable default levels are provided.

  2. Minimum distance protection
    TP/SL cannot be placed too close to the reference price.

  3. Consistency across workflows
    The same rules apply when creating and modifying orders.


Summary

Feature Crypto Other Instruments
Default TP ±1% ±100 pips
Default SL ∓1% ∓100 pips
Minimum distance 0.1% 1 pip
Reference price Ask / Bid Ask / Bid

Defaults are intentionally larger than the minimum allowed distance, ensuring automatically generated TP/SL values always pass validation.