All indicators

FXN - Buy Sell Signals, EMA 5 / 13 Cross

Oct 28, 2019

Static chart image
SignalsTime BasedMoving Averages

The FXN - Buy Sell Signals, EMA 5 / 13 Cross indicator identifies potential trend reversals and entry points based on the crossing of two exponential moving averages within specific trading windows. It is designed to filter noise by focusing on high-volume sessions, providing clear visual cues for momentum shifts.

Usage

The tool identifies bullish momentum when the 5-period MA crosses above the 13-period MA and bearish momentum when it crosses below. By default, these signals are filtered to only appear during the London and New York trading sessions, where market liquidity is highest.

Users can employ this script to:

  • Identify Trend Shifts: Monitor the primary 5/13 cross for early entry signals.
  • Filter for Sessions: Use the built-in session logic to ignore signals that occur during low-volatility periods.
  • Compare Signals: Enable a secondary "Comparative Signal" with different lengths or MA types to confirm the primary signal's strength.
  • Visual Context: View long-term EMA levels (50, 200, 365, 800) to understand the broader market trend.

Details

The script is built with flexibility in mind, allowing users to choose from several moving average types including EMA, SMA, WMA, HMA, VWMA, RMA, and ALMA. It specifically checks for the 15-minute timeframe to ensure the signals align with the intended intraday strategy.

A key feature is the session filter, which uses customizable start and end times (defaulting to EST). The script automatically handles UTC offsets if the chart is set to UTC, ensuring the London and New York session highlights remain accurate.

Settings

Main Signal

  • Moving Average Type: Select the calculation method for the crossing averages (e.g., EMA, SMA).
  • Length of the Fast EMA: Sets the lookback period for the fast signal line (default 5).
  • Length of the Slow EMA: Sets the lookback period for the slow signal line (default 13).

Visuals

  • Show Other EMAs on chart: Toggles the visibility of the 50, 200, 365, and 800 EMAs.
  • Plot Signal EMAs on Chart: Toggles the visibility of the primary 5 and 13 moving averages.

Session Filters

  • Only Show Signal During London and New York Sessions: When enabled, signals will only plot during the specified hours.
  • London/NY Start/End Hour/Minute: Precise inputs to define the trading windows in EST.

Styling

  • Buy / Sell Signal Type: Choose the shape of the plot (Label, Arrow, Triangle, etc.).
  • Show Buy / Sell Text: Toggles the "Buy" or "Sell" text labels.
  • Signal Size/Location: Adjusts the physical size and vertical position of the signal icons.

Comparative Signal

  • Add a Comparative EMA Signal: Enables a second cross calculation for confluence.
  • Comparative MA Parameters: Independent settings for the second signal's type and lengths.

FAQ

On which timeframe is this indicator most effective?

The script is optimized for the 15-minute timeframe; however, the session filters and MA lengths can be adjusted for other intraday perspectives.

Can I change the trading session hours?

Yes, the "Session Filters" section allows you to define custom start and end times for both the London and New York sessions to match your specific trading hours.

How do I get access to this tool?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.