Indicator · Pine Script v6 · On the chart

Day Trading Strategy v1

by mhs54

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code351
Settings23inputs
LicenceNone stated
Last update6 months ago28 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Day Trading Strategy v1 plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:45 ET opening range. The script detects pre-market breakouts and flags pullback setup bars, known as Patience Candles, using colored triangle markers. A visual warning appears when prices are close to the hourly 200 SMA. Users can toggle individual technical elements and adjust colors, line thickness, or warning distances.

Details

Published by

mhs54 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Support & resistance, Sessions & time

Markets

Stocks

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Show 8 SMAbooltrueshow_8
col_8colorcolor.bluecol_8
width_8int1width_8
Show 21 SMAbooltrueshow_21
col_21colorcolor.purplecol_21
width_21int2width_21
Show 5min 200 SMAbooltrueshow_200_5m
col_200_5mcolorcolor.orangecol_200_5m
width_200_5mint2width_200_5m
Show 10min 200 SMAbooltrueshow_200_10m
col_200_10mcolorcolor.yellowcol_200_10m
width_200_10mint2width_200_10m
Show all 23 settings
SettingTypeDefaultVariable
Show Hourly 200 SMAbooltrueshow_200_1h
col_200_1hcolorcolor.redcol_200_1h
width_200_1hint2width_200_1h
Show VWAPbooltrueshow_vwap
col_vwapcolorcolor.tealcol_vwap
width_vwapint2width_vwap
Show PMH / PML (last 5 days)booltrueshow_pm
Line colorcolorcolor.whitecol_pm
Show Opening Range (9:30–9:45)booltrueshow_or
Show Patience Candle Arrowsbooltrueshow_pc
Hourly 200 SMA Warning Distance ($)float1.0warn_sma_dist
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Pivot Trendlines

by g-moe
3 stars

This indicator identifies pivot highs and lows using a swing lookback period and connects them with trendlines on the price chart. It generates long and short entry signals when price moves through predefined percentage thresholds in three steps for buy and se

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES

Ichimoku Cloud

by harryguiacorn
219 stars

This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud

Midnight VWAP

by TradersPost
218 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers