5T's5T’S — Tan Tech Trades TRAMA Thresholds by TANTECHTRADES™
What it is:
5T’s is a momentum/pressure gauge that scores recent price movement and normalizes it to a range of -100 to +100. It highlights when momentum is decisively bullish, bearish, or neutral and can optionally color your candles to match the current bias.
How it works
TRAMA Signal: For each of the last N bars (your Loop Back Period), the script “votes”:
+1 if close > close
–1 if close < close
0 if equal
The sum is then normalized: signal = (rawSum / N) * 100, producing an intuitive percentage-style score.
Thresholds: You define Long and Short thresholds (defaults +20 / –20).
Above Long Threshold → Bullish zone
Below Short Threshold → Bearish zone
Between thresholds → Neutral / No bias
Display: Plots the TRAMA signal in a separate pane with your chosen color theme and dashed reference lines at the thresholds plus a zero line.
Optional Candle Coloring: When enabled, chart candles take on the current bullish/bearish color for at-a-glance trend context.
Note: A Geometric MA (GMA) Length input is included for future extensions. It doesn’t affect the current plot.
Inputs
GMA Length (default 50) — reserved for future use.
Loop Back Period (default 30) — lookback depth for the TRAMA vote.
Smaller = faster, more signals; Larger = smoother, fewer whipsaws.
Long Threshold (default 20) — bullish confirmation level.
Short Threshold (default –20) — bearish confirmation level.
Color Mode — Cool / Classic / Blue preset palettes for bull/bear/neutral.
Color Candles? — toggle candle tinting by current bias.
Reading the signal
Strong Bullish: Signal rising and > Long Threshold.
Strong Bearish: Signal falling and < Short Threshold.
Neutral / Chop: Signal between thresholds; consider standing aside or using additional filters.
Suggested use
Trend filter: Trade only in the direction of the signal when it’s outside thresholds.
Confirmation: Pair with structure/breakouts or your entry trigger of choice.
Tuning:
For scalping, try Loop Back 10–20 and wider thresholds (e.g., +30/–30).
For swing, try Loop Back 30–60 with default thresholds.
Notes & Tips
The zero line helps spot momentum polarity flips.
To reduce noise, increase Loop Back or widen thresholds.
Candle coloring is visual aid only—your entries/exits should still follow your plan.
Built by TANTECHTRADES™. Educational tool, not financial advice. Trade responsibly.
チャートパターン
9:15-9:45 High-Low Rays (v6) - From High/Low Pointmarks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
marks high and low of first 30 min candle
HELAL TRICKS FOREX NY TimeThe indicator marks the New York session opening candle at 9:30 AM (New York time), drawing horizontal lines at its high and low. These levels remain visible until 7:00 PM, helping traders identify key breakout and reversal zones during the most volatile session of the day. Developed by Helal – Tricks Forex, this tool simplifies New York session analysis for smarter intraday trading decisions.
My scriptParagraphs are the building blocks of papers. Many students define paragraphs in terms of length: a paragraph is a group of at least five sentences, a paragraph is half a page long, etc. In reality, though, the unity and coherence of ideas among sentences is what constitutes a paragraph. A paragraph is defined as “a group of sentences or a single sentence that forms a unit” (Lunsford and Connors 116). Length and appearance do not determine whether a section in a paper is a paragraph. For instance, in some styles of writing, particularly journalistic styles, a paragraph can be just one sentence long. Ultimately, a paragraph is a sentence or group of sentences that support one main idea. In this handout, we will refer to this as the “controlling idea,” because it controls what happens in the rest of the paragraph.
Mark the New York trading session hours(纽约交易时间段标注)Apply background shading for New York time.
(纽约时间背景着色)
04:00 ~ 09:00
09:00 ~ 09:30
09:30 ~ 12:00
No shading needed after 12 AM as I'll be asleep.
(12点我睡觉了就不着色了。)
Sessions Candle Colors1. Candle Display Mode
Choose how your candles are rendered:
Normal – Standard bullish/bearish candles with theme-based colors.
Normal – Single – Candles displayed in a single neutral tone.
Session – Candles colored by active trading sessions.
Session – Single – Session-based candles in a single tone.
None – Disables custom candles (useful if you prefer chart elements only).
2. Theme: Normal Candles
Includes a curated set of themes for standard candles.
Default: Light – BW
Available Themes:
Dark – Prime
Dark – Violet
Dark – Ice
Dark – Bronze
Dark – BW
Light – BW
Light – ICT (Inner Circle Trader)
Light – S&F (Set and Forget)
3. Theme: Session Candles
Custom palettes for session-based modes:
Light – AnandaDivine
Light – WealthFRX
Note: “Light” and “Dark” indicate which chart background the theme is optimized for.
4. Hide Gaps
Enables a custom gapless mode by forcing each candle’s open to match the previous close.
This option helps maintain visual continuity on charts with irregular price feeds.
Tip: For best results, disable TradingView’s built-in candles under chart settings before enabling this indicator.
Hello Pine//@version=6
indicator("Barcolor Test v6", overlay=true)
fastMA = ta.sma(close, 50)
slowMA = ta.sma(close, 200)
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
barcolor(buySignal ? color.new(color.green, 0) : sellSignal ? color.new(color.red, 0) : color.na)
52WH/last52WH/ATH/lastATHThis indicator determines and displays four values:
First, it determines the current 52-week high and displays it as a line and in a table at the top right with the name, date, and price.
Corresponding color markings are also displayed on the price scale.
Next, the 52-week high that is at least three months ago is determined.
The corresponding candle is also labeled with a date. This past high is also displayed as a line, on the price scale, and in the table.
Next, the current all-time high is determined and also displayed as a line, on the price scale, and in the table.
Finally, the current all-time high that was valid 3 months ago is determined and also displayed as a line, in the price scale, and in the table.
All display values can be switched on or off in the view, and the corresponding colors of the displays can also be freely selected.
Pin Bar_ EMA34 _kidumonPin Bar touches EMA34 - kidumon
pin bar candlestick reaction at ema34 shows strong rejection force, can catch reversal trend.
The Vishnu ZoneInitiate Trades in the Vishnu Zone. Once the Om Vishnu Symbol appears, the chart will be likely to show some movement in either direction. This is for those who are looking for movement and not consolidation.
Zark CRT Line/Marker Color & Style Meaning
Previous Candle CRT Green (bullish) / Red (bearish) solid line Sweep confirmed on the previous candle
Current Candle CRT Green (bullish) / Red (bearish) dashed line Sweep currently happening on the current candle
Higher Timeframe CRT Orange dotted line Sweep from higher timeframe shown on lower timeframe chart
Target Line Blue dashed line Opposite side of liquidity for potential price target
Breaker Confirmed Aqua solid line (over previous/current CRT) Sweep confirmed with a break of a small swing
CRT Invalidated Gray line Sweep no longer valid (price closed beyond sweep level)
Full-Height HTF Divider Yellow vertical line Marks each higher timeframe bar for visual separation
Labels White text on colored background Shows type (Prev/Curr/HTF) and exact price
VWAP Multi-Anchor (Día / 24h / Semana / Mes)With this you can have the VWAP and choose between weekly average, day session or even last 24 hours
Regular Trading Hours Opening Range Gap (RTH ORG)### Regular Trading Hours (RTH) Gap Indicator with Quartile Levels
**Overview**
Discover overnight gaps in index futures like ES, YM, and NQ, or stocks like SPY, with this enhanced Pine Script v6 indicator. It visualizes the critical gap between the previous RTH close (4:15 PM ET for futures, 4:00 PM for SPY) and the next RTH open (9:30 AM ET), helping traders spot potential price sensitivity formed during after-hours trading.
**Key Features**
- **Standard Gap Boxes**: Semi-transparent boxes highlight the gap range, with optional text labels showing day-of-week and "RTH" identifier.
- **Midpoint Line**: A customizable dashed line at the 50% level, with price labels for quick reference.
- **New: Quartile Lines (25% & 75%)**: Dotted lines (default width 1) mark the quarter and three-quarter points within the gap, ideal for finer intraday analysis. Toggle on/off, adjust style/color/width, and add labels.
- **High-Low Gap Variant**: Optional boxes and midlines for gaps between the prior close's high/low and the open's high/low—perfect for wick-based overlaps on lower timeframes (5-min or below recommended).
- **RTH Close Lines**: Extend previous close levels with dotted lines and price tags.
- **Customization Galore**: Extend elements right, limit historical displays (default: 3 gaps), no-plot sessions (e.g., avoid weekends), and time offsets for non-US indices.
**How to Use**
Apply to 15-min or lower charts for best results. Toggle "extend right" for ongoing levels. SPY auto-adjusts for its 4 PM close.
Tested on major indices—enhance your gap trading strategy today! Questions? Drop a comment.
Thanks to twingall for supplying the original code.
Thanks to The Inner Circle Trader (ICT) for the logical and systematic application.
6 minutes ago
Release Notes
### Regular Trading Hours (RTH) Gap Indicator with Quartile Levels
**Overview**
Discover overnight gaps in index futures like ES, YM, and NQ, or stocks like SPY, with this enhanced Pine Script v6 indicator. It visualizes the critical gap between the previous RTH close (4:15 PM ET for futures, 4:00 PM for SPY) and the next RTH open (9:30 AM ET), helping traders spot potential price sensitivity formed during after-hours trading.
**Key Features**
- **Standard Gap Boxes**: Semi-transparent boxes highlight the gap range, with optional text labels showing day-of-week and "RTH" identifier.
- **Midpoint Line**: A customizable dashed line at the 50% level, with price labels for quick reference.
- **New: Quartile Lines (25% & 75%)**: Dotted lines (default width 1) mark the quarter and three-quarter points within the gap, ideal for finer intraday analysis. Toggle on/off, adjust style/color/width, and add labels.
- **High-Low Gap Variant**: Optional boxes and midlines for gaps between the prior close's high/low and the open's high/low—perfect for wick-based overlaps on lower timeframes (5-min or below recommended).
- **RTH Close Lines**: Extend previous close levels with dotted lines and price tags.
- **Customization Galore**: Extend elements right, limit historical displays (default: 3 gaps), no-plot sessions (e.g., avoid weekends), and time offsets for non-US indices.
**How to Use**
Apply to 15-min or lower charts for best results. Toggle "extend right" for ongoing levels. SPY auto-adjusts for its 4 PM close.
Tested on major indices—enhance your gap trading strategy today! Questions? Drop a comment.
Thanks to twingall for supplying the original code.
Thanks to The Inner Circle Trader (ICT) for the logical and systematic application.
+++ 2025.10.13 added new labels / fixed bugs
Measured Pattern Move (Bulkowski) [SS]Hey everyone,
This is the Measured Pattern Move using Bulkowski's process for measured move calculation.
What the indicator does:
The indicator has the associated measured move across 20 of the most common and frequent Bulkowski patterns, including:
Double Bottom / Adam Eve Bottom
Double Top / Adam Eve Top
Inverse Head and Shoulders
Bear Flag
Bull Flag
Horn Bottom
Horon Top
Broadening Top
Descending Broadening Wedge
Broadening Bottoms
Broadening Tops
Cup and Handle
Inverted cup and handle
Diamond Bottom
Diamond Top
Falling Wedge
Rising Wedge
Pipe Bottom
Pipe Top
Head and Shoulders
It will calculate the measured move according to the Bulkowski process.
What is the Bulkowski Process?
Each move has an associated continuation percentage, which Bulkowski has studied, analyzed and concluded statistically.
For example, Double tops have a continuation percent of 54%. Bear flags, 47%. These are "constants" that are associated with the pattern.
Bulkowski applies them to the daily, but how I have formulated this, it can be used on all timeframes, and with the constant, it will correctly calculate the measured move of the pattern.
What this indicator DOES NOT DO
This indicator will not identify the pattern for you.
I tried this using Dynamic Time Warping (DTW) using my own pre-trained Bulkowski model in R. I was successfully able to get Pinescript to calculate DTW which was amazing! But applying it to all these patterns actually went over the execution time limit, which is understandable.
As such, you will need to identify the pattern yourself, then use this indicator to hilight the pattern and it will calculate the measured move based on the constant and the pattern range.
Let's look at some examples:
Use examples
Double bottom / adam eve bottom on SPY on the 1-Minute chart
Adam and Eve Double Bottom QQQ 1-Hour Chart
Adam Eve Double Bottom MSFT Daily Chart
Bearish Head and Shoulders Pattern MSFT Daily
You get the point.
How to use the indicator
To use the indicator, identify the pattern of interest to you.
Then, highlight the pattern using the indicator (it will ask you to select start time of the pattern and end time of the pattern). The indicator will then highlight the pattern and calculate the measured move, as seen in the examples above.
Best approaches
To make the most of the indicator, its best to draw out your pattern and wait for an actual break, the point of the break is usually the end of the pattern formation.
From here, you will then apply this indicator to calculate the expected up or down move.
Let me show you an example:
Here we see CME_MINI:ES1! has made an Adam bottom pattern. We know the Eve should be forming soon and it indeed does:
We mark the top of the pattern like so:
Then we use our Measured move indicator to calculate the measured move:
Measured move here for CME_MINI:ES1! is 6,510.
Now let's see....
Voila!
Selecting the Pattern
After you highlight the selected pattern, in the indicator settings, simply select the type of pattern it is, for example "head and shoulders" or "Broadening wedge", etc.
The indicator will then adjust its measurements to the appropriate constant and direction.
Concluding remarks
That is the indicator!
It is helpful for determining the actual projected move of a pattern on breakout.
Remember, it does not find the pattern for you , you are responsible for identifying the pattern. But this will calculate the actual TP of the pattern for you, without you having to do your own calculations.
I hope you find it useful, I actually use this indicator every day, especially on the lower timeframes!
And you will find, the more you use it, the better you get at recognizing significant patterns!
If you are not aware of these patterns, Bulkowski lists all of this information freely accessible on his website. I cannot link it here but you can just Google him and he has graciously made his information public and free!
That's it, I hope you enjoy and safe trades!
Disclaimer
This is not my intellectual property. The pattern calculations come from the work of Thomas Bulkowski and not myself. I simply coded this into an indicator using his publicly accessible information.
You can get more information from Bulkowski's official website about his work and patterns.
Previous High/Low Multi-Timeframe (3 TFs)Supports 3 customizable timeframes, with full color, width, style, and label options
Confluence Tiered Bullish Entries (MTF Trend Confirm)Draws only the key trendlines: previous day’s high/low, last completed 4H high/low, and last completed 1H high/low.
Fires an alert the instant price touches any of those lines.
Detects bullish Fair Value Gaps (early, as they form), then marks a confluence only when price revisits that FVG.
Confirms with a volume spike + a green candle that closes near the bottom of its range (tunable).
Labels entries as Tier 3 (one confluence), Tier 2 (two), or Tier 1 BUY (all three).
Only shows those trendlines and bullish entry labels on chart.
Previous 4-Hour High/Low (Updated)Features:
- Works on any chart timeframe.
- Automatically updates at the close of each 4H candle.
- Lines extend across the chart (both directions).
- Customizable color and thickness.
- Optional labels.
- No flickering or constant deletion/recreation — lines are updated only when the 4H candle closes
EA M1 Signals with Persistent ATR TP/SL1 Minute scalper for XAU/USD - uses multiple integrated indicators to provide signals upon a breakout and pullback
Squeeze Weekday Frequency [CHE] Squeeze Weekday Frequency — Tracks historical frequency of low-volatility squeezes by weekday to inform timing of low-risk setups.
Summary
This indicator monitors periods of unusually low volatility, defined as when the average true range falls below a percentile threshold, and tallies their occurrences across each weekday. By aggregating these counts over the chart's history, it reveals patterns in squeeze frequency, helping traders avoid or target specific days for reduced noise. The approach uses persistent counters to ensure accurate daily tallies without duplicates, providing a robust view of weekday biases in volatility regimes.
Motivation: Why this design?
Traders often face inconsistent signal quality due to varying volatility patterns tied to the trading calendar, such as quieter mid-week sessions or busier Mondays. This indicator addresses that by binning low-volatility events into weekday buckets, allowing users to spot recurring low-activity days where trends may develop with less whipsaw. It focuses on historical aggregation rather than real-time alerts, emphasizing pattern recognition over prediction.
What’s different vs. standard approaches?
- Reference baseline: Traditional volatility trackers like simple moving averages of range or standalone Bollinger Band squeezes, which ignore temporal distribution.
- Architecture differences:
- Employs array-based persistent counters for each weekday to accumulate events without recounting.
- Includes duplicate prevention via day-key tracking to handle sparse data.
- Features on-demand sorting and conditional display modes for focused insights.
- Practical effect: Charts show a persistent table of ranked weekdays instead of transient plots, making it easier to glance at biases like higher squeezes on Fridays, which reduces the need for manual logging and highlights calendar-driven edges.
How it works (technical)
The indicator first computes the average true range over a specified lookback period to gauge recent volatility. It then ranks this value against its own history within a sliding window to identify squeezes when the rank drops below the threshold. Each bar's timestamp is resolved to a weekday using the selected timezone, and a unique day identifier is generated from the date components.
On detecting a squeeze and valid price data, it checks against a stored last-marked day for that weekday to avoid multiple counts per day. If it's a new occurrence, the corresponding weekday counter in an array increments. Total days and data-valid days are tracked separately for context.
At the chart's last bar, it sums all counters to compute shares, sorts weekdays by their squeeze proportions, and populates a table with the selected subset. The table alternates row colors and highlights the peak weekday. An info label above the final bar summarizes totals and the top day. Background shading applies a faint red to squeeze bars for visual confirmation. State persists via variable arrays initialized once, ensuring counts build incrementally without resets.
Parameter Guide
ATR Length — Sets the lookback for measuring average true range, influencing squeeze sensitivity to short-term swings. Default: 14. Trade-offs/Tips: Shorter values increase responsiveness but raise false positives in chop; longer smooths for stability, potentially missing early squeezes.
Percentile Window (bars) — Defines the history length for ranking the current ATR, balancing recent relevance with sample size. Default: 252. Trade-offs/Tips: Narrower windows adapt faster to regime shifts but amplify noise; wider ones stabilize ranks yet lag in fast markets—aim for 100-500 bars on daily charts.
Squeeze threshold (PR < x) — Determines the cutoff for low-volatility classification; lower values flag rarer, tighter squeezes. Default: 10.0. Trade-offs/Tips: Tighter thresholds (under 5) yield fewer but higher-quality signals, reducing clutter; looser (over 20) captures more events at the cost of relevance.
Timezone — Selects the reference for weekday assignment; exchange default aligns with asset's session. Default: Exchange. Trade-offs/Tips: Use custom for cross-market analysis, but verify alignment to avoid offset errors in global pairs.
Show — Toggles the results table visibility for quick on/off of the display. Default: true. Trade-offs/Tips: Disable in multi-indicator setups to save screen space; re-enable for periodic reviews.
Pos — Positions the table on the chart pane for optimal viewing. Default: Top Right. Trade-offs/Tips: Bottom options suit long-term charts; test placements to avoid overlapping price action.
Font — Adjusts text size in the table for readability at different zooms. Default: normal. Trade-offs/Tips: Smaller fonts fit more data but strain eyes on small screens; larger for presentations.
Dark — Applies a dark color scheme to the table for contrast against chart backgrounds. Default: true. Trade-offs/Tips: Toggle false for light themes; ensures legibility without manual recoloring.
Display — Filters table rows to show all, top three, or bottom three weekdays by squeeze share. Default: All. Trade-offs/Tips: Use "Top 3" for focus on high-frequency days in active trading; "All" for full audits.
Reading & Interpretation
Red-tinted backgrounds mark individual squeeze bars, indicating current low-volatility conditions. The table's summary row shows the highest squeeze count, its percentage of total events, and the associated weekday in teal. Detail rows list selected weekdays with their absolute counts, proportional shares, and a left arrow for the peak day—higher percentages signal days where squeezes cluster, suggesting potential for calmer trend development. The info label reports overall days observed, valid data days, and reiterates the top weekday with its count. Drifting counts toward zero on a weekday imply rarity, while elevated ones point to habitual low-activity sessions.
Practical Workflows & Combinations
- Trend following: Scan for squeezes on high-frequency weekdays as entry filters, confirming with higher highs or lower lows in the structure; pair with momentum oscillators to time breaks.
- Exits/Stops: On low-squeeze days, widen stops for breathing room, tightening them during peak squeeze periods to guard against false breaks—use the table's percentages as a regime proxy.
- Multi-asset/Multi-TF: Defaults work across forex and indices on hourly or daily frames; for stocks, adjust percentile window to 100 for shorter histories. Scale thresholds up by 5-10 points for high-vol assets like crypto to maintain signal sparsity.
Behavior, Constraints & Performance
- Repaint/confirmation: Counts update only on confirmed bars via day-key changes, with no future references—live bars may shade red tentatively but tallies finalize at session close.
- security()/HTF: Not used, so no higher-timeframe repaint risks; all computations stay in the chart's resolution.
- Resources: Relies on a fixed-size array of seven elements and small loops for sorting and table fills, capped at 5000 bars back—efficient for most charts but may slow on very long intraday histories.
- Known limits: Ignores weekends and holidays implicitly via data presence; early chart bars lack full percentile context, leading to initial undercounting; assumes continuous sessions, so gaps in data (e.g., news halts) skew totals.
Sensible Defaults & Quick Tuning
Start with the built-in values for broad-market daily charts: ATR at 14, window at 252, threshold at 10. For noisier environments, lower the threshold to 5 and shorten the window to 100 to prioritize rare squeezes. If too few events appear, raise the threshold to 15 and extend ATR to 20 for broader capture. To combat overcounting in sparse data, widen the window to 500 while keeping others stock—monitor the info label's data-days count before trusting patterns.
What this indicator is—and isn’t
This serves as a statistical overlay for spotting calendar-based volatility biases, aiding in session selection and filter design. It is not a standalone signal generator, predictive model, or risk manager—integrate it with price action, volume, and broader strategy rules for decisions.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino