Syntax Guide
FlashOrder accepts JSON payloads sent from TradingView alerts. Below are the standard formats for different trading actions.
Open Position (Buy/Sell)
JSON Payload
{
"action": "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)
"comment": "TV Alert" // Comment (Optional)
}Close Position
You can close all positions for a specific symbol or close a specific ticket.
Close All for Symbol
{
"action": "close",
"symbol": "EURUSD"
}Close All Positions
Emergency command to close EVERYTHING on the account.
Emergency Close
{
"action": "close_all"
}Modify Position
Update SL or TP for existing positions.
Modify SL/TP
{
"action": "modify",
"symbol": "EURUSD",
"sl": 1.0550,
"tp": 1.0650
}