🔄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
Swing Trade: ON (Futures only!)
Alerts: 2 total
- Buy Signal → ENTER-LONG
- Sell Signal → ENTER-SHORT
Important: Swing trade only works on Futures. Spot traders must use explicit exits.
⚙️ Step 1: Build Signal-Bot in WunderTrading
Navigate to WunderTrading:
Log in → Bots → Signal Bot → Create bot
Configure General tab settings →
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)
Note: JSON cannot override pairs - bot uses pairs selected in UI only
📩 Step 2: Configure Entries & Get Webhook
Entries tab configuration:
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
ENTER-LONG
ENTER-SHORT
EXIT-ALL
Critical: Copy comment codes EXACTLY as shown in your bot's sidebar - case matters!
📊 Step 3: Create TradingView Alerts
Standard Alert Settings
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
{
"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
}
⚡ Quick Comparison
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
A) Ping-pong (auto flip) Long → Short → Long with just two alerts
Turn Swing trade = ON in bot (Futures only)
• Buy alert → ENTER-LONG
JSON
• Sell alert → ENTER-SHORT
JSON
- Bot closes opposite side automatically
B) Explicit exit first Never overlap positions; more control
Leave Swing trade = OFF
• Entry alert → ENTER-LONG
or ENTER-SHORT
JSON
• Exit alert → EXIT-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
"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
notprice
in TP/SLAI 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
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
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
Pro Tip: Start with Explicit Exit to learn, then switch to Swing Trade for Futures efficiency
📚 Resources
Last updated
Was this helpful?