🔄Automating Infinity Algo Alerts via WunderTrading

Guide for non-backtest version

Connect Infinity Algo signals to WunderTrading for automated trading with flexible position management.


🎯 Two Trading Workflows

Auto-Flip Positions (Futures Only)

What it does:

  • Automatic Long ↔ Short flipping

  • Just two alerts needed

  • Bot handles position reversal

  • Exit-All happens internally

Best for:

  • ✅ Futures trading

  • ✅ Trending markets

  • ✅ Minimal alerts

  • ✅ Always in position

Setup Requirements
Swing Trade: ON (Futures only!)
Alerts: 2 total
- Buy Signal → ENTER-LONG
- Sell Signal → ENTER-SHORT

⚙️ Step 1: Build Signal-Bot in WunderTrading

Navigate to WunderTrading:

  1. Log inBotsSignal BotCreate bot

  2. Configure General tab settings →

Field
Value

Name

Infinity Algo BTC-USDT

Exchange/API

Binance, Bybit, OKX…

Pairs

Up to 10 (bot selects pairs)

Timeframe label

Any (just a label)

Multiple entries

ON for scale-ins

Swing trade

ON for auto-flip (Futures)


📩 Step 2: Configure Entries & Get Webhook

Entries tab configuration:

Setting
Value

Source

TradingView

Bot settings format

JSON

Save bot

Copy the Webhook URL

After saving, you'll see:

  • Webhook URL: https://trade.wundertrading.com/tradingview_webhook/xxxxx

  • Comment codes: Default are ENTER-LONG, ENTER-SHORT, EXIT-ALL

Your Comment Codes
ENTER-LONG
ENTER-SHORT
EXIT-ALL

📊 Step 3: Create TradingView Alerts

Standard Alert Settings

Field
Value

Condition

Infinity Algo V3.0 → choose signal (Buy Smart, Sell AI, TP…)

Options

Once per bar close

Webhook URL

Paste WunderTrading URL from Step 1

Message

JSON template (see below)


📝 JSON Templates

enter_long.json
{
  "code": "ENTER-LONG",            // must match bot comment EXACTLY
  "orderType": "market",
  "amountPerTradeType": "quote",   // "quote" = USD
  "amountPerTrade": 150,
  
  "takeProfits": [
    { "priceDeviation": 0.01, "portfolio": 0.25 },
    { "priceDeviation": 0.02, "portfolio": 0.25 },
    { "priceDeviation": 0.03, "portfolio": 0.25 },
    { "priceDeviation": 0.04, "portfolio": 0.15 },
    { "priceDeviation": 0.05, "portfolio": 0.07 },
    { "priceDeviation": 0.06, "portfolio": 0.03 }
  ],
  
  "stopLoss": { "priceDeviation": 0.01 },
  "reduceOnly": true,              // prevents exits from increasing size
  "placeConditionalOrdersOnExchange": false
}

TP portfolios must sum to exactly 1.0 (100%)


⚡ Quick Comparison

Feature
Swing Trade ON
Explicit Exit

Market Type

⚠️ Futures only

✅ Spot & Futures

Alerts Needed

2 (minimal)

3+ (entry/exit/re-entry)

Position Control

Automatic flip

Manual control

Position Gaps

Never

Possible

Complexity

Simple

Moderate


🎯 Pick Your Workflow

If you want…
Use these alerts & JSON

A) Ping-pong (auto flip) Long → Short → Long with just two alerts

Turn Swing trade = ON in bot (Futures only)Buy alertENTER-LONG JSON • Sell alertENTER-SHORT JSON - Bot closes opposite side automatically

B) Explicit exit first Never overlap positions; more control

Leave Swing trade = OFFEntry alertENTER-LONG or ENTER-SHORT JSON • Exit alertEXIT-LONG or EXIT-SHORT JSON • (Optional) second entry alert to reverse


🚀 Advanced Features

0-6 Take Profit Levels

  • Add up to 6 TP steps

  • Portfolios must sum to 1.0

  • Multi-pair requires priceDeviation

  • Single-pair can use price

Example: 6-Level TP
"takeProfits": [
  { "priceDeviation": 0.01, "portfolio": 0.30 },
  { "priceDeviation": 0.02, "portfolio": 0.25 },
  { "priceDeviation": 0.03, "portfolio": 0.20 },
  { "priceDeviation": 0.04, "portfolio": 0.15 },
  { "priceDeviation": 0.05, "portfolio": 0.07 },
  { "priceDeviation": 0.06, "portfolio": 0.03 }
]

Sum = 1.0 (100%) ✅


🧠 Advanced Tips

  • More/fewer TP levels – You can include 0-6 objects in takeProfits; volumes must add up to 1.0 (100%)

  • Multi-pair rules – For multi-pair bots, use priceDeviation not price in TP/SL

  • AI vs normal signals – Run separate bots if you need different leverage or TP grids

  • Paper-test first – WunderTrading log will show "Signal executed" if webhook parsed OK

  • Link to full documentation: https://help.wundertrading.com/en/


🛠️ Troubleshooting Checklist

Symptom
Likely cause / fix

No deal appears

code in JSON does not match Comment name in bot

Bot opens but doesn't close

Swing trade OFF and you forgot EXIT alert – or reduceOnly:false caused flip

Webhook error 400

JSON brackets/commas missing or priceDeviation used % sign instead of decimal (use 0.02, not 2%)

Duplicate deals

Alert set to "Every time" instead of "Once per bar close"

Multi-pair TP/SL fails

Ensure using priceDeviation, not price


🔤 Glossary of JSON Keys

Key
What it does
Details

code

Must equal Comment text in Signal-Bot

e.g. ENTER-LONG - case sensitive!

orderType

Order execution type

market or limit (if adding price or priceDeviation)

amountPerTradeType

Position size unit

quote (USD), base, contracts, or percents

amountPerTrade

Position size

Units depend on previous key

takeProfits

Array of partial-exit steps

priceDeviation = decimal % from entry portfolio = fraction to close (0-1)

stopLoss

Stop loss configuration

Same syntax as single TP step

reduceOnly

Prevent size increase

true → exits can only decrease position (Futures)

placeConditionalOrdersOnExchange

Where orders execute

false = managed by bot true = on exchange


🎯 Which Workflow Should You Use?

Choose Swing Trade if:

  • Trading Futures only

  • Want minimal alerts

  • Trust your signals

  • Always in position

Choose Explicit Exit if:

  • Trading Spot markets

  • Need position control

  • Want gap periods

  • Risk management focus


📚 Resources

Official Documentation: help.wundertrading.com

Last updated

Was this helpful?