지표 및 전략
THAI TRENDINGVolume is the total amount of assets traded in a specific period of time. The 24-hour Volume indicator is used to measure the total volume of a symbol traded in the last 24 hours, expressed as in currency. It can be used to measure the market's interest in a particular symbol.
Sigmoid Risk AllocatorThe Sigmoid Risk Allocator is a dynamic position sizing indicator that tells you how much of your capital to allocate based on current market conditions. Unlike simple "risk-on/risk-off" signals, this indicator gives you smooth, gradual transitions based on a sigmoid function.
Why a Sigmoid Curve?
Most position sizing approaches use fixed thresholds: "If drawdown > 20%, buy. Otherwise, don't." This creates all-or-nothing decisions.
Using the sigmoid (S-curve) makes this decision different. It creates a smooth transition where:
Small drawdowns → Stay near your baseline allocation
Moderate drawdowns → Gradually increase exposure
Large drawdowns → Approach maximum allocation
The sigmoid curve naturally "saturates" at the extremes, preventing you from going all-in too early or panicking out too fast. This is very useful to meek traders psychology and risk management in check.
What's a Sigmoid Function?
The sigmoid function is a mathematical S-curve defined as:
σ(x) = 1 / (1 + e^(-x))
This formula takes any input value and smoothly maps it to a number between 0 and 1. The curve has three key properties that make it ideal for position sizing in investing:
Smooth transitions: No sudden jumps. Allocation changes gradually.
Saturation at extremes: The curve flattens near 0 and 1, preventing overreaction and overexposure.
Sensitive in the middle: Most of the action happens around the midpoint.
To convert this into an allocation percentage, the indicator uses:
Allocation = α_min + (α_max - α_min) × σ(k × (Risk - Midpoint))
Where:
- `α_min` = Your minimum allocation (default 50%)
- `α_max` = Your maximum allocation (default 100%)
- `Risk` = Current risk metric (drawdown %, volatility, or Kelly %)
- `Midpoint` = The risk level where allocation sits halfway between min and max (default 15%)
- `k` = Steepness—how quickly allocation changes around the midpoint
Example : With defaults, if drawdown hits 15% (the midpoint), your allocation will be 75% (halfway between 50% and 100%). As the drawdown increases beyond 15%, the allocation curves toward 100%. As it decreases toward 0%, allocation curves toward 50%.
Cool, isn't it?
Asymmetric Response: Fast In, Slow Out
The indicator uses different steepness values for scaling in vs. scaling out. This is great to increase trend following. This is something I'm proud of too in this indicator.
k_increase = 30 (steep curve): When drawdowns appear, allocation ramps up quickly to catch the opportunity
k_decrease = 5 (slower curve): When conditions normalize, allocation decreases slowly to avoid selling the rebound
This asymmetry reflects how markets behave—drawdowns often overshoot fundamentals (rewarding quick entries), while recoveries tend to be more orderly (rewarding patience on exits).
Three Risk Metrics
You can choose what drives your allocation:
Drawdown (Default)
Volatility - Scales your position inversely to current market volatility.
Kelly Criterion - Automatically calculates optimal position size. The indicator applies a conservative "half Kelly" by default.
Use Cases
Position sizing for swing trading or trend following
Risk management overlay for any existing strategy
Drawdown-based DCA (dollar cost averaging) decisions
Volatility-adjusted exposure management
Feel free to provide feedback and share your thoughts!
- Henrique Centieiro
RSI 1H/4H Multi-Level (REPAINT) - Hourly LimitWhat the script does
1) Indicator setup
Creates an overlay indicator named “RSI 1H/4H Multi-Level (REPAINT) - Hourly Limit” (overlay=true), so markers appear on the main price chart.
2) Inputs (user settings)
1 Hour Settings
len1h: RSI length for 1H (default 12)
lowL1h: lower threshold (default 30)
highL1h: upper threshold (default 70)
color1h: dot color for 1H-only triggers (default blue)
4 Hour Settings
len4h: RSI length for 4H (default 12)
lowL4h: lower threshold (default 30)
highL4h: upper threshold (default 70)
color4h: dot color for 4H-only triggers (default orange)
Visuals
showDots: toggle to show/hide dots on the chart
3) RSI calculation from higher timeframes (repainting)
Function:
rsi_htf(tf, length) uses request.security() to compute RSI from a higher timeframe:
gaps_off merges gaps smoothly
lookahead_on allows future higher-timeframe values to appear on earlier bars → repainting behavior
It calculates:
rsi1h = 1H RSI
rsi4h = 4H RSI
4) Alert frequency control (once per hour)
lastAlertHour stores the timestamp of the last alerted hourly candle start.
currentHourStart = time("60") gets the start time of the current 1-hour candle.
canAlert = currentHourStart > lastAlertHour ensures the script can only trigger once per new hour.
5) Cross conditions
Uses ta.cross() to detect RSI crossing either level (in either direction):
c1L: 1H RSI crosses the 1H lower level
c1H: 1H RSI crosses the 1H upper level
c4L: 4H RSI crosses the 4H lower level
c4H: 4H RSI crosses the 4H upper level
Then:
fire1h is true if either 1H cross happens
fire4h is true if either 4H cross happens
trigger is true if (1H or 4H cross) AND canAlert is true
6) Alert message and timer update
When trigger is true:
Updates lastAlertHour to the current hour start (blocks further alerts that hour)
Builds an English message indicating which timeframe(s) crossed and includes RSI values
Sends an alert with alert.freq_once_per_bar_close (one per bar close)
7) Chart visualization (dots)
Chooses dot color:
white if both 1H and 4H crossed within the allowed hour
color1h if only 1H crossed
color4h if only 4H crossed
Plots a small circle below the bar when showDots and trigger are true.
MTF Trend MAs (H1+H4) MTF Trend MAs (H1+H4) — per-line styles
This indicator plots three trend moving averages (20 / 50 / 200) from two higher timeframes (H1 and H4) directly on your current chart. It is designed to help you monitor multi-timeframe dynamic support/resistance levels and overall trend structure without switching charts.
Features
Multi-timeframe overlay
Plots H1 and H4 moving averages on any chart timeframe.
Three MA sets
Fast: 20
Mid: 50
Slow: 200
Configurable MA types
Choose the calculation type for each MA length: EMA / SMA / WMA / RMA.
Independent visibility toggles
Enable/disable each individual line:
H1 20 / 50 / 200
H4 20 / 50 / 200
Per-line styling
For every MA and timeframe you can set:
Color
Line width
Line style (Solid / Dashed / Dotted)
Notes / Limitations
The script uses request.security(..., lookahead_off) to avoid repainting from future data.
TradingView plot() does not support true dashed/dotted line rendering like line.new().
In this script the style options are approximations:
Solid = normal line
Dashed = linebr (broken/stepped appearance)
Dotted = circles
If you need true dashed/dotted styles, the indicator can be rewritten using line.new() for real line styles.
NY PM Session Highlighter (For Hawaiian Traders)Purpose: This script is designed for traders targeting the New York PM Session (1:30 PM – 4:00 PM ET). Based on 5-year historical data for ES and NQ, this window represents a high-probability period for 2:1 Risk-to-Reward setups as institutional traders rebalance and drive price toward the daily close.
Key Features:
DST-Automated Tracking: Uses the America/New_York timezone to ensure the lines stay accurate during Daylight Saving transitions.
Visual Guidance: Draws a dashed vertical line at the 1:30 PM ET start and the 4:00 PM ET close.
Session Boxing: Highlights the background in a soft blue to define the "trading zone," helping you ignore the low-volume "lunch doldrums" that occur immediately before.
Hawaii-Friendly: Automatically adjusts to your local Hawaii Standard Time (HST) so you don't have to calculate the 5 or 6-hour offset manually.
Trade Logic:
Wait for the 1:30 PM ET (8:30 AM HST) line.
Look for a sweep of the 12:00 PM – 1:00 PM (Lunch) range.
Enter on a Market Structure Shift (MSS) or Fair Value Gap (FVG).
Target a 2:1 Reward-to-Risk ratio, aiming to exit by the 4:00 PM ET line.
RSI 1H/4H Multi-Level (REPAINT) - Hourly LimitRSI 1H/4H Multi-Level (REPAINT) – Hourly Limit is a Pine Script v5 indicator designed to monitor RSI level crossings on two higher timeframes (1H and 4H) while controlling alert frequency to avoid spam. The script can display visual dots on the chart and trigger a single consolidated alert message when either timeframe’s RSI crosses user-defined levels—limited to once per hour.
Key features
1) Dual timeframe RSI monitoring (1H + 4H)
Calculates RSI on 1-hour (60) and 4-hour (240) timeframes independently.
Each timeframe has its own configurable settings:
RSI Length
Lower level (commonly oversold, e.g., 30)
Upper level (commonly overbought, e.g., 70)
Dot color for chart marking
2) Multi-level cross detection
The indicator tracks when RSI crosses either boundary level:
1H RSI crosses its Lower or Upper level
4H RSI crosses its Lower or Upper level
A trigger occurs if any of these crossings happens.
3) Hourly alert limiter (anti-spam)
To prevent repeated alerts, the script includes an hourly cooldown:
It stores the start time of the last hour when an alert was fired.
A new alert can only fire when the current hour start time is greater than the last recorded one.
Result: maximum 1 alert per hour, even if multiple crossings occur within the same hour.
4) Consolidated alert message
When triggered, the script builds a single message that can include:
1H RSI value if the 1H crossing occurred
4H RSI value if the 4H crossing occurred
Example message format:
1H RSI (52.34) crossed level; 4H RSI (48.10) crossed level;
5) On-chart visualization with priority coloring
If enabled, the script plots a dot below the bar on trigger:
White dot if both 1H and 4H signals fired in the same hour
1H color if only 1H fired
4H color if only 4H fired
Important note: REPAINT behavior
This indicator intentionally uses request.security(..., lookahead=barmerge.lookahead_on), meaning it can repaint because it references higher-timeframe data with lookahead enabled. As a result:
Cross signals may appear earlier than they would in a non-repainting implementation.
Signals can change as the higher timeframe candle evolves.
Typical use cases
Monitoring overbought/oversold zone transitions on higher timeframes while trading lower timeframes.
Receiving fewer, cleaner alerts thanks to the hourly limit.
Quickly identifying whether a signal came from 1H, 4H, or both using dot colors.
ADR**Overview**
This indicator displays the **Average Daily Range (ADR)** and **ADR Percentage** in a customizable table on your chart.
While the standard ATR (Average True Range) is a popular metric for volatility, it accounts for price gaps (e.g., overnight moves). **ADR**, on the other hand, strictly measures the average distance between the **High** and **Low** of price bars, completely ignoring gaps.
**Why use ADR instead of ATR?**
* **Day Trading:** For intraday traders (Forex, Crypto, Futures), ADR is often preferred because it calculates the "tradable" range of the day. It answers the question: *"On average, how much does this asset move from High to Low?"*
* **Target Setting:** ADR is excellent for projecting daily highs and lows. If price has already moved 100% of its ADR, the statistical probability of further extension decreases.
* **Pure Volatility:** It filters out the noise of overnight gaps to show pure intraday volatility.
**Calculation Logic**
* **ADR:** Calculated using a Simple Moving Average (SMA) of the `High - Low` range over the specified length.
* Formula: `SMA(High - Low, Length)`
* **ADR%:** Shows the ADR relative to the current price.
* Formula: `(ADR / Current Close) * 100`
**Features**
* **Clean Dashboard:** A minimalist table displays the ADR value and the ADR %.
* **Customizable:** You can change the calculation length (default is 14) and move the table to any corner of the chart (Top/Bottom, Left/Right) to fit your workspace.
**Settings**
* **ADR Length:** The lookback period for the average (Default: 14).
* **Display Position:** Choose where the table appears on your screen.
SAS 4H Positional ScreenerSAS 4H Positional Screener is a structure-based trend filter designed for 4-hour positional trading in Indian large-cap stocks.
It identifies high-probability bullish setups by combining trend alignment, price acceptance, and institutional market structure.
This screener is not a buy/sell strategy.
It is a professional pre-trade filter used to shortlist stocks that are ready or near-ready for LONG trades.
Volume with number spikesThis Volume Indicator shows unusual volume on the candle on any time frame.
[AboBassel] RS + RS.ROC + Inverted ATR (Unified Channel)
This is a multi-indicator channel tool combining Relative Strength (RS), RS Rate of Change (RS.ROC), and Inverted ATR Percentage (ATRP) into a single unified channel for clear visual trend analysis.
Features:
• All three lines are normalized into one visual channel with five distinctive threshold levels (Upper/Lower Curbs, Inner Bands, and Middle).
• RS , ATR , ROC Lines all are invertable for better follow up on trends
• RS.ROC period and timeframe are editable independently from RS.
• ATR time frame and lookback period are fully adjustable.
• Channel thresholds are fully editable. Lines can exceed upper/lower curbs, showing extreme conditions.
• Suitable for trend detection, swing trading, and risk assessment.
Usage Tips:
• Look for lines crossing bands or curbs for potential trade setups.
• Observe background color for overall market sentiment.
• Major blue arrows indicate strong shifts in trend direction.
Ideal For: Swing traders, trend followers, and advanced technical analysts who want combined momentum, volatility, and relative strength insights in a single chart.
Ultimate Overnight Trading Range + Levels (day, week, month) Define your Ultimate Overnight Trading Range:
~ Overnight Range Features ~
Three modes:
1. Default Mode (18:00 EST to 9:30 EST Open):
- Tracks the high and low from 18:00 EST until 9:30 EST market open
- Uses 5-minute candle data for precise boundary detection
2. Custom Time Range:
- Define your own start and end times
- Select from 14 major time zones
3. Custom Candle Selection:
- Select specific candles from 4-hour, 1-hour, or 30-minute timeframes
- Choose which candles define your overnight range - example: 22:00 and 2:00 EST 4-hr candle
- Use High/Low or Open/Close as your price source
~ Previous Period Levels ~
Automatically plots Open, Close, High, and Low from:
Previous Month
Previous Week
Previous Day
Toggle on/off whatever you want of course. Extend lines left and right etc.
Alerts:
You can set alerts on any of the plotted levels: Click on the indicator settings and select "Add Alert on..."
Configuring Overnight Range
Mode 1: Default (22:00 EST to Open)
- Simply select this mode—no additional configuration needed. The indicator will automatically track the overnight session from 22:00 EST until 9:30 EST.
Mode 2: Custom Time Range
- Select "Custom Time Range" from the Mode dropdown
- Choose your timezone from the list
- Set your desired Start Hour and Start Minute
- Set your desired End Hour and End Minute
Mode 3: Custom Candle Selection
- Select specific candles from 4-hour, 1-hour, or 30-minute timeframes
- Choose which candles define your overnight range - example: 22:00 and 2:00 EST 4-hr candle
- Use High/Low or Open/Close as your price source
Please let me know if any corrections or changes are needed. Thanks! :)
SMC Full History jbi2 This indicator keeps BOS and CHoCH visible all the way to the oldest bars, revealing true market structure across all timeframes, unlike other indicators that erase historical signals, making trend and reversal zones clear and reliable.
Position Size Gev_Risk ($)
The amount of money you are willing to lose if the stop-loss is hit.
Base Stop Price
The stop-loss price you set. The stop is recalculated in real time as price moves.
Fee (%) round-trip
Estimated total trading fees for opening and closing the position.
Stop Mode
With Buffer: adds extra distance to the stop, resulting in a smaller position size
No Buffer: uses the Base Stop Price exactly as entered
Stop Buffer (%)
The percentage added to the stop distance when Stop Mode is set to With Buffer.
Live adjustment behavior
The stop price updates continuously as price moves, and the position size is recalculated live to stay aligned with the selected Risk ($).
SMC Full History JBI 1This indicator keeps BOS and CHoCH visible all the way to the oldest bars, revealing true market structure across all timeframes, unlike other indicators that erase historical signals, making trend and reversal zones clear and reliable.
Crypto Momentum OscillatorThe indicator uses an adaptive weighting system that dynamically adjusts component importance based on rolling correlations with BTC, creating a composite master score that signals optimal entry/exit conditions when macro tailwinds align with crypto momentum.
Advanced Position Sizer With RROne can add fund size and Risk % and it will calculate SL And TPs as per recent Price
Reversal Entry on StdDev & ICT LevelsThis custom indicator combines Standard Deviation Channels with ICT Killzone session levels to identify high-probability reversal entries. It triggers long/short signals when:
Price extends beyond ±2 standard deviations (overbought/oversold conditions)
A reversal wick (e.g., pin bar or hammer) confirms exhaustion
Price bounces off a key session level (e.g., NYAM high or low)
The tool visually plots deviation bands and session ranges, helping traders identify smart entry points aligned with market structure and time-based liquidity zones. Suitable for scalpers and intraday traders using ICT concepts.
Entropy-Gated Expansion StateThis indicator identifies sustained directional expansion regimes by separating regime qualification from regime persistence. Directional entropy is used to detect when price transitions from a disordered environment into a structured one, acting as a gate that enables participation only during favorable market conditions. Once qualified, trend structure maintains the active state through consolidations and minor pullbacks, ensuring the indicator remains engaged throughout the expansion phase rather than firing as a short-lived signal.
The result is a persistent, state-based output that avoids sideways markets, reduces noise, and remains active during sustained trends across a wide range of assets, including high-volatility instruments.
Bitcoin Power Law Bottom PriceThis is a super simplified version of Bitcoin Rainbow Wave script.
I removed everything except the power law bottom band.
ES to SPX Lead (RTH Adaptive)Very simple script designed especially to trade CFD but also scalping.
Only RTH (you'll understand why)
Not a stand-alone indicator, e.g., an external event may hit the index and /ES leading nature will become meaningless. Same with a sudden crash on a Mag7 stock.
Uses Z Score to evaluate if /Es is leading SPX (or not) and /ES VWAP to establish bullish (+1) or bearish territory (-1). Histogram is the product of Z Score times VWAP status, red or green depending.
Z score goes from -2 to +2.
Zscore reading: 0.4 < |Z| < 1.2 is the trading zone.
|Z| <0.4 is sort of neutral shifting gears zone, a no-trade and may be transition moment.
Middle numbers show max. limits based on actual volatility (i.e. when to exit and when definitely not to enter a trade).
Grey stripes is NO TRADE zone.
Final number is the composite histogram value.
So:
Textbook bullish: /ES above VWAP and Z Score positive
Textbook negative: /ES below VWAP and Z score negative
If Green Histogram & negative Z Score, you may enter bearish pullback trades making sure Z score is in the sweet spot bracket.
If Red histogram & negative Z score, it's a conflict state, signals are not alined. Holds a bullish nature but it may be a warning sign.
Script produced by Chat GPT after several iterations.






















