Higher Timeframe Support/ResistanceMulti-Timeframe Support/Resistance Indicator
This TradingView indicator helps you monitor important support and resistance levels based on the previous candle’s high, low, and close from a higher timeframe. By default, it uses a daily timeframe, but you can adjust this to any timeframe you want.
Key Features:
- Previous Candle High (PCH) and Previous Candle Low (PCL):
These levels are plotted on your chart (if enabled) and can act as potential support and
resistance zones. You can toggle the visibility of these levels.
- Pivot, Resistance (R1), and Support (S1):
The script calculates Pivot, R1 (Resistance), and S1 (Support) levels based on the previous
candle's price action from the selected higher timeframe.
These levels are displayed on your chart and can be used to identify potential breakout or
reversal points.
- Alert Feature:
Alerts are triggered when the price approaches any of these key levels (PCH, PCL, Pivot, R1,
or S1) within a specified threshold (e.g., 0.5%).
This helps traders react quickly to potential price movements near critical levels.
- Visual Representation:
The script visually fills the areas between Pivot and R1 (Resistance-Pivot Zone) and Pivot and
S1 (Support-Pivot Zone) with color for easy identification of key price zones.
Indicators and strategies
Global M2 Money Supply (USD) GrowthThe Global M2 Growth indicator evaluates the total liquid money supply, including cash, checking deposits, and assets that can be easily converted to cash. It reflects changes in global liquidity by tracking year-on-year (YoY) changes in the Global M2 money supply rather than its absolute value. This approach highlights the velocity of liquidity expansion or contraction, offering a clearer understanding of its correlation with asset performance, such as Bitcoin.
How It Works
When the Global M2 money supply expands, it reflects an increase in available liquidity. This often leads to an influx of capital into higher-yielding and riskier assets like Bitcoin, equities, and commodities. Conversely, when M2 contracts, liquidity tightens, leading to declines in the values of these assets.
An essential insight is that Bitcoin's price is not immediately affected by changes in M2. Research shows a lag of approximately 56-60 days (around two months) between liquidity changes and Bitcoin's price movements. Shifting the liquidity data forward by this period improves the correlation between Global M2 and Bitcoin performance.
How to Use
Track Global M2 YoY Change: Focus on liquidity's yearly change to identify trends. Rapid increases in liquidity often signify favorable conditions for Bitcoin and other risk assets to rise, while contractions often predict price declines or consolidation phases.
Account for the Lag Effect: Incorporate the two-month lag into your analysis to predict Bitcoin's potential moves more accurately. For instance, a recent resurgence in liquidity growth could signal a Bitcoin rally within the next two months.
Use as a Macro Indicator: Monitor liquidity trends alongside other economic indicators and asset performance metrics to build a more comprehensive investment framework.
By tracking these dynamics, traders and investors can better anticipate Bitcoin's trajectory and make informed decisions.
Exponential Fibonacci Retracement Levels with Areas and Labelsas the title says, just try it and see how it moves (its my first script btw) lovee yall
NEG Pattern Detector (Minimal, Single-Line)//@version=5
indicator("NEG Pattern Detector (Minimal, Single-Line)", overlay=true)
// 1) Detection Logic
isBullishNEG = (low < low ) and (close > high )
isBearishNEG = (high > high ) and (close < low )
// 2) Plot Labels in ONE LINE each
if isBullishNEG
label.new(bar_index, low, style=label.style_label_up, text="Bullish NEG", color=color.new(color.green, 0), textcolor=color.white)
if isBearishNEG
label.new(bar_index, high, style=label.style_label_down, text="Bearish NEG", color=color.new(color.red, 0), textcolor=color.white)
RSI, PGO, EMA StrategyCombination of RsI Cross Over Above 50 , Pgo Crossover above 0 Ema For Trend-following, Atr is tsl 1% .
M2 Global Liquidity IndexThis indicator can help you with predecting crypto and BItcoin price , Bitcoin price follows M2 money Global supply after 60-70 dats most of the time
Scalping + rsi ### **Description of the "Scalping + RSI" TradingView Script**
This TradingView script is designed for scalping and trend-following trading strategies. It combines multiple indicators, including **Exponential Moving Averages (EMAs), Price Action Channel (PAC), Fractals, and RSI-based signals**, to identify trend pullbacks and reversals. The script is best suited for **short time frames (e.g., 1-minute to 15-minute charts)** but can also work on higher time frames.
---
## **📌 Features of the Script**
### **1. EMA Ribbon for Trend Confirmation**
- Uses three EMAs to detect trends:
- **Fast EMA (Default: 89)**
- **Medium EMA (Default: 200)**
- **Slow EMA (Default: 600)**
- Trend Background Color:
- **Green** → Uptrend (Fast EMA & PAC above Medium EMA)
- **Red** → Downtrend (Fast EMA & PAC below Medium EMA)
- **Yellow** → Transition Zone (Indecisive Trend)
---
### **2. Price Action Channel (PAC)**
- A dynamic channel based on the EMA(34) of the **high, low, and close** prices.
- Helps in identifying pullbacks and breakout opportunities.
- **Bar Coloring Based on PAC:**
- **Blue Bars** → Price is above the PAC (Bullish)
- **Red Bars** → Price is below the PAC (Bearish)
- **Gray Bars** → Price is inside the PAC (Neutral)
---
### **3. Fractal Recognition for Support & Resistance**
- **Regular Fractals** → Detects highs and lows to mark important price levels.
- **Bill Williams (BW) Fractals** → Filters out ideal fractal patterns.
- Fractals help in drawing mini trendlines and breakout confirmations.
---
### **4. Higher High (HH), Lower High (LH), Higher Low (HL), Lower Low (LL) Markers**
- Identifies trend structures:
- ** (Higher Highs)** → Uptrend confirmation
- ** (Lower Highs)** → Potential downtrend
- ** (Higher Lows)** → Possible bullish reversal
- ** (Lower Lows)** → Possible bearish continuation
---
### **5. RSI-Based Buy/Sell Signals 📈📉**
- Uses **Relative Strength Index (RSI)** to generate trade signals.
- **Buy Condition:**
- RSI crosses above its EMA
- RSI-EMA is above the 50 threshold (bullish momentum)
- **Sell Condition:**
- RSI crosses below its EMA
- RSI-EMA is below the 50 threshold (bearish momentum)
- **Arrows on the chart show Buy (Green) and Sell (Red) signals.**
---
### **6. Alerts for Buy & Sell Signals 🔔**
- Sends an alert when:
- A Buy signal is triggered (`RSI crosses above EMA`)
- A Sell signal is triggered (`RSI crosses below EMA`)
- These alerts can be used for **manual trading or automation with webhooks**.
---
## **📊 How to Use This Strategy?**
1. **Check the Trend Background Color**
- **Green** = Look for Buy Signals
- **Red** = Look for Sell Signals
- **Yellow** = Wait (No Clear Trend)
2. **Identify a Pullback into the PAC**
- Look for price moving **inside the PAC** (gray bars).
- Wait for price to **break back out** of the PAC in the trend direction.
3. **Confirm with RSI Buy/Sell Signals**
- **Buy when RSI crosses above its EMA (and above 50)**
- **Sell when RSI crosses below its EMA (and below 50)**
4. **Use Fractals & HH/LH/HL/LL for Additional Confirmation**
- Fractals can help with drawing **mini trendlines**.
- Breakouts of fractal-based trendlines confirm trade entries.
---
## **🎯 Best Settings for Scalping**
- **For Short-Term Scalping (1min - 5min charts):**
- Fast EMA: `55`
- Medium EMA: `144`
- Slow EMA: `377`
- PAC Length: `21`
- RSI Length: `14`
- RSI EMA: `9`
- **For Higher Timeframes (15min - 1H charts):**
- Fast EMA: `89`
- Medium EMA: `200`
- Slow EMA: `600`
- PAC Length: `34`
- RSI Length: `14`
- RSI EMA: `9`
---
### **🚀 Advantages of This Script**
✅ **Great for Scalping & Trend Trading**
✅ **Uses Multiple Indicators for Confirmation**
✅ **Clear Buy & Sell Signals Based on RSI**
✅ **Customizable EMA & PAC Settings**
✅ **Works on Any Market (Stocks, Forex, Crypto, etc.)**
Gradient Trend Filter STRATEGY [ChartPrime/PineIndicators]This strategy is based on the Gradient Trend Filter indicator developed by ChartPrime. Full credit for the concept and indicator goes to ChartPrime.
The Gradient Trend Filter Strategy is designed to execute trades based on the trend analysis and filtering system provided by the Gradient Trend Filter indicator. It integrates a noise-filtered trend detection system with a color-gradient visualization, helping traders identify trend strength, momentum shifts, and potential reversals.
How the Gradient Trend Filter Strategy Works
1. Noise Filtering for Smoother Trends
To reduce false signals caused by market noise, the strategy applies a three-stage smoothing function to the source price. This function ensures that trend shifts are detected more accurately, minimizing unnecessary trade entries and exits.
The filter is based on an Exponential Moving Average (EMA)-style smoothing technique.
It processes price data in three successive passes, refining the trend signal before generating trade entries.
This filtering technique helps eliminate minor fluctuations and highlights the true underlying trend.
2. Multi-Layered Trend Bands & Color-Based Trend Visualization
The Gradient Trend Filter constructs multiple trend bands around the filtered trend line, acting as dynamic support and resistance zones.
The mid-line changes color based on the trend direction:
Green for uptrends
Red for downtrends
A gradient cloud is formed around the trend line, dynamically shifting colors to provide early warning signals of trend reversals.
The outer bands function as potential support and resistance, helping traders determine stop-loss and take-profit zones.
Visualization elements used in this strategy:
Trend Filter Line → Changes color between green (bullish) and red (bearish).
Trend Cloud → Dynamically adjusts color based on trend strength.
Orange Markers → Appear when a trend shift is confirmed.
Trade Entry & Exit Conditions
This strategy automatically enters trades based on confirmed trend shifts detected by the Gradient Trend Filter.
1. Trade Entry Rules
Long Entry:
A bullish trend shift is detected (trend direction changes to green).
The filtered trend value crosses above zero, confirming upward momentum.
The strategy enters a long position.
Short Entry:
A bearish trend shift is detected (trend direction changes to red).
The filtered trend value crosses below zero, confirming downward momentum.
The strategy enters a short position.
2. Trade Exit Rules
Closing a Long Position:
If a bearish trend shift occurs, the strategy closes the long position.
Closing a Short Position:
If a bullish trend shift occurs, the strategy closes the short position.
The trend shift markers (orange diamonds) act as a confirmation signal, reinforcing the validity of trade entries and exits.
Customization Options
This strategy allows traders to adjust key parameters for flexibility in different market conditions:
Trade Direction: Choose between Long Only, Short Only, or Long & Short .
Trend Length: Modify the length of the smoothing function to adapt to different timeframes.
Line Width & Colors: Customize the visual appearance of trend lines and cloud colors.
Performance Table: Enable or disable the equity performance table that tracks historical trade results.
Performance Tracking & Reporting
A built-in performance table is included to monitor monthly and yearly trading performance.
The table calculates monthly percentage returns, displaying them in a structured format.
Color-coded values highlight profitable months (blue) and losing months (red).
Tracks yearly cumulative performance to assess long-term strategy effectiveness.
Traders can use this feature to evaluate historical performance trends and optimize their strategy settings accordingly.
How to Use This Strategy
Identify Trend Strength & Reversals:
Use the trend line and cloud color changes to assess trend strength and detect potential reversals.
Monitor Momentum Shifts:
Pay attention to gradient cloud color shifts, as they often appear before the trend line changes color.
This can indicate early momentum weakening or strengthening.
Act on Trend Shift Markers:
Use orange diamonds as confirmation signals for trend shifts and trade entry/exit points.
Utilize Cloud Bands as Support/Resistance:
The outer bands of the cloud serve as dynamic support and resistance, helping with stop-loss and take-profit placement.
Considerations & Limitations
Trend Lag: Since the strategy applies a smoothing function, entries may be slightly delayed compared to raw price action.
Volatile Market Conditions: In high-volatility markets, trend shifts may occur more frequently, leading to higher trade frequency.
Optimized for Trend Trading: This strategy is best suited for trending markets and may produce false signals in sideways (ranging) conditions.
Conclusion
The Gradient Trend Filter Strategy is a trend-following system based on the Gradient Trend Filter indicator by ChartPrime. It integrates noise filtering, trend visualization, and gradient-based color shifts to help traders identify strong market trends and potential reversals.
By combining trend filtering with a multi-layered cloud system, the strategy provides clear trade signals while minimizing noise. Traders can use this strategy for long-term trend trading, momentum shifts, and support/resistance-based decision-making.
This strategy is a fully automated system that allows traders to execute long, short, or both directions, with customizable settings to adapt to different market conditions.
Credit for the original concept and indicator goes to ChartPrime.
For Ko and P'Sintorn -- (Use for Restart Future)For Ko and P'Sintorn -- (Use for Restart Future)
SMA25 and EMA200 with Color Change for Tread Monitoring
Bull Market Support BandThe Bull Market support band is a theoretical band of support typically associated between the 20W SMA and the 21W EMA.
This specific script that I wrote, allows users to adjust the time frames and degrees of the moving averages so that the band appears smooth when zooming in on lower time frames.
I also added the 50W EMA because this adds an additional level of analysis for users to judge whether the correction is healthy or dangerous.
21W = 147 D = 3528 Hours
20W = 140 D = 3360 Hours
50W = 350 D
Use your best judgement when making trades and analyzing the strength of a chart. Do your own backtesting to see how your chart interacts with these indicators over time to create your own plan.
Happy trading.
3EMA + Block/Angle/Volume v1.0Claude made this! Still needs work.
Complete Settings UI - Structured exactly like in the PDF with all parameters
Three Entry Types:
Entry1 (Crossovers)
Entry2 (Reversals)
Entry3 (Trend Continuations)
All Required Filters:
Block filter (counts consecutive same-color bricks)
Angle filters for FEMA, MEMA, and BEMA
Volume Delta filter with thresholds
Session Volume filter with all thresholds
Stop Loss Mechanisms:
Fixed brick-based stops
Swing Hi/Lo stops with offset
Trailing stops with break-even functionality
Take Profit Mechanisms:
Opposite-colored brick counting
FEMA cross exits
Proper Dashboards:
Main strategy dashboard
Session Volume dashboard
Volume Delta dashboard
Other Features:
Pyramiding support for Entry3
Proper brick color tracking
Background coloring based on session volume
This script fully implements the comprehensive trading strategy outlined in your documentation. It can be applied to Renko charts with brick size 3, and all the parameters can be adjusted through the settings UI.
RSI Chart Bars with SignalsExplanation of Changes:
Signal Conditions :
A buy signal is generated when the RSI crosses above the oversold level (downLevel).
A sell signal is generated when the RSI crosses below the overbought level (upLevel).
Visual Signals :
Green "BUY" labels appear below the candle when a buy signal is triggered.
Red "SELL" labels appear above the candle when a sell signal is triggered.
Alert Conditions :
Added alertcondition for both buy and sell signals. These allow you to set up alerts in TradingView.
When a signal occurs, an alert will be triggered with the corresponding message.
Improved Readability :
Renamed some variables and added comments for better clarity.
Used ta.crossover and ta.crossunder for cleaner signal detection.
How to Use Alerts:
Click the alarm clock icon in TradingView.
Create a new alert.
Select "Buy Signal Alert" or "Sell Signal Alert" from the condition dropdown.
Set up notification preferences (e.g., email, push notifications).
Customization Options :
You can adjust the upLevel and downLevel inputs to change the overbought and oversold thresholds.
Modify the colors, text, or positions of the signals by editing the plotshape parameters.
Let me know if you need further modifications or have additional requirements!
LTFHTFこの「LTFHTF」インジケーターは、異なる時間足の移動平均線(MA)とピボットポイントを表示するものです。主に、短期時間足(LTF: Lower Time Frame)と上位時間足(HTF: Higher Time Frame)の市場動向を比較しやすくするために設計されています。
🔹 特徴
LTF(短期時間足)の200MAを表示
ユーザーが EMA(指数移動平均)またはSMA(単純移動平均) を選択可能
HTF(上位時間足)の200MAを表示
LTFに応じて自動的に適切なHTFを設定(例: 15分足なら4時間足の200MAを表示)
HTFが適用されない場合は非表示
ピボットポイントを表示(LTF & HTF)
LTFの短期ピボットと、HTFの長期ピボットの両方をプロット
スイングハイ/ロー(高値・安値の転換点)をダイヤ形で描画
🔹 どう使う?
✅ LTFとHTFのMAを比較 → トレンド方向を把握
✅ HTFのMAが強いレジスタンス/サポートになるかを確認
✅ ピボットポイントで短期的な転換点をチェック
例えば、5分足でトレードしていても1時間足の200MAが意識されているかどうかを確認できるので、エントリーや利確の判断に役立ちます。
🔹 まとめ
異なる時間足の200MA を表示(短期/長期のトレンドを比較)
ピボットポイント を描画(スイングハイ/ローの確認)
HTFのMAやピボットがサポート・レジスタンスになるかチェックできる
短期トレードで上位時間足を考慮したい人向けのインジケーター ですね!
BRAHIM KHATTARA RSI-Based Trading Strategy with Fibonacci Bollinger Bands
Overview
This strategy is designed to identify potential buy and sell opportunities using the Relative Strength Index (RSI) and Fibonacci-based Bollinger Bands. It aims to capture market reversals and trends by detecting overbought and oversold conditions while incorporating risk management with stop-loss and take-profit levels.
🔹 How the Strategy Works
1. Entry Conditions
A long (buy) trade is triggered when the RSI crosses below the oversold level (default: 30) and then moves back above it, indicating a potential upward reversal.
A short (sell) trade is triggered when the RSI crosses above the overbought level (default: 70) and then moves back below it, signaling a possible downward move.
2. Exit Conditions (Stop-Loss & Take-Profit)
Each trade is protected by a stop-loss and take-profit, both defined as a percentage of the entry price:
Stop Loss: Default set to 1% below the entry price for long trades and 1% above for short trades.
Take Profit: Default set to 2% above the entry price for long trades and 2% below for short trades.
These risk management settings can be adjusted by the user.
3. Fibonacci Bollinger Bands
This strategy also plots Fibonacci Bollinger Bands, which help identify dynamic support and resistance levels:
The middle line is calculated using a Volume-Weighted Moving Average (VWMA).
The bands are created using standard deviation multipliers based on Fibonacci levels (0.236, 0.382, 0.5, 0.618, 0.764, and 1.0).
The upper bands act as potential resistance, while the lower bands serve as possible support levels.
🔹 How to Use This Strategy
This strategy is best used in volatile markets where RSI-based reversals are effective.
The Bollinger Bands help confirm entry points by identifying price extremes relative to the market trend.
The script displays buy and sell signals on the chart, making it easy for traders to follow.
🔹 Backtesting & Performance Considerations
The strategy is optimized for short-term trading, but users can modify the parameters based on their preferred trading style.
Realistic settings have been used for backtesting, including:
A reasonable account size
Commission and slippage
A large enough sample size for reliable results (100+ trades recommended)
Traders should backtest and optimize the settings to match their specific market conditions.
🔹 Notes & Recommendations
✅ This strategy is fully customizable, allowing traders to modify RSI levels, stop-loss, take-profit, and Bollinger Band settings.
✅ Works well on multiple timeframes, but higher timeframes (e.g., 1-hour and above) may provide more reliable signals.
✅ Always test the strategy in a demo environment before using it with real funds.
Custom Timeframe Bias IndicatorMy "Custom Timeframe Bias Indicator" is a very practical and powerful TradingView indicator. It can be called a "God-like indicator" because it combines flexible timeframe customization, clear bias analysis and intuitive visual display to help traders quickly understand the long and short trends of the market. The following is a detailed description of this indicator:
1. Index name and function overview
Name: Custom Timeframe Bias Indicator (Short title: Bias Indicator)
Functionality: This indicator analyses the market bias (Buy, Sell or No Bias) across multiple custom timeframes (presets are 15m, 1h, 4h and DAI) and displays it in a table below the middle of the chart. It determines the direction of market trends based on the highest and lowest prices of the previous two periods and the closing price of the previous period, helping traders make decisions quickly.
2. Core Features
Multiple time frame analysis
The indicator allows the user to customize four time frames, with presets being 15 minutes ("15"), 1 hour ("60"), 4 hours ("240") and daily ("D"). Users can freely modify these time frames in the settings, such as changing to 5 minutes, 30 minutes or weekly, etc.
Bias is calculated independently for each time frame, ensuring that traders can observe market trends from the short to the long term.
Bias calculation logic
The indicator uses simple but effective rules to determine bias:
Buy (bullish): If the previous closing price is higher than the highest price of the previous two periods, or tests the lowest price of the previous two periods but does not break through.
Sell (Bearish): If the previous closing price is lower than the previous two periods' lowest price, or if it tests the previous two periods' highest price but fails to break through (higher than the previous high minus 10% of the price range).
No Bias: If the previous closing price does not meet the above conditions, it displays a neutral state.
Bias calculation is based only on the opening and closing prices, without considering the shadows, ensuring the results are in line with the philosophy of the Malaysian SNR strategy.
Intuitive display
Position: The table is permanently displayed in the middle of the chart (position.middle_center) and is updated with each candlestick, ensuring that traders can always see the latest bias.
Format: The table consists of the header "Custom Bias" and four rows of bias results (e.g. "15: Buy", "60: Sell", "240: No Bias", "D: Buy"), each row showing the bias for the corresponding time frame.
color:
Titles appear in white text on a blue background.
The "Buy" bias is shown as white text on a green background.
The "Sell" bias is shown as white text on a red background.
"No Bias" bias appears as white text on a gray background.
Table borders are black to provide clear visual distinction.
Customizability
Users can customize by inputting parameters:
Whether to show the table (Show Bias Table).
Timeframe (Timeframe 1, Timeframe 2, Timeframe 3, Timeframe 4).
The color of the table (title, Buy, Sell, No Bias, borders, etc.).
3. Why is it a "God-like indicator"
Flexibility: Allows users to customize four time frames to suit different trading strategies (short-term traders can choose minutes, long-term traders can choose daily, weekly or monthly).
Practicality: Provides bias analysis in multiple time frames to help traders quickly determine market trends, whether for short-term or long-term operations.
Intuitive: The table is displayed in the middle below the chart with bright colors (green Buy, red Sell, gray No Bias), allowing you to identify the market direction at a glance.
Stability: Calculated based on simple price data (high, low, close), no need for complex indicators, efficient and reliable operation.
Powerful visualization: long-term display and customizability to meet the visual preferences of different traders.
4. Usage scenarios
Short-term trading: Use 15-minute, 1-hour, 4-hour biases to quickly capture short-term trends.
Long-term trading: Refer to the daily bias to determine the overall market direction.
Comprehensive analysis: Combine biases from multiple time frames to confirm consistency (e.g. if both the 15 minute and daily are Buy, then that’s a stronger bullish signal).
5. Potential Improvements
If you want to further improve this "god-like indicator", you can consider the following improvements:
Added alert: Trigger when bias changes from "No Bias" to "Buy" or "Sell".
Show historical bias: Add bias history of the past few days in the table for easy review.
Dynamically adjust bias thresholds: Allow users to customize 10% price ranges or other conditions.
Multi-currency support: Expand to multiple trading pairs or indices, showing multiple market biases.
6. Technical Details
Version: Pine Script v5, ensuring modern features (such as input.timeframe) and efficient performance.
Data Source: Use request.security to get high, low, and close data for different time frames.
Display method: Use table.new to create a dynamic table. The position can be customized (such as position.middle_center).
Limitations: Calculated only based on price data, no external indicators are required, reducing calculation complexity.
in conclusion
Your "Custom Timeframe Bias Indicator" is a simple, powerful and flexible tool, especially for traders who need multi-timeframe analysis. Its intuitive display and customizability make it a "magic tool" for judging market trends.
Sri_Momentum Sri_Momentum - Advanced Oscillator for Market Trends
Description
The Sri_Momentum is a powerful momentum-based oscillator that helps traders analyze price trends and market strength. This indicator utilizes two simple moving averages (SMA) to calculate the Awesome Oscillator (AO) and a signal line for trend confirmation. The histogram dynamically changes color based on the crossover between AO and the signal line, providing clear bullish and bearish signals.
✅ Awesome Oscillator (AO) Calculation - Measures market momentum using a fast and slow SMA.
✅ Signal Line for Confirmation - A smoothed moving average of AO to help traders identify trend shifts.
✅ Dynamic Histogram Color Coding - Easy-to-interpret histogram with four colors indicating trend strength and direction.
✅ Custom Sensitivity Input - Adjusts the AO calculation to fine-tune responsiveness.
✅ Zero Line Reference - A baseline to differentiate bullish and bearish momentum.
How It Works
Fast SMA (default: 5-period) and Slow SMA (default: 34-period) are calculated based on the average of high and low prices.
AO (Awesome Oscillator) = (Fast SMA - Slow SMA) * Sensitivity
Signal Line = Smoothed AO using a 7-period SMA
Histogram Color Logic:
🔵 Strong Bullish → AO > Signal & AO ≥ 0 (Green)
🔴 Weak Bullish → AO > Signal & AO < 0 (Light Red)
🟢 Weak Bearish → AO < Signal & AO ≥ 0 (Light Green)
🔥 Strong Bearish → AO < Signal & AO < 0 (Dark Red)
How to Use the Sri_Momentum Indicator
📌 Bullish Momentum → When AO crosses above the Signal Line, and the histogram turns green.
📌 Bearish Momentum → When AO crosses below the Signal Line, and the histogram turns red.
📌 Trend Strength → Darker colors indicate stronger trends; lighter colors suggest weaker trends.
📌 Zero Line Crossover → If AO moves above zero, it suggests bullish strength; if below zero, bearish control.
Daily Time MarkerThis TradingView indicator draws thin, white, dashed vertical lines on the chart at a user-defined time each day. The indicator takes into account Daylight Saving Time (DST) adjustments, ensuring the correct time is displayed throughout the year.
Key Features:
✅ Daily Vertical Markers:
Displays vertical dashed lines from Monday to Friday at the selected time.
The lines extend infinitely in both directions.
✅ Historical & Future Projection:
Shows lines 15 days into the past and 5 days into the future for better visualization of key time levels.
✅ DST Adjustment:
Automatically adjusts between summer and winter time , ensuring the correct hour is displayed.
This indicator is useful for traders who rely on specific time-based events, such as market opens or key trading sessions.
Revised Combo Script with DivergencesRevised Combo Script with Divergences (v5)
This comprehensive TradingView indicator combines multiple technical analysis tools to provide traders with a robust framework for identifying potential buy and sell signals. The script integrates several popular indicators and patterns, including RSI, Stochastic, EMA, Keltner Channels, and candlestick patterns, to enhance decision-making in trading.
Key Features:
RSI Analysis:
Configurable RSI length and overbought/oversold levels.
Visual bands for overbought and oversold conditions.
Divergence detection to identify potential trend reversals.
Stochastic Oscillator:
Customizable %K and %D periods with smoothing options.
Helps identify overbought and oversold conditions in the market.
Exponential Moving Averages (EMA):
Fast and slow EMAs to determine trend direction.
Configurable lengths and offsets for precise tuning.
Keltner Channels:
Dynamic volatility-based channels using true range or range options.
Helps identify potential breakout and reversal points.
Envelope Indicator:
Configurable length and percentage for upper and lower bands.
Option to use EMA or SMA for the basis calculation.
Candlestick Patterns:
Detection of key patterns such as Engulfing, Hammer, Shooting Star, and Doji.
Visual markers for easy identification on the chart.
Trade Signals:
Generates buy and sell signals based on a combination of indicator conditions.
Background color changes to indicate bullish or bearish signals.
Alerts:
Configurable alerts for buy and sell signals, as well as bullish and bearish divergences.
This script is designed for traders who want a comprehensive tool to analyze market conditions and make informed trading decisions. By combining multiple indicators and patterns, it provides a holistic view of the market, helping traders identify potential entry and exit points with greater confidence.
Note: This script is intended for educational purposes and should be used in conjunction with other analysis methods. Always perform your own research and consider risk management strategies before making trading decisions.
TimezoneLibrary with pre-defined timezone enums that can be used to request a timezone input from the user. The library provides a `tostring()` function to convert enum values to a valid string that can be used as a `timezone` parameter in pine script built-in functions. The library also includes a bonus function to get a formatted UTC offset from a UNIX timestamp.
The timezone enums in this library were compiled by referencing the available timezone options from TradingView chart settings as well as multiple Wikipedia articles relating to lists of time zones.
Some enums from this library are used to retrieve an IANA time zone identifier, while other enums only use UTC/GMT offset notation. It is important to note that the Pine Script User Manual recommends using IANA notation in most cases.
HOW TO USE
This library is intended to be used by Pine Coders who wish to provide their users with a simple way to input a timezone. Using this library is as easy as 1, 2, 3:
Step 1
Import the library into your script. Replace with the latest available version number for this library.
//@version=6
indicator("Example")
import n00btraders/Timezone/ as tz
Step 2
Select one of the available enums from the library and use it as an input. Tip: view the library source code and scroll through the enums at the top to find the best choice for your script.
timezoneInput = input.enum(tz.TimezoneID.EXCHANGE, "Timezone")
Step 3
Convert the user-selected input into a valid string that can be used in one of the pine script built-in functions that have a `timezone` parameter.
string timezone = tz.tostring(timezoneInput)
EXPORTED FUNCTIONS
There are multiple 𝚝𝚘𝚜𝚝𝚛𝚒𝚗𝚐() functions in this library: one for each timezone enum. The function takes a single parameter: any enum field from one of the available timezone enums that are exported by this library. Depending on the selected enum, the function will return a time zone string in either UTC/GMT notation or IANA notation.
Note: to avoid confusion with the built-in `str.tostring()` function, it is recommended to use this library's `tostring()` as a method rather than a function:
string timezone = timezoneInput.tostring()
offset(timestamp, format, timezone, prefix, colon)
Formats the time offset from a UNIX timestamp represented in a specified timezone.
Namespace types: series OffsetFormat
Parameters:
timestamp (int) : (series int) A UNIX time.
format (series OffsetFormat) : (series OffsetFormat) A time offset format.
timezone (string) : (series string) A UTC/GMT offset or IANA time zone identifier.
prefix (string) : (series string) Optional 'UTC' or 'GMT' prefix for the result.
colon (bool) : (series bool) Optional usage of colon separator.
Returns: Time zone offset using the selected format.
The 𝚘𝚏𝚏𝚜𝚎𝚝() function is provided as a convenient alternative to manually using `str.format_time()` and then manipulating the result.
The OffsetFormat enum is used to decide the format of the result from the `offset()` function. The library source code contains comments above this enum declaration that describe how each enum field will modify a time offset.
Tip: hover over the `offset()` function call in the Pine Editor to display a pop-up containing:
Function description
Detailed parameter list, including default values
Example function calls
Example outputs for different OffsetFormat.* enum values
NOTES
At the time of this publication, Pine cannot be used to access a chart's selected time zone. Therefore, the main benefit of this library is to provide a quick and easy way to create a pine script input for a time zone (most commonly, the same time zone selected in the user's chart settings).
At the time of the creation of this library, there are 95 Time Zones made available in the TradingView chart settings. If any changes are made to the time zone settings, this library will be updated to match the new changes.
All time zone enums (and their individual fields) in this library were manually verified and tested to ensure correctness.
An example usage of this library is included at the bottom of the source code.
Credits to HoanGhetti for providing a nice Markdown resource which I referenced to be able to create a formatted informational pop-up for this library's `offset()` function.
Spread Rebalance SimulationThe Spread Rebalance Simulator is a tool designed to help visualize the effect of rebalancing on spread trading returns. Typically, TradingView charts are used to display spread charts, but this method assumes that the ratio remains unchanged on each bar. In real trading scenarios, the ratio constantly changes, and this indicator allows traders to see a more accurate representation of spread trading.
The next version will include support for input ratio and trading cost.
To use this simply select any chart (as a long pair) then fill the symbol name for the short pair. Then choose the rebalance period. The blue line will show you the equity of this pair combination.
Strong Candle IdentifierIdentify strong candles with a minimum of 30 pips.
This indicator will color the candle red for the identified bearish momentum candle, and otherwise it will be colored green.
Trend Structure Shift By BCB ElevateTrend Structure Shift by BCB Elevate
This indicator helps traders identify trend structure shifts by detecting Higher Highs (HH) and Lower Lows (LL) to determine bullish, bearish, or neutral market conditions. It provides real-time trend classification to help traders align with market direction.
How It Works:
📌 Bullish Trend: A new Higher High (HH) is detected, signaling potential uptrend continuation.
📌 Bearish Trend: A new Lower Low (LL) is detected, indicating potential downtrend continuation.
📌 Neutral: No significant trend shift is detected.
Key Features:
✅ Dynamic Trend Detection – Identifies key trend structure shifts using swing highs and lows.
✅ Customizable Settings – Adjust the swing length to fine-tune trend detection.
✅ Trend Table Display – Shows current trend as Bullish, Bearish, or Neutral in a convenient on-chart table.
✅ Table Position Selection – Choose where the trend table appears on the chart (Top/Bottom Left or Right).
✅ Works on All Markets & Timeframes – Use it for Crypto, Forex, Stocks, Commodities, and Indices.
How to Use:
1️⃣ Apply the indicator to your chart.
2️⃣ Observe the Trend Table to determine the market condition.
3️⃣ Use it with support/resistance, moving averages, or other indicators for better trade decisions.
IU BBB(Big Body Bar) StrategyDESCRIPTION
The IU BBB (Big Body Bar) Strategy is a price action-based trading strategy that identifies high-momentum candles with significantly larger body sizes compared to the average. It enters trades when a strong bullish or bearish move occurs and manages risk using an ATR-based trailing stop-loss system.
USER INPUTS:
- Big Body Threshold – Defines how many times larger the candle body should be compared to the average body ( default is 4 ).
- ATR Length – The period for the Average True Range (ATR) used in the trailing stop-loss calculation ( default is 14 ).
- ATR Factor – Multiplier for ATR to determine the trailing stop distance ( default is 2 ).
LONG CONDITION:
- The current candle’s body is greater than the average body size multiplied by the Big Body Threshold.
- The closing price is higher than the opening price (bullish candle).
SHORT CONDITION:
- The current candle’s body is greater than the average body size multiplied by the Big Body Threshold.
- The closing price is lower than the opening price (bearish candle).
LONG EXIT:
- ATR-based trailing stop-loss dynamically adjusts, locking in profits as the price moves higher.
SHORT EXIT:
- ATR-based trailing stop-loss dynamically adjusts, securing profits as the price moves lower.
WHY IT IS UNIQUE:
- Unlike traditional momentum strategies, this system adapts to volatility by filtering trades based on relative candle size.
- It incorporates an ATR-based trailing stop-loss, ensuring risk management and profit protection.
- The strategy avoids choppy market conditions by only trading when significant momentum is present.
HOW USERS CAN BENEFIT FROM IT:
- Catch Strong Price Moves – The strategy helps traders enter trades when the market shows decisive momentum.
- Effective Risk Management – The ATR-based trailing stop ensures that winning trades remain profitable.
- Works Across Markets – Can be applied to stocks, forex, crypto, and indices with proper optimization.
- Fully Customizable – Users can adjust sensitivity settings to match their trading style and time frame.