🚀 New Feature: Analyze your TradingView backtest performance! 📊Try Portfolio Analyzer

Syntax Guide

FlashOrder supports two main formats for TradingView alerts: JSON for Indicators and Text for Strategies.

For Indicators (JSON)

Use this format for standard TradingView alerts or when using alert() in Pine Script.

Important: Each instance_id corresponds to a specific FlashOrder Launcher (MT5 Terminal). Please verify which Order Launcher (Instance) you are targeting.

Open PositionJSON
{
  "action": "buy",          // "buy" or "sell"
  "symbol": "EURUSD",       // Broker symbol name
  "volume": 0.1,            // Lot size
  "sl": 1.0500,             // Stop Loss (Optional)
  "tp": 1.0600,             // Take Profit (Optional)
  "magic": 1001,            // Magic Number (Strategy ID) - IMPORTANT for isolation
  "comment": "TV Alert",    // Comment (Info only)
  "instance_id": 1          // Target Order Launcher ID
}
Close Position (Strategy Specific)JSON
{
  "action": "close",        // Closes positions
  "symbol": "EURUSD",       // Target symbol
  "magic": 1001,            // ONLY close positions with this Magic Number
  "instance_id": 1
}
Close All (Emergency)JSON
{
  "action": "close_all",    // Closes EVERYTHING on the account
  "instance_id": 1
}

For Strategies (Text)

Use this simplified text format for TradingView Strategy alerts. It supports dynamic placeholders.

Strategy Alert MessageTEXT
{{strategy.order.action}},{{ticker}},risk={{strategy.order.contracts}},instance=1
Format Structure:ACTION, SYMBOL, risk=VOLUME, instance=ID
Example Result:buy, EURUSD, risk=0.1, instance=1