• International Apps
    • German
    • Russian
    • Spanish
    • French
    • Portuguese
  • Submit Your App
  • Get NinjaTrader
NinjaTrader Ecosystem
  • NinjaTrader Ecosystem
  • BROKERS
  • MARKET DATA
  • WEBINARS
  • SEARCH
    • Apps & Services
    • User App Share

Beacon by NinjaTrader Live

Beacon Indicator by NinjaTrader Live
Overview
The Beacon indicator is a dynamic support and resistance indicator that uses Bollinger Bands to identify key price levels and divides the Bollinger range into percentage-based zones. The indicator features intelligent line visibility that adapts based on price action.

Core Calculation Logic
Support and Resistance Detection

  1. Peak Detection: The indicator identifies pivot highs in the upper Bollinger Band
    • When BB.Upper[1] > BB.Upper[2] AND BB.Upper[1] > BB.Upper[0], a minor peak is detected
    • If this peak exceeds the previous major peak, it becomes the new resistance level
  2. Valley Detection: The indicator identifies pivot lows in the lower Bollinger Band
    • When BB.Lower[1] < BB.Lower[2] AND BB.Lower[1] < BB.Lower[0], a minor valley is detected
    • If this valley is lower than the previous major valley, it becomes the new support level
  3. Level Reset Logic: When a new major peak/valley is found:
    • New Peak: Support resets to the lowest Bollinger Band value in the lookback period
    • New Valley: Resistance resets to the highest Bollinger Band value in the lookback period

Line 50 Calculation and Changes
The 50 line represents the midpoint between support and resistance:
line50 = bbSupport + (bbResistance - bbSupport) * 0.5

When Line 50 Changes:

  • Line 50 changes whenever either support or resistance levels are updated
  • When line 50 changes from its previous value, ALL lines become visible and BeaconDir resets to 0
  • This ensures traders see the new range structure immediately

Percentage Lines
The indicator divides the support-resistance range into three zones:

  • 30 Line: bbSupport + range * 0.3 (30% from support)
  • 50 Line: bbSupport + range * 0.5 (midpoint)
  • 70 Line: bbSupport + range * 0.7 (70% from support)

Input Parameters

Parameter Type Range Default Description
Bollinger Band Length Integer 1-55 20 The period used for Bollinger Band calculation. Determines the lookback window for identifying peaks and valleys
Bollinger Band Std Dev Double 0.25-10 3.0 Standard deviation multiplier for Bollinger Bands. Higher values create wider bands and potentially wider support/resistance ranges
Show All Lines Boolean true/false false When enabled, all lines remain visible regardless of price action or state

Plot Descriptions

Plot Color Style Description
Resistance Level Red Dot Upper boundary based on Bollinger Band peaks
Support Level Blue Dot Lower boundary based on Bollinger Band valleys
70 Line Red Dot Upper percentage level (70% from support)
50 Line Yellow Dot Midpoint between support and resistance
30 Line Blue Dot Lower percentage level (30% from support)

Visibility Rules

  1. Initial State Reset
    • When line 50 changes value, all lines become visible
    • BeaconDir resets to 0
  2. Establishing Direction (BeaconDir = 0)
    • If price breaks below 30 line: Hides 70 line and Resistance
    • If price breaks above 70 line: Hides 30 line and Support
    • Sets BeaconDir = 1
  3. Active Trading State (BeaconDir = 1)
    • If price crosses 50 line (from either direction): Resets to show all lines
    • If price exceeds Resistance: Hides Resistance line
    • If price falls below Support: Hides Support line
  4. Line Removal Summary
    • 30 Line: Hidden when price breaks above 70 line (bullish bias)
    • 70 Line: Hidden when price breaks below 30 line (bearish bias)
    • Support: Hidden when price breaks below it OR when establishing bullish bias
    • Resistance: Hidden when price breaks above it OR when establishing bearish bias

Override Option
When "Show All Lines" is enabled, all visibility rules are bypassed, and all five lines remain visible at all times.

Disclosure
Futures trading and strategy trading involves substantial risk and the potential for loss of capital. The performance results of a trading strategy developed on the NinjaTrader platform may not be indicative of future real-time trading performance. Sample strategies and indicators provided by NinjaTrader, LLC are designed to teach strategy trading and development concepts. All NinjaScript code contained herein is provided by NinjaTrader, LLC and is for educational and demonstrational purposes only. You alone are responsible for the trading decisions that you make. You can find additional disclosure information on the NinjaTrader.com website.

