RUNA LABS
DOCUMENTATION
Mastering the automated execution pipeline.
The core of Runa Labs is our low-latency signal routing engine. This section explains exactly how to set up your strategies in the Lab, link your accounts, and format your TradingView alerts to ensure perfect execution.
Before TradingView can send trades, the Bridge needs to know your strategy exists. Navigate to the Lab tab, type a name (e.g., 'BTC Momentum'), and click Register. It is now ready to receive webhooks.
Once registered, you must tell the engine which of your exchange accounts should actually trade when the signal fires.
Runa Labs allows for two entirely different methods of position sizing:
When you create an alert in TradingView, you must paste the following JSON into the message box:
1 2 3 4 5 6 7 8 9 10{ "user_token": "YOUR_RUNA_TOKEN", "account_name": "MATCH_STRATEGY", "strategy": "Your Strategy Name", "ticker": "{{ticker}}", "action": "{{strategy.order.action}}", "market_position": "{{strategy.market_position}}", "price": "{{close}}", "qty": "{{strategy.order.contracts}}" }
The Golden Rule: Notice the 'account_name': 'MATCH_STRATEGY' field. This tells the Bridge to act like a radio tower. When the signal hits, the Bridge broadcasts the trade to ALL accounts linked to that strategy name. If you change this to a specific account name, it will bypass the marketplace entirely.
Each strategy row has a set of icon buttons in the Action column. Hover over any icon to see its tooltip. Here is what each one does:
Link (green): Opens the account-linking dialog so you can connect an exchange account to this strategy.
Braces (gray): Copies the pre-filled TradingView webhook JSON payload for this strategy to your clipboard.
Flask — ghost (violet): Deletes the backtest data for this strategy (stats and chart). The strategy itself is kept.
Chart (orange): Clears the internal trade log stats. Does not touch any positions or orders on the exchange.
Trash (red): Permanently deletes the strategy. Linked accounts are unsubscribed automatically.
You can attach a verified backtest to any strategy, giving subscribers — and yourself — transparent performance data before going live.
If you have built a profitable algorithm, you can click 'Publish' to send it to the Runa Labs Marketplace. Other users can then 'Subscribe' to your strategy, applying their own custom Fixed Sizing rules to follow your trades.
A critical concept in automated execution is state synchronization. If you link your account to a strategy while it is already in the middle of an active trade, your account will be out of sync. To solve this, Runa Labs includes an Auto-Sync feature.
How Auto-Sync Works: When you link an account, you will be prompted with an Auto-Sync warning. If the strategy is currently holding a position, accepting this warning tells the Bridge to instantly fire a Market Order to synchronize your account with the strategy's current state.
Understanding the risks:
Disclaimer: The content provided by Runa Labs is for informational and educational purposes only and does not constitute financial, investment, or trading advice. Runa Labs is not a registered financial advisor and does not hold any financial licenses. All trading and investment activities involve significant risk of loss. You are solely responsible for your own financial decisions.