在脚本中搜索"daily"
Daily Stop calculatorCalculates STOP LOSS points calculated by daily ATR.
Red line is for short direction.
Green line is for Long direction
Daily Auto Fibonacci ToolCalculates Fibonacci retracements based on daily highs/lows, and further beyond that if specified. The main difference between this and other auto Fibbing tools is ease of visibility.
Options:
Take highs/lows from a few days back or take highs/lows from each daily candle
Hide retracements before today
Show labels for each retracement level
Hide/Show retracement levels
Change colors quickly and uniformly (in script)
Retracements used:
-0.382 / 0 / 0.236 / 0.382 / 0.5 / 0.618 / 0.786 / 1 / 1.272
Daily Moving Averages (EMA)Adds Four configurable Daily Exponential Averages to a chart. Daily MA are generally good sources of support and resistance, and being able to see them in shorter timeframes can be useful
Daily ATR LinesThis script plots the daily Average True Range lines low and high for each day. Even when using a lower interval it will continue to plot daily lines.
Some traders find this helpful for day trading and consider these as Support and Resistance. For me I use it to see the reasonable move within a day so I can sell options against, I don't necesarily consider them S/R.
For more information on ATR click here.
www.investopedia.com
Daily, Hourly and 5 min EMA (13)Simple 13 day EMA of daily, hourly and 5 min on a single indicator chart.
Red = Daily
Green = Hourly
Blue = 5 min
Daily Deviations Version 3Version 3 of Daily Deviations
Combines Lazy and Self Input version
HOW TO USE:
Select volatility index related to ticker. (Ex. Using SPY? Select VIX. Using QQQ? Select VXN. etc)
OR
Uncheck other volatility options and select "Use Custom Volatility" and input your own volatility.
Default setting is to use the previous close price as the "0 Level".
OR
Uncheck "Use Close Price" to enable a synthetic settlement price that is made by using the average of the daily open and close.
OR
Uncheck "Use Close Price" and select "Use Custom Settlement" and input your own settlement price.
Mess around and find the settings that you like the most.
Credits to /u/Living_Granger and /u/UberBotMan for the formulas and idea.
Pivots Daily Weekly Monthly YearlyDaily, Weekly, Monthly and yearly pivot lines
Just the pivot lines without the support and resistance lines
Daily ATR%If You are using a percentage of the Daily Average True Range in determining your stop placement,
this quick indicator is for You.
excerpt from investopedia.com/articles/trading/06/stopplacement.asp
ATR % Stop Method
The ATR% stop method can be used by any type of trader because the width of the stop is determined by the percentage of average true range (ATR). ATR is a measure of volatility over a specified period of time. The most common length is 14, which is also a common length for oscillators such as the relative strength index (RSI) and stochastics. A higher ATR indicates a more volatile market, while a lower ATR indicates a less volatile market. By using a certain percentage of ATR, you ensure that your stop is dynamic and changes appropriately with market conditions.
For example, for the first four months of 2006, the GBP/USD average daily range was around 110 to 140 pips. A day trader may want to use a 10% ATR stop - meaning that the stop is placed 10% x ATR pips from the entry price.In this instance, the stop would be anywhere from 11 to 14 pips from your entry price. A swing trader might use 50% or 100% of ATR as a stop. In May and June of 2006, daily ATR was anywhere from 150 to 180 pips. As such, the day trader with the 10% stop would have stops from entry of 15 to 18 pips while the swing trader with 50% stops would have stops of 75 to 90 pips from entry.
DMI with ADX Weekly > Daily & Rising AlertWe sincerely apologise, but this script is currently undergoing testing and is unavailable for use.
This script features functionality to notify when both the weekly and daily DMI charts are trending upwards.
DC History & Daily Cross CountOkay, here is a technical document for the Pine Script indicator we developed. This can be used as a guide or description when publishing the script on TradingView or elsewhere.
Technical Document: SMA Cross Signals & Static DC History (Death Cross)
Version: 1.0
Date: April 14, 2025
Indicator Name: Specific Static DC History + Live Signals
Pine Script Version: 5
1. Overview
This TradingView indicator is designed to provide traders with visual signals for Simple Moving Average (SMA) crossovers, specifically focusing on the "Death Cross", while also presenting relevant historical context via a static data table and a real-time daily cross counter.
It combines several features:
Plotting of a fast and a slow Simple Moving Average (SMA).
Visual identification and marking of "Death Cross" events (Fast SMA crossing below Slow SMA) directly on the price chart.
A customizable table displaying static, pre-defined historical performance data of the S&P 500 following specific Death Crosses that occurred between 2016 and 2022.
An optional label that counts the total number of SMA crosses (both Golden Crosses and Death Crosses) occurring during the current trading day/session, including extended hours if enabled by the user on their chart.
2. Features
Customizable SMA Lengths: User-defined periods for both the Fast (default 50) and Slow (default 200) SMAs.
Death Cross Signals: Clear visual markers (red triangles above the bar and optional background shading) when the Fast SMA closes below the Slow SMA.
Optional SMA Plotting: Ability to show or hide the SMA lines themselves.
Static Historical Performance Table: Displays fixed historical return data (1 Week, 1 Month, 3 Months, 6 Months, 1 Year) following specific S&P 500 Death Crosses that occurred on 1/11/2016, 12/7/2018, 3/30/2020, and 3/14/2022. Note: This data is static and does not change based on the current chart.
Customizable Table Position: User can select the on-screen corner for the data table.
Daily SMA Cross Counter: Optionally displays a label showing the cumulative number of times the Fast SMA has crossed above (Golden Cross) or below (Death Cross) the Slow SMA during the current trading day/session.
Extended Hours Compatibility: The Daily Cross Counter includes crosses from pre-market and after-hours sessions if the user has "Extended Trading Hours" enabled on their TradingView chart settings.
3. Technical Explanation
SMA Calculation: The script uses the built-in ta.sma(source, length) function, calculating the Simple Moving Average based on the close price of each bar for the user-defined fastLen and slowLen.
Death Cross Detection: A Death Cross is detected using ta.crossunder(fastMA, slowMA). This function returns true on the first bar where the value of fastMA is less than the value of slowMA, after previously being greater than or equal to it. The comparison is based on the calculated SMA values at the close of each bar.
Golden Cross Detection: Similarly, ta.crossover(fastMA, slowMA) is used to detect Golden Crosses for the daily counter.
Visual Signals: The plotshape() function draws a red triangle above the bar where deathCross is true. The bgcolor() function applies a transparent red background to the bar where deathCross is true.
Static Table Data: The historical performance data for the 4 specified dates (Jan 2016 - Mar 2022) is hardcoded into array variables within the script. This data was derived from a prior analysis (based on the initially provided image, source likely Dow Jones Market Data or similar) and is not calculated dynamically from the chart. The script iterates through these arrays and populates a table object on the last bar.
Daily Cross Counter:
A var int dailyCrossCount variable holds the count, ensuring persistence across bars within a day.
ta.change(time("D")) detects the start of a new daily session based on the chart's symbol and session settings. When true, the dailyCrossCount is reset to 0.
On each bar, if either deathCross or goldenCross is true, the dailyCrossCount is incremented.
A label object displays the dailyCrossCount and is updated on the last bar (barstate.islast).
Extended Hours Inclusion: The script inherently uses the data series provided by the chart. If the chart is configured to include Extended Trading Hours (ETH), the close prices used for SMA calculations will reflect ETH data, and crosses occurring during ETH will be detected and counted.
4. Settings (Inputs)
Show Static Data Table (2016-2022) (Checkbox): Toggles the visibility of the table containing the fixed historical performance data. (Default: On)
Table Position (Dropdown): Selects the corner or side of the chart where the static data table will be displayed. (Default: top_right)
Plot 50/200 SMAs (Checkbox): Toggles the visibility of the Fast and Slow SMA lines on the chart. (Default: On)
Fast MA Length (Integer Input): Sets the lookback period for the Fast Simple Moving Average. (Default: 50)
Slow MA Length (Integer Input): Sets the lookback period for the Slow Simple Moving Average. (Default: 200)
Show Daily Cross Count (Checkbox): Toggles the visibility of the label displaying the number of SMA crosses detected during the current day's session. (Default: On)
5. How to Use / Interpretation
Apply the indicator to your desired chart (e.g., SPY, QQQ, /ES).
Use the plotted SMA lines (if enabled) and the red triangle/background signals to identify potential trend changes indicated by Death Crosses based on your chosen MA lengths. Remember that these are lagging indicators.
Refer to the static data table for historical context only. It shows how the S&P 500 performed following specific Death Crosses between 2016 and 2022. This data is fixed and does not predict future performance.
Use the "Today's SMA Crosses" label (if enabled) to gauge the frequency of interaction between the chosen SMAs during the current session. A higher number might indicate choppier conditions or potential shifts on the chart's timeframe.
Important: For the Daily Cross Counter to reflect pre-market/after-hours activity, ensure "Extended Trading Hours" (ETH) is enabled in your TradingView chart settings.
Be aware that the number of crosses detected by the script (based on bar closes) may differ from visual interpretations of lines touching intraday, especially on lower timeframes.
6. Limitations
Static Table Data: The performance data in the table is fixed to the 4 provided historical instances (2016-2022) and is not calculated dynamically or updated. It serves only as a historical reference point.
Lagging Indicators: Moving Averages and their crosses are lagging indicators and may not signal trend changes precisely at tops or bottoms.
Cross Calculation: Crosses are based on the closing price of each bar. Intraday price movements briefly piercing an SMA may not register as a confirmed cross.
Daily Counter Definition: The definition of "Today" depends on the chart's session timing, which might not align perfectly with a calendar day.
Whipsaws: On lower timeframes or during volatile periods, MA crosses can generate frequent signals (whipsaws) which may be less reliable.
7. Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. Trading involves significant risk, and past performance (including the historical data presented in the table) is not indicative of future results. Always conduct your own thorough research and consult with a qualified financial advisor before making any trading decisions.
Maisbass-Custom Horizontal Price Lines with Labels v1.2Beta. I'm a noob at this.
This script will allow you to manually input price and create a horizontal line with text. It was created primarily for manually entering price of daily high and daily low over a two week period. However you do have the ability to edit the text plotted from the input tab, change color and style of horizontal lines, text size and position, etc. if you input price on the style tab, text won't be plotted, just the line. It's important if you want the text showing as well, you must use the input tab to do so. I plan on correcting this in the future.
Nick_OS RangesUNDERSTANDING THE SCRIPT:
TIMEFRAME RESOLUTION:
* You have the option to choose Daily , Weekly , or Monthly
LOOKBACK WINDOW:
* This number represents how far back you want the data to pull from
- Example: "250" would represent the past 250 Days, Weeks, or Months depending on what is selected in the Timeframe Resolution
RANGE 1 nth (Gray lines):
* This number represents the range of the nth biggest day, week, or month in the Lookback Window
- Example: "30" would represent the range of the 30th biggest day in the past 250 days. (If the Lookback Window is "250")
RANGE 2 nth (Blue lines):
* This number represents the range of the nth biggest day, week, or month in the Lookback Window
- Example: "10" would represent the range of the 10th biggest day in the past 250 days. (If the Lookback Window is "250")
RANGE 3 nth (Pink lines):
* This number represents the range of the nth biggest day, week, or month in the Lookback Window
- Example: "3" would represent the range of the 3rd biggest day in the past 250 days. (If the Lookback Window is "250")
YELLOW LINES:
* The yellow lines are the average percentage move of the inputted number in the Lookback Window
SUGGESTED INPUTS:
FOR DAILY:
Lookback Window: 250
Range 1 nth: 30
Range 2 nth: 10
Range 3 nth: 3
FOR WEEKLY:
Lookback Window: 50
Range 1 nth: 10
Range 2 nth: 5
Range 3 nth: 2
FOR MONTHLY:
Lookback Window: 12
Range 1 nth: 3
Range 2 nth: 2
Range 3 nth: 1
TIMEFRAMES TO USE (If You Have TradingView Premium):
Daily: 5 minute timeframe and higher (15 minute timeframe and higher for Futures)
Weekly: 15 minute timeframe and higher
Monthly: Daily timeframe and higher (Monthly still has issues)
TIMEFRAMES TO USE (If You DO NOT Have TradingView Premium):
Daily: 15 minute timeframe and higher
Weekly: 30 minute timeframe and higher
Monthly: Daily timeframe and higher (Monthly still has issues)
IMPORTANT RELATED NOTE:
If you decide to use a higher Lookback Window, the ranges might be off and the timeframes listed above might not apply
ISSUES THAT MIGHT BE RESOLVED IN THE FUTURE
1. If it is a shortened week (No Monday or Friday), then the Weekly Ranges will show the same ranges as last week
2. Monthly ranges will change based on any timeframe used
Lepelle's Key LevelsCredit to original code goes to paaax and NSDT. Modified to include premarket H/L levels and to show only daily levels. Indicator includes Close levels.
-US Premarket High and Low Levels
-Daily OHL Levels (No close included)
-Yesterday and Previous day OHLC level
-Labels and ability to modify user preferences (color, line)
SVP + candle + Max volume [midst]
SVP + DALY CANDLE + MAX VOLUME
A comprehensive trading indicator that combines Session Volume Profile (SVP), Higher Timeframe (HTF) Candles, and Intrabar Max Volume Price Detection into one powerful tool. Perfect for traders who want to understand price action, volume distribution, and key levels all in one place.
KEY FEATURES
Session Volume Profile
• Real-time volume distribution across price levels for the current session
• Point of Control (POC) - identifies the price with the highest traded volume
• Value Area High (VAH) & Low (VAL) - shows where 70% of the volume occurred (customizable percentage)
• Color-coded volume bars - distinguish between up volume (bullish) and down volume (bearish)
• Value area highlighting - clearly see the most important price zones
Higher Timeframe Candle Display
• Visual daily (or custom timeframe) candle overlaid on your current chart
• OHLC labels - see Open, High, Low, and Close prices clearly marked
• Fully customizable colors - separate colors for bullish/bearish bodies, borders, and wicks
• Adjustable positioning - move the candle and labels to your preferred location
Max Volume Price Detection
• Identifies the exact price level with maximum volume within each bar
• Uses Lower Timeframe (LTF) data for precise volume analysis (Premium+ required)
• Simple mode fallback - works on all TradingView plans
• Previous max volume marker - displays previous bar's max volume as a reference dot
• Real-time calculation - updates as each bar forms
ATR Table
• Dynamic ATR-based stop levels - automatically calculates potential stop-loss levels
• Multiple smoothing methods - RMA, SMA, EMA, WMA
• Customizable multiplier - adjust for your risk tolerance
• Clean table display - shows ATR value, high stop, and low stop
PERFECT FOR
Day traders analyzing intrabar volume distribution
Swing traders wanting HTF context on lower timeframes
Volume profile traders looking for key support/resistance levels
Price action traders seeking high-probability entry zones
HOW TO USE
Volume Profile Analysis
POC often acts as a magnet for price. VAH/VAL are key support/resistance levels. High volume nodes indicate strong price acceptance, while low volume nodes suggest potential breakout zones.
HTF Candle Context
See daily range while trading on 5m-1h charts. Daily open often acts as pivot point. Daily high/low are key levels to watch.
Max Volume Price
Black line shows where most volume traded in each bar. Previous max volume (dot) helps identify institutional activity. Clusters of max volume create strong support/resistance. Can possibly indicate a Wick bounce
ATR Stops
Use ATR-based levels for logical stop placement. Adjust multiplier based on market volatility.
SETTINGS & CUSTOMIZATION
Positioning
Control the global offset to move both candle and profile together. Fine-tune with individual offsets for candle and profile spacing.
Volume Profile
Adjustable number of rows (50-500) for granular or simplified view. Customizable width and placement (left/right). Value Area percentage control. Full color customization for all volume components.
HTF Candle
Any timeframe selection (default: Daily). Full color customization for bull/bear candles. Adjustable candle width. Toggle OHLC labels on/off. Control label distance and line widths.
Max Volume Price
Choose between Simple (all plans) or LTF mode (Premium+). Auto or manual LTF resolution. Custom color and line width. Toggle current and previous markers independently.
TECHNICAL NOTES
Maximum 5000 bars lookback for volume calculations
Works on all timeframes
LTF max volume requires TradingView Premium or higher
Optimized for performance with efficient array operations
For best results, use on liquid instruments with reliable volume data
Most effective on intraday charts (5min-1hour) for day trading and scalping strategies
For Entertainment and information only
Created by midst






















