🔄 Automating Infinity Algo Alerts via Alertatron

Guide for non-backtest version


🎯 Which System Should You Use?

Choose Signals Lite if you want:

  • ✅ Quick 5-minute setup

  • ✅ Visual configuration (no coding)

  • ✅ Simple long/short automation

  • ✅ Lower chance of errors

  • ✅ Easy to modify settings

Perfect for:

  • New to automation

  • Basic buy/sell/close needs

  • Want it working fast


Simple JSON signal-based automation with visual configuration.

⚙️ Step 1: Create Signals Lite Bot

  1. Navigate to Signals Lite → Your Bots

  2. Click "Create new automated bot..."

  3. Configure your bot:

Field
What to enter

Bot name

e.g. Infinity Algo BTC

Exchange

Select your exchange

Symbol

e.g. BTCUSDT or BTC

Access

Set to Private

  1. Click Create Bot

🔑 Step 2: Configure Bot Settings

After creating your bot:

  1. Click on your bot name to expand

  2. Find "API Keys" section

  3. Add your exchange API credentials

  4. Save configuration

📩 Step 3: Get Your Webhook

Your bot page will display a unique webhook URL. Copy it exactly as shown - you'll need it for TradingView.

📊 Step 4: Create TradingView Alerts

Available Infinity Algo Alerts

Buy Signals:

  • 1.0 Buy Signal - Normal

  • 1.1 Buy Signal - Smart

  • 1.2 Normal or Smart Buy

  • 1.3 Buy Signal - HL Sniper

  • 1.4 Buy Signal - AI

Sell Signals:

  • 1.5 Sell Signal - Normal

  • 1.6 Sell Signal - Smart

  • 1.7 Normal or Smart Sell

  • 1.8 Sell Signal - HL Sniper

  • 1.9 Sell Signal - AI

Alert Configuration

  1. Open your Infinity Algo chart

  2. Create alert (Alt+A)

  3. Configure:

Field
Value

Condition

e.g. "1.1 Buy Signal - Smart"

Options

Once Per Bar Close (prevents duplicates!)

Alert name

e.g. "IA Smart Buy"

Message

JSON template (see below)

Webhook URL

Your bot's webhook from Step 3

📝 Signals Lite Message Templates

Minimal Long Entry:

{"side":"long","amount":"25%"}

Minimal Short Entry:

{"side":"short","amount":"25%"}

Close Position:

{"side":"close"}

Available Override Fields

See full documentation: Override signal settings

Field
Type
Description

side

string

"long", "short", or "close"

amount

string

Position size (e.g., "50%", "100")

takeProfit

boolean

Enable take profit

takeProfitOffset

string

TP distance (e.g., "2%")

stopLoss

boolean

Enable stop loss

stopLossOffset

string

SL distance (e.g., "1%")

closeExisting

boolean

Close opposite position first

useHedgeMode

boolean

Use hedge mode if available

leverage

number

Override leverage

entry

string

"market" or "limit"

price

string

Limit price (if entry="limit")

For multi-pair bots, use percent/offset fields (e.g., takeProfitOffset), not fixed prices.


📗 Option 2: Script Bots (Advanced)

Full scripting control with complex order logic and multi-step TP ladders.

⚙️ Step 1: Configure Script Bot Infrastructure

A. Add API Keys First

  1. Go to Scripting Signals → Script Bot Config → Script Bot API Keys

  2. Click "Add API Keys"

  3. Configure:

    • Name: e.g. MyKeys (remember this exactly!)

    • Exchange: Your exchange

    • API Key & Secret: Your credentials

  4. Save your keys

B. Get Your Account Webhook

  1. Go to Account → Webhook Details

  2. Copy the exact webhook shown (don't guess the format)

C. Configure Bot Group

  1. Go to Scripting Signals → Trading Bot Settings

  2. Set up a group that filters for #bot

  3. Route this group to the trading engine

Script Bots route through your account webhook using the #bot tag, not a separate bot webhook

📊 Step 2: Available Alert Conditions

Same as Signals Lite - all 16 alerts available:

Click to see full alert list

Buy Entries:

  • 1.0 through 1.4

Sell Entries:

  • 1.5 through 1.9

Management:

  • 2.0 through 2.3

📋 Step 3: Create TradingView Alerts

Configuration is similar but the message contains scripts:

Field
Value

Condition

Your chosen signal

Options

Once Per Bar Close (prevents duplicates!)

Message

Your script (see templates)

Webhook URL

Your account webhook (NOT Signals Lite!)

📝 Script Bot Templates

long_entry.txt
MyKeys({{ticker}}) {
  # Enter long with 100% of available balance
  market(side=buy, amount=100%a);

  # Stop loss 1% below entry
  stopOrder(side=sell, amount=100%p, stop=e-1%, reduceOnly=true);

  # Multi-step TP ladder with OCO
  oneCancelsOther(which=all);
    limit(position=75%p, offset=e1%, reduceOnly=true);
    limit(position=50%p, offset=e2%, reduceOnly=true);
    limit(position=25%p, offset=e3%, reduceOnly=true);
    limit(position=0,    offset=e4%, reduceOnly=true);
  oneCancelsOther();
}
#bot

This multi-step TP ladder is ONLY possible with Script Bots!

🔤 Script Command Reference

Click to expand full command list
Command
Purpose
Example

market()

Market order

market(side=buy, amount=100%a)

limit()

Limit order

limit(position=50%p, offset=e2%)

stopOrder()

Stop loss

stopOrder(side=sell, stop=e-1%)

aggressive()

Smart limit entry

aggressive(position=90%a)

wait()

Delay

wait(10m)

cancel()

Cancel orders

cancel(which=all)

oneCancelsOther()

OCO group

oneCancelsOther(which=all)

continue()

Conditional proceed

continue(if=positionLong)

stop()

Conditional halt

stop(if=positionShort)

trailingStop()

Trailing stop

trailingStop(offset=e-1%)

Position Sizing:

  • 100%a = 100% available balance

  • 100%p = 100% current position

  • 100 = Fixed amount

  • position=0 = Close position

  • offset=e2% = 2% from entry


🛠️ Troubleshooting

Problem
Solution

Bot not responding

Check webhook URL is exactly copied

Invalid message

Must be valid JSON format

Wrong size

Verify % vs fixed amount in JSON

No TP/SL

Set in bot or override with JSON fields

Duplicate orders

Ensure "Once Per Bar Close" in TradingView


📚 Resources

Last updated

Was this helpful?