Skip to content
Sign In

LEARNING / PRACTICAL PATTERNS

Common Examples

24 examples. Choose a pattern, understand its effect, then adapt the signal.

Before you use an example

Replace My_API_Key with your key label and adjust symbols and amounts. Unless stated otherwise, these examples assume USDT linear futures in one-way mode. Check your exchange’s support and order limits in Exchange Quirks.

Each code window is one message. Windows labeled as separate alerts must be sent separately.

Quick Start

4 examples

Entries, protection and a symbol-specific exit.

Timing and execution

Waits are fixed delays. A single wait accepts up to 24 hours. The examples with 5-minute to 1-hour waits are accepted by the engine. They do not wait for fills, and the backend’s slow-execution warning does not cancel the block.

The HTTP response can time out first. TradingView waits 3 seconds; Signal Factory waits 20 seconds. Cross-region forwarding and proxies also have response limits. An accepted execution may continue after a timeout: check Execution History and the exchange before resending.

Long waits are not durable scheduling. They run in the current server process; a restart can interrupt the remaining commands. For hourly or daily actions, use separately scheduled alerts. The timing examples show the command sequence, not a guarantee of uninterrupted execution.

Check each result. A command failure can leave later commands running. Settings, entries, cancellations and protection are separate requests; a time delay does not confirm their success.

Read the size before the leverage

A % amount uses total USDT balance; %% uses free USDT balance. Setting leverage alone does not multiply either amount. For a new position, 25% notional with a 2% stop distance gives an illustrative loss of 0.5% of that balance, before fees and slippage. A stop is not a guaranteed loss cap.

Validate on an exchange-supported Demo or Testnet account before using real funds. Explore sizing and command syntax