What is the TradingView Message Field? Complete Guide to TradingView Alert Messages
When creating an alert in TradingView, one of the most important sections is the Message field. Many traders ignore this section because TradingView alerts work perfectly fine without it when sending email or app notifications. However, if you want to automate trading through Mirrorpip, the Message field becomes the most important part of the entire setup. Without a properly configured message, Mirrorpip cannot understand what trade needs to be executed. In this guide, we’ll explain exactly what the TradingView Message field is, why it’s important, how Mirrorpip uses it, and how to correctly configure it for automated trading.What is the TradingView Message Field?
The Message field is a text box inside TradingView’s alert creation window. Whenever an alert triggers, TradingView sends the contents of this message along with the alert notification. Think of the message as a set of instructions. Instead of simply saying:- Which exchange to trade on
- Which symbol to trade
- Whether to buy or sell
- Position size
- Stop Loss
- Take Profit
- User identification code
Where is the Message Field Located?
When creating a TradingView alert:- Right-click on the chart
- Click Add Alert
- Configure your conditions
- Configure your trigger settings
Why is the Message Field Important?
For normal alerts: The message is optional. Example:For automated trading: The message is mandatory. Mirrorpip relies entirely on the message content to understand:
Think of the Message as a Trade Instruction Sheet
Imagine a trader calls a broker and says:- What should I buy?
- How much should I buy?
- Which market?
- At what conditions?
How Mirrorpip Uses the Message Field
When an alert triggers:What Format Does Mirrorpip Use?
Mirrorpip uses JSON format. JSON (JavaScript Object Notation) is a structured way of sending information between systems. A typical Mirrorpip TradingView message looks like this:How to Get Your TradingView Message from Mirrorpip
Mirrorpip automatically generates the correct JSON for you. Navigate to:Understanding Each Field in the Message
Let’s break down every parameter.Exchange
Price
Chart Symbol
Order Type
The order type determines the trading action.Buy
Sell
Short
Cover
Quantity
Quantity determines position size.Fixed Lots
Dollar-Based Position Sizing
Take Profit (TP)
You can define take profit directly inside the message.Points
Percentage
Dollar Profit
Stop Loss (SL)
Similarly:Points
Percentage
Dollar Risk
Trailing Stop Loss (TSL)
Mirrorpip also supports trailing stop losses. Examples:What are TradingView Variables?
TradingView supports dynamic variables inside the Message field. Instead of sending fixed values, TradingView automatically replaces them when the alert triggers. Example:Another example:
Example: Supertrend Buy Signal
Suppose you create a Supertrend Buy Alert. Condition:- TradingView evaluates the condition
- TradingView sends the message
- Mirrorpip reads the message
- Mirrorpip executes the buy order