Bot Issues

Troubleshooting guide for Signal Bot and Trading Bot problems.

Signal Bot Issues

Webhook Not Receiving Signals

Symptoms

  • Webhook health indicator is yellow or red
  • No trades executing despite sending signals
  • TradingView shows alert fired but nothing happens

Diagnostic Steps

Step 1: Verify Webhook URL

Expected format:
https://www.tradestaq.com/api/webhooks/trade/{your-webhook-id}
CheckHow to Verify
Correct domainMust be www.tradestaq.com
HTTPSMust use https:// not http://
Correct path/api/webhooks/trade/
Valid ID36-character UUID

Step 2: Test Webhook Manually

Using curl:

curl -X POST https://www.tradestaq.com/api/webhooks/trade/YOUR-ID \
  -H "Content-Type: application/json" \
  -d '{"action":"buy","symbol":"BTCUSDT"}'

Expected success response:

{"success": true, "message": "Signal received"}

Step 3: Check TradingView Configuration

SettingRequired Value
Webhook URLYour TradeStaq webhook URL
Alert expiresNever (recommended)
Alert actionsCheck all needed

Invalid JSON Errors

Error:

Invalid webhook payload: Unexpected token...

Common JSON Mistakes:

WrongCorrect
{action: "buy"}{"action": "buy"}
{'action': 'buy'}{"action": "buy"}
{"action": buy}{"action": "buy"}
Trailing comma {"action": "buy",}{"action": "buy"}

Validation Tool: Use jsonlint.com to validate.


Signal Received But Not Executed

Diagnostic Questions:

QuestionIf No
Bot active?Resume bot
Exchange connected?Reconnect exchange
Sufficient balance?Deposit funds
Valid symbol?Check symbol format
Within rate limits?Slow down signals

Check Bot Logs:

  1. Go to Signal Bots
  2. Click on your bot
  3. View "Recent Signals" section
  4. Look for error messages

Duplicate Signals Ignored

Behavior: Same signal sent twice is ignored.

Why: Prevents accidental double-trades.

Deduplication Window: 5 seconds

Solution: If intentional, wait 5+ seconds between signals.


Trading Bot Issues

Bot Not Spinning

Symptoms:

  • "Last Spin" shows old timestamp
  • No new trades despite market movement
  • Strategy not executing

Diagnostic Checklist:

CheckSolution
Bot statusMust be "Active"
Exchange statusMust be "Active"
Spin intervalWait for next spin
Subscription activeCheck billing

Strategy Not Opening Positions

Possible Causes:

CauseHow to Check
Entry conditions not metReview strategy logic
Existing positionCheck positions page
Insufficient balanceCheck exchange balance
Risk limits hitReview bot settings

Debug Steps:

  1. Check spin logs for strategy output
  2. Verify indicator values match expectations
  3. Compare to strategy conditions

Strategy Not Closing Positions

Possible Causes:

CauseSolution
Exit conditions not metWait or manual close
Stop loss not triggeredPrice didn't reach SL
Take profit not triggeredPrice didn't reach TP
Strategy logic issueReview strategy code

Spin Errors

Error in Spin Log:

Strategy execution failed: [error]

Common Causes:

ErrorCauseSolution
TimeoutStrategy too slowSimplify logic
Memory limitToo much dataReduce state size
Indicator errorBad candle dataWait for more candles

Copy Bot Issues

Not Copying Master's Trades

Diagnostic Steps:

CheckExpected
Copy bot activeStatus: Active
Master bot activeMust be trading
Exchange connectedActive connection
Sufficient balanceFor copied position

Position Size Different from Master

Why This Happens:

ReasonExplanation
Size multiplierApplied to master's size
Balance differenceScaled to your balance
Minimum order sizeExchange minimums apply
RoundingExchange precision

Example:

Master trades: $1,000
Your multiplier: 0.5x
Your trade: $500

But if $500 is below minimum, trade may be $600 (exchange minimum)

Copy Delay

Normal Delay: 100-500ms

If Longer:

  • High server load
  • Exchange latency
  • Network issues

Impact: Entry price may differ slightly from master.


Bot Configuration Issues

"Bot Cannot Use This Exchange"

Causes:

  • Exchange type mismatch (spot bot on futures exchange)
  • Exchange not active
  • Exchange in error state

Solution:

  1. Verify exchange type matches bot type
  2. Check exchange status
  3. Reconnect exchange if needed

"Symbol Not Available"

Causes:

  • Symbol doesn't exist on exchange
  • Symbol delisted
  • Wrong format (BTC vs BTCUSDT)

Solution:

  1. Verify symbol exists on your exchange
  2. Use correct format for exchange
  3. Update bot configuration

"Leverage Setting Failed"

Causes:

  • Leverage too high for symbol
  • Futures not enabled
  • Position mode issues

Solutions:

  1. Reduce leverage
  2. Check exchange's max leverage for pair
  3. Enable futures trading on exchange

Performance Issues

Trades Not Matching Backtest

Expected Differences:

FactorBacktestLive
FillsInstant at signal priceMay have slippage
FeesEstimatedActual
TimingPerfectHas latency
LiquidityUnlimitedReal orderbook

This is normal. Backtests are approximations.


High Slippage

Causes:

CauseSolution
Large position sizeReduce size
Low liquidityTrade liquid pairs
Volatile marketsUse limit orders
High latencyCheck connection

Missing Trades

Where to Check:

  1. Bot's trade history
  2. Exchange order history
  3. Positions page

If Trade Not Found:

  • May have been rejected
  • Check bot error logs
  • Verify on exchange directly

Recovering from Issues

Resync Bot State

If bot state seems incorrect:

  1. Pause the bot
  2. Check positions on exchange directly
  3. Close positions manually if needed
  4. Resume bot
  5. Bot will sync on next cycle

Reset Bot

For persistent issues:

  1. Pause the bot
  2. Close all positions
  3. Delete the bot
  4. Create new bot with same settings
  5. Use fresh webhook URL

Emergency Stop

To immediately stop all bot activity:

  1. Go to bot settings
  2. Click "Pause" or "Stop"
  3. Bot will not execute new trades
  4. Existing positions remain open
  5. Close positions manually if needed

Best Practices

Monitoring

PracticeWhy
Check dailyCatch issues early
Set up notificationsGet alerts
Review logsUnderstand behavior
Compare to expectationsSpot anomalies

Prevention

PracticeWhy
Paper test firstValidate before live
Start smallLimit risk
Use stop lossesProtect capital
Keep backupsWebhook URL, settings

Next Steps