> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirrorpip.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tradingview Automation on Coinswitch

# TradingView Automation on CoinSwitch Using Mirrorpip

TradingView is one of the most powerful charting and strategy platforms used by traders worldwide. By connecting TradingView alerts with CoinSwitch through Mirrorpip, you can automatically execute crypto trades based on your favorite indicators, strategies, and trading systems.

Whether you're using **Supertrend**, **RSI**, **EMA Crossovers**, **MACD**, **Breakout Strategies**, or custom TradingView indicators, Mirrorpip allows you to convert those signals into real trades on CoinSwitch without any manual intervention.

In this guide, you'll learn how to automate your CoinSwitch trading account using TradingView and Mirrorpip.

***

# What is TradingView Automation on CoinSwitch?

TradingView automation allows traders to automatically place trades on CoinSwitch whenever predefined market conditions are met.

Instead of manually watching charts and entering orders, TradingView generates alerts and Mirrorpip instantly converts those alerts into executed trades on your CoinSwitch account.

The automation flow looks like this:

```text theme={null}
TradingView Indicator
        ↓
TradingView Alert
        ↓
Webhook
        ↓
Mirrorpip
        ↓
CoinSwitch
        ↓
Trade Executed
```

Once configured, your strategy can operate 24x7 without requiring manual monitoring.

***

# Why Automate Trading on CoinSwitch?

Crypto markets operate continuously, and manual trading can often result in missed opportunities.

Automation helps solve these problems.

### Benefits of TradingView Automation

✅ Execute trades instantly

✅ Eliminate emotional decision-making

✅ Trade 24x7

✅ Never miss an entry signal

✅ Automate stop losses and take profits

✅ Execute predefined trading plans consistently

✅ Trade multiple symbols simultaneously

***

# What Can You Automate?

Mirrorpip can automate virtually any TradingView indicator capable of generating alerts.

Popular examples include:

### Trend Following

* Supertrend
* EMA Crossovers
* Moving Average Strategies

### Momentum Strategies

* RSI
* MACD
* Stochastic RSI

### Breakout Strategies

* Support & Resistance Breakouts
* Range Breakouts
* Volume Breakouts

### Community Indicators

TradingView has over 150,000+ indicators created by traders worldwide.

Any indicator capable of generating alerts can be automated through Mirrorpip.

***

# Requirements Before You Start

Make sure you have:

✅ CoinSwitch account

✅ Mirrorpip account

✅ TradingView account

✅ CoinSwitch connected to Mirrorpip

✅ TradingView subscription with webhook support

***

# Step 1: Connect CoinSwitch to Mirrorpip

Before trades can be executed automatically, Mirrorpip must be connected to your CoinSwitch account.

Navigate to:

```text theme={null}
Mirrorpip
→ Exchange Accounts
→ Add Exchange
→ CoinSwitch
```

Follow the API setup instructions and complete the connection process.

Once connected, Mirrorpip can place trades on your CoinSwitch account whenever alerts are received.

***

# Step 2: Add Trading Symbols to Watchlist

Mirrorpip only executes trades for symbols that are available in your watchlist.

Examples:

```text theme={null}
BTCUSDT
ETHUSDT
SOLUSDT
XRPUSDT
DOGEUSDT
```

If a symbol is not added:

❌ Alert triggers

❌ Mirrorpip receives signal

❌ Trade is rejected

Always verify that your symbols have been added before enabling automation.

***

# Step 3: Open TradingView

Go to TradingView and select your preferred trading pair.

Examples:

```text theme={null}
BTCUSDT
ETHUSDT
SOLUSDT
```

Choose your preferred timeframe.

Popular choices:

* 5 Minute
* 15 Minute
* 1 Hour
* 4 Hour
* Daily

***

# Step 4: Add Indicators

TradingView offers access to thousands of built-in and community indicators.

Examples:

### Supertrend

Popular trend-following strategy.

### RSI

Momentum and overbought/oversold signals.

### EMA Crossovers

Trend reversal and continuation signals.

### MACD

Momentum confirmation.

### Bollinger Bands

Volatility-based entries.

### Custom Indicators

Any private or public TradingView indicator capable of generating alerts.

***

# Step 5: Create an Alert

After configuring your indicator:

1. Right-click on the chart
2. Click **Add Alert**

TradingView will open the alert configuration window.

***

# Step 6: Configure Alert Conditions

The condition defines when TradingView should generate a signal.

Example:

Supertrend Buy Setup:

```text theme={null}
Price
Crossing Above
Supertrend Downtrend
```

When the condition becomes true, TradingView generates an alert.

You can also combine multiple indicators into a single alert.

Example:

```text theme={null}
RSI > 50
AND
Supertrend Bullish
```

***

# Step 7: Configure Trigger Settings

TradingView provides multiple trigger options.

### Once

Alert triggers a single time.

### Once Per Bar

Triggers whenever the condition becomes true during the candle.

### Once Per Minute

Checks every minute.

### Once Per Bar Close

Triggers only after candle close.

### Recommended Setting

For most strategies:

```text theme={null}
Once Per Bar Close
```

This reduces false signals and improves reliability.

***

# Step 8: Generate CoinSwitch TradingView JSON

Mirrorpip automatically generates the required JSON message.

Navigate to:

```text theme={null}
Mirrorpip
→ Profile
→ TradingView Automation Bot
→ Copy TradingView Conditional Alert Data
```

You will receive JSON similar to:

