Recherche dans les scripts pour "daily"
Daily Average True Range OverlayPlots the upper and lower average true range away from the previous days close on all time frames.
Daily Deviations (Lazy Edition)
Plots the standard deviation resistance/support lines.
Uses Previous days close and the VIX as the volatility factor.
credit to u/UberBotMan and u/Living_Granger for the idea and formulas
Daily Deviations (Self Input Version)
Plots the standard deviation resistance/support levels.
Input the previous settlement price and the implied volatility.
credit to u/UberBotMan and u/Living_Granger for the idea and formulas
(preview example is using settlement of 2420 and IV of 11)
Daily Returns & STDWhat happened last time when xx increased by xx%? - Start collecting some stats!
You can choose the ticker and the timeframe you're interested in
RSI Oversold/UndersoldThe study script will place GREEN BUY arrows BELOW oversold conditions and RED SHORT arrows ABOVE overbought conditions. You can configure the period
Most RSI(14) indicators use a 14-period, I prefer a 5-period. The period, overbought and oversold periods are settings that can easily be changed by adding this study to your chart and clicking the "gear" icon next to the study inside your chart.
Daily SMAThis pine script on intraday chart is exactly the same SMA as built-in MovingAverage on a 1Day chart (with the same lengths)
JPX Stop High/Low Limits by Koji- Japanese Description :
日本株における値幅制限のスクリプト by Koji
X : Koji26650263 Youtube : www.youtube.com
【背景】
①日本株におけるストップ安・ストップ高の値幅制限について
価格によって値幅が変動するために、フル板で見れる場合はよいですが
トレード時に覚えたり計算する必要があります
②またチャートを分析する際に、過去のストップ安の日や連続ストップしているのか
など、チャートを拡大しないとわかりづらい
【本スクリプトのメリット】
①チャート上に視覚的に表示することで瞬間的に認知できることとし
ストップを狙っているか、などを板を見ないでチャートで判断できます
②過去のストップの位置をわかりやすく表示でき、過去の値動きを瞬間的に認知できます
【おすすめ】
チャートはローソク足や出来高など、極力シンプルにすべきなために
当スクリプトを導入はした上で、普段は表示オフ(目のマークをオフ)にしておくと
必要な時にすぐに見れるがチャートは普段見やすい、という使い方がおすすめです
- English Description :
Japanese Stock Price Limits (Stop High/Low) Indicator by Koji
X: Koji26650263 YouTube: www.youtube.com
【Background】
1. About Daily Price Limits (Stop High/Stop Low) in Japanese Stocks The daily price limit range for Japanese stocks varies depending on the stock price itself. Unless you have access to "Full Board" (Level 2) data, you often need to memorize these ranges or calculate them manually during trading, which can be cumbersome.
2. Analyzing Historical Volatility When analyzing charts, it can be difficult to identify past "Stop Low" or "Stop High" days—or to see if a stock hit consecutive stops—without zooming in significantly on the chart.
【Benefits of this Script】
1. Instant Visual Recognition By displaying price limits directly on the chart, you can instantly recognize the day's upper and lower limits. This allows you to judge whether the price is aiming for a "Stop High" or "Stop Low" without needing to check the order book (board).
2. Historical Context Past stop levels are clearly marked, allowing you to instantly grasp historical price movements and volatility at a glance.
【Recommended Usage】
To keep your chart analysis effective, it is best to keep the screen simple (displaying primarily candlesticks and volume).
My recommendation: Add this script to your chart, but keep the visibility toggled OFF (click the "eye" icon to hide it) during normal use. Toggle it ON only when you specifically need to check price limits. This ensures your chart remains clean and easy to read for daily analysis.
Percentage Level TargetsDisplays dynamic percentage-based price target levels at ±2.5% and ±5% from current price.
⭐ FEATURES:
✓ Real-time level updates on every candle
✓ Customizable label positioning (left/right)
✓ Adjustable offset for precise placement
✓ Works on ALL timeframes and assets
✓ Color-coded levels (green/red)
🎯 USE CASES:
→ Identify profit targets quickly
→ Set stop-loss levels automatically
→ Risk/reward ratio planning
→ Scalping & swing trading
⚙️ CUSTOMIZATION:
• Adjust percentage levels (default: ±2.5%, ±5%)
• Toggle labels on/off
• Change colors for positive/negative levels
• Control label position & offset
📊 COMPATIBLE WITH:
Stocks • Crypto • Forex • Commodities
All timeframes (1m, 5m, 1h, 4h, Daily, Weekly, Monthly)
Feedback welcome! 🙌
2-Bar Setup Meccanico2-Bar Mechanical Reversal Setup
Overview
This indicator identifies a strict 2-bar price action pattern designed for traders who prefer fully mechanical and rule-based setups.
The logic is objective, non-repainting, and suitable for manual trading, alerts, or systematic testing.
The pattern is built around momentum exhaustion followed by immediate rejection, a structure frequently observed at short-term turning points and pullbacks.
Pattern Logic
LONG Setup
Candle 1
Bearish candle
Closes below the low of the previous bar
Has a medium or large body (explicitly not a doji)
The doji definition is user-configurable as a percentage of the candle range
Candle 2
Bullish candle
Either:
Engulfs the real body of Candle 1
OR
Closes above 50% of Candle 1 total range
When these conditions are met, a LONG signal is generated.
SHORT Setup (mirror logic)
Candle 1
Bullish candle
Closes above the high of the previous bar
Medium or large body (not doji)
Candle 2
Bearish candle
Either:
Engulfs the real body of Candle 1
OR
Closes below 50% of Candle 1 total range
When confirmed, a SHORT signal is generated.
Doji Definition (Fully Mechanical)
A candle is classified as a doji when:
|Close − Open| ≤ (High − Low) × Doji %
The Doji % threshold is set by the user, removing all subjectivity from candle classification.
Signals
The indicator provides:
🔼 Dedicated LONG signals
🔽 Dedicated SHORT signals
🟡 Generic signal (any valid setup)
All signals are anchored to price and calculated only on closed bars (no repainting).
Key Features
100% rule-based and objective
No repaint
User-defined doji sensitivity
Works on any market and timeframe
Suitable for:
discretionary trading
alert-based execution
backtesting and automation
Recommended Usage
Use in trending or corrective phases
Combine with:
higher-timeframe bias
key levels (support/resistance)
volatility or trend filters
Particularly effective on Daily and H4 charts
Disclaimer
This indicator provides technical signals only and does not constitute financial advice.
Always apply proper risk management.
ZLT - Date and Time MarkerPine Script v5 indicator called “DateTime Marker” that overlays on the chart and marks bars whose timestamp matches a user-defined schedule. When a bar “matches,” it can draw:
a vertical line through the bar,
a label with a time/date string, and
a triangle marker below the bar (always plotted on matches).
What you can configure
Marker Type (the matching rule)
You choose one of five modes:
Every Minute
Inputs: everyNMinutes (default 15), minuteOffset (default 0)
Match condition: minute % everyNMinutes == minuteOffset
Example with defaults: marks bars at :00, :15, :30, :45 each hour.
Hourly
Inputs: everyNHours (default 4), hourlyMinute (default 0)
Match condition: hour % everyNHours == 0 AND minute == hourlyMinute
Example with defaults: marks bars at 00:00, 04:00, 08:00, 12:00, 16:00, 20:00 (at minute 00).
Daily Time
Inputs: dailyHour (default 10), dailyMinute (default 0)
Match condition: hour == dailyHour AND minute == dailyMinute
Example with defaults: marks 10:00 every day.
Weekly Day & Time
Inputs: weekDay (default Tuesday), weeklyHour (default 16), weeklyMinute (default 0)
It converts the weekday name to Pine’s dayofweek number via getDayNumber().
Match condition: dayofweek == targetDay AND hour == weeklyHour AND minute == weeklyMinute
Example with defaults: marks Tuesday 16:00.
Monthly Date & Time
Inputs: monthlyDay (default 2), monthlyHour (default 23), monthlyMinute (default 0)
Match condition: dayofmonth == monthlyDay AND hour == monthlyHour AND minute == monthlyMinute
Example with defaults: marks the 2nd day of each month at 23:00.
Visual settings
showLine: whether to draw the vertical line.
lineStyle: Solid/Dashed/Dotted (mapped to Pine line styles by getLineStyle()).
lineColor, lineWidth: styling for the line (width is rounded to an integer because Pine line width is integer).
showLabel: whether to draw a label.
labelColor: background color of the label (text is forced white).
What happens when a bar matches
When isMatch becomes true on a bar:
Vertical line: line.new() at that bar’s bar_index, from low to high, extended extend.both (so it spans the full chart vertically).
Label: label.new() at the bar’s high, with mode-specific text:
Minute/Hourly/Daily: "HH:mm"
Weekly: "Tuesday HH:mm" (or whatever day selected)
Monthly: "Day 2 - HH:mm" (or chosen day)
Triangle marker: plotshape() draws a triangle up below the bar on every match (this happens regardless of showLine / showLabel).
Important practical implications
This uses the bar’s exchange/chart time (TradingView’s time, hour, minute, etc.), so results depend on the symbol/session and chart timezone settings.
On timeframes coarser than 1 minute, “Every Minute” still checks only the bar’s timestamp minute value; it won’t mark intra-bar minutes that don’t exist as separate bars.
Because it can create many objects (lines/labels), it sets max_labels_count=500. Lines are not capped here, so very dense marking can still clutter the chart.
If you tell me your intended use (e.g., “mark NY open,” “mark every 15m candle close,” “mark macro events weekly”), I can point out whether the current matching logic fits that precisely or needs adjustments (sessions, timezones, avoiding duplicates, limiting lines, etc.).
ADR % RangesThis indicator is designed to visually represent percentage lines from the open of the day. The % amount is determined by X amount of the last days to create an average...or Average Daily Range (ADR).
1. ADR Percentage Lines: The core function of the script is to apply lines to the chart that represent specific percentage changes from the daily open. It first calculates the average over X amount of days and then displays two lines that are 1/3rd of that average. One line goes above the other line goes below. The other two lines are the full "range" of the average. These lines can act as boundaries or targets to know how an asset has moved recently. *Past performance is not indicative of current or future results.
The calculation for ADR is:
Step 1. Calculate Today's Range = DailyHigh - DailyLow
Step 2. Store this average after the day has completed
Step 3. Sum all day's ranges
Step 4. Divide by total number of days
Step 5. Draw on chart
2. Customizable Inputs: Users have the flexibility to customize the script through various inputs. This includes the option to display lines only for the current trading day (`todayonly`), and to select which lines are displayed. The user can also opt to show a table the displays the total range of previous days and the average range of those previous days.
3. No Secondary Timeframe: The ADR is computed based on whatever timeframe the chart is and does not reference secondary periods. Therefore the script cannot be used on charts greater than daily.
This script is can be used by all traders for any market. The trader might have to adjust the "X" number of days back to compute a historical average. Maybe they only want to know the average over the past week (5 days) or maybe the past month (20 days).
Humble Student OB/OS Trifecta indicatorAfter reading Cam Hui's blog post about his "Trifecta" bottom spotting model I thought I'd try my hand at scripting it as an indicator. The results are pretty close to what he describes. Though the data TradingView feeds me doesn't seem to be identical to what he's using on StockCharts.com the results are close enough that I will call the effort a success worth publishing.
MTF 20 SMA Table - DXY**MTF 20 SMA Table - Multi-Timeframe Trend Analysis Dashboard**
**Overview:**
This indicator provides a comprehensive multi-timeframe analysis dashboard that displays the relationship between price and the 20-period Simple Moving Average (SMA) across four key timeframes: 15-minute, 1-hour, 4-hour, and Daily. It's designed to help traders quickly identify trend alignment and potential trading opportunities across multiple timeframes at a glance. It's definitely not perfect but has helped me speed up my backtesting efforts as it's worked well for me eliminating flipping back and forth between timeframes excpet when I have confluence on the table, then I check the HTF.
**How It Works:**
The indicator creates a table overlay on your chart showing three critical metrics for each timeframe:
1. **Price vs SMA (Row 1):** Shows whether price is currently above (bullish) or below (bearish) the 20 SMA
- Green = Price Above SMA
- Red = Price Below SMA
2. **SMA Direction (Row 2):** Indicates the trend direction of the SMA itself over a lookback period
- Green (↗ Rising) = Uptrend
- Red (↘ Falling) = Downtrend
- Gray (→ Flat) = Ranging/Consolidation
3. **Strength (Row 3):** Displays the distance between current price and the SMA in pips
- Purple background = Strong move (>50 pips away)
- Orange background = Moderate move (20-50 pips)
- Gray background = Weak/consolidating (<20 pips)
- Text color: Green for positive distance, Red for negative
**Key Features:**
- **Customizable Table Position:** Place the table anywhere on your chart (9 position options)
- **Adjustable SMA Lengths:** Modify the SMA period for each timeframe independently (default: 20)
- **Direction Lookback Settings:** Fine-tune how far back the indicator looks to determine SMA direction for each timeframe
- **Flat Threshold:** Set the pip threshold for determining when an SMA is "flat" vs trending (default: 5 pips)
- **DXY Optimized:** Calculations are calibrated for the US Dollar Index (1 pip = 0.01)
**Best Use Cases:**
1. **Trend Alignment:** Identify when multiple timeframes align in the same direction for higher probability trades
2. **Divergence Spotting:** Detect when lower timeframes diverge from higher timeframes (potential reversals)
3. **Entry Timing:** Use lower timeframe signals while higher timeframes confirm overall trend
4. **Strength Assessment:** Gauge how extended price is from the mean (SMA) to avoid overextended entries
**Settings Guide:**
- **SMA Settings Group:** Adjust the SMA period for each timeframe (15M, 1H, 4H, Daily)
- **SMA Direction Group:** Control lookback periods to determine trend direction
- 15M: Default 5 candles
- 1H: Default 10 candles
- 4H: Default 15 candles
- Daily: Default 20 candles
- **Flat Threshold:** Set sensitivity for "flat" detection (lower = more sensitive to ranging markets)
**Trading Strategy Examples:**
1. **Trend Following:** Look for all timeframes showing the same direction (all green or all red)
2. **Pullback Trading:** When Daily/4H are green but 15M/1H show red, wait for lower timeframes to flip green for entry
3. **Ranging Markets:** When multiple SMAs show "flat", consider range-bound strategies
**Important Notes:**
- This is a reference tool only, not a standalone trading system
- Always use proper risk management and combine with other analysis methods
- Best suited for trending instruments like indices and major forex pairs
- Calculations are optimized for DXY but can be used on other instruments (pip calculations may need adjustment)
**Credits:**
Feel free to modify and improve this code! Suggestions for enhancements are welcome in the comments.
---
**Installation Instructions:**
1. Add the indicator to your TradingView chart
2. Adjust the table position via settings to avoid overlap with price action
3. Customize SMA lengths and lookback periods to match your trading style
4. Monitor the table for timeframe alignment and trend confirmation
---
This indicator is published as open source for the community to learn from and improve upon. Happy trading! 📈
BTC Backwardation SearcherThis Pine Script code is a custom indicator named "BTC Backwardation Searcher" designed for the TradingView platform. The indicator aims to identify and visualize the price difference between two Bitcoin futures contracts: CME:BTC1! and CME:BTC2!.
Here's a breakdown of the code:
1. The script fetches the daily close prices of CME:BTC1! and CME:BTC2! using the security() function.
2. It calculates the percentage price difference between the two contracts using the formula: (btc1Price - btc2Price) / btc2Price * 100.
3. The script also calculates the price difference for the previous two days (2 days ago and 3 days ago) using the same formula.
4. Two conditions are defined:
(1) dailyGreenCondition: If the price difference is greater than or equal to 0.3% for three
consecutive days, including the current day and the previous two days.
(2) dailyRedCondition(commented): If the price difference is less than or equal to -1% for three consecutive days, including the current day and the previous two days.
(I commented it out because I don't think it's useful.)
5. The plotshape() function is used to display green triangles on the chart when the dailyGreenCondition is met, and red triangles when the dailyRedCondition is met. These triangles are displayed on the daily, weekly, and monthly timeframes.
The purpose of this indicator is to help traders identify potential trading opportunities based on the price difference between the two Bitcoin futures contracts. The green triangles suggest a bullish scenario where CME:BTC1! is significantly higher than CME:BTC2!, while the red triangles indicate a bearish scenario where CME:BTC2! is significantly lower than CME:BTC1!.
However, it's important to note that this indicator should be used in conjunction with other technical analysis tools and fundamental analysis. Traders should also consider their risk tolerance, investment goals, and market conditions before making any trading decisions based on this indicator.



















