General Settings

The "General Settings" section contains basic algorithm operation parameters: name, automatic start, delay handling, and other system parameters.


Name

Name

Enter the algorithm name. You can use the # symbol to automatically create variables in the name.

Example: SG_##TYPE##_##SIDE## will automatically substitute the algorithm type and trading direction.

Name Preview

Shows how the final algorithm name will look after all variables are substituted.


Automatic Start

Auto Start with Core

Automatically starts the algorithm when the core starts or after a core restart.

⚠️ Important: If you have many algorithms with auto-start enabled and the core restarted due to resource shortage, they will all start simultaneously. This can lead to resource shortage again and another restart.

Recommendation: Use auto-start only for critically important algorithms.


Delay Management

Stop if Trade Latency is Out of Range

Cancels and does not place new orders while the time it takes for trading data to travel from the exchange to the core is outside the specified range.

Why this is needed: When the exchange is overloaded, trading data arrives with delays. The core receives outdated information — this can lead to entry at an irrelevant price.

Parameters:

  • Minimum: minimum acceptable delay (seconds)

  • Maximum: maximum acceptable delay (seconds)

Example: If you set the range to 0–1 second, the algorithm will stop if the delay exceeds 1 second.

⚠️ When stopped: The algorithm will attempt to restart after the time specified in the "Restart Delay" parameter.


Stop if Order Latency is Out of Range

Cancels and does not place orders while the average time between sending a request to the exchange and receiving a response is outside the specified range.

Why this is needed: Protection against trading during lags on the server or host side. Slow order sending can lead to execution at an undesirable price.

Parameters:

  • Minimum: minimum acceptable delay (seconds)

  • Maximum: maximum acceptable delay (seconds)

⚠️ When stopped: The algorithm will attempt to restart after the time specified in the "Restart Delay" parameter.


Auto Restart

Controls algorithm behavior after order execution on a symbol.

Available modes:

Restart After Delay

After order execution, the algorithm waits for the time specified in the "Restart Delay" field and then places a new order on the same symbol.

Restart Delay: wait time in seconds before placing a new order.


Run Once

After order execution on a symbol, the algorithm pauses and will not place new orders on this symbol until the algorithm is restarted or until the symbol re-enters the filters (deltas, mark price, active markets, and other filters).

When to use: Suitable for strategies with a single entry until certain conditions are met.


Charts

Open Chart on Order Fill

Automatically opens the symbol chart when an order is executed.

Useful for: tracking entry points in real time.


Open Chart on Deal Completion

Automatically opens the symbol chart when a deal is closed via Take Profit or Stop Loss.

Useful for: analyzing completed trade results.


Performance Optimization

Filters Check Frequency

Determines how often the algorithm checks filter conditions in Market Live (specified in seconds).

Recommendation: The standard value of 10 seconds is suitable for most strategies. Reduce only if more frequent checking of entry conditions is required.


Restart Delay on Critical Errors

Works like the "Restart Delay" parameter, but the trigger is receiving an error from the exchange when attempting to place an order.

Why this is needed: Protects against repeated attempts to place an order during temporary exchange issues.


Additional Parameters

Order Time Window

Allows setting a time window (in seconds) within which the exchange must process the order placement. If request processing exceeds the specified time, you will receive an error.

When to use: During exchange lags, high ping, or large order execution queues. Helps ensure you enter at the desired price.

Note: Too small a value can lead to frequent order rejections by the exchange.


Use Listing Only

If enabled, the algorithm will only work when new trading pairs appear (listing). The quoted asset of the new pair must match the one specified in settings.

Application: Automatic trading on new exchange listings.

Related settings: Market Filters → Grouped by Quoted Pair, Whitelist, Blacklist.

Last updated