Weekly & 15-Day Highs & Lowsplots weekly and 15-day high/low levels on a TradingView chart. It also includes alerts for when the price crosses these levels. Here’s a breakdown of its functionality:
1. Constants & Inputs:
Constants: Defines line styles and widths for weekly and 15-day levels.
User Inputs: Allows enabling/disabling weekly and 15-day levels, setting colors, lookback periods, and visualization options like projections and gradients.
2. Data Requests:
Fetches weekly and 15-day high/low values from historical data.
Checks if a new week or a new 15-day period has started.
3. Functions:
f_getRightBarIndex(): Determines where to extend projection lines.
f_draw(): Draws high/low lines, applies gradients, and extends projections.
4. Logic & Plotting:
Tracks changes in weekly and 15-day highs/lows.
Plots the latest high/low values with configurable styles.
Extends lines into the future if enabled.
5. Alerts:
Triggers alerts when the closing price crosses weekly or 15-day high/low levels.
Indicadores e estratégias
tez Trading Zonesthis indicator is designed to display key intraday and historical levels on a chart. Here's a breakdown of what it does:
1. Key Features
The script allows traders to visualize important price levels, including:
Previous Day High (PDH), Low (PDL), and Close (PDC)
Current Day High and Low
Intraday Fibonacci levels
Daily, Weekly, and Monthly Pivot Points
Support & Resistance Levels (S1, S2, S3, R1, R2, R3)
Round Number Support & Resistance (e.g., 15500, 15600)
Exponential Moving Averages (EMAs)
VWAP (Volume Weighted Average Price)
Historical Daily Pivots
2. User Inputs
The script provides multiple customizable inputs to enable or disable specific features, adjust colors, line styles, and thickness for:
Previous Day’s High, Low, and Close
Current Day’s High and Low
Fibonacci levels
Pivot Points and Support/Resistance levels
Round Number levels
EMAs (10, 50, 200)
3. Calculations & Plotting
Previous Day Levels: Extracts the high, low, and close from the last trading session.
Fibonacci Levels: Uses high-low range to calculate 0.382, 0.618, and an optional 0.5 level.
Pivot Points:
Central Pivot Range (CPR) using Traditional Pivot Formula:
Resistance and Support Levels (R1, R2, R3, S1, S2, S3)
Round Number Calculation: Finds nearest 100-point levels above and below the current price.
VWAP & EMAs: Standard VWAP and three user-defined EMAs (10, 50, 200).
4. Visualization
Uses lines to draw price levels and pivot points.
Uses labels for PDH, PDL, PDC, DH, DL (Previous Day and Current Day markers).
Allows customization of line styles (solid, dashed, dotted) and thickness.
5. Dynamic Time-Based Adjustments
Uses time() and ta.change() to track session changes.
Adjusts labels and lines dynamically as the trading day progresses.
Weekly & 15-Day Highs & Lowsindicator plots weekly and 15-day high and low levels on the chart. It also provides alerts when the price crosses these levels.
Key Features:
✅ Weekly & 15-Day High/Low Levels:
The script fetches the high and low values for both the weekly and 15-day timeframes.
These levels are extended forward to help traders identify key support and resistance zones.
✅ Custom Styling:
Weekly lines are dashed (orange) by default.
15-day lines are dotted (blue) by default.
Users can modify the colors, styles, and lookback period via input settings.
✅ Gradient Effect:
The script includes an optional gradient effect that highlights the recency of highs/lows.
✅ Future Projections:
Users can enable "Show Projections" to extend previous highs and lows into the future.
✅ Labels & Alerts:
Labels ("WH", "WL", "15DH", "15DL") are placed at the respective levels.
Alerts trigger when the price crosses any of these levels (Weekly or 15-Day High/Low).
How It Works:
Data Request:
The script fetches weekly high/low from the 'W' timeframe.
It also fetches 15-day high/low from the '15D' timeframe.
Plotting Lines:
If enabled, it draws the weekly high/low (orange, dashed).
If enabled, it draws the 15-day high/low (blue, dotted).
Updating Levels:
It updates the high/low values when a new weekly or 15-day period starts.
Price Cross Alerts:
If price crosses above the weekly or 15-day high, an alert is triggered.
If price drops below the weekly or 15-day low, an alert is triggered.
Usage:
🔹 Helps traders identify breakout levels and support/resistance zones.
🔹 Works well in intraday and daily charts.
🔹 Provides alerts for potential trade opportunities.
Buying vs Selling Volume IndicatorThis indicator based on volume it will use where is the major volume point
Combined [LuxAlgo]Combined lux script.
Consist of rsi and ma.
indicator("Combined ")
//@version=6
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
length = input.int(14, minval = 2)
smoType1 = input.string('RMA', 'Method', options = )
src = input(close, 'Source')
arsiCss = input(color.silver, 'Color', inline = 'rsicss')
autoCss = input(true, 'Auto', inline = 'rsicss')
//Signal Line
smooth = input.int(14, minval = 1, group = 'Signal Line')
smoType2 = input.string('EMA', 'Method', options = , group = 'Signal Line')
signalCss = input(#ff5d00, 'Color', group = 'Signal Line')
//OB/OS Style
obValue = input.float(80, 'Overbought', inline = 'ob', group = 'OB/OS Style')
obCss = input(#089981, '', inline = 'ob', group = 'OB/OS Style')
obAreaCss = input(color.new(#089981, 80), '', inline = 'ob', group = 'OB/OS Style')
osValue = input.float(20, 'Oversold ', inline = 'os', group = 'OB/OS Style')
osCss = input(#f23645, '', inline = 'os', group = 'OB/OS Style')
osAreaCss = input(color.new(#f23645, 80), '', inline = 'os', group = 'OB/OS Style')
//-----------------------------------------------------------------------------}
//Functions
//-----------------------------------------------------------------------------{
ma(x, len, maType)=>
switch maType
'EMA' => ta.ema(x, len)
'SMA' => ta.sma(x, len)
'RMA' => ta.rma(x, len)
'TMA' => ta.sma(ta.sma(x, len), len)
//-----------------------------------------------------------------------------}
//Augmented RSI
//-----------------------------------------------------------------------------{
upper = ta.highest(src, length)
lower = ta.lowest(src, length)
r = upper - lower
d = src - src
diff = upper > upper ? r
: lower < lower ? -r
: d
num = ma(diff, length, smoType1)
den = ma(math.abs(diff), length, smoType1)
arsi = num / den * 50 + 50
signal = ma(arsi, smooth, smoType2)
//-----------------------------------------------------------------------------}
//Plots
//-----------------------------------------------------------------------------{
plot_rsi = plot(arsi, 'Ultimate RSI'
, arsi > obValue ? obCss
: arsi < osValue ? osCss
: autoCss ? chart.fg_color : arsiCss)
plot(signal, 'Signal Line', signalCss)
//Levels
plot_up = plot(obValue, color = na, editable = false)
plot_avg = plot(50, color = na, editable = false)
plot_dn = plot(osValue, color = na, editable = false)
//OB-OS
fill(plot_rsi, plot_up, arsi > obValue ? obAreaCss : na)
fill(plot_dn, plot_rsi, arsi < osValue ? osAreaCss : na)
//Gradient
fill(plot_rsi, plot_avg, obValue, 50, obAreaCss, color.new(chart.bg_color, 100))
fill(plot_avg, plot_rsi, 50, osValue, color.new(chart.bg_color, 100), osAreaCss)
hline(obValue, 'Overbought')
hline(50, 'Midline')
hline(osValue, 'Oversold')
//---------------------------------------------------------------------------------------------------------------------}
//Settings
//---------------------------------------------------------------------------------------------------------------------{
window = input.int(100, minval = 0)
forecast = input.int(0)
sigma = input.float(0.01, step = 0.1, minval = 0)
mult = input.float(2, 'Multiplicative Factor', minval = 0)
src1 = input.source(close, 'Source')
//Style
upCss = input(color.new(#5b9cf6, 50), 'Upper Extremity', group = 'Style')
dnCss = input(color.new(#e91e63, 50), 'Lower Extremity', group = 'Style')
bullCss = input(#3179f5, 'Moving Average', inline = 'ma', group = 'Style')
bearCss = input(#e91e63, '' , inline = 'ma', group = 'Style')
//---------------------------------------------------------------------------------------------------------------------}
//Functions
//---------------------------------------------------------------------------------------------------------------------{
rbf(x1, x2, l)=> math.exp(-math.pow(x1 - x2, 2) / (2.0 * math.pow(l, 2)))
kernel_matrix(X1, X2, l)=>
km = matrix.new(X1.size(), X2.size())
i = 0
for x1 in X1
j = 0
for x2 in X2
rbf = rbf(x1, x2, l)
km.set(i, j, rbf)
j += 1
i += 1
km
//---------------------------------------------------------------------------------------------------------------------}
//Kernel Setup
//---------------------------------------------------------------------------------------------------------------------{
var identity = matrix.new(window, window, 0)
var array K_row = na
if barstate.isfirst
xtrain = array.new(0)
xtest = array.new(0)
//Build identity matrix and training array
for i = 0 to window-1
for j = 0 to window-1
identity.set(i, j, i == j ? 1 : 0)
xtrain.push(i)
//Build testing array
for i = 0 to window+forecast-1
xtest.push(i)
//Compute kernel matrices
s = identity.mult(sigma * sigma)
Ktrain = kernel_matrix(xtrain, xtrain, window).sum(s)
K_inv = Ktrain.pinv()
K_star = kernel_matrix(xtrain, xtest, window)
K_row := K_star.transpose().mult(K_inv).row(window+forecast-1)
//---------------------------------------------------------------------------------------------------------------------}
//Moving Average
//---------------------------------------------------------------------------------------------------------------------{
var os = 0
mean = ta.sma(src1, window)
//Get end point estimate
float out = na
if bar_index > window
dotprod = 0.
//Dot product between last K_row and training data
for i = 0 to window-1
dotprod += K_row.get(i) * (src1 - mean)
//Output
out := dotprod + mean
mae = ta.sma(math.abs(src - out), window) * mult
upper1 = out + mae
lower1 = out - mae
os := close > upper1 and out > out ? 1 : close < lower1 and out < out ? 0 : os
//
// @author LazyBear
//
// If you use this code in its original/modified form, do drop me a note.
//
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
ap = hlc3
esa = ta.ema(ap, n1)
d1 = ta.ema(math.abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d1)
tci = ta.ema(ci, n2)
wt1 = tci
wt2 = ta.sma(wt1,4)
plot(0, color=color.gray)
plot(obLevel1, color=color.red)
plot(osLevel1, color=color.green)
plot(obLevel2, color=color.red)
plot(osLevel2, color=color.green)
plot(wt1, style=plot.style_area, color=color.new(#2196F3, 10), title="wt1")
plot(wt2, style=plot.style_area, color=color.new(#2196F3, 10), title="wt2")
plot(wt1-wt2, color=color.yellow, style=plot.style_area)
plot(ta.cross(wt1, wt2) ? wt2 : na, color =color.black, style = plot.style_line, linewidth = 5)
plot(ta.cross(wt1, wt2) ? wt2 : na, color = (wt2 - wt1 > 0 ? color.red: color.lime) , style = plot.style_circles, linewidth = 6)
barcolor(ta.cross(wt1, wt2) ? (wt2 - wt1 > 0 ? color.black : color.yellow) : na)
Machine Learning Trendlines Cluster [LuxAlgo]The ML Trendlines Cluster indicator allows traders to automatically identify trendlines using a machine learning algorithm based on k-means clustering and linear regression, highlighting trendlines from clustered prices.
For trader's convenience, trendlines can be filtered based on their slope, allowing them to filter out trendlines that are too horizontal, or instead keep them depending on the user-selected settings.
🔶 USAGE
Traders only need to set the number of trendlines (clusters) they want the tool to detect and the algorithm will do the rest.
By default the tool is set to detect 4 clusters over the last 500 bars, in the image above it is set to detect 10 clusters over the same period.
This approach only focuses on drawing trendlines from prices that share a common trading range, offering a unique perspective to traditional trendlines. Trendlines with a significant slope can highlight higher dispersion within its cluster.
🔹 Trendline Slope Filtering
Traders can filter trendlines by their slope to display only steep or flat trendlines relative to a user-defined threshold.
The image above shows the three different configurations of this feature:
Filtering disabled
Filter slopes above threshold
Filter slopes below threshold
🔶 DETAILS
K-means clustering is a popular machine-learning algorithm that finds observations in a data set that are similar to each other and places them in a group.
The process starts by randomly assigning each data point to an initial group and calculating the centroid for each. A centroid is the center of the group. K-means clustering forms the groups in such a way that the variances between the data points and the centroid of the cluster are minimized.
The trendlines are displayed according to the linear regression function calculated for each cluster.
🔶 SETTINGS
Window Size: Maximum number of bars to get data from
Clusters: Maximum number of clusters (trendlines) to detect
🔹 Optimization
Maximum Iteration Steps: Maximum loop iterations for cluster computation
🔹 Slope Filter
Threshold Multiplier: Multiplier applied to a volatility measure, higher multiplier equals higher threshold
Filter Slopes: Enable/Disable Trendline Slope Filtering, select to filter trendlines with slopes ABOVE or BELOW the threshold
🔹 Style
Upper Zone: Color to display in the top zone
Lower Zone: Color to display in the bottom zone
Lines: Style for the lines
Size: Line size
two Bollingersun capolavoro di indicartore funziona esattamente come una classica banda di bullinger . Stategicamente funziona che la candela deve chiudere al di sopra della bb da 1 ds
Multi-Period Rolling VWAPMulti-Period Rolling VWAP (MP-RVWAP)
This indicator plots multiple Rolling Volume-Weighted Average Price (RVWAP) lines over different time periods (7, 14, 30, 60, 90, 180, and 360 days) on a single chart. Each RVWAP is calculated using a user-defined timeframe and source (default: HLC3), ensuring consistency across chart resolutions.
Key Features:
Customizable Periods: Toggle visibility for each period (7d, 14d, 30d, 60d, 90d, 180d, 360d) and adjust their colors.
Labels: Each RVWAP line is labeled at the end (e.g., "7d", "360d") for easy identification.
Standard Deviation Bands: Optional bands can be added above and below each RVWAP, with customizable multipliers (set to 0 to hide).
Flexible Timeframe: Define a single timeframe (default: 1D) for all RVWAP calculations, independent of the chart’s timeframe.
Minimum Bars: Set a minimum number of bars (default: 10) to ensure reliable calculations.
Usage:
Ideal for traders analyzing price trends across multiple time horizons. Enable/disable specific RVWAPs, tweak colors, and add bands to suit your strategy.
VRenko Scalper v1.5This indicator measures Volume Delta strength based on the average of the last X no of bars and with thresholds that are user defined.
Premarket High/Low Breakout AlertsPremarket High/Low Breakout Alerts
Description: This custom TradingView indicator helps you track premarket breakouts and breakdowns for a list of selected stocks. The indicator monitors the premarket session and sends an alert every time the stock's price breaks above the premarket high or below the premarket low.
Key Features:
Track Multiple Stocks: Easily monitor multiple stocks (e.g., AAPL, TSLA, NVDA, etc.) and get alerts when they break premarket levels.
Premarket Session Monitoring: The indicator checks for price movements during the premarket session (4:00 AM to 9:30 AM EST).
Customizable Ticker List: Modify the list of tickers directly from the TradingView settings to suit your daily trading needs.
Breakout and Breakdown Alerts: Receive instant alerts for both breakout (above premarket high) and breakdown (below premarket low) conditions.
Plot Premarket Levels: The premarket high and low levels are plotted on the chart for easy reference.
How to Use:
Add this indicator to your chart.
Go to the indicator settings and input your desired stock tickers (e.g., AAPL, TSLA, MSFT).
The indicator will automatically track the premarket levels and send alerts when those levels are broken.
Customize the tickers daily if needed.
Ideal For:
Day Traders who want to track premarket movements.
Swing Traders looking for strong breakouts from premarket levels.
Scalpers who need quick alerts to catch price action early.
Kelly Weight with Custom Win RateFor Tony outlining Kelly Weight formula lllllllllllllllllllllllllllllllllll
Pathfinder Strength IndexPathfinder Enhanced RSI Indicator.
Levels are 70 = Overbought, 30 = Oversold and 50 = Midline
When in an uptrend price will pull back below the 50 and then continue upward.
When in a downtrend price will pull back above the 50 and continue Downward.
In consolidation price will stitch the 50.
Full education and trading community available at www.skool.com
Intraday High Engulf LineThis is the follow up indicator. Previous indicator is intraday low engulf line.
Intraday Low Engulf Line This indicator currently work on Future product as it track the intraday low for the daily session from 6pm to 5pm EST. You may have to manually adjust the code if there is a time difference, or day light saving.
This indicator will track all new intraday low through out the session. Once a new intraday low is made, the indicator will display the high of that candle as an engulf target.
If the next candle making a intraday low, this engulf target will be updated. Until there is no more intraday low is made, we will see a engulf target line which is the high of the candle that make the most recent intraday low.
If there is any candle body is below the intraday low engulf life, you can expect to place a buy stop order to trade the bullish reversal.
You may want to use 5m or 15m, or 30M timeframe to reduce the noise of this indicator.
Your stop loss will be set at the intraday low. Therefore a higher time frame 5m is better for entry, however 1m timeframe will give you the best reward.
The idea is that Indraday low engulf line can be a target for bullish reversal or a bullish retest.
Another way to use this this intraday low engulf line is to treat it as a support. If the support break, the trend can be bearish too.
You have to develop your own price action strategy how to trade this.
I will also add an intraday High engulf indicator later.
Air Gap MTF with alert settingsWhat it shows:
This indicator will show a horizontal line at a price where each EMAs are on on different time frames, which will remove the effort of having to flick through different time frames or look at different chart.
The lines itself will move in real time as price moves and therefore as the EMA values changes so no need to manually adjustment the lines.
How to use it:
The price gap between each of the lines are known as "air gaps", which are essentially zones price can move with less resistance. Therefore bigger the airgap there is more likely more movement in price.
In other words, where lines are can be a resistance (or support) and can expect price stagnation or rejection.
On the chart it is clear to see lines are acting as resistances/supports.
Key settings:
The time frame are fixed to: 30min, 1hr and 4hr. This cannot be changed as of now.
EMA values for each time frame are user changeable in the settings, and up to 4 different values can be chosen for each time frame. Default is 5,12,34 and 50 for each timeframe.
Line colour, thickness and style can be user adjusted. Start point for where line will be drawn can be changed in the settings, either: start of day, user defined start or across the chart. In case of user defined scenario user can input a number that specifies a offset from current candle.
Label colour, font, alignment, text size and text itself can be user adjusted in the settings. Price can be also displayed if user chooses to do so. Position of label (offset from current candle) is user specified and can be adjusted by the user.
Both the lines and labels can be turned off (both and individually), for each lines.
Alert Settings:
Manually, user can set alerts for when price crosses a specific line.
This can be done by:
right click on any of line
choose first option (add alert on...)
On the second option under condition, use the dropdown menu to choose the desired EMA/timeframe to set alert for.
Hit "create" at bottom right of option
----------------------------------------------------------------------
If anything is not clear please let me know!
Advanced Trading SuiteIndicator combines UT Bot with a trend bar. Also,it has a SuperTrend and Combined Round Numbers.
ICT Gold Trading ToolFirst, I recall the original code had elements like Break of Structure, Fair Value Gaps, Premium/Discount Zones, Liquidity Pools, and Buy/Sell signals. The user had previous feedback pointing out issues in the code, like incorrect timeframe usage for BOS and FVG inaccuracies. They also suggested improvements, which were incorporated into a revised version.
So, the brief note should highlight the main components of the tool without getting too technical. The user probably wants this for a quick overview, maybe to share with others or for their own reference. They might be a trader familiar with ICT concepts, so using terms like BOS or FVG is okay without explaining each one.
I need to mention that the tool combines multiple ICT strategies into one indicator. It uses higher timeframes for BOS, which is important for structure. FVG detection was corrected in the revised code, so I should note that it identifies 3-candle patterns. The zones and liquidity pools help in identifying market extremes and areas where price might reverse. The buy/sell signals are based on a combination of BOS and zones, which adds confluence.
Also, the user might appreciate knowing that the tool is customizable with inputs for periods, making it adaptable to different trading styles. Emphasizing that it's for visual assistance and not standalone signals is crucial to remind users to use additional analysis.
Volume Delta with EMAVolume Delta with EMA
Volume Delta indicator with an ema on top that you could use as alert for rotation plays!
Support Resistance + TrendlinesMeet your new training wheels for mastering trend lines, support, and resistance. The combination of these elements is a simple yet powerful tool.
Using pivot points this indicator automatically plots trend lines, giving you a real-time visual of market structure. Red (short) and green (long) triangles are plotted at trend line breaks. These areas can be used as points of entry on a break and retest.
Using the same pivot points, the indicator will plot key levels, highlighting areas where price has historically reacted. More recent levels are more heavily weighted. These levels are imperative in establishing an exit strategy from your entry on a trend line break.
Using these two features together can also help you to avoid entering into areas of reversal. If a trend line is broken near a key level, this may be an indication to pause on entering a position until the level is also broken.
Make sure to take advantage of the alert features for breaks of support, resistance and trend lines.
Credit:
© LonesomeTheBlue - S/R Indicator Features
© QuantVue Team - Trend Line Features
Volume Profile / V.2.5 Volume Profile v.2.5 – Updated Description
The Volume Profile v.2.5 is an advanced volume analysis tool that visualizes the distribution of trading volume at different price levels over a specific period. This upgraded version enhances the identification of high-liquidity zones (POC, HVN, LVN) and improves the detection of key supply and demand imbalances.
Multi-Index ATM Straddle with Bollinger BandsAtm straddle with bollinger band & volume weightage moving average