Automate TradingView Strategies Guide
Overview
Lune Auto Trader allows users to automate their TradingView strategies by integrating them with our supported platforms. Each strategy uses a set of unique alert messages and a webhook to automate trade actions such as entries, exits, and partial exits.
This guide walks you through how to:
Add a strategy to an account
Link TradingView alerts
Use strategy instructions (webhook + alerts)
Automate trades using Lune Auto Trader
IMPORTANT: Strategy alert messages and webhook URLs are confidential and unique to your setup. Never share this data with others. Treat it like a password.
Prerequisites
Before starting, ensure the following:
You have an active Lune Auto Trader license.
Your TradingView account is set up and has access to the TradingView Strategy you want to automate.
You’ve downloaded and installed the Lune Auto Trader software.
Your trading platform and account is correctly setup and connected to Lune Auto Trader.
Step-by-Step Instructions
Step 1: Add a Strategy to Your Account
Launch Lune Auto Trader and ensure the platform of the account you want to automate is configured and connected.
Click
Add Account
(top of the interface) and add your account I you haven't already.When adding a trading account:
⚠️ Important: Enter the exact account name as it appears on your trading platform. Account names are case-sensitive.
Click the
Config
button next to your connected account.In the account configuration window:
Click
Add Strategy
.Set a name (e.g.,
strat1
).Select the instrument (e.g.,
ES JUN25
). You must use an instrument supported by your platform. An incorrect instrument name will cause trades to fail.Choose how many contracts to trade.
Save your strategy settings.
Step 2: Choose Your Alert Method
Lune Auto Trader offers two ways to receive signals from TradingView.
Single Alert Message (Recommended): This is the easiest method and works with any TradingView strategy. You only need to create one alert in TradingView and paste one message.
Multiple Alert Messages (For compatible strategies): This method is for strategies that have specific input fields for different alert actions (like the official Lune Automated Strategies). It requires pasting 6 different messages into your strategy's settings.
Method 1: Using the Single Alert Message (Recommended)
This method uses one alert in TradingView to handle all trade actions.
1. Get Your Instructions
In Lune Auto Trader's account configuration window, click the "Instructions" button for your strategy.

In the instructions window, click the "Single Alert Message" tab.
Click "Copy" to copy the entire message block. You will also need the Webhook URL from this window.
2. Create the Alert in TradingView
In TradingView, click the "Alert" icon (⏰) on your chart.
In the alert settings:
Condition: Select your strategy.
Go to the "Message" tab:
Paste the Single Alert Message you copied from Lune Auto Trader into this box.
Go to the "Notifications" tab:
Check the box for "Webhook URL".
Paste the unique Webhook URL from your strategy instructions.
Click "Create". Your strategy is now automated!
Security Reminder
🔒 Your alert messages and webhook URL are sensitive credentials. If shared or leaked, others can execute trades on your behalf.
Always:
Keep alert messages, instructions, and webhooks private
Revoke access if compromised (contact support)
Important Reminders
Create a New Alert After Changes: If you change any strategy settings on your TradingView Strategy Settings, you must create a new alert in TradingView. Your old alert will not use the new settings.
Use Unique Alert Messages: Each strategy you configure needs its own unique set of alert messages. Do not reuse the same alert message for different strategies, as this will cause conflicts.
Troubleshooting
Trades Are Not Executing on my Account
If your TradingView alerts are firing but no trades are appearing, check the following:
Incorrect Webhook/Alert Messages: The alert messages in your TradingView strategy must be copied exactly from the instructions provided within Lune Auto Trader for your specific strategy configuration.
Incorrect Account Name: The account name in Lune Auto Trader must exactly match the name in your trading platform. For example,
Account1
is different fromaccount1
. Account names are case-sensitive.Platform Connection: Ensure your trading platform and account is properly connected to Lune Auto Trader. For NinjaTrader, the application must be running locally. For API-based platforms like Tradovate or ProjectX, ensure your API keys are correct and active.
Check the alert settings on TradingView: Ensure your alert message(s) are correctly set and that your webhook url is correctly set. If it still does not try creating the alert again.
My TradingView Strategy is Not Taking Trades or Firing Alerts
If your TradingView Strategy is not taking any trades or firing alerts, check the following:
Strategy Settings Are Too Strict: Your filter settings or signal thresholds within the TradingView strategy might be too restrictive for the current market conditions, preventing any signals from being generated.
Order Size Is Not Configured Correctly: For some markets your TradingView Strategy's "Properties" settings must bet set to "Quantity". If its set to something else then it may not work. For example in the Futures it does not take any trades unless you set the Order Size to "Quantity".
Last updated
Was this helpful?