Pine Script v6 source file (.pine) + buyer guide

All-in-One Signal for TradingView

Markers where five intraday conditions agree, with an opening range, previous-day levels and a status table.

One script checks an EMA cross, ADX, VWAP, RSI and a time window on every bar, and shows the morning range, the previous day's range and a higher-timeframe trend beside them.

Illustration of All-in-One Signal on gold 5-minute: EMAs, VWAP, opening range, BUY and SELL markers, status table and structure pane.
Example chart. Illustration only, not a trade recommendation.

All-in-One Signal is an intraday TradingView indicator. It places a green BUY or red SELL marker on a bar only when five conditions agree on that bar: the 21-bar EMA crosses the 50-bar EMA, the ADX (14, 14) is above 20, the close is on the matching side of the session VWAP, the 14-bar RSI is on the matching side of 50, and the bar opened inside the trading window (08:00-21:00 London, Monday to Friday) and outside the New York open avoid window (14:30-15:00 London).

On the price chart it also draws the two EMAs (blue and orange), the VWAP (purple), a 09:00-09:30 opening range with its high, 50% mid and low and the two halves shaded, the previous day's high and low, background shading for the time windows, and an 8-row status table. Its own lower pane shows a structure histogram: where the close sits inside the previous day's range, from -50 at the previous-day low through 0 at the midpoint to +50 at the previous-day high. A row of dots and a pane tint show when that agrees with the trend on a higher timeframe (default 1 hour, EMA 200).

Higher-timeframe and previous-day values only use completed bars, and markers are set on bar close by default. The markers describe chart conditions. They are not trade recommendations and not financial advice.

What is in the download

  • All-in-One-Signal.pine: the full Pine Script v6 source code, to paste into the Pine Editor in your own TradingView account. Nothing is published on TradingView
  • Buyer guide (PDF): installing it, every line, marker, table row and pane element, all inputs with their defaults, alert set-up, time zone notes and how to update to a new version
  • Four alert conditions: BUY marker, SELL marker, Macro alignment turned long, Macro alignment turned short

What it does

Five-condition markers

A BUY marker needs the fast EMA (21) to cross above the medium EMA (50), the ADX above 20, the close above VWAP, RSI above 50 and a bar inside the allowed time. A SELL marker is the mirror image. An option also requires the higher-timeframe alignment in the lower pane.

8-row status table

Top right of the price chart, for the latest bar: Market Session, 9:00-9:30 Breakout, ADX Trend (> 20), VWAP Bias, RSI Momentum, HTF Trend (60m EMA 200), Daily Structure and Macro Filter, each with a coloured status such as TRADE WINDOW, INSIDE RANGE, TRENDING or LONG ALIGNED.

Opening range and previous-day levels

The 09:00-09:30 range high (green), 50% mid (grey, dashed) and low (red), with the upper half shaded green and the lower half red, cleared at the start of each day. The previous day's high and low are dotted maroon and teal lines.

Structure and alignment pane

A histogram of the close's position in the previous day's range (0 midpoint, +50 high, -50 low), brighter at or beyond the high or low. A row of dots at 75 is green for LONG ALIGNED (the last completed 1-hour close above its 200 EMA and the histogram above 0), red for SHORT ALIGNED and grey otherwise; the pane is tinted light green or light red to match, with no tint when not aligned.

Time zones and windows you set

The three windows are read in Europe/London by default, or America/New_York, UTC or the symbol's exchange time zone. Every length, threshold and window is an input, and the lines, shading, status table and pane parts each have an on/off setting.

When you would use it

After the morning range

It is 09:45 London on a 15-minute chart. The table shows whether price has broken above or below the 09:00-09:30 range, which side of VWAP it is on and whether the ADX reads TRENDING or CHOPPY, before you make your own decision.

US shares on New York times

Your US shares are charted with regular hours only, so there are no bars at 09:00 London. You switch the time zone to America/New_York and set the three windows to New York times, as the guide shows, so the range forms from the 09:30 open.

An alert instead of watching

On a paid TradingView plan, you create a 'BUY marker' alert set to Once Per Bar Close, and look at the chart yourself when TradingView tells you all the conditions were met.

Who it is for

  • Intraday chart users. People who use 1 to 30-minute charts and check the opening range, VWAP, ADX and RSI by hand.
  • Traders who decide for themselves. People who want the conditions laid out in one table and pane, then make their own decisions.

Probably not for you if

  • Anyone wanting a system that trades: it does not place, manage or close trades, or set stops or targets
  • Daily and higher charts: the time windows are not meaningful there
  • Symbols without volume data: VWAP cannot be calculated, so no markers are produced
  • People who do not use TradingView: the MetaTrader 5 Indicator Pack includes a MetaTrader 5 version

What you need

  • Your own TradingView account. You download the .pine file from Gumroad, paste it into your Pine Editor, save it and add it to a chart; the guide gives each step
  • Any TradingView plan, including the free Basic plan within its limits (2 indicators per chart, up to 5,000 bars of history). Alerts need a paid plan (Essential or higher); check tradingview.com/pricing for current limits
  • Intraday charts from 1 to 30 minutes (the defaults assume 5 or 15 minutes)
  • A symbol with volume data, for the VWAP
  • Licensed for one buyer's personal use on their own TradingView account(s). Do not share, resell or publish the code, including on TradingView

Questions

Are the BUY and SELL markers trade signals?

They mark bars where all five conditions were met. They are not trade recommendations, and any trading decision is yours.

What time zone are the windows in?

Europe/London by default: trading window 08:00-21:00 Monday to Friday, NY open avoid window 14:30-15:00 and opening range 09:00-09:30. You can switch to America/New_York, UTC or the symbol's exchange time zone; the windows move with it, so re-enter them in the new zone. In the weeks when UK and US clocks change on different dates, the New York open is at 13:30 London and the default avoid window does not cover it.

Can a marker appear and then disappear?

With 'Signals on bar close only' on (the default), a marker is placed only once the bar has closed. Higher-timeframe and previous-day values only use completed bars. The lines, table and pane use the current price, so they move while the live bar is forming.

Does it come with past results or performance figures?

No. It makes no claim about past results or future price moves, and no performance figures are published or claimed.

How do I get it onto my chart, and do alerts need a paid plan?

After you buy, you download the .pine file from Gumroad. In your own TradingView account you open the Pine Editor, create a new indicator, paste the code, save it and click Add to chart; the guide gives each step. Nothing is published on TradingView. It works on the free Basic plan within its limits, but the four alerts need a paid plan (Essential or higher).

Also in Trading

About these figures. The markers, table and pane are calculated from past and current prices and describe conditions on the chart; they do not predict price and are not financial advice. Trading with leverage, such as CFDs, spread bets, futures or margin, can lose you money quickly, and with some products you can lose more than you put in.
Important — this is general information, not financial advice. This page covers a topic close to regulated financial advice (such as pensions, ISAs or tax) and is provided for education only. It does not account for your personal circumstances and is not a personal recommendation. Before making a decision you cannot easily reverse, consider speaking to an FCA-authorised adviser or a qualified tax adviser. Tax treatment depends on your individual circumstances and may change.

Last reviewed: