Session Bar/Candle ColoringChange the color of candles within a user-defined trading session. Borders and wicks can be changed as well, not just the body color.
PREFACE
This script can be used an educational resource for those who are interested in learning Pine Script. Therefore, the script is published open source and is organized in a manner that follows the recommended Style Guide .
While the main premise of the indicator is rather simple, the script showcases various things that can be achieved such as conditional plotting, alignment of indicator settings, user input validation, script optimization, and more. The script also has examples of taking into consideration the chart timeframe and/or different chart types (Heikin Ashi, Renko, etc.) that a user might be running it on. Note: for complete beginners, I strongly suggest going through the Pine Script User Manual (possibly more than once).
FEATURES
Besides being able to select a specific time window, the indicator also provides additional color settings for changing the background color or changing the colors of neutral/indecisive candles, as shown in the image below.
This allows for a higher level of customization beyond the TradingView chart settings or other similar scripts that are currently available.
HOW TO USE
First, define the intraday trading session that will contain the candles to modify. The session can be limited to specific days of the week.
Next, select the parts of the candles that should be modified: Body, Borders, Wick, and/or Background.
For each of the candle parts that were enabled, you can select the colors that will be used depending on whether a candle is bullish (⇧), bearish (⇩), or neutral (⇆).
All other indicator settings will have a detailed tooltip to describe its usage and/or effect.
LIMITATIONS
The indicator is not intended to function on Daily or higher timeframes due to the intraday nature of session time windows.
The indicator cannot always automatically detect the chart type being used, therefore the user is requested to manually input the chart type via the " Chart Style " setting.
Depending on the available historical data and the selected choice for the " Portion of bar in session " setting, the indicator may not be able to update very old candles on the chart.
EXAMPLE USAGE
This section will show examples of different scenarios that the indicator can be used for.
Emphasizing a main trading session.
Defining a "Pre/post market hours background" like is available for some symbols (e.g., NASDAQ:AAPL ).
Highlighting in which bar the midnight candle occurs.
Hiding indecision bars (neutral candles).
Showing only "Regular Trading Hours" for a chart that does not have the option to toggle ETH/RTH. To achieve this, the actual chart data is hidden, and only the indicator is visible; alternatively, a 2nd instance of the indicator could change colors to match the chart background.
Using a combination of Bars and Japanese Candlesticks. Alternatively, this could be done by hiding the main chart data and using 2 instances of the indicator (one with " Chart Style " setting as Bars , and the other set to Candles ).
Using a combination of thin and thick bars on Range charts. Note: requires disabling the "Thin Bars" setting for Bar charts in the TradingView chart settings.
NOTES
If using more than one instance of this indicator on the same chart, you can use the TradingView "Save Indicator Template" feature to avoid having to re-configure the multiple indicators at a later time.
This indicator is intended to work "out-of-the-box" thanks to the behind_chart option introduced to Pine Script in October 2024. But you can always manually bring the indicator to the front just in case the color changes are not being seen (using the "More" option in the indicator status line: More > Visual Order > Bring to front ).
Many thanks to fikira for their help and inspiring me to create open source scripts.
Any feedback including bug reports or suggestions for improving the indicator (or source code itself) are always welcome in the comments section.
Chỉ báo và chiến lược
Crosses MAs (+ BB, RSI)This indicator displays the crosses of MA's with different length, the Bollinger bands and the current value of the RSI in table. Almost all of this can be customized.
TollDateLevels - BalaRtoll date levels - BalaR
written for education purposes to understand these levels
JJ Psychological Levels (125 Increments)Psychological Levels Indicator
Description:
The Psychological Levels Indicator is a versatile tool designed for traders to identify key price levels that often act as support or resistance zones in the market. These levels are plotted at regular intervals, customizable by the user, starting from a base price level. This is particularly useful for spotting psychological price points that traders and investors frequently monitor.
Key Features:
1.Dynamic Psychological Levels:
- The script calculates and displays horizontal lines at price levels separated by customizable increments (default: 125 points).
- These levels are dynamically adjusted to the visible range of the chart.
2. Customizable Inputs:
- Starting Level: Set the base level from which increments are calculated (e.g., 0 or 1000).
- Step Size: Define the interval between levels (e.g., 125 for indices like Bank NIFTY).
3. Visual Representation:
- Horizontal lines are drawn at each psychological level, helping traders quickly identify key zones.
- Labels are placed next to each level, displaying the corresponding price for easy reference.
4. Application Across Instruments:
- This indicator works seamlessly with various asset classes, including stocks, indices, forex, and cryptocurrencies.
How to Use:
1.Identify Key Price Zones:
- Use the plotted psychological levels to spot areas where price action is likely to react.
- Levels such as 1125, 1250, and 1375 (for a step size of 125) are visually highlighted.
2. Plan Trades Around Key Levels:
- These levels can act as support/resistance or breakout points, providing opportunities for entry, exit, and stop-loss placement.
3. Customizable Settings:
- Adjust the starting level and step size to tailor the indicator to your trading instrument or strategy.
Why Psychological Levels Matter:
Psychological levels are widely followed by traders and often coincide with key market turning points due to their significance in human behavior and market psychology. They are frequently used by institutional traders, making them valuable reference points for intraday and swing trading.
Custom Settings:
- **Starting Level:** Default: `0`
- **Step Size:** Default: `125`
Disclaimer:
This indicator is a technical analysis tool and is not intended to provide financial advice. Always combine it with other indicators and perform your due diligence before making trading decisions.
Compare Symbol [LuxmiAI]This indicator allows users to plot candles or bars for a selected symbol and add a moving average of their choice as an underlay. Users can customize the moving average type and length, making it versatile for a wide range of trading strategies.
This script is designed to offer flexibility, letting traders select the symbol, timeframe, candle style, and moving average type directly from the input options. The moving averages include the Exponential Moving Average (EMA), Simple Moving Average (SMA), Weighted Moving Average (WMA), and Volume-Weighted Moving Average (VWMA).
Features of the Script
This indicator provides the following key features:
1. Symbol Selection: Users can input the ticker symbol for which they want to plot the data.
2. Timeframe Selection: The script allows users to choose a timeframe for the symbol data.
3. Candle Styles: Users can select from three styles - regular candles, bars, or Heikin-Ashi candles.
4. Moving Average Options: Users can choose between EMA, SMA, WMA, and VWMA for added trend analysis.
5. Customizable Moving Average Length: The length of the moving average can be adjusted to suit individual trading strategies.
How the Script Works
The script starts by taking user inputs for the symbol and timeframe. It then retrieves the open, high, low, and close prices of the selected symbol and timeframe using the request.security function. Users can select between three candle styles: standard candles, bars, and Heikin-Ashi candles. If Heikin-Ashi candles are selected, the script calculates the Heikin-Ashi open, high, low, and close values.
To add further analysis capabilities, the script includes a moving average. Traders can select the moving average type from EMA, SMA, WMA, or VWMA and specify the desired length. The selected moving average is then plotted on the chart to provide a clear visualization of the trend.
Step-by-Step Implementation
1. Input Options: The script starts by taking inputs for the symbol, timeframe, candle style, moving average type, and length.
2. Data Retrieval: The script fetches OHLC data for the selected symbol and timeframe using request.security.
3. Candle Style Logic: It determines which candle style to plot based on the user’s selection. If Heikin-Ashi is selected, the script calculates Heikin-Ashi values.
4. Moving Average Calculation: Depending on the user’s choice, the script calculates the selected moving average.
5. Visualization: The script plots the candles or bars and overlays the moving average on the chart.
Benefits of Using This Indicator
This custom indicator provides multiple benefits for traders. It allows for quick comparisons between symbols and timeframes, helping traders identify trends and patterns. The flexibility to choose different candle styles and moving averages enhances its adaptability to various trading strategies. Additionally, the ability to customize the moving average length makes it suitable for both short-term and long-term analysis.
ASLANMAX METEASLANMAX METE
📊 OVERVIEW:
This advanced TradingView indicator is a professional trading tool powered by an AI-powered signal generation algorithm.
🔍 KEY FEATURES:
Multi-Indicator Integration
Fisher Transform
Momentum
RSI
CCI
Stochastic Oscillator
Ultimate Oscillator
Dynamic Signal Generation
Risk tolerance adjustable
Volatility-based thresholds
Confidence score calculation
Special Signal Types
Buy/Sell Signals
"Meto" Up Crossing Signal
"Zico" Down Crossing Signal
🧠 AI-LIKE TECHNIQUES:
Integrated signal line
Dynamic threshold mechanism
Multi-indicator correlation
💡 USAGE ADVANTAGES:
Flexible parameter settings
Low and high risk modes
Real-time signal generation
Adaptation to different market conditions
⚙️ ADJUSTABLE PARAMETERS:
Basic Period
EMA Period
Risk Tolerance
Volatility Thresholds
🔔 SIGNAL TYPES:
Buy Signal (Green)
Sell Signal (Red)
Meto Signal (Yellow Triangle Up)
Zico Signal (Purple Triangle Down)
🌈 VISUALIZATION:
Integrated Line (Red)
EMA Line (Blue)
Background Color Changes
Signal Shapes
⚠️ RECOMMENDATIONS:
Be sure to test in your own market
Do not neglect risk management
Use multiple approval mechanisms
🔬 TECHNICAL INFRASTRUCTURE:
Pine Script v6
Advanced mathematical algorithms
Dynamic calculation techniques
🚦 PERFORMANCE TIPS:
Test in different time frames
Find optimal parameters
Apply risk management rules
💼 AREAS OF USE:
Cryptocurrency
Stocks Stock
Forex
Commodities
🌟 SPECIAL RECOMMENDATION:
This indicator is for informational purposes only. Support your investment decisions with professional advisors and your own research.
Supply and Demand ZonesUsed basic concept of supply and Demand zone on the char to write this script. it might be help us easily mark up supply and demand zone.
Volume Weighted Moving Average (TechnoBlooms)The Volume Weighted Moving Average Oscillator (VWMO) is a custom technical indicator designed to measure market momentum while accounting for volume. It helps traders assess whether price movements are supported by strong or weak trading volumes. The VWMO provides insights into potential trends by comparing current momentum with historical averages.
Indicator Overview:
The VWMO is based on a combination of price and volume data, highlighting the relationship between these two components to generate a clear oscillation value. The oscillator displays dynamic insights into market strength, capturing price directionality and volume alignment.
Key Features:
1. Dynamic Visualization of Momentum:
o The oscillator displays positive and negative momentum by analyzing the relationship between price movements and trading volume over a specified period.
o Positive momentum typically represents a bullish market, while negative momentum reflects bearish conditions.
2. Volume-Weighted Analysis:
o Volume is incorporated to give an adjusted price perspective, where price movements on high-volume days have more influence on the resulting oscillator values.
3. Trend Confirmation via EMA:
o An Exponential Moving Average (EMA) of the oscillator is plotted to smooth the raw oscillator values and provide trend confirmation.
o The EMA is essential for identifying whether the oscillator is in an upward or downward trend. It also serves as a support for evaluating when momentum might reverse.
4. Visual Indicators and Color Coding:
o The indicator uses varying color intensities to differentiate between strong and weak momentum.
o Bullish and bearish momentum is visually reflected by colors, offering at-a-glance guidance on potential trade opportunities.
5. Overbought and Oversold Thresholds:
o Horizontal lines at predefined levels (e.g., +100 and -100) help to define overbought and oversold areas, which assist in identifying overextended price movements that may signal reversals.
6. Scalability & Adaptability:
o The indicator allows for adjustment of the period, EMA length, and other key parameters to tailor its usage according to different asset classes or timeframe preferences.
The Game of Momentum_ArrowsStock prediction based on momentum:
1. Momentum Crosses Above Average - 1st Tranche entry
2. Momentum Turns Blue - Full Entry
3. Momentum Turns Red - Exit Half
4. Momentum Crosses Below Average - Exit
PİVOTS AND ECHO pivots kodları ve echo indicatörünün birleşimiyle yapılan çiftleme işlemider denem aşaasında olum hağlan geliştirilmekte olmaktadır bundan dolayı hiçbir işlem yatırım tavsiyesi diğildir
Inducement - Liquidity HuntInducement - Liquidity Hunt
This indicator aims to deliver some sniper entries based on the SMC concept of Inducement
Adaptive SuperTrend StrategyThe Adaptive SuperTrend Trading Strategy is an advanced trading algorithm inspired by the Machine Learning Adaptive SuperTrend @AlgoAlpha indicator. This strategy enhances the traditional SuperTrend concept by integrating volatility clustering, adaptive ATR-based trend detection, and a structured entry/exit system. It aims to maximize trading efficiency by reducing false signals and capturing trends with optimized risk management.
How It Works
The strategy revolves around the following key components:
1. Adaptive SuperTrend Calculation
The core SuperTrend is calculated using the ATR (Average True Range) with an adjustable factor to detect trend direction.
Trend shifts are confirmed using directional crossovers (ta.crossunder(dir, 0) for bullish shifts and ta.crossover(dir, 0) for bearish shifts).
2. Volatility Clustering via Machine Learning
The strategy applies a k-means-like clustering method to segment market volatility into three categories:
High Volatility (Cluster 0): Avoids trend entries due to unstable market conditions.
Medium Volatility (Cluster 1): Accepts entries but with cautious stop-loss management.
Low Volatility (Cluster 2): Ideal conditions for trend-following entries.
Clustering is derived from historical ATR values, ensuring adaptability to changing market conditions.
3. Entry and Exit Rules
Long Entry Conditions:
Bullish trend shift (ta.crossunder(dir, 0)).
Market is in low or medium volatility to avoid choppy conditions.
Price is above the SuperTrend line.
Short Entry Conditions:
Bearish trend shift (ta.crossover(dir, 0)).
Market is in high volatility, indicating a strong downward move.
Price is below the SuperTrend line.
Exit Conditions:
Stop-loss and take-profit are determined by ATR multipliers.
A long trade is exited when price crosses below the SuperTrend line.
A short trade is exited when price crosses above the SuperTrend line.
How It Captures Profit
Trend Following: By entering trades at trend shifts and staying in the trend, the strategy maximizes profit potential.
Volatility Filtering: Avoids trading in highly volatile, unpredictable conditions, reducing drawdowns.
Risk Management: Uses ATR-based stop-loss and take-profit to dynamically adjust for different market conditions.
Best Markets & Timeframes
This strategy is versatile and can be applied across multiple markets and timeframes:
Best Markets
Forex (EUR/USD, GBP/USD, USD/JPY): Works well due to trending nature.
Cryptocurrency (Bitcoin, Ethereum, Solana): Captures major trend moves with volatility filtering.
Stocks (AAPL, TSLA, AMZN): Ideal for swing trading on daily or 4H charts.
Commodities (Gold, Oil, Silver): Performs well in breakout trends and trending cycles.
Recommended Timeframes
Intraday (15m, 30m, 1H): Works well for active traders who want frequent trades.
Swing Trading (4H, Daily): Captures major trends for medium-term traders.
Long-Term (Weekly, Monthly): Useful for filtering macro trends and long-term investing.
Conclusion
The Adaptive SuperTrend Trading Strategy builds upon the Machine Learning Adaptive SuperTrend concept by incorporating trend confirmation, volatility clustering, and risk management into a robust trading system. It provides high-probability trade entries while minimizing risk through volatility-based filtering.
With its adaptability across different markets and timeframes, it serves as a powerful tool for traders looking to optimize their trend-following strategies while maintaining strong risk control mechanisms.
HamzLabs - OB + EMA + PSARThe "HamzLabs - OB + EMA + PSAR" indicator is a powerful tool designed for traders who want a comprehensive view of market trends and potential reversal points. It combines three main features: Parabolic SAR (PSAR), Order Blocks (OB), and an EMA Ribbon.
PSAR: The PSAR helps spot trend direction and potential reversals. It’s plotted as a dynamic line above or below price. Green lines indicate an upward trend, while aqua lines signify a downward trend.
Order Blocks: These highlight areas where the price might reverse or consolidate. Bullish order blocks suggest areas of strong buying interest, and bearish order blocks indicate selling pressure. These blocks are dynamically drawn on the chart and adjust as the price evolves.
Alerts: The script provides alerts when the price enters these order blocks, helping traders act quickly on potential buy or sell opportunities.
Customization: You can adjust the sensitivity of order block detection, PSAR settings, and visual styles to suit your trading strategy.
Together, these tools help you identify key levels, spot trends, and time your trades more effectively, all while maintaining clear and customizable visuals. Perfect for dark mode charts!
Distance Between Price and EMA with SD BandsMade with chatgpt.
The indicator measures the distance between price and an EMA of choice, with SD1 and SD2.
Disable plot and ema to see the actual indicator.
9-Period RSI with 3 EMAs, 21 WMA, and 50 DEMA //@version=5
indicator("9-Period RSI with 3 EMAs, 21 WMA, and 50 DEMA", overlay=false)
// Input for RSI length
rsiLength = input.int(9, title="RSI Length", minval=1)
// Input for EMA lengths
emaLength1 = input.int(5, title="EMA Length 1", minval=1)
emaLength2 = input.int(10, title="EMA Length 2", minval=1)
emaLength3 = input.int(20, title="EMA Length 3", minval=1)
// Input for WMA length
wmaLength = input.int(21, title="WMA Length", minval=1)
// Input for DEMA length
demaLength = input.int(50, title="DEMA Length", minval=1)
// Calculate RSI
rsiValue = ta.rsi(close, rsiLength)
// Calculate EMAs based on RSI
ema1 = ta.ema(rsiValue, emaLength1)
ema2 = ta.ema(rsiValue, emaLength2)
ema3 = ta.ema(rsiValue, emaLength3)
// Calculate WMA based on RSI
wma = ta.wma(rsiValue, wmaLength)
// Calculate DEMA based on RSI
ema_single = ta.ema(rsiValue, demaLength)
ema_double = ta.ema(ema_single, demaLength)
dema = 2 * ema_single - ema_double
// Plot RSI
plot(rsiValue, color=color.blue, title="RSI")
// Plot EMAs
plot(ema1, color=color.orange, title="EMA 1 (5)")
plot(ema2, color=color.purple, title="EMA 2 (10)")
plot(ema3, color=color.teal, title="EMA 3 (20)")
// Plot WMA
plot(wma, color=color.yellow, title="WMA (21)", linewidth=2)
// Plot DEMA
plot(dema, color=color.red, title="DEMA (50)", linewidth=2)
// Add horizontal lines for reference
hline(70, "Overbought", color=color.red, linestyle=hline.style_dotted)
hline(30, "Oversold", color=color.green, linestyle=hline.style_dotted)
hline(50, "Midline", color=color.gray, linestyle=hline.style_dotted)
Ultra Disparity IndexGain insights into price movements across multiple timeframes with the Ultra Disparity Index . This indicator highlights overbought/oversold levels based on price disparities from moving averages.
Introduction
The Ultra Disparity Index is designed for traders who seek a deeper understanding of price movements and trends across various timeframes. By analyzing the disparity between the current price and its moving averages, the indicator helps identify overbought and oversold conditions.
Detailed Description
The indicator works by calculating the percentage difference between the current price and its moving averages over four user-defined lengths. It operates on multiple timeframes monthly, weekly, daily, 4-hour, and 1-hour giving traders a comprehensive view of market dynamics.
.........
Disparity Calculation
The indicator computes how far the current price is from moving averages to reveal the degree of disparity.
.....
Overbought/Oversold Zones
By normalizing disparities into percentages relative to the overbought/oversold range, the indicator represents overbought (100%) and oversold (-100%).
.....
Timeframe Flexibility
The user can visualize data from monthly to hourly intervals, ensuring adaptability to different trading strategies.
.....
Customizable Inputs
Users can configure moving average lengths and toggle visibility for specific timeframes and levels.
.........
Summary
The indicator uses simple moving averages (SMAs) as a benchmark for calculating disparity. This disparity is then analyzed using statistical tools, such as standard deviation, to derive meaningful levels. Finally, the results are visualized in a table, providing traders with an easy-to-read summary of disparity values and their respective normalized percentages.
KingPinStrategiesKingPinStrategies Discord tool gjhjdsrryhjfjfjfjjjfjfkghkghkfjdjdjdjgfjgfjdgjgfjgjgj
Open Close Cross Strategy R5.1 with SL/TPOpen Close Cross Strategy with SL/TP.
SL can be set at the low or high from the last candels.
TP can be changed about R:R.