Automating Infinity Algo Alerts via WunderTrading 🔄

⚙️ Step 1 – Build the Signal-Bot in WunderTrading

  1. Log in → Bots → Signal Bot → Create bot.

  2. General tab

Field
What to pick

Name

Infinity Algo BTC-USDT (example)

Exchange / API keys

Binance, Bybit, OKX…

Pairs

Up to 10. (Use BTC/USDT now; TradingView can override with JSON later.)

Timeframe label

Pick any – it’s only a label.

Multiple entries

On if you want to scale-in on consecutive entries.

Swing trade

On if you want automatic Long ⇆ Short flipping with just three alert comments (Enter-Long, Enter-Short, Exit-All). help.wundertrading.com

  1. Entries tab

  • Source: TradingView

  • Bot settings format: JSON → the right sidebar shows a live JSON sample and your Comment codes (default: ENTER-LONG, ENTER-SHORT, EXIT-ALL).

  • Click Save bot. A small pop-up shows your Webhook URL (looks like https://trade.wundertrading.com/tradingview_webhook/xxxxx) – copy it.


📩 Step 2 – Copy the three Comment codes

You’ll paste them into TradingView alerts exactly as shown in the bot sidebar:

ENTER-LONG
ENTER-SHORT
EXIT-ALL

(If you renamed them, copy your own names instead.)


📈 Step 3 – Create TradingView alerts

3-A Standard alert‐box settings

Field
Value

Condition

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

Options

Once per bar close

Webhook URL

Paste the WunderTrading URL you copied in Step 1

Message

Copy one of the JSON blocks below and edit numbers if you like


3-B Pick ONE 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 the bot.Buy alertENTER-LONG JSON (Long entry) • Sell alertENTER-SHORT JSON (Short entry) - The bot closes the opposite side automatically.

B) Explicit exit first Never overlap positions; more control

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


JSON example #1 Long entry (change numbers to suit)

{
  "code": "ENTER-LONG",            // must match the bot comment
  "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               // makes sure entries never flip a position by accident
}

JSON example #2 Short entry

(identical to #1, but change code)

"code": "ENTER-SHORT"

JSON example #3 Exit-at-market (works for either side)

{
  "code": "EXIT-LONG",             // or EXIT-SHORT   (both if Swing trade is off)
  "orderType": "market",
  "reduceOnly": true
}

(If Swing trade is ON you can skip #3 – the bot will run EXIT-ALL internally when the next entry arrives.)


🧠 Advanced Tips

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

  • Trailing Stop, Break-even, Post-only, etc. – add the optional fields from the JSON guide. help.wundertrading.com

  • 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 the webhook parsed OK.

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


🛠️ Troubleshooting checklist

Symptom
Likely cause / fix

No deal appears

code in the JSON does not match the Comment name in the bot.

Bot opens but doesn’t close

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

Webhook error 400

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

Duplicate deals

Alert set to “Every time” instead of “Once per bar close.”


🔤 Glossary of JSON keys

Key
What it does

code

Must equal the Comment text in your Signal-Bot (e.g. ENTER-LONG).

orderType

market or limit (if you add price or priceDeviation in the entry block).

amountPerTradeType

quote (USD-value), contracts, or percents.

amountPerTrade

Position size (units depend on the previous key).

takeProfits

Array of partial-exit steps. priceDeviation = decimal % move from entry; portfolio = fraction of the original size to close.

stopLoss

Same syntax as a single TP step.

reduceOnly

true → order can only decrease size; prevents accidental flips.

Last updated