ATAS Indicator
Set up and configure the Tradeways indicator for ATAS to sync trades, TP/SL levels, screenshots, and HUD risk warnings in real-time.
ATAS Indicator
The Tradeways indicator for ATAS is a plugin that connects the ATAS trading platform to your Tradeways account. It syncs trade executions, tracks ATAS-recognized stop-loss and take-profit orders, captures trade screenshots, and can display an on-chart risk warning in the HUD.
Prerequisites
Before setting up the indicator you need:
- An active Tradeways account with at least one trading account.
- ATAS trading platform installed.
- An API key and Account ID — the quickest way to get both is the Auto Sync wizard in the Add Trades dialog. You can also create them manually in Settings → Integrations.
Installation
- Open ATAS and navigate to the indicator manager.
- Find the Tradeways indicator and add it to your chart.
- The indicator settings panel opens automatically — configure it using the values from the next section.
Configuration
Open the indicator settings in ATAS to configure the connection:
| Setting | Default | Description |
|---|---|---|
| Enabled | On | Master toggle — disables all sync when off |
| Api Url | https://tradeways.app/api/v1 | Tradeways API endpoint |
| Api Key | (empty) | Your API key from Tradeways (starts with tw_) |
| Account Id | (empty) | Your trading account ID from Connection Details |
| Instrument Scope | All Instruments | All Instruments syncs the selected ATAS portfolio across symbols; Chart Only limits execution sync and level tracking to the current chart symbol |
| Enable Risk Warning | Off | Enables the HUD warning for configured profit/loss limits |
| Profit Warning Limit (Account Currency) | 0 | Warning threshold for profit; 0 means unused |
| Loss Warning Limit (Account Currency) | 0 | Warning threshold for loss; 0 means unused |
| Warning Scope | Account | Apply the warning to the whole account or only the current chart |
| Auto Screenshots | Off | Capture and upload screenshots automatically on trade entry and exit |
| Screenshot Scope | AllDisplays | AllDisplays stitches all displays into one image; EachDisplay uploads one screenshot per monitor; PrimaryOnly captures only the primary display |
| HUD Style | Compact | Compact for minimal overlay; Detailed to show sync counters like Sent, Queue, and Dropped |
| HUD Position | TopRight | Screen corner: TopRight, TopLeft, BottomRight, BottomLeft |
| Debug Mode | Off | Write detailed logs to file for troubleshooting |
Getting Your API Key and Account ID
The fastest way is the Auto Sync wizard:
- In Tradeways, click Add Trades (top-right) → Auto Sync → ATAS Indicator.
- Connect your ATAS email if you haven't already.
- Click Set Up Connection — an API key is created automatically.
- Copy the API Key, Account ID, and API Endpoint from the config card.
- Paste all three values into the indicator settings in ATAS.
Alternatively, create the key manually in Settings → Integrations:
- Click Create API Key, give it a name, and select your trading account.
- Copy the key immediately — it is only shown once.
- Scroll to Connection Details and copy your Account ID.
Trade Sync
When you execute trades in ATAS, the indicator detects your executions, stores them locally for reliability, and sends them to Tradeways. Trades appear in your Trade Log within seconds.
The sync process:
- ATAS reports a new execution.
- The indicator filters it to the selected ATAS portfolio and your configured Instrument Scope.
- The execution is stored locally for reliability before being sent.
- The execution is sent to Tradeways.
- Tradeways groups executions into trades and calculates P&L automatically.
Re-importing the same live execution after an indicator restart or ATAS restart will not create duplicates — Tradeways automatically detects and skips duplicate executions.
Instrument Scope
- All Instruments (default) — syncs all symbols for the currently selected ATAS portfolio, even while you are looking at another chart.
- Chart Only — syncs only the current chart symbol. Executions are only synced while that symbol is the active chart. If trades happen on that symbol while you are away on another chart, do not assume they will be recovered later.
Level Sync
The indicator tracks orders that ATAS recognizes as stop-loss or take-profit orders. If a connector does not expose that classification reliably, Tradeways falls back to detecting supported exit orders in the opposite direction of your open position. Observed active, canceled, and filled transitions are synced to Tradeways while ATAS is running.
How It Works
- The indicator watches the ATAS order collection for the selected portfolio.
- Orders are included when ATAS classifies them as stop-loss or take-profit, or when they match your open position as supported exit orders in the opposite direction.
- The indicator compares the current set of tracked orders against the previous state to detect changes.
- Level changes are sent to Tradeways.
- Tradeways matches the level events to the corresponding open trade and records them in the level history.
Each outgoing level event is one of:
| Event | Meaning |
|---|---|
| active | The tracked order is active |
| canceled | The tracked order was canceled |
| filled | The tracked order was filled |
Tradeways converts those into the level history shown in Trade Detail, including replacement chains when a new active level supersedes a previous one.
When Position Goes Flat
When your position volume reaches zero, the indicator automatically marks all remaining protective orders for that symbol as removed. This prevents stale levels from carrying over into the next trade.
Screenshots
When Auto Screenshots is enabled, the indicator captures screenshots automatically on trade entry and trade exit and uploads them to Tradeways. Screenshot uploads are retried automatically if they fail.
Screenshot Scope
- AllDisplays — captures all monitors in one stitched image.
- EachDisplay — captures one separate screenshot per monitor and uploads them individually to the trade.
- PrimaryOnly — captures only the primary display.
If a screenshot upload fails, trade sync still continues. Screenshot capture is best-effort and does not block execution sync.
In All Instruments mode, screenshots capture whatever is on your displays when the trade event is accepted. If symbol A closes while you are viewing symbol B, the screenshot reflects your current screens at that moment, not a reconstructed A chart.
Risk Warning
When Enable Risk Warning is enabled, the indicator monitors the current daily P&L locally inside ATAS and shows a persistent warning line in the chart HUD when one of the configured limits is reached.
How It Works
- Profit Warning Limit (Account Currency) triggers when daily profit reaches or exceeds the configured amount.
- Loss Warning Limit (Account Currency) triggers when daily loss reaches or exceeds the configured amount.
- Warning Scope = Account aggregates across all tracked symbols.
- Warning Scope = Chart only evaluates the current chart symbol.
The warning is informational only. It does not stop order flow or disable syncing.
HUD
The indicator renders a heads-up display on your ATAS chart showing connection and sync status.
Compact Mode
Shows connection status with a minimal footprint. Best for everyday use when the indicator is running normally. Compact mode stays minimal even while the queue is draining.
Detailed Mode
Adds sync counters such as Sent, Queue, and Dropped. Useful when first setting up or debugging sync issues.
Risk Warning Line
If a risk warning is active, the HUD shows an extra warning line beneath the normal sync status. This does not force the HUD into detailed mode by itself.
Position
Choose where the HUD appears on your chart: TopRight (default), TopLeft, BottomRight, or BottomLeft.
Reliability
The indicator is designed for resilience during live trading sessions.
Local Recovery
The indicator stores all sync state locally in the ATAS data directory. This lets it recover from indicator restarts, ATAS restarts, network outages, and chart symbol changes without losing data.
Execution Recovery
Executions that the indicator has already observed live are stored locally before being sent, so temporary restarts or network interruptions do not lose queued live executions. Historical execution backfill requested on resume is not synced to Tradeways.
Level Recovery
Level events are also stored locally and restored after restarts. If ATAS was offline when a stop or target changed, the indicator restores the current state on resume but cannot reconstruct intermediate changes that happened while it was offline.
Circuit Breaker
After 3 consecutive authentication failures, the indicator stops sending requests to avoid flooding the API with invalid credentials. If this triggers, check your API key and restart the indicator after correcting it.
Connection Setting Safety
Changing Enabled, Api Url, Api Key, or Account Id is blocked while the indicator is still tracking an open session or while data is still being sent. The indicator keeps the old value, logs a warning, and shows an alert in ATAS so one live trade cannot be split across different credentials or accounts.
Troubleshooting
Indicator Not Syncing
- Verify the indicator is Enabled in settings.
- Check the HUD for connection status.
- Confirm your Api Key starts with
tw_and has not been revoked in Tradeways. - Confirm your Account Id matches an account the API key has access to.
- Confirm the selected ATAS portfolio is the one you want to sync.
- If using Chart Only, ensure the current chart is on the exact symbol you want to sync.
- If using Chart Only, keep that chart active while trading if you want executions from that symbol to reach Tradeways.
Screenshots Missing
- Confirm Auto Screenshots is enabled.
- Entry screenshots are created when a new trade is accepted; exit screenshots are created when the position returns to flat.
- If uploads fail, enable Debug Mode and review the indicator log.
Risk Warning Not Showing
- Confirm Enable Risk Warning is on.
- Set at least one non-zero warning limit.
- Check whether Warning Scope is set to
AccountorChart. - The warning only appears while the current daily P&L is actually breaching the configured limit.
Authentication Error or Circuit Breaker
- The API key may have been revoked. Create a new key in Integrations.
- The API key may not have permission for the specified Account ID — check key scopes.
Missing Levels
- Level sync requires an open trade in Tradeways matching the symbol. Ensure executions are syncing first.
- If multiple trades are open for the same symbol, the indicator cannot determine which trade owns the levels and will skip them. Close conflicting trades to resolve this.
- If levels changed while ATAS was fully offline, the indicator restores the active protective state on resume, but unseen intermediate moves remain best-effort.
Setting Change Rejected
- Connection settings cannot be changed while a trade is still open or while data is still being sent.
- Close all open positions and wait for the pending sync queue to reach zero, then try the setting change again. Switch HUD Style to
Detailedto monitor the queue.
Debug Mode
Enable Debug Mode in indicator settings to write detailed logs to a file. These logs include every event, API request, and response — useful for diagnosing edge cases or reporting issues to support.
See Also
- Integrations — API keys, connection details, and ATAS account connection
- Trade Detail — view synced trades, TP/SL level history, and screenshots
- Import — alternative method for importing trades from broker CSV exports
- Add Trades — use Auto Sync to set up the indicator in a guided wizard