Indicator · Pine Script v6 · On the chart

Day Trading Strategy v2

by mhs54

This overlay indicator maps a US equity day-trading framework of levels, trend, and patience candles onto the price chart.

View on GitHub

Repaints

GitHub stars2on the repository
Pine versionv6current
Lines of code609
Settings29inputs
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 v2 plots 8 and 21 SMAs, higher-timeframe 200 SMAs, VWAP, the last five days of premarket highs and lows, and the 9:30–9:45 opening range. It marks patience-candle long and short arrows and auto-detected key levels. Toggles control each overlay, warning distance, level spacing, and push notifications. It reads higher-timeframe data with lookahead.

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

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

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.greencol_8
width_8int1width_8
Show 21 SMAbooltrueshow_21
col_21colorcolor.redcol_21
width_21int2width_21
Show 5min 200 SMAbooltrueshow_200_5m
col_200_5mcolorcolor.yellowcol_200_5m
width_200_5mint2width_200_5m
Show 10min 200 SMAbooltrueshow_200_10m
col_200_10mcolorcolor.orangecol_200_10m
width_200_10mint2width_200_10m
Show all 29 settings
SettingTypeDefaultVariable
Show Hourly 200 SMAbooltrueshow_200_1h
col_200_1hcolor#FF69B4col_200_1h
width_200_1hint2width_200_1h
Show VWAPbooltrueshow_vwap
col_vwapcolorcolor.whitecol_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
Push Notificationsboolfalsepush_notif
Show Key Levelsbooltrueshow_kl
Colorcolorcolor.yellowcol_kl
Min Spacing ($)float1.00kl_min_space
ADR Multiplierfloat1.0kl_adr_mult
Max Levels Per Sideint5kl_max_side
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