Lune Trading
Our WebsitePricingGet FundingCommunity
  • 🏠Help Center
    • Lune Indicators Suite - Help Center
    • Lune Automated Strategies - Help Center
    • Lune Auto Trader - Help Center
    • Lune AI Signals - Help Center
  • 📄Information
    • Learn About Lune Trading
    • VIP Discord Server
  • 🛠️TradingView Indicators
    • Frequently Asked Questions
    • Getting Started
      • Setup Guide
      • Best Practices
      • Learn About TradingView
    • Exclusive Trading Strategies
      • Institutional AI Buy & Sell Strategy
      • Accumulation/Distribution Breakout Strategy
      • Liquidity Trendlines Breakout Strategy
      • Contrarian AI Buy & Sell Strategy
      • FVG & Market Structure Strategy
      • MTF Clarity AI Buy & Sell Strategy
    • Lune Indicators Suite
      • Lune Market Analysis
        • Signal Settings
        • Features
        • Advanced Settings
        • Alerts
        • Update Logs
      • Lune Oscillator
        • Oscillator Settings
        • Reversal Detection
        • Trend AI
        • Volatility AI
        • Alerts
        • Update Logs
      • Lune Technical Analysis
        • Basic Settings
        • Technical Analysis
        • Liquidity Analysis
        • Market Structure
        • Order Blocks
        • Supply/Demand Zones
        • Fair Value Gaps
        • Market Sessions
        • Market Previous Highs/Lows
        • Alerts
        • Update Logs
      • Lune Strategies
        • Strategy Settings
        • Auto Backtester
        • Trade Conditions Filters/Sensitivity
        • Time Filter
        • Trade Management
        • Alerts
        • Update Logs
    • How To Update
  • ⛓️Automated TradingView Strategies
    • Frequently Asked Questions
    • Getting Started
      • Setup Guide
      • Best Practices
      • Learn About TradingView
    • Lune Automated Strategies
      • Lune Stratos
        • Dashboard Settings
        • Signal Settings
        • Time Filter
        • Trade Management
        • Alerts
        • Update Logs
      • Lune Aegis
        • Dashboard Settings
        • Signal Settings
        • Time Filter
        • Trade Management
        • Alerts
        • Update Logs
      • Lune Momento
        • Dashboard Settings
        • Signal Settings
        • Time Filter
        • Trade Management
        • Alerts
        • Update Logs
      • Lune Zentro
        • Dashboard Settings
        • Signal Settings
        • Time Filter
        • Trade Management
        • Alerts
        • Update Logs
  • How To Update
  • 🤖Automated Trading Software
    • Frequently Asked Questions
    • Getting Started
      • Setup Guide
      • Best Practices
      • Automate TradingView Strategies Guide
      • Learn About NinjaTrader
    • Lune Auto Trader
      • Account Management
      • Strategy Management
      • News Events
      • Holidays
      • Advanced Settings
  • 📈ALGORITHMIC TRADING SIGNALS
    • Frequently Asked Questions
    • Getting Started
      • Setup Guide
      • Best Practices
      • Manage Notifications and Channels
    • Lune AI Signals
      • Signal Details
      • Features
      • Trading Styles
      • Performance
      • Asset Classes
      • Update Logs
  • Trading Prop Firms
    • Getting Started
    • Best Futures Prop Firms
      • Apex Trader Funding - Guide, Rules, Review, and Discount
      • TradeDay - Guide, Rules, Review, and Discount
  • 🎓TRADING EDUCATION
    • Introduction to Trading
    • Charting and Technical Analysis
      • Trading Chart
      • Support and Resistance
      • Market Trends
      • Chart Patterns
    • Trading Styles
      • Scalping
      • Day Trading
      • Swing Trading
      • Position Trading
    • Best Time To Trade
      • Stock Market
      • Forex Market
      • Crypto Market
    • Money Management
    • Trading Psychology
    • Common Trading Mistakes
    • Trading Plan
    • Economics
    • Trading Terminology
    • Brokers
  • 🔗Links
    • Lune Trading
    • Join Discord
    • YouTube
    • Twitter
    • TradingView
    • Facebook
    • Instagram
    • TradingView Support
Powered by GitBook

Legal

  • Terms of Service
  • Refund Policy
  • Privacy Policy
  • Disclaimer