Download
Created By NTEducationTeam
NinjaTrader Version 8
File Size 7.4 KB
Create Date 06/13/2025
# of Downloads 771

Importing to NinjaTrader 8 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.

New Additions

One Percent A Week - March 2026 S&C

117 downloads February 12, 2026

Synthetic Oscillator, Hann Filter, High Pass Filter, RMS, SuperSmoother, and Ultimate Smoother - April 2026 S&C

111 downloads February 12, 2026

Copy Trading Pro – Master/Slave Trade Replicator

429 downloads February 12, 2026

RiskReward - multifunction

328 downloads February 12, 2026

CRT - CandleRangeTheory

539 downloads February 2, 2026

Most Popular

UniRenko Universal Renko BarType 8

35520 downloads October 16, 2018

Heiken Ashi 8

31992 downloads October 16, 2018

Vwap

29408 downloads March 21, 2022

Vwap (Volume Weighted Average Price)

25857 downloads October 16, 2018

Simple Trade Copier

23776 downloads December 7, 2023

Interested in becoming a NinjaTrader Ecosystem 3rd party Vendor? Contact Us to learn more.

  • Quick Search
  • NinjaTrader Indicators
  • Automated Strategies
  • Ecosystem Insights
  • Free Trading Webinars
  • Spanish Trading Apps
  • Get NinjaTrader
  • User App Share
  • Trend Line Detection
  • Fibonacci Cluster
  • Renko Bar Type
  • Heiken Ashi
  • Ichimoku Cloud
  • Accumulation Distribution
  • Free Trading Indicators
  • Delta Momentum Indicator
  • Wave Trend Oscillator
  • Open Range Indicator
  • Risk Reward Indicator
  • VPA Indicator
  • Pivot Zones
  • Free Trading Videos
  • Swing Trading Volume Profile
  • Volume Leading Indicator
  • How to Use Volume Profile
  • Combine Order Flow
  • Buy Sell Signals
  • Market Profile

Disclosures | Privacy Policy | GDPR

Copyright © 2026 NinjaTrader, LLC. All Rights Reserved.

Please note that NinjaTrader Ecosystem does not have a Telegram or LinkedIn account

This website is operated by NinjaTrader, LLC (“NT”). NT is affiliated with NinjaTrader Clearing, LLC d/b/a NinjaTrader, Kraken Derivatives US, and Tradovate (“NTC”) through NinjaTrader Group, LLC (“NTG”), collectively “NinjaTrader”. NT owns and supports the proprietary NinjaTrader trading platform as a software development company, while NTC provides brokerage services. View Disclosures.

NTC is registered with the Commodity Futures Trading Commission (“CFTC”) as a futures commission merchant (“FCM”) and is a National Futures Association (“NFA”) Member (NFA ID: 0309379). Questions related to brokerage accounts should be directed to your broker.

Futures, options, foreign currency, digital asset, and event contract trading involves substantial risk and is not suitable for everyone. An investor may lose all or more than the initial investment. Trading should be undertaken only with risk capital—funds that can be lost without jeopardizing one’s financial security or lifestyle—and only by those who can afford such losses. Past performance is not necessarily indicative of future results. Prior to trading digital assets, review the CFTC and NFA advisories for additional information regarding the significant risks involved. View Risk Disclosure Statement.

This website is provided by NinjaTrader on an “as-is” basis for informational purposes only and does not constitute investment advice, a recommendation, or an offer or solicitation to buy, sell, or hold any commodity interest or financial product or engage in any investment strategy. Content may include statements or opinions of NTG and its affiliates or third-party information; no representation or warranty, express or implied, is made as to the accuracy or completeness of the information herein. NinjaTrader disclaims all liability arising from use of or reliance on such information.

Any testimonials and endorsements herein reflect the opinions of either current or former NinjaTrader customers or third parties and may not be representative of the experiences of other customers. Individual results may vary. Such testimonials and endorsements may be solicited and/or compensated.

NFA Rule 2-29(c): Hypothetical performance results have many inherent limitations, some of which are described below. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. For example, the ability to withstand losses or to adhere to a particular trading program in spite of trading losses are material points which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program which cannot be fully accounted for in the preparation of hypothetical performance results and all of which can adversely affect actual trading results.