```json theme={null}
[
  {
    "exchange": "coinswitch",
    "price": "{{close}}",
    "chart_symbol": "{{ticker}}",
    "order_type": "buy",
    "instrument_type": "NA",
    "quantity": "5000",
    "tp": "10%",
    "sl": "5%",
    "code": "68ZMEQ6S5ZA507N0"
  }
]
```

Paste this JSON into the TradingView Message field.

***

# Understanding CoinSwitch JSON Parameters

## Exchange

```json theme={null}
"exchange":"coinswitch"
```

This tells Mirrorpip to execute the trade on CoinSwitch.

***

## Price

```json theme={null}
"price":"{{close}}"
```

TradingView automatically inserts the latest candle close price.

***

## Symbol

```json theme={null}
"chart_symbol":"{{ticker}}"
```

TradingView automatically sends the active chart symbol.

***

## Order Type

### Buy

```json theme={null}
"order_type":"buy"
```

Opens a long position.

***

### Sell

```json theme={null}
"order_type":"sell"
```

Closes a long position.

***

## Quantity

### Fixed Quantity

```json theme={null}
"quantity":"5000"
```

Buys quantity according to the CoinSwitch instrument specifications.

***

### Rupee-Based Investment

```json theme={null}
"quantity":"5000₹"
```

or

```json theme={null}
"quantity":"5000INR"
```

This allows Mirrorpip to calculate quantity based on investment value.

***

### Dollar-Based Position Sizing

```json theme={null}
"quantity":"100$"
```

Mirrorpip automatically calculates quantity based on current market price.

***

## Stop Loss

Percentage:

```json theme={null}
"sl":"5%"
```

Fixed Points:

```json theme={null}
"sl":"500"
```

Dollar-Based:

```json theme={null}
"sl":"20$"
```

***

## Take Profit

Percentage:

```json theme={null}
"tp":"10%"
```

Fixed Points:

```json theme={null}
"tp":"1000"
```

Dollar-Based:

```json theme={null}
"tp":"50$"
```

***

## Trailing Stop Loss

Example:

```json theme={null}
"tsl":"3%"
```

This allows profits to run while protecting gains.

***

# Step 9: Configure Webhook URL

This is the most important step for automation.

Inside TradingView Alert Settings:

```text theme={null}
Notifications
→ Webhook URL
```

Enter:

```text theme={null}
https://trade.mirrorpip.com/tradingview
```

This webhook sends TradingView alerts directly to Mirrorpip.

Without a webhook, Mirrorpip cannot receive trading signals.

***

# Step 10: Create Alert

Verify:

✅ Condition

✅ Trigger

✅ Expiration

✅ Message JSON

✅ Webhook URL

Then click:

```text theme={null}
Create Alert
```

Your CoinSwitch trading bot is now active.

***

# Example: Automating an RSI Strategy

Suppose your strategy is:

### Buy Condition

RSI crosses above 30.

### Exit Condition

RSI crosses below 70.

TradingView Alert:

```text theme={null}
RSI Crossing Above 30
```

Message:

```json theme={null}
[
  {
    "exchange":"coinswitch",
    "price":"{{close}}",
    "chart_symbol":"{{ticker}}",
    "order_type":"buy",
    "quantity":"5000₹",
    "tp":"10%",
    "sl":"5%",
    "code":"68ZMEQ6S5ZA507N0"
  }
]
```

Once triggered:

1. TradingView sends webhook
2. Mirrorpip receives alert
3. CoinSwitch order is placed automatically

***

# Common Reasons Automation Fails

## Symbol Not in Watchlist

The most common issue.

Always add your symbol inside Mirrorpip.

***

## Invalid JSON

Incorrect JSON formatting prevents execution.

Always copy JSON directly from Mirrorpip.

***

## Wrong Exchange Selected

Ensure:

```json theme={null}
"exchange":"coinswitch"
```

is configured correctly.

***

## Missing Webhook

Without:

```text theme={null}
https://trade.mirrorpip.com/tradingview
```

automation cannot work.

***

## Insufficient Balance

CoinSwitch may reject orders if account funds are insufficient.

***

# Best Practices

### Start Small

Test automation with small quantities first.

### Use Stop Loss

Protect capital from unexpected market moves.

### Monitor Initial Alerts

Verify execution before scaling up.

### Keep Watchlists Updated

Add all symbols you plan to automate.

### Use Once Per Bar Close

Reduces false signals and improves reliability.

***

# Frequently Asked Questions

## Can I automate Spot Trading on CoinSwitch?

Yes. Mirrorpip supports CoinSwitch automation through TradingView alerts.

***

## Can I automate multiple coins simultaneously?

Yes.

You can create separate alerts for:

* BTCUSDT
* ETHUSDT
* SOLUSDT
* XRPUSDT

and automate all of them.

***

## Can I use custom TradingView indicators?

Absolutely.

Any indicator capable of generating alerts can be automated.

***

## Do I Need Coding Knowledge?

No.

Mirrorpip automatically generates the required TradingView JSON, eliminating the need for coding.

***

# Final Thoughts

TradingView automation on CoinSwitch allows traders to transform trading ideas into fully automated systems without writing code.

By combining TradingView's alert engine with Mirrorpip's execution infrastructure, traders can automate entries, exits, stop losses, take profits, and risk management directly on CoinSwitch.

The workflow remains simple:

**TradingView Indicator → Alert → Webhook → Mirrorpip → CoinSwitch → Trade Executed**

Once configured correctly, your strategy can run around the clock, helping you trade consistently, eliminate emotional decision-making, and capture opportunities across the crypto market automatically.
