- Product type
- Indicator
- Platforms
- TV
- Market / symbol
- Gold, FX majors, Indices, Crypto
- Experience level
- Beginner
- Delivery
- File download from your dashboard
- Last update
- November 30, 2026
- Broker
- Any broker
- Product type
- Indicator
- Platforms
- TV
- Market / symbol
- Gold, FX majors, Indices, Crypto
- Experience level
- Beginner
- Delivery
- File download from your dashboard
- Last update
- November 30, 2026
- Broker
- Any broker
Overview
The previous day and previous week highs and lows are levels almost every trader watches. Previous Levels pulls them from the higher timeframe and keeps them on your intraday chart, so you stop drawing them by hand every day.
The data is requested so it does not repaint: each level comes from the last completed period and stays fixed until the next one starts.
It gives no signals and makes no claim about how price will react to these levels.
- Previous day high, low and midpoint, and the daily open
- Previous week and month high and low, and their opens
- Lines and labels on the last bar, with optional history
- Alerts for closes above or below the previous day and week, and for crossing the daily open
Made by
This tool is written by the TradeKit team. The source code is open and included in the download. It is free to use.
Strategy logic
Getting the data
request.securityrequestshigh[1]andlow[1]on the daily, weekly and monthly timeframe withlookahead_on. That combination returns the last completed period and reads nothing from the future.- The current period’s open is set on its first bar and does not change afterwards.
Drawing
- Each line starts at the first bar of the current period and runs a few bars past the last bar.
- Daily levels show on intraday charts only, weekly levels up to the daily chart and monthly levels up to the weekly chart.
Alerts
- Alerts fire on a bar close above the previous high or below the previous low.
- No alert fires on the first bar of a new period, because the levels change on that bar.
Specifications
Requirements
- TradingView, the free plan is enough
- Daily levels need an intraday chart
- The day boundary follows the symbol’s daily close in TradingView
- Platforms
- TV
- Delivery
- Use case
- Scalping، Swing
- Market
- Gold، FX majors، Indices، Crypto
- Experience level
- Beginner
Compatible brokers
Which brokers this product works with, and which it works best with.
No broker restriction: it works with any broker that offers the product's platform.
The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers
Input parameters
| Parameter | Default | Description |
|---|---|---|
Previous day high/lowShow the previous day high and low |
true |
Show the previous day high and low |
Previous day midpointShow the midpoint of the previous day |
false |
Show the midpoint of the previous day |
Daily openShow the current day open |
true |
Show the current day open |
Previous week high/lowShow the previous week high and low |
true |
Show the previous week high and low |
Previous month high/lowShow the previous month high and low |
true |
Show the previous month high and low |
Show historical levelsAlso plot past days’, weeks’ and months’ levels as stepped lines |
false |
Also plot past days’, weeks’ and months’ levels as stepped lines |
Show prices in labelsAdd the price to each label |
false |
Add the price to each label |
Label offset (bars)How many bars right of the last bar the labels sit |
10 |
How many bars right of the last bar the labels sit |
Install guide
- Unzip the download. It contains
PreviousLevels.pineand a short readme. - Open
PreviousLevels.pinein a text editor such as Notepad and copy all of it. - In TradingView open a chart and click the Pine Editor tab at the bottom of the screen.
- Create a new blank indicator, select all of the default code and paste over it.
- Click Add to chart.
- Click Save to keep it in your scripts, so you can add it later from the Indicators menu.
Works on the free TradingView plan; your plan’s limit on indicators per chart still applies.
Changelog
-
v1.0.0 TV New November 30, 2026
- Published on TradeKit
Buyer reviews
No reviews yet.
Only verified buyers can review. Reviews are moderated before publishing.
Only verified buyers can review. Reviews are moderated before publishing.
Sign in to write a reviewFAQ
When does the day start?
Do the levels repaint?
Why no previous day level on a daily chart?
Can I show fewer levels?
Related products
More Indicators and tools from the same family
Risk warning