MirPapa_Handler_HTFLibrary "MirPapa_Handler_HTF"
High Time Frame Handler Library:
Provides utilities for working with High Time Frame (HTF) and chart (LTF) conversions and data retrieval.
IsChartTFcomparisonHTF(_chartTf, _htfTf)
IsChartTFcomparisonHTF
@description
Determine whether the given High Time Frame (HTF) is greater than or equal to the current chart timeframe.
Parameters:
_chartTf (string) : The current chart’s timeframe string (examples: "5", "15", "1D").
_htfTf (string) : The High Time Frame string to compare (examples: "60", "1D").
@return
Returns true if HTF minutes ≥ chart minutes, false otherwise or na if conversion fails.
GetHTFrevised(_tf, _case)
GetHTFrevised
@description
Retrieve a specific bar value from a Higher Time Frame (HTF) series.
Supports current and historical OHLC values, based on a case identifier.
Parameters:
_tf (string) : The target HTF string (examples: "60", "1D").
_case (string) : A case string determining which OHLC value and bar offset to request:
"b" → HTF bar_index
"o" → HTF open
"h" → HTF high
"l" → HTF low
"c" → HTF close
"o1" → HTF open one bar ago
"h1" → HTF high one bar ago
"l1" → HTF low one bar ago
"c1" → HTF close one bar ago
… up to "o5", "h5", "l5", "c5" for five bars ago.
@return
Returns the requested HTF value or na if _case does not match any condition.
GetHTFfromLabel(_label)
GetHTFfromLabel
@description
Convert a Korean HTF label into a Pine Script-recognizable timeframe string.
Examples:
"5분" → "5"
"1시간" → "60"
"일봉" → "1D"
"주봉" → "1W"
"월봉" → "1M"
"연봉" → "12M"
Parameters:
_label (string) : The Korean HTF label string (examples: "5분", "1시간", "일봉").
@return
Returns the Pine Script timeframe string corresponding to the label, or "1W" if no match is found.
GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)
GetHTFoffsetToLTFoffset
@description
Adjust an HTF bar index and offset so that it aligns with the current chart’s bar index.
Useful for retrieving historical HTF data on an LTF chart.
Parameters:
_offset (int) : The HTF bar offset (0 means current HTF bar, 1 means one bar ago, etc.).
_chartTf (string) : The current chart’s timeframe string (examples: "5", "15", "1D").
_htfTf (string) : The High Time Frame string to align (examples: "60", "1D").
@return
Returns the corresponding LTF bar index after applying HTF offset. If result is negative, returns 0.
Göstergeler ve stratejiler
Volumatic Variable Index Dynamic Average [BigBeluga]Added alerts "Trend up" or "Tren down" to the VIDYA indicator. Thanks to BigBeluga.
HMA 200/150 Trading StrategyThis strategy uses the Hull Moving Average (HMA) to generate buy and sell signals based on price action relative to the HMA 200, with take profit signals based on the HMA 150. It includes a configurable date range for backtesting, allowing users to test the strategy over specific periods.
How It Works
Entry Signals:
Buy: Triggered when the price closes above the HMA 200.
Sell: Triggered when the price closes below the HMA 200.
Take Profit Signals:
Buy Take Profit: Exits the buy position when the price closes below the HMA 150.
Sell Take Profit: Exits the sell position when the price closes above the HMA 150.
Backtest Period: Users can set start and end dates (year, month, day) to limit the strategy’s execution to a specific time range for backtesting purposes.
Settings
Start Year/Month/Day: Set the start date for backtesting (default: January 1, 2023).
End Year/Month/Day: Set the end date for backtesting (default: December 31, 2025).
Visuals
HMA 200: Plotted in blue, used for entry signals.
HMA 150: Plotted in orange, used for take profit signals.
Buy Signal: Green triangle below the bar.
Sell Signal: Red triangle above the bar.
Take Profit Signals: Yellow diamonds (above for buy TP, below for sell TP).
Usage
Add the strategy to your chart.
Adjust the backtest period in the settings to analyze performance over a specific time frame.
Monitor the plotted HMA lines and signals for potential trade entries and exits.
Backtest on your preferred timeframe and asset to evaluate performance.
Notes
This strategy is designed for trend-following and works best in trending markets.
Always test the strategy on a demo account before using it in live trading.
Performance may vary depending on the asset, timeframe, and market conditions.
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results. Always conduct your own research and risk management.
OA - Sigma BandsDescription:
The OA - Sigma Bands indicator is a fully adaptive, volatility-sensitive dynamic band system designed to detect price expansion and potential breakouts. Unlike traditional fixed-width Bollinger Bands, OA - Sigma Bands adjust their boundaries based on a combination of standard deviation (σ) and Average Daily Range (ADR), making them more responsive to real market behavior and shifts in volatility.
Key Concepts & Logic
This tool constructs three distinct band regions:
Sigma Bands (±σ):
Calculated using the standard deviation of the closing price over a user-defined lookback period. This acts as the core volatility filter to identify statistically significant price deviations.
ADR Zones (±ADR):
These zones provide an additional layer based on the percentage average of daily price ranges over the last 20 bars. They help visualize intraday or short-term expected volatility.
Dynamic Adjustment Logic:
When price breaks outside the upper/lower sigma or ADR boundaries for a defined number of bars (user input), the system recalibrates. This ensures that the bands evolve with volatility and don’t remain outdated in trending markets.
Inputs & Customization
Sigma Multiplier: Set how wide the sigma bands should be (default: 1.5).
Lookback Period: Controls how many bars are used to calculate the standard deviation (default: 200).
Break Confirmation Bars: Determines how many candles must close beyond a boundary to trigger band recalibration.
ADR Period: Internally fixed at 20 bars for stable short-term volatility measurement.
Full Color Customization: Customize the band colors and fill transparency to suit your chart style.
Benefits & Use Cases
Breakout Trading: Detect when price exits statistically significant ranges, confirming trend expansion.
Mean Reversion: Use the outer bands as potential reversion zones in sideways or low-volatility markets.
Volatility Awareness: Visually identify when price is compressed or expanding.
Dynamic Structure: The auto-updating nature makes it more reliable than static historical zones.
Overlay-Ready: Designed to sit directly on price charts with minimal clutter.
Disclaimer
This script is intended for educational and informational purposes only. It does not constitute investment advice, financial guidance, or a recommendation to buy or sell any security. Always perform your own research and apply proper risk management before making trading decisions.
If you enjoy this script or find it useful, feel free to give it or leave a comment!
Bot LabelsLive 1-minute BTCGBP chart with automated VWAP, current volume, and 20-bar average volume labels. Designed for bot integration to detect high-volume breakouts or momentum shifts. Updated every minute with real-time data for precision entry signals. Ideal for algorithmic trading or volume-based strategy monitoring.
Digital RSI Display (Bottom-Right)Digitial display bottom right of chart, displays RSI live during market hours.
Over 70 RSI turns red to indicate overbought
Under 30 RSI turns green to indicate oversold
SImple & easy.
Critical Pivot PointsCritical pivot points, marked on chart.
Top pivot points marked with green box
Bottom pivot points marked with red box
Simple & easy!
Golden SMA 50 200Two simple moving averages (short-term vs long-term), e.g. 50-day and 200-day SMA.
Signal: Enter long (bullish) when the short MA crosses above the long MA (a Golden Cross); exit (or go short) when it crosses below (a Death Cross). This classic trend-following combo keeps you in bull markets and gets you out during prolonged downtrends. In Bitcoin, using a MA crossover on daily charts filters out noise and catches the big trend reversals.
Pattern DetectorPattern detector - detects double tops, double bottoms, wedges & other common patterns. Draws the lines & prints on chart what it's identifying.
eriktrades1995: supply demandThe Institutional Supply and Demand Zones indicator aims to identify and mark key price reversal areas on charts. These zones are considered places where institutions (large funds) concentrate their buying (forming demand zones) or selling (forming supply zones).
The core logic involves processing each candlestick sequentially. Before identifying new zones, the indicator checks if existing ones are still valid: demand zones become invalid if the current low breaks below their bottom, and supply zones become invalid if the current high breaks above their top. The most crucial part is identifying new zones, primarily based on the combination of the "previous" and "current" candlesticks. A demand zone (potential support) typically forms when a strong bullish candlestick (e.g., engulfing or significant reversal) appears after a bearish or doji candlestick, indicating strong buying interest. Conversely, a supply zone (potential resistance) usually forms when a strong bearish candlestick appears after a bullish or doji candlestick, signaling strong selling interest. The boundaries of these zones are typically derived from the open, high, or low prices of the candlesticks that form the pattern. Finally, the indicator draws the most recent and still valid supply zones (often filled in red as resistance) and demand zones (often filled in green as support) on the chart, up to a predefined maximum number. In essence, this indicator analyzes price action, particularly comparing candlestick body sizes and engulfing relationships, to pinpoint price levels where significant institutional buying or selling power might be concentrated. These zones can then act as support or resistance when prices re-approach them in the future.
Liquidity Sweep Candlestick Pattern with MA Filter📌 Liquidity Sweep Candlestick Pattern with MA Filter
This custom indicator detects liquidity sweep candlestick patterns—price action events where the market briefly breaks a previous candle’s high or low to trap traders—paired with optional filters such as moving averages, color change candles, and strictness rules for better signal accuracy.
🔍 What is a Liquidity Sweep?
A liquidity sweep occurs when the price briefly breaks the high or low of a previous candle and then reverses direction. These events often occur around key support/resistance zones and are used by institutional traders to trap retail positions before moving the price in the intended direction.
🟢 Bullish Liquidity Sweep Criteria
The current candle is bullish (closes above its open).
The low of the current candle breaks the low of the previous candle.
The candle closes above the previous candle’s open.
Optionally, in Strict mode, it must also close above the previous candle’s high.
Optionally, it can be filtered to only show if the candle changed color from the previous one (e.g., red to green).
Can be filtered to only show when the price is above or below a moving average (if MA filter is enabled).
🔴 Bearish Liquidity Sweep Criteria
The current candle is bearish (closes below its open).
The high of the current candle breaks the high of the previous candle.
The candle closes below the previous candle’s open.
Optionally, in Strict mode, it must also close below the previous candle’s low.
Optionally, it can be filtered to only show if the candle changed color from the previous one (e.g., green to red).
Can be filtered to only show when the price is above or below a moving average (if MA filter is enabled).
⚙️ Features & Customization
✅ Signal Strictness
Choose between:
Less Strict (default): Basic wick break and close conditions.
Strict: Must close beyond the wick of the previous candle.
✅ Color Change Candles Only
Enable this to only show patterns when the candle color changes (e.g., from red to green or green to red). Helps filter fake-outs.
✅ Moving Average Filter (optional)
Supports several types of MAs: SMA, EMA, WMA, VWMA, RMA, HMA
Choose whether signals should only appear above or below the selected moving average.
✅ Custom Visuals
Show short (BS) or full (Bull Sweep / Bear Sweep) labels
Plot triangles or arrows to represent bullish and bearish sweeps
Customize label and shape colors
Optionally show/hide the moving average line
✅ Alerts
Includes alert options for:
Bullish sweep
Bearish sweep
Any sweep
📈 How to Use
Add the indicator to your chart.
Configure the strictness, color change, or MA filters based on your strategy.
Observe signals where price is likely to reverse after taking out liquidity.
Use with key support/resistance levels, order blocks, or volume zones for confluence.
⚠️ Note
This tool is for educational and strategy-building purposes. Always confirm signals with other indicators, context, and sound risk management.
Gold BBW Mean ReversionBollinger Band Width Mean Reversion Strategy.
Strategy Components:
1. Bollinger Bands Settings:
• Period (N): 20
• Standard Deviation (K): 2
• Middle Band: 20-period Simple Moving Average (SMA)
2. Bollinger Band Width (BBW):
Calculated as: BBW = (Upper Band - Lower Band) / Middle Band * 100
3. Volatility Threshold:
• Average BBW: a 100-period SMA of the BBW.
• Trigger Condition: Current BBW > 2 × 100 SM Average on BBW
4. Entry Signals:
• Long Entry:
o Price closes below the lower Bollinger Band.
o Subsequent candle closes back inside the bands.
• Short Entry:
o Price closes above the upper Bollinger Band.
o Subsequent candle closes back inside the bands.
5. Stop Loss & Take Profit:
• Stop Loss: 1.5 × Average True Range (ATR) from the entry price.
• Take Profit: Return to the middle Bollinger Band (20-period SMA).Mind Math Money
________________________________________
🕒 Recommended Timeframe
A 15-minute chart is optimal for this strategy on Gold.
Premarket Sweep Strategy [ES/NQ]My first strategy.
Liquidity sweep on 2 min timeframe.
Tested on 7 trades with 100% win rate.
I am the best LOL
SMC Breakout Bot [XAUUSD 5m]not finished but i have hit a wall. if anyyone refines it and makes it better could you message me. i would really appreciate it
MSI | Algo ApprenticeThree In One Indicator:
- Michael's EMA (12/21)
- SuperTrend
- Impulsive Candle Detector
GM! LFG!
Custom Trend Bar ColorsTrend Bar Study with multiple MAs, and standard indicators pointing in the same direction.
Green = Bullish
Red = Bearish
Grey = Sideways
Vertical Line at Specific TimeDraws a vertical line at a specific time.
Vertical lines at specific times of the day may help make it easier to identify parts of a session.
If you know you perform better during certain parts of the day utilize these lines to help stay aware of your trading session.
The hours seem a bit buggy but just adjust the time to make the lines what you want to see on the chart. The time can be adjusted in settings to get what you want it to do.
Supertrend Tight Flip (v5)This is a faster responding version of the supertrend indicator
• Uses ATR Period = 5, Multiplier = 1.5
• Buy/Sell signals flip faster for responsive scalping
• Built with Pine Script v5 for compatibility
GStrategy1️⃣ Long entry based on RSI divergences.
2️⃣ Exit based on RSI filter (RSI> 40 after at least N bars).
3️⃣ Exit if the price has fallen more than 10% from the entry point.
4️⃣ Visualization of % difference for monitoring.
5️⃣ Flexibility: all parameters are configurable in the arguments window.
RSI Multi-TF TabRSI Multi-Timeframe Table 📊
A tool for multi-timeframe RSI analysis with visual overbought/oversold level highlighting.
Description
This indicator calculates the Relative Strength Index (RSI) for the current chart and displays RSI values across five additional timeframes (15m, 1h, 4h, 1d, 1w) in a dynamic table. The color-coded system simplifies identifying overbought (>70), oversold (<30), and neutral zones. Visual signals on the chart enhance analysis for the current timeframe.
Key Features
✅ Multi-Timeframe Analysis :
Track RSI across 15m, 1h, 4h, 1d, and 1w in a compact table.
Color-coded alerts:
🔴 Red — Overbought (potential pullback),
🔵 Blue — Oversold (potential rebound),
🟡 Yellow — Neutral zone.
✅ Visual Signals :
Background shading for oversold/overbought zones on the main chart.
Horizontal lines at 30 and 70 levels for reference.
✅ Customizable Settings :
Adjust RSI length (default: 14), source (close, open, high, etc.), and threshold levels.
How to Use
Table Analysis :
Compare RSI values across timeframes to spot divergences (e.g., overbought on 15m vs. oversold on D).
Use colors for quick decisions.
Chart Signals :
Blue background suggests bullish potential (oversold), red hints at bearish pressure (overbought).
Always confirm with other tools (volume, trends, or candlestick patterns).
Examples :
RSI(1h) > 70 while RSI(4h) < 30 → Possible reversal upward.
Sustained RSI(1d) above 50 may indicate a bullish trend.
Settings
RSI Length : Period for RSI calculation (default: 14).
RSI Source : Data source (close, open, high, low, hl2, hlc3, ohlc4).
Overbought/Oversold Levels : Thresholds for alerts (default: 70/30).
Important Notes
No direct trading signals : Use this as an analytical tool, not a standalone strategy.
Test strategies historically and consider market context before trading.
High-Frequency Candle-Following StrategyThis indicator gives buy an sell signals based on the EMAs and Atr value at the time of trading.