Historical & Periodic Key LevelsHistorical & Periodic Key Levels
This indicator automatically plots historical key levels (ATH/ATL) and periodic closing levels (Daily, Weekly, Monthly, Yearly). It highlights major price zones frequently used in technical and institutional trading.
Key Features:
Dynamic ATH/ATL: tracks all-time high/low with date annotation.
Periodic Closes: previous D/W/M/Y closes with directional coloring.
Adaptive Colors: green/red based on bullish or bearish close.
Full Customization: toggle visibility, colors, line width, text alignment, and label text.
Smart Label Management: prevents overlap by cycling through label styles automatically.
Usage:
Identify strong support/resistance levels.
Monitor key closing prices across multiple timeframes.
Enhance swing trading and long-term analysis with institutional reference levels.
Inputs:
Levels Visibility: show/hide ATH, ATL, and periodic closes.
ATH/ATL Style Settings: line colors, label prefix, width, and text alignment.
Periodic Levels Style: label text (D/W/M/Y), line width, alignment, and bullish/bearish colors.
Notes:
Levels adjust automatically to the active chart timeframe.
Lower timeframe levels are hidden when redundant (e.g., daily close on daily chart).
Week
Previous Day/Week High, Low, Midpoint LinesI put together this script as I couldn’t find exactly what I was looking for on Tradingview.
The script plots the previous day and week high and low as well as the midpoint of the range between the daily and weekly high and low. These lines stop printing once a price candle crosses the lines.
This may be of use to you. Enjoy!
JL - DWM OHLCThis indicator plots the following price levels on your chart automatically AND will not show up if you are using a timeframe bigger than 60 minutes, 1 day, or 1 week.
Here are the price levels that are automatically plotted for you, and so you know the styling is different for Daily, Weekly, Monthly levels so you can easily distinguish between them:
- Prior Day: High / Low / Close
- Current Day: Open
- Prior Week: High / Low / Close
- Current Week: Open
- Prior Month: High / Low / Close
- Current Month: Open
These plots are timeframe dependent and will not plot on subsequently higher timeframes, here is how they work:
Daily Price Levels are only shown on timeframes that are smaller than 60 minutes.
Weekly Price Levels are only shown on timeframes smaller than 1 Day.
Monthly Price Levels are only shown on timeframes smaller than 1 Week.
This way, you can turn on the indicator and not have to think about turning off certain price levels if you switch to a larger / longer timeframe than what you typically use.
For example, Daily OHLC price levels will quickly clutter the 60 minute chart, and likely you don't need to know the HLC of the Prior Day if you are looking at the 60 minute chart. Therefor it may be helpful to automatically hide the Daily price level plots, and only show the Weekly and Monthly plots on the 60 minute timeframe.
I hope you find this indicator helpful, thanks for reading.
Weekly Stacked Daily Changes [LuxAlgo]The Weekly Stacked Daily Changes tool allows traders to compare daily net price changes for each day of the week, stacked by week. It provides a very convenient way to compare daily and weekly volatility at the same time.
🔶 USAGE
The tool requires no configuration and works perfectly out of the box, displaying the net price change for each day of the week as stacked boxes of the appropriate size.
Traders can adjust the width of the columns and the spacing between days and weeks, options to change the color and disable the months and new month lines are also available.
🔹 Bottom Stack Bias
This feature allows traders to compare weekly volatility in two different ways.
With this feature disabled, all weeks use zero as the bottom of the stack, so traders can see at a glance weeks with more volatility and weeks with less volatility.
Enabling this feature will cause the tool to display the stacks with the weekly net price change as the bottom, so if a stack starts below the zero line it means that week has a negative net return, and if it starts above the zero line it means that week has a positive net return.
🔶 SETTINGS
Width: Select the fixed width for each column.
Offset: Choose the fixed width between each column.
Spacing: Select the distance between each day within each column.
🔹 Style
Bottom Stack Bias: Use weekly net price change as the bottom of the stack.
Bullish Change: Color for days with positive net price change
Bearish Change: Color for days with negative net price change
Show Months: Under each week stack, display the month
Show Months Delimiter: Display a line indicating the start of a new month
Abdozo - Highlight First DaysAbdozo - Highlight First Days Indicator
This Pine Script indicator helps traders easily identify key timeframes by highlighting the first trading day of the week and the first day of the month. It provides visual markers directly on your chart, helping you stay aware of potential market trends and turning points.
Features:
- Highlight First Day of the Week (Monday): Automatically marks Mondays to help you track weekly market cycles.
- Highlight First Day of the Month: Spot the start of each month with ease to analyze monthly performance and trends.
Weekly Profiles [TFO]This Weekly Profiles indicator was built to overlay historical data to show how prior weeks of price action have unfolded under specified input conditions.
When "Show Historical Weekly Profiles" is enabled, the indicator draws out how prior weeks have traded. This is done by tracking weekly price movements, measuring the percent change from each week's respective weekly open price, and translating that percent change to the current week's open price to visually describe how price fluctuated in those previous weeks.
With "Show Weekly Profile Table" enabled, we can observe some basic statistics on the weekly profiles that have been collected, such as the average range and which days have made the high/low of the week from the given dataset.
There are also options to refine the dataset by specifying which days have made the high/low of the week, which will only show profiles that meet said criteria. For instance, by enabling "Low of Week" and selecting "Monday", the indicator will show every weekly profile that made its low on a Monday. In the following chart, we can again use the table to observe that we currently have 14 such weeks on NQ1! (from the data available on our current chart timeframe and TradingView plan), whose average range is 3.65% from the week's low to the week's high, and from those 14 weeks, the high of the week was made on a Friday 10 times or 71% of the time.
The "Profile Resolution" option specifies the interval at which to show changes in price (given that it is greater than or equal to the current chart timeframe). In the below chart, the Profile Resolution is set to 4 hours. As such, it simplifies the profiles by tracking the close price of each 4 hour candle (again as a percent change from each profile's respective open price). The larger Profile Resolution can make it easier to observe commonalities between profiles, such as the below chart of NQ1! that highlights a noticeable price decrease during the New York morning session across several of the available weekly profiles.
There is also an option to "Highlight Closest Profiles" which does exactly that. Essentially, all weekly profiles are given a score according to how close the current week's price action is matching each profile up until the current point in time. For example, if one were observing this indicator on a Wednesday afternoon, each profile would be scored according to how close price is to each profile, starting from the weekly open, up until the Wednesday afternoon of each profile. Everything after that point in time is disregarded since it hasn't happened yet and can't be measured. With this in mind, profiles with greater similarity to the current week are highlighted with deeper colors, and profiles with lesser similarity are given lighter, more transparent colors.
The "Randomize Colors" option will use various colors for the weekly profiles for easier visual differentiation (especially where there are several profiles crowding each other), as opposed to otherwise having one color for all profiles. Lastly, there are basic styling options to control the table position, table size, and the line width of all weekly profiles.
Previous Day and Week RangesI've designed the "Previous Day and Week Ranges" indicator to enhance your trading strategy by clearly displaying daily and weekly price levels. This tool shows Open-Close and High-Low ranges for both daily and weekly timeframes directly on your trading chart.
Key Features :
Potential Support and Resistance: The indicator highlights previous day and week ranges that may serve as key support or resistance levels in subsequent trading sessions.
Customizable Display Options: Offers the flexibility to show or hide daily and weekly ranges based on your trading needs.
Color Customization: Adjust the color settings to differentiate between upward and downward movements, enhancing visual clarity and chart readability.
This indicator is ideal for traders aiming to understand market dynamics better, offering insights into potential pivot points and zones of price stability or volatility.
Trend Alignment Pro [LevelUp]Trend Alignment Pro™ is designed for traders who focus on trading with the trend. This indicator automates key aspects of fundamental and technical analysis to identify and highlight chart patterns and signals, drawing on the proven techniques of legendary trend-following traders such as William O'Neil, Jesse Livermore, and Stan Weinstein.
The indicator name, Trend Alignment , emphasizes the importance of confirming price action, patterns, and signals across multiple timeframes. It provides both daily and weekly analysis to enable accurate and timely trend identification.
🔹—— Key Features ——🔹
Daily Timeframe
Moving Average Alignment™
▪ Highlight trends based on moving averages and price action.
▪ Specify price in relation to moving averages (e.g. close above).
▪ Specify which moving averages are required to be in an uptrend.
▪ Specify moving average stacking requirements (e.g. fast above slow).
▪ Require active Power Trend (optional).
▪ Set stop-loss and requirements to end Moving Average Alignment.
Power Trend Tools and Analysis
▪ Highlight Power Trends with box or symbols at start/end points.
▪ Auto-tracking of key metrics towards a new Power Trend.
Custom Moving Averages
▪ Specify type (EMA/SMA), length and color.
▪ View 10-week SMA on daily chart.
Stats Table
▪ Comprehensive daily price and percent change stats.
Signals Table
▪ Track important trend signals with clear visuals.
Power Earnings Gap (PEG) Detection
▪ Auto-detect and highlight Power Earnings Gaps.
▪ Customize requirements, such as gap-up percent and earnings surprise.
Weekly Timeframe
Custom Moving Averages
▪ Specify type (EMA/SMA), length and color.
Tight Weeks and Up Weeks
▪ Specify weekly and percent change requirements.
Stats Table
▪ Comprehensive weekly price and percent change stats.
Daily & Weekly Timeframes
Flat Base & Consolidation
▪ Automated detection with defaults based on the active timeframe.
Custom Relative Strength Line
▪ Specify index and lookback range.
▪ Symbols plotted on RS Line indicating new high and new high before price.
▪ Two custom moving averages for daily & weekly timeframes.
Anchored VWAP (AVWAP)
▪ Multiple anchor options: year-to-date, year-to-date low/high.
Pullbacks
▪ Set key requirements and minimum number of bars.
52-Week and All-Time Highs
▪ Bullish indicators indicating outperformance.
Marked Highs & Lows
▪ Identify potential areas of support/resistance.
🔹—— Daily Chart Examples ——🔹
Daily charts are ideal for analyzing short to intermediate term trends and spotting actionable setups as they develop.
🔹—— Weekly Chart Example ——🔹
Weekly charts are helpful for identifying longer-term trends and patterns.
🔹—— Moving Average Alignment (Daily) ——🔹
Moving Average Alignment™ (MAA) is a trend-identification tool that uses moving averages, price action and their relationships to one another to detect momentum and upward trends. MAA offers extensive customization, including the following:
▪ Moving average types (EMA/SMA) and length.
▪ Which moving averages are required to be in an uptrend.
▪ Requirements on the order of moving averages (e.g. fast above slow).
▪ Optional requirement that the stock be in a Power Trend.
▪ Set stop-loss and requirements to signal the end of the MAA.
MAA delivers clear visual confirmation of trend strength and helps identify both the start and potential end of an uptrend.
🔹—— Power Trend (Daily) ——🔹
The concept of a Power Trend was created by Mike Webster, Justin Nielsen and Charles Harris while working with William O’Neil, founder of Investor's Business Daily and creator of the CANSLIM methodology. When a Power Trend is active, there is a stronger than usual uptrend underway.
A Power Trend by definition uses a major index, such as the Nasdaq Composite (IXIC), as the data source for determining a Power Trend's state. The Trend Alignment indicator builds upon this concept by enabling the current chart symbol to be the data source for the Power Trend, thus offering traders a unique and quantifiable signal when a stock is in a strong uptrend.
What Starts A Power Trend
▪ Low is above the 21-EMA for at least 10 days.
▪ 21-EMA is above the 50-SMA for at least five days.
▪ 50-SMA is in an uptrend.
▪ Close up for the day.
What Ends A Power Trend
▪ 21-EMA crosses under 50-SMA and the close is below prior day close.
▪ Close below the 50-SMA and low is 10% below recent high.
One unique feature of the Trend Alignment indicator is that you can track the progress towards a new Power Trend beginning. See the chart below for more details.
🔹—— Power Earnings Gap (Daily) ——🔹
A Power Earnings Gap refers to a stock experiencing a significant price gap-up, on high volume, following an earnings report. This typically occurs when the stock opens at least 5-10% (or more) above the prior day's close, forming a gap-up bar on the chart that signals strong retail and/or institutional buying and the start or continuation of a major uptrend. It's a bullish pattern seen in leading growth stocks that often continue to outperform.
There are extensive customization options including required gap-up percent, minimum volume change over the average volume and preferred earnings surprise requirements.
🔹—— Relative Strength Line ▪ RS Line (Daily & Weekly) ——🔹
The Relative Strength Line (RS Line), another concept popularized by William O’Neil, is a technical indicator used in stock analysis to measure a stock's performance relative to a benchmark index, such as the S&P 500. An upward-trending RS Line indicates the stock is outperforming the market, while a downward trend shows underperformance. This helps identify potential leaders or laggards regardless of market conditions.
RS Line New High
When the RS Line reaches a new high, this signals that the stock's relative strength against the benchmark is at its highest point over the current lookback range — clear evidence of market leadership.
RS Line New High Before Price
When the RS Line hits a new high ahead of the stock's price reaching a new high, this can be a leading indicator of impending price strength, as it shows the stock gaining momentum relative to the market before that strength is reflected in its price. This signal shows early outperformance and potential market leadership, often preceding a breakout or trend continuation.
New High and New High Before Price Symbols
Easily spot RS Line new highs and new highs before price; a small circle on the RS Line indicates new highs and a small square highlights new high before price.
Highlight Breaks of Moving Averages
There are two custom moving averages of the RS Line that can be configured. Looking for breaks above or below these moving averages can be helpful to effectively manage positions, such as scaling out of a trade systematically.
🔹—— Tight Weeks and Up Weeks (Weekly) ——🔹
In William O'Neil's CANSLIM methodology, tight weekly closes and up weeks are key technical indicators used to evaluate stock chart patterns and identify potential buying opportunities. Tight and up weeks may indicate institutional accumulation and price strength.
Tight closes on a weekly timeframe refer to consecutive weeks where closing prices stay within a narrow 1-1.5% range of the prior week's close, often with declining volume. This signals buyer control and accumulation, making it a bullish indicator, particularly in patterns like three-weeks-tight after an initial breakout.
When a stock closes higher than the prior week, this signals positive momentum. Multiple up weeks often indicate sustained buying and may help to spotlight emerging leaders. Increased volume on up weeks show institutional support and increase the potential for a breakout.
🔹—— Automated Anchored VWAP ▪ AVWAP (Daily & Weekly) ——🔹
Based on the work of Brian Shannon, CMT, the anchored VWAP (AVWAP) shows the average price a stock has traded at, weighted by volume, starting from a specific point in time, the anchor. AVWAP can be helpful for trend confirmation and reversals, breakout and breakdown signals as well as risk management for placing stops.
The AVWAP works with any exchange around the globe, respecting trading days, hours and holidays. Use the AVWAP with the TradingView Replay feature for historical and post-mortem analysis.
🔹—— Marked Highs and Lows (Daily & Weekly) ——🔹
Pivot highs and pivot lows are core principles in technical analysis for identifying potential turning points, support/resistance, and trends. Shown on the chart as either price or a triangle symbol, these visual cues help to quickly spot significant price levels.
Pivots highlight historical turning points in price, serving as reliable zones for potential bounces or breakouts. They can also help determine overall market direction, for example, higher highs and higher lows in uptrends. Pivots also represent where demand overwhelms supply or vice versa.
🔹—— Price Stats and Signals Tables (Daily & Weekly) ——🔹
Comprehensive daily and weekly price stats. Daily charts also includes real-time signals to monitor the trend as well as quarterly earnings and sales data.
🔹—— Custom Alerts ——🔹
The Trend Alignment indicator supports custom alerts:
▪ Moving Average Alignment started.
▪ Moving Average Alignment ended.
▪ Power Trend started.
▪ Power Trend ended.
▪ Power Earnings Gap started.
🔹—— Best Practices ——🔹
▪ Look for confirmation of an uptrend on multiple timeframes.
▪ Use multiple signals and/or patterns for confirmation of the trend.
▪ Relative strength is key to find stocks outperforming the market.
▪ Focus on companies with earnings and sales acceleration.
▪ Avoid chasing extended stocks.
▪ Always define risk before entering a trade — know where you’ll exit.
▪ Size positions based on volatility and conviction, not emotion.
▪ Be patient — trends take time to develop.
有料スクリプト
RD Key Levels (Weekly, Daily, Previous vWAP)The RexDog Key Levels indicator plots the weekly open, daily open, and the previous day vWAP close.
These are all critical price levels (zones) to know when trading any market or instrument. These areas are also high probability reaction areas that you can trade using simple confirmation trading patterns.
First, I'll cover an overview of the indicator then I'll share general usage tips.
Weekly Open - default is white/orange. White is when price is above the weekly open. Orange is when price is below the weekly open.
Weekly High/Low - there are options to turn on the weekly high and lows. Default plot is circles. Green is the high. Red is the low.
Daily Open - default is green/red. Green is when price is above the daily open. Red is when price is below the daily open.
Previous vWAPs - aqua single lines. These are the closing price of the daily vWAPs.
Top Indicators - The triangles at the top of the chart signify is price is currently above or below the weekly open. This is helpful on lower timeframe charts (5m, 15m) to get a quick indication when price is far extended beyond the weekly open. Green triangle = above weekly open. Red triangle = below weekly open.
General Usage
Each one of these levels are important levels markets look use for continuation or failure of momentum and bias. I also find it extremely helpful to think of these levels as magnets, dual magnets. They both attract and repel price at the same time. Now you might say, how is that helpful to have opposing views at the same time? Be indifferent to direction, create your own rules on when these price zones repel or attract price, I have my own.
Here's the easiest way to use these price levels.
As price approaches one of these levels to expect a reaction. A reaction is price is going in one direction and price hits a price level zone and reacts in the opposite direction.
These are price zones, sometimes you will see a reaction right at the price but visualize these areas as zones of reaction.
A high percentage of the time when price approaches these level zones there will be a reaction. So trade the reaction .
How do you do that?
Simple. Trade patterns that repeat. I have 3 solid patterns I trade around these key levels:
The first pattern is early entry with precise scale in rules and a very effective protective stop loss placement.
The second pattern is wait for confirmation that the level holds. This requires more patience and for you to fully trust the chart. The benefit of this pattern is with confirmation you have even more precise stop placement.
There is a bonus third pattern I trade around these levels. I call this the confirmation and bluff entry. It's a combination of both of the patterns above. You wait for confirmation but on any pull back you call the bluff on the market and enter on key test. Trade management here is critical. In addition to the pattern you trade you should have a series of failure patterns that tell you to get out of the trade, I use 2 primary failure patterns.
I trade all markets, same system, same rules, so I'll show a few examples.
Usually I start with Bitcoin but let's start with equities:
BA - Boeing - 8 Trades
Here we see weekly low patterns, previous week low test, vwAP hold patterns, day magnets and day holding. Then 2 week failures and a double hold pattern.
These are all straightforward trades to execute following really simple patterns.
BTCUSD Previous vWAP and Day Open Trades
We see here on the circle areas both daily open and previous day vWAP zone tests. Within this chart are all 3 highly effective patterns I trade.
SPY - 7 High Probability Trades
Here we see a pDay vWAP mixed with a daily failure. Next a daily retest, then a pDay vWAP failure, then a vWAP capture and test. Then a double weekly failure test (great trade there) and finally a daily test.
I could provide more examples but most are just derivatives of the above examples.
Weekday Change & Volume Average TableHaving a reference point for comparing with current data has always been an important task in market analysis. This script tried to give a better understanding based on weekdays.
This script shows that in the current ticker, what is the average movement of the price (High-Low) and volume for each weekday. Depending on the market and the exchange it should be different.
The Interesting point is that, for example in BINANCE:BTCUSDT , on Saturday and Sunday, volume is about 30% less and the price movement is about 20% less.
The script can be used on any timeframe and any symbol, just remember that the data shown is based on the candles on the chart, so it is different also based on your tradingview's account since Historical bars available for Basic is 5K, Pro & Pro+ is 10K and Premium is 20K; And in lower timeframes it is calculating more recent data.
Moon Phases + Daily, Weekly, Monthly, Quarterly & Yearly Breaks█ Moon Phases
From LuxAlgo description.
Trading moon phases has become quite popular among traders, believing that there exists a relationship between moon phases and market movements.
This strategy is based on an estimate of moon phases with the possibility to use different methods to determine long/short positions based on moon phases.
Note that we assume moon phases are perfectly periodic with a cycle of 29.530588853 days (which is not realistically the case), as such there exists a difference between the detected moon phases by the strategy and the ones you would see. This difference becomes less important when using higher timeframes.
█ Daily, Weekly, Monthly, Quarterly & Yearly Breaks
This indicator marks the start of the selected periods with a vertical line that help with identifying cycles.
It allows to enable or disable independently the daily, weekly, monthly, quarterly and yearly session breaks.
This script is based on LuxAlgo and kaushi / icostan scripts.
Moon Phases Strategy
Year/Quarter/Month/Week/Day breaks
Month/week breaks
VWAP & Previous VWAP - MTF█ Volume Weighted Average Price & Previous Volume Weighted Average Price - Multi Timeframe
This script can display the daily, weekly, monthly, quarterly, yearly and rolling VWAP but also the previous ones.
█ Volume Weighted Average Price (VWAP)
The VWAP is a technical analysis tool used to measure the average price weighted by volume.
VWAP is typically used with intraday charts as a way to determine the general direction of intraday prices.
VWAP is similar to a moving average in that when price is above VWAP, prices are rising and when price is below VWAP, prices are falling.
VWAP is primarily used by technical analysts to identify market trends.
█ Rolling VWAP
The typical VWAP is designed to be used on intraday charts, as it resets at the beginning of the day.
Such VWAPs cannot be used on daily, weekly or monthly charts. Instead, this rolling VWAP uses a time period that automatically adjusts to the chart's timeframe.
You can thus use the rolling VWAP on any chart that includes volume information in its data feed.
Because the rolling VWAP uses a moving window, it does not exhibit the jumpiness of VWAP plots that reset.
For the version with standard deviation bands.
MTF VWAP & StDev Bands
ln(close/20 sma) adjusted for time (BTC)(This indicator was designed for the BTC index chart)
Designed for Bitcoin. Plots the log of the close/20W SMA with a linear offset m*t, where m is the gradient I've chosen and t is the candle index. Anything above 1 is a mania phase/market cycle top. If it peaks around 0.92 and rolls over, it could be a local/market cycle top.
This will obviously not work at all in the long term as Bitcoin will not continue following the trend line on the log plot (you can even see it start to deviate in the Jan-Feb 2021 peaks where the indicator went to 1.15).
It identifies the 2011, 2013 (both of them), 2017 tops as being just above 1. It also identifies the 2019 local peak and 2021 market cycle top at ~0.94.
Feel free to change the gradient or even add a function to curve the straight line eventually. I made this for fun, feel free to use it as you wish.
[TTI] All-time-high (ATH), (ATL), 52 week high and low Dots––––History & Credit
I wanted to show our community the idea that stocks that make All Time High are likely to continue making ATHs for some time. It goes contrary to the idea "buy cheap sell high". Actually, in the real market leaders the stocks that make 100+% return are just getting started on returns to few THOUSAND percent. I have used code from QuantNovad scrip in this one too. So thanks to him as well, since it speeded writing it from scratch!
–––––What it does
The script paints dots and shows stats.
The dots are 4 types:
🟢 = Every time a new ATH is achieved, a green dot paints above the bar
🟣 = Every time a new 52week High is achieved, a purple dot paints above the bar
🟡 = Every time a new ATL is achieved, a yellow dot paints below the bar
🟠 = Every time a new 52week Low is achieved, a orange dot paints below the bar
Stats =
Show in a box in the bottom right corner of the screen. How many times has this stock achieved:
👉 ATHs
👉 52WK High
👉 ATLs
👉 52WK LOW
–––––How to use it
This is really an illustrative script to get the idea of the methodology "buy high sell higher', that we teach as momentum traders.
Some notable examples to check are:
HOOD
MSFT
TSLA
AAPL
See the stock dynamics and understand that bottom fishing doesn't result in stocks making massive moves.
[TTI] Option expiration Lines––––History & Credit ––––––––––––––––––––––––––––––––––––––––––
While doing my yearly trade reviews, I wanted to see where I exited and entered compared to my position expiration (given I am an options trader).
–––––What it does ––––––––––––––––––––––––––––––––––––––––––
Input a date and the script will draw two vertical lines.
One the date you input and second 5 days back.
Additionally, it will highlight the 30day high and 30day low within those lines as a box.
–––––How to use it ––––––––––––––––––––––––––––––––––––––––––
You can use the script for trade reviews (as I have).
Additionally, you could set trading rules based on time. For example:
Do not hold trades past 2days to expiration
Or have tigher target and loss parameters for Opex week
52 Weeks High/Low WidgetSome time ago I published my "All-Time High/Low Widget". I was asked to build and 52w weeks version.
So finally it's ready. It works pretty much the same way but uses a time period only of 52weeks.
You can also change the number of weeks in the parameters.
You can plot the levels and display some stats when 52W high/low happened and how far away are we at this moment.
Also, you can create alerts to get notified on 52W levels breakouts.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
DAYOFWEEK performance1 -Objective
"What is the ''best'' day to trade .. Monday, Tuesday...."
This script aims to determine if there are different results depending on the day of the week.
The way it works is by dividing data by day of the week (Monday, Tuesday, Wednesday ... ) and perform calculations for each day of the week.
1 - Objective
2 - Features
3 - How to use (Examples)
4 - Inputs
5 - Limitations
6 - Notes
7 - Final Tooughs
2 - Features
AVG OPEN-CLOSE
Calculate de Percentage change from day open to close
Green % (O-C)
Percentage of days green (open to close)
Average Change
Absolute day change (O-C)
AVG PrevD. Close-Close
Percentage change from the previous day close to the day of the week close
(Example: Monday (C-C) = Friday Close to Monday close
Tuesday (C-C) = Monday C. to Tuesday C.
Green % (C1-C)
Percentage of days green (open to close)
AVG Volume
Day of the week Average Volume
Notes:
*Mon(Nº) - Nº = Number days is currently calculated
Example: Monday (12) calculation based on the last 12 Mondays. Note: Discrepancies in numbers example Monday (12) - Friday (11) depend on the initial/end date or the market was closed (Holidays).
3 - How to use (Examples)
For the following example, NASDAQ:AAPL from 1 Jan 21 to 1 Jul 21 the results are following.
The highest probability of a Close being higher than the Open is Monday with 52.17 % and the Lowest Tuesday with 38.46 %. Meaning that there's a higher chance (for NASDAQ:AAPL ) of closing at a higher value on Monday while the highest chance of closing is lower is Tuesday. With an average gain on Tuesday of 0.21%
Long - The best day to buy (long) at open (on average) is Monday with a 52.2% probability of closing higher
Short - The best day to sell (short) at open (on average) is Tuesday with a 38.5% probability of closing higher (better chance of closing lower)
Since the values change from ticker to ticker, there is a substantial change in the percentages and days of the week. For example let's compare the previous example ( NASDAQ:AAPL ) to NYSE:GM (same settings)
For the same period, there is a substantial difference where there is a 62.5% probability Friday to close higher than the open, while Tuesday there is only a 28% probability.
With an average gain of 0.59% on Friday and an average loss of -0.34%
Also, the size of the table (number of days ) depends if the ticker is traded or not on that day as an example COINBASE:BTCUSD
4 - Inputs
DATE RANGE
Initial Date - Date from which the script will start the calculation.
End Date - Date to which the script will calculate.
TABLE SETTINGS
Text Color - Color of the displayed text
Cell Color - Background color of table cells
Header Color - Color of the column and row names
Table Location - Change the position where the table is located.
Table Size - Changes text size and by consequence the size of the table
5 - LIMITATIONS
The code determines average values based on the stored data, therefore, the range (Initial data) is limited to the first bar time.
As a consequence the lower the timeframe the shorter the initial date can be and fewer weeks can be calculated. To warn about this limitation there's a warning text that appears in case the initial date exceeds the bar limit.
Example with initial date 1 Jan 2021 and end date 18 Jul 2021 in 5m and 10 m timeframe:
6 - Notes and Disclosers
The script can be moved around to a new pane if need. -> Object Tree > Right Click Script > Move To > New pane
The code has not been tested in higher subscriptions tiers that allow for more bars and as a consequence more data, but as far I can tell, it should work without problems and should be in fact better at lower timeframes since it allows more weeks.
The values displayed represent previous data and at no point is guaranteed future values
7 - Final Tooughs
This script was quite fun to work on since it analysis behavioral patterns (since from an abstract point a Tuesday is no different than a Thursday), but after analyzing multiple tickers there are some days that tend to close higher than the open.
PS: If you find any mistake ex: code/misspelling please comment.
First Week Trend [MX]I created this indicator based on one of my ways of analyzing the BTC trend in particular, I noticed that the break of the first weekly candle usually indicates the trend for the rest of the month.
This indicator has a bug in which if you change the timeframe of the indicator it will show erroneous values
If you use the candlestick chart, you will need to pull the visual order of this indicator to the top to overlay the colors of the standard candles, or simply hide the standard candles
the trend colors are bugged in timeframes other than the weekly
special thanks to @xdecow who helped me with the code
////////////////////////////////////////////////////////////////////////
Eu criei esse indicador baseado em uma das minhas formas de analisar a tendência do BTC em específico, eu notei que o rompimento do primeiro candle do semanal costuma indicar a tendência para o resto do mês.
Esse script tem um bug em que se mudar o timeframe do indicador ele irá mostrar valores errados
Se você usa o gráfico de candlesticks, você precisará puxar para o topo a ordem visual desse indicador para sobrepor as cores do candles padrões, ou simplesmente ocultar os candles padrões
as cores da tendencia estão bugados em outros timeframes diferentes do semanal
agradecimentos especiais ao @xdecow que me ajudou no código
IG|ꝏ - smartmoneyIndicator composed of a combination of the following indicators:
Weekends Background (off by default)
Forex Sessions (Asian, Europe, America) (off by default)
Fractals (default) (on by default)
Fractal SR (Support and Resistance) (off by default)
*There is a on and off setting to every indicator seperately
This is indicator was created to help forex students on back testing session movements and counter movements easier in order to perfect their strategies and identify session end and begginng.
The Fractal SR is nothing more than an extension line of the High and Low price of the candle highligthed by fractals with and arrow above or bellow representing easier Support and Resistance Lines to follow.
Outcome Reach - Days / Weeks Separator - 2ndWith the first indicator, this will help you see price action divided by days (black lines) and weeks (yellow lines). This is the second indictor out of a set of 3.
Do note this will not work as well on higher timeframes.
Outcome Reach - Days / Weeks Separator - 2ndWith the first Outcome Reach indicator, this will help you see price action divided by days (black lines) and weeks (yellow lines). This is the second indictor out of a set of 3.
Do note this will not work as well on higher timeframes.
Candle Crawler V1 [Moon]Candle Crawler is designed to crawl back through candle and bar data to retrieve specific values of interest.
The first implementation shows
Total bars or candles on any specific time frame or asset to the beginning of the chart. This can be used for backtesting or looking for specific assets / time frames that have a lot of backtest data.
- *usually* More backtest data = More accurate strategy implementation or live testing.
Crawls back and counts Red vs Green candles in a defined period (the max is 4999 total bars).
Use this to identify bearish or bullish trends and assets.
- *hint* if an asset through time is leaning heavily one way, a long-only or short-only strategy may be worth investigating.
Plots days of the week on each candle within it's specific day (turned off by default).
Default view of Total Candles + R/G (note if you want to turn off the labels go to the "Style" tab and just uncheck "Labels" at the bottom).
Works on any asset or timeframe including stocks and forex.
Easily filter days on or off to identify specific patterns or trends (check the "days of the week" box for ON|OFF) or head to the "style" tab to customize days or colors.
Most precise on the Daily (D) timeframe, but applicable on any.
If interested send me a DM.
Today High/Low Fibo LineDraw Fibonacci retracements using High/Low of the today
Draw Fibonacci retracements using High/Low of the week
A Fibonacci value of 0 will hide the line






