Copyright © Lune Trading. Disclaimer: Past performance is not indicative of future results. Our content is for educational and informational purposes only, reflecting our perspectives and not professional financial advice. Trading and investing is risky.

On this page
  • Overview
  • Prerequisites
  • Step-by-Step Instructions
  • Step 1: Add a Strategy to Your Account
  • Step 2: Open Strategy Instructions
  • Step 3: Configure Your Strategy on TradingView
  • Step 4: Create Alerts in TradingView
  • Step 5: Finalize Strategy Settings in Lune Auto Trader
  • Security Reminder
  • Troubleshooting
  • No trades are executing
  • Webhook not working
  • Wrong instrument being traded
  • Alerts not triggering

Was this helpful?

  1. Automated Trading Software
  2. Getting Started

Automate TradingView Strategies Guide

Overview

Lune Auto Trader allows users to automate their TradingView strategies by integrating them with NinjaTrader or Tradovate. 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.

  • You have NinjaTrader installed and connected.

  • Your TradingView account is set up and has access to the strategy you want to automate.

  • You’ve downloaded and installed the Lune Auto Trader software.

Step-by-Step Instructions

Step 1: Add a Strategy to Your Account

  1. Launch Lune Auto Trader and ensure your account is connected.

  2. Click Add Account (top of the interface) and configure your NinjaTrader or Tradovate account if not already added.

  3. In the configuration window:

    • Click Add Strategy.

    • Set a name (e.g., strat1).

    • Select the instrument (e.g., ES JUN25).

    • Choose how many contracts to trade.

  4. Save your configuration.

How to View NinjaTrader Instruments
  1. Open Control Center.

  2. Click Tools → Instrument List to browse all configured assets.

Step 2: Open Strategy Instructions

  1. In the strategy configuration panel, click the Instructions button.

  2. A window will appear containing:

    • Your unique Webhook URL

    • A list of pre-generated Alert Messages:

      • Long Entry

      • Short Entry

      • Long Exit

      • Short Exit

      • Long Partial Exit

      • Short Partial Exit

  3. Click Copy next to each alert to store it for use in TradingView.

Step 3: Configure Your Strategy on TradingView

  1. Open TradingView and add the strategy you want to automate to your chart.

  2. Click the gear icon (⚙️) to open the strategy settings.

  3. Scroll down to the Alert Configuration section.

  4. Paste the corresponding alert messages into each available field:

    • Entry Long Alert Message

    • Entry Short Alert Message

    • Exit Long Alert Message

    • Exit Short Alert Message

    • Long Partial Exit Alert Message

    • Short Partial Exit Alert Message

  5. Click OK to save your changes.

Step 4: Create Alerts in TradingView

  1. In TradingView, click the Alert (⏰) icon at the top.

  2. Under Condition:

    • Choose alert() function calls only.

  3. Under Notifications:

    • Enable Webhook URL.

    • Paste the Webhook URL from your strategy instructions.

  4. Click Create.

Repeat this process for each alert type if they aren’t bundled in one strategy alert.

Step 5: Finalize Strategy Settings in Lune Auto Trader

In the strategy configuration window in Lune Auto Trader:

  • You can customize advanced options:

    • Max Total Contracts

    • Allow Partial Exits

    • Enable News Trading Filter

    • Enable Holidays Filter

    • Enable Time-Based Filter

    • Exit Positions After Hours

    • Trading Start/End Time

  • Click Save Configuration to store your setup.

  • You can also Load, Delete, or Set as Default.

Security Reminder

🔒 Your alert messages and webhook are sensitive credentials. If shared or leaked, others can execute trades on your behalf.

Always:

  • Keep instructions private

  • Never reuse webhooks across multiple strategies unless required

  • Revoke access if compromised (contact support)

Troubleshooting

No trades are executing

Check alert setup on TradingView. Ensure alert() function is selected.

Webhook not working

Confirm webhook URL is pasted exactly.

Wrong instrument being traded

Double-check instrument field in Lune Auto Trader config.

How to View NinjaTrader Instruments
  1. Open Control Center.

  2. Click Tools → Instrument List to browse all configured assets.

Alerts not triggering

Ensure the strategy conditions are active and alert logic is enabled.

PreviousBest PracticesNextLearn About NinjaTrader

Last updated 13 days ago

Was this helpful?

Click the Config button next to your connected account.

🤖