Günlük Alış ve Satış Sinyalleri (5 Günlük ve 22 Günlük)//@version=6
indicator('Günlük Alış ve Satış Sinyalleri (5 Günlük ve 22 Günlük)', overlay = true)
// 5 günlük ve 22 günlük hareketli ortalamaların hesaplanması
sma5 = ta.sma(close, 5) // 5 günlük SMA
sma22 = ta.sma(close, 22) // 22 günlük SMA
// Alış ve satış sinyalleri
longCondition = ta.crossover(sma5, sma22) // 5 günlük SMA'nın 22 günlük SMA'yı yukarıdan kesmesi
shortCondition = ta.crossunder(sma5, sma22) // 5 günlük SMA'nın 22 günlük SMA'yı aşağıdan kesmesi
// Sinyalleri grafikte gösterme
plotshape(longCondition, style = shape.labelup, location = location.belowbar, color = color.green, size = size.small, text = 'AL', offset = -1)
plotshape(shortCondition, style = shape.labeldown, location = location.abovebar, color = color.red, size = size.small, text = 'SAT', offset = -1)
// Hareketli ortalamaların grafikte gösterimi
plot(sma5, color = color.orange, title = '5 Günlük SMA', linewidth = 2)
plot(sma22, color = color.blue, title = '22 Günlük SMA', linewidth = 2)
// Fiyattan uzaklığı görselleştirmek için SMA'lar arası mesafenin gösterilmesi
fill(plot(sma5, color = color.orange, title = '5 Günlük SMA'), plot(sma22, color = color.blue, title = '22 Günlük SMA'), color = color.new(color.gray, 90), title = 'SMA Alanı')
Indicators and strategies
sma 9/20 crossThis Pine Script is designed to visualize the crossover between two Simple Moving Averages (SMAs) on a chart: a fast SMA (9-period) and a slow SMA (20-period). The script will dynamically adjust the background color based on whether the fast SMA is above or below the slow SMA.
Key Components of the Script:
Inputs for SMA Lengths:
The script allows you to adjust the lengths of the two SMAs by inputting values for smaFastLength (default = 9) and smaSlowLength (default = 20). These lengths define how many periods (candles) the SMAs consider when calculating the moving averages.
SMA Calculations:
The script calculates two SMAs using the close price:
smaFast is the 9-period SMA.
smaSlow is the 20-period SMA.
These are calculated using TradingView’s built-in ta.sma function, which computes the simple moving average for the given period.
Background Color Logic:
The background color is dynamically updated based on the crossover condition:
Green background: When the fast SMA (smaFast) is above the slow SMA (smaSlow), indicating a bullish trend.
Red background: When the fast SMA is below the slow SMA, indicating a bearish trend.
The bgcolor function is used to change the background color on the chart. The transparency of the background color is set to 35% using color.new(color.green, 35) or color.new(color.red, 35).
Plotting the SMAs:
The two SMAs are plotted on the chart for visual reference:
The fast SMA is plotted in lime green (color.blue).
The slow SMA is plotted in red (color.red).
sma 9/20 crossThis Pine Script is designed to visualize the crossover between two Simple Moving Averages (SMAs) on a chart: a fast SMA (9-period) and a slow SMA (20-period). The script will dynamically adjust the background color based on whether the fast SMA is above or below the slow SMA.
Key Components of the Script:
Inputs for SMA Lengths:
The script allows you to adjust the lengths of the two SMAs by inputting values for smaFastLength (default = 9) and smaSlowLength (default = 20). These lengths define how many periods (candles) the SMAs consider when calculating the moving averages.
SMA Calculations:
The script calculates two SMAs using the close price:
smaFast is the 9-period SMA.
smaSlow is the 20-period SMA.
These are calculated using TradingView’s built-in ta.sma function, which computes the simple moving average for the given period.
Background Color Logic:
The background color is dynamically updated based on the crossover condition:
Green background: When the fast SMA (smaFast) is above the slow SMA (smaSlow), indicating a bullish trend.
Red background: When the fast SMA is below the slow SMA, indicating a bearish trend.
The bgcolor function is used to change the background color on the chart. The transparency of the background color is set to 35% using color.new(color.green, 35) or color.new(color.red, 35).
Plotting the SMAs:
The two SMAs are plotted on the chart for visual reference:
The fast SMA is plotted in lime green (color.lime).
The slow SMA is plotted in red (color.red).
TEMA OBOS Strategy PakunTEMA OBOS Strategy
Overview
This strategy combines a trend-following approach using the Triple Exponential Moving Average (TEMA) with Overbought/Oversold (OBOS) indicator filtering.
By utilizing TEMA crossovers to determine trend direction and OBOS as a filter, it aims to improve entry precision.
This strategy can be applied to markets such as Forex, Stocks, and Crypto, and is particularly designed for mid-term timeframes (5-minute to 1-hour charts).
Strategy Objectives
Identify trend direction using TEMA
Use OBOS to filter out overbought/oversold conditions
Implement ATR-based dynamic risk management
Key Features
1. Trend Analysis Using TEMA
Uses crossover of short-term EMA (ema3) and long-term EMA (ema4) to determine entries.
ema4 acts as the primary trend filter.
2. Overbought/Oversold (OBOS) Filtering
Long Entry Condition: up > down (bullish trend confirmed)
Short Entry Condition: up < down (bearish trend confirmed)
Reduces unnecessary trades by filtering extreme market conditions.
3. ATR-Based Take Profit (TP) & Stop Loss (SL)
Adjustable ATR multiplier for TP/SL
Default settings:
TP = ATR × 5
SL = ATR × 2
Fully customizable risk parameters.
4. Customizable Parameters
TEMA Length (for trend calculation)
OBOS Length (for overbought/oversold detection)
Take Profit Multiplier
Stop Loss Multiplier
EMA Display (Enable/Disable TEMA lines)
Bar Color Change (Enable/Disable candle coloring)
Trading Rules
Long Entry (Buy Entry)
ema3 crosses above ema4 (Golden Cross)
OBOS indicator confirms up > down (bullish trend)
Execute a buy position
Short Entry (Sell Entry)
ema3 crosses below ema4 (Death Cross)
OBOS indicator confirms up < down (bearish trend)
Execute a sell position
Take Profit (TP)
Entry Price + (ATR × TP Multiplier) (Default: 5)
Stop Loss (SL)
Entry Price - (ATR × SL Multiplier) (Default: 2)
TP/SL settings are fully customizable to fine-tune risk management.
Risk Management Parameters
This strategy emphasizes proper position sizing and risk control to balance risk and return.
Trading Parameters & Considerations
Initial Account Balance: $7,000 (adjustable)
Base Currency: USD
Order Size: 10,000 USD
Pyramiding: 1
Trading Fees: $0.94 per trade
Long Position Margin: 50%
Short Position Margin: 50%
Total Trades (M5 Timeframe): 128
Deep Test Results (2024/11/01 - 2025/02/24)BTCUSD-5M
Total P&L:+1638.20USD
Max equity drawdown:694.78USD
Total trades:128
Profitable trades:44.53
Profit factor:1.45
These settings aim to protect capital while maintaining a balanced risk-reward approach.
Visual Support
TEMA Lines (Three EMAs)
Trend direction is indicated by color changes (Blue/Orange)
ema3 (short-term) and ema4 (long-term) crossover signals potential entries
OBOS Histogram
Green → Strong buying pressure
Red → Strong selling pressure
Blue → Possible trend reversal
Entry & Exit Markers
Blue Arrow → Long Entry Signal
Red Arrow → Short Entry Signal
Take Profit / Stop Loss levels displayed
Strategy Improvements & Uniqueness
This strategy is based on indicators developed by "l_lonthoff" and "jdmonto0", but has been significantly optimized for better entry accuracy, visual clarity, and risk management.
Enhanced Trend Identification with TEMA
Detects early trend reversals using ema3 & ema4 crossover
Reduces market noise for a smoother trend-following approach
Improved OBOS Filtering
Prevents excessive trading
Reduces unnecessary risk exposure
Dynamic Risk Management with ATR-Based TP/SL
Not a fixed value → TP/SL adjusts to market volatility
Fully customizable ATR multiplier settings
(Default: TP = ATR × 5, SL = ATR × 2)
Summary
The TEMA + OBOS Strategy is a simple yet powerful trading method that integrates trend analysis and oscillators.
TEMA for trend identification
OBOS for noise reduction & overbought/oversold filtering
ATR-based TP/SL settings for dynamic risk management
Before using this strategy, ensure thorough backtesting and demo trading to fine-tune parameters according to your trading style.
Order Blocks-[B.Balaei]Order Blocks -
**Description:**
The Order Blocks - indicator is a powerful tool designed to identify and visualize Order Blocks on your chart. Order Blocks are key levels where significant buying or selling activity has occurred, often acting as support or resistance zones. This indicator supports multiple timeframes (MTF), allowing you to analyze Order Blocks from higher timeframes directly on your current chart.
**Key Features:**
1. **Multi-Timeframe Support**: Choose any timeframe (e.g., Daily, Weekly) to display Order Blocks from higher timeframes.
2. **Customizable Sensitivity**: Adjust the sensitivity to detect more or fewer Order Blocks based on market conditions.
3. **Bullish & Bearish Order Blocks**: Clearly distinguishes between bullish (green) and bearish (red) Order Blocks.
4. **Alerts**: Get notified when price enters a Bullish or Bearish Order Block zone.
5. **Customizable Colors**: Personalize the appearance of Order Blocks to match your chart style.
**How to Use:**
1. Add the indicator to your chart.
2. Select your desired timeframe from the "Multi-Timeframe" settings.
3. Adjust the sensitivity and colors as needed.
4. Watch for Order Blocks to form and use them as potential support/resistance levels.
**Ideal For:**
- Swing traders and position traders looking for key levels.
- Traders who use multi-timeframe analysis.
- Anyone interested in understanding market structure through Order Blocks.
**Note:**
This indicator is for educational and informational purposes only. Always conduct your own analysis before making trading decisions.
**Enjoy trading with Order Blocks - !**
EMA y Parabolic SARMarkoni 2.0 - Scaramuzza
Este indicador combina cuatro medias móviles exponenciales (EMA) y el Parabolic SAR para ayudarte a identificar tendencias y posibles puntos de reversión en el mercado. Las EMAs proporcionan una visión clara de la tendencia a largo y corto plazo, mientras que el Parabolic SAR se utiliza para señalar posibles cambios en la dirección del precio.
Características:
EMA 200: Representa la tendencia a largo plazo. Cuando el precio está por encima de esta EMA, se considera una tendencia alcista, y cuando está por debajo, una tendencia bajista.
EMA 50: Indicador de la tendencia intermedia. Ayuda a filtrar las señales de corto plazo y da un panorama más claro de la dirección del mercado.
EMA 8 y EMA 21: Son EMAs más cortas que se utilizan para identificar movimientos rápidos y cambios en el mercado. Las cruces entre estas dos EMAs son señales clave de entrada y salida.
Parabolic SAR: Señala posibles puntos de reversión en la tendencia, ayudando a identificar cuándo el precio podría cambiar de dirección, basado en un sistema de puntos que aparecen por encima o debajo del precio.
¿Cómo utilizarlo?
Tendencia alcista: Cuando el precio está por encima de las EMAs más largas (200 y 50), y la EMA 8 está por encima de la EMA 21, se considera que el mercado está en una tendencia alcista.
Tendencia bajista: Cuando el precio está por debajo de las EMAs más largas, y la EMA 8 está por debajo de la EMA 21, el mercado está en una tendencia bajista.
Señales de reversión: El Parabolic SAR marca puntos de reversión. Si los puntos están por debajo del precio, podría indicar una reversión alcista, y si están por encima, una reversión bajista.
Este indicador es útil para traders que buscan seguir la tendencia y capturar puntos de entrada y salida basados en el análisis de varias EMAs y señales del Parabolic SAR.
Pearson Correlation Best MA [victhoreb]Pearson Correlation Best MA is an innovative indicator designed to dynamically select the moving average that best aligns with price action based on the Pearson correlation coefficient. Here’s what it does:
- Multiple MA Evaluation: The indicator computes eight different moving averages — SMA, EMA, DEMA, TEMA, LSMA, RMA, WMA, and VWMA — using a user-defined period.
- Correlation Analysis: For each moving average, it calculates the Pearson correlation with the price (using the average of high and low) over a specified correlation length, then identifies the one with the highest correlation.
- Optional Smoothing: Users can opt to further smooth the selected best moving average for an even more refined signal.
- Visual Cues: The indicator plots the “Best MA” on the chart, colors it based on its direction (bullish or bearish), and also displays the correlation value. Additionally, it can color the price candles to reflect the trend indicated by the best moving average.
- Customizability: All key parameters such as moving average length, correlation length, smoothing options, and color settings are fully customizable.
This tool helps traders by automatically adapting to market conditions—highlighting the moving average that is most in sync with current price trends, potentially improving trade timing and decision-making.
Irchesh Enhanced Momentum StrategyTrend Filter (EMA):
Dual EMA (50/200 periods) to identify the main trend
Long condition only when EMA 50 > EMA 200
Short condition only when EMA 50 < EMA 200
Momentum RSI with Divergences:
14-period RSI with customizable levels
Automatic detection of bullish/bearish divergences
Volume filter (1.5x the 20-period moving average)
Advanced Risk Management:
Fixed stop loss (1%) and take profit (2%)
Dynamic trailing stop (1.5%)
Option to disable the trailing stop
Additional Filters:
Price above/below fast EMA for confirmation
Volume above average to confirm strength
Recommended Optimization:
Test different EMA values (e.g., 21/50 instead of 50/200)
Adjust RSI parameters based on the timeframe
Experiment with different volume multipliers
Optimize stop loss/take profit levels
Important Notes:
The strategy works best in strongly trending markets
RSI divergences require volume confirmation
Use H1 or higher timeframes to reduce noise
Combine with fundamental analysis for better performance
SessionRangeLevels_v0.1SessionRangeLevels_v0.1 - Indicator Description
Overview:
SessionRangeLevels_v0.1 is a customizable Pine Script (v6) indicator designed to plot key price levels based on a user-defined trading session. It identifies the high and low of the session and calculates intermediate levels (75%, 50% "EQ", and 25%) within that range. These levels are projected forward as horizontal lines with accompanying labels, providing traders with dynamic support and resistance zones. The indicator supports extensive customization for session timing, time zones, line styles, colors, and more.
Key Features:
Session-Based Range Detection: Tracks the high and low prices during a specified session (e.g., 0600-0900) and updates them dynamically as the session progresses.
Customizable Levels: Displays High, 75%, EQ (50%), 25%, and Low levels, each with independent toggle options, styles (Solid, Dashed, Dotted), colors, and widths.
Session Anchor: Optional vertical line marking the session start, with customizable style, color, and width.
Projection Offset: Extends level lines forward by a user-defined number of bars (default: 24) for future price reference.
Labels: Toggleable labels for each level (e.g., "High," "75%," "EQ") with adjustable size (Tiny, Small, Normal, Large).
Time Zone Support: Aligns session timing to a selected time zone (e.g., America/New_York, UTC, Asia/Tokyo, etc.).
Alert Conditions: Triggers alerts when the price crosses any of the plotted levels (High, 75%, EQ, 25%, Low).
Inputs:
Session Time (HHMM-HHMM): Define the session range (e.g., "0600-0900" for 6:00 AM to 9:00 AM).
Time Zone: Choose from options like UTC, America/New_York, Europe/London, etc.
Anchor Settings: Toggle the session start line, adjust its style (default: Dotted), color (default: Black), and width (default: 1).
Level Settings:
High (Solid, Black, Width 2)
75% (Dotted, Blue, Width 1)
EQ/50% (Dotted, Orange, Width 1)
25% (Dotted, Blue, Width 1)
Low (Solid, Black, Width 2)
Each level includes options to show/hide, set style, color, width, and label visibility.
Projection Offset: Number of bars to extend lines (default: 24).
Label Size: Set label size (default: Small).
How It Works:
The indicator detects the start and end of the user-defined session based on the specified time and time zone.
During the session, it tracks the highest high and lowest low, updating the levels in real-time.
At the session start, it plots the High, Low, and intermediate levels (75%, 50%, 25%), projecting them forward.
Lines and labels dynamically adjust as new highs or lows occur within the session.
Alerts notify users when the price crosses any active level.
Usage:
Ideal for traders who focus on session-based strategies (e.g., London or New York open). Use it to identify key price zones, monitor breakouts, or set targets. Customize the appearance to suit your chart preferences and enable alerts for real-time trading signals.
Notes:
Ensure your chart’s timeframe aligns with your session duration for optimal results (e.g., 1-minute or 5-minute charts for short sessions).
The indicator overlays directly on the price chart for easy integration with other tools.
Feedback and suggestions are welcome!
ALN Sessions - for NQ2/24/25 - v1
This script does not calculate any stats.
It uses the sessions and stats from NQStats/ALNSessions
Option to draw boxes around the session times.
Options to adjust the table text/background colors/position.
The logic will determine how the Asia and London sessions interact.
Once the New York session starts (8am), it will then display the appropriate stats.
Script quirk...fyi. The script removes the stats table at 6PM.
That's just how it works. I used grok to assist with the code, and it got funky. It works, so I left it that way.
The appropriate stats table will then be displayed when the next New York session begins.
---
There is another table I used just for troubleshooting to show the values of the Asia/London session highs/lows. This can just be ignored.
3/3/25 - republished.
Candle Trend ConfirmationCandle Trend Confirmation Indicator
The "Candle Trend Confirmation" indicator This indicator leverages an Exponential Moving Average (EMA) to visually confirm market trends through dynamic coloring of the EMA line, a shading effect, and candle color changes. It aims to help traders quickly identify strong trends and consolidation phases, enhancing decision-making in various market conditions.
Key Features
Customizable EMA Period:
Traders can adjust the EMA period via an input parameter, with a default setting of 20 periods. This flexibility allows the indicator to adapt to different timeframes and trading strategies.
Pip Threshold for Trend Strength:
A user-defined pip threshold (default set to 0.02) determines the distance from the EMA required to classify a trend as "strong." This parameter can be fine-tuned to suit specific instruments, such as forex pairs, cryptocurrencies, or stocks, where pip values may differ.
Trend Detection Logic:
Strong Uptrend: The closing price must be above the EMA by at least the pip threshold (e.g., 2 pips) and show consistent upward movement over the last three bars (current close > previous close > close two bars ago).
Strong Downtrend: The closing price must be below the EMA by at least the pip threshold and exhibit consistent downward movement over the last three bars.
Consolidation: Any price action that doesn’t meet the strong trend criteria is classified as a consolidation phase.
Dynamic Coloring:
EMA Line: Displayed using the line.new function, the EMA changes color based on trend conditions: green for a strong uptrend, red for a strong downtrend, and purple for consolidation. The line is drawn only for the most recent bar to maintain chart clarity.
Candles: Candlestick colors mirror the trend state—green for strong uptrends, red for strong downtrends, and purple for consolidation—using the barcolor function, providing an immediate visual cue.
Shading Effect: Two dashed lines are drawn above and below the EMA (at half the pip threshold distance) to create a subtle shading zone. These lines adopt a semi-transparent version of the EMA’s color, enhancing the visual representation of the trend’s strength.
How It Works
The indicator calculates the EMA based on the closing price and compares the current price to this average. By incorporating a pip-based threshold and a three-bar confirmation, it filters out noise and highlights only significant trend movements. The use of line.new instead of plot ensures compatibility with certain TradingView environments and offers a lightweight way to render the EMA and shading lines on the chart.
Usage
Trend Identification: Green signals a strong bullish trend, ideal for potential long entries; red indicates a strong bearish trend, suitable for short opportunities; purple suggests a range-bound market, where caution or range-trading strategies may apply.
Customization: Adjust the EMA period and pip threshold in the indicator settings to match your trading style or the volatility of your chosen market. For example, forex traders might set the threshold to 0.0002 for 2 pips on EUR/USD, while crypto traders might use 2.0 for BTC/USD.
Visual Clarity: The combination of EMA coloring, shading, and candle highlights provides a comprehensive view of market dynamics at a glance.
Linear Dominion
### Indicator Note: Linear Dominion
**Overview:**
The "Linear Dominion" indicator is a Pine Script v6 implementation of a Linear Regression Channel, designed to overlay on price charts in TradingView. It calculates a linear regression line based on a user-defined length and source, then constructs upper and lower channel boundaries around this line using either standard deviation or maximum price deviations. The indicator provides visual trend analysis, statistical correlation (Pearson's R), and alert conditions for price movements.
**Key Components:**
1. **Linear Regression Line (Base Line):**
- Calculated using the least squares method over a specified `Length` period.
- Represents the best-fit straight line through the price data (default source: close price).
- Displayed in red (solid line, no transparency).
2. **Upper and Lower Channels:**
- **Upper Channel**: Plotted above the base line (blue, semi-transparent).
- **Lower Channel**: Plotted below the base line (red, semi-transparent).
- Channel width can be set using:
- Standard deviation multiplied by a user-defined factor (`Upper Deviation` and `Lower Deviation`).
- Maximum price deviation from the regression line (if deviation multipliers are disabled).
3. **Inputs:**
- **Length**: Number of bars used for regression calculation (default: 100, range: 1-5000).
- **Source**: Price data to analyze (default: close).
- **Channel Settings**:
- `Upper Deviation`: Toggle and multiplier for upper channel width (default: true, 2.0).
- `Lower Deviation`: Toggle and multiplier for lower channel width (default: true, 2.0).
- **Display Settings**:
- `Show Pearson's R`: Displays correlation coefficient (default: true).
- `Extend Lines Left`: Extends channel lines to the left (default: false).
- `Extend Lines Right`: Extends channel lines to the right (default: true).
- **Color Settings**:
- Upper channel: Light blue (85% transparency).
- Lower channel: Light red (85% transparency).
4. **Statistical Features:**
- **Pearson's R**: Measures the linear correlation between price and time, displayed as a label below the lower channel when enabled.
- Range: -1 to 1 (1 = perfect positive correlation, -1 = perfect negative correlation, 0 = no correlation).
5. **Alerts:**
- **Dominion Channel Exited**: Triggers when price crosses above the upper channel or below the lower channel.
- **Switched to Uptrend**: Triggers when the trend changes from downtrend to uptrend (base line slope becomes positive).
- **Switched to Downtrend**: Triggers when the trend changes from uptrend to downtrend (base line slope becomes negative).
**How It Works:**
- The `calcSlope` function computes the slope, average, and intercept of the regression line using the formula: \( slope = \frac{n\sum(xy) - \sum x \sum y}{n\sum(x^2) - (\sum x)^2} \).
- The `calcDev` function calculates:
- Standard deviation of price from the regression line.
- Maximum upward and downward deviations (based on high/low prices).
- Pearson’s R correlation coefficient.
- Lines are dynamically updated each bar:
- Base line connects the start price (intercept + slope * (length-1)) to the end price (intercept).
- Upper/lower channels are offset from the base line based on the chosen deviation method.
- The area between lines is filled with semi-transparent colors for visual clarity.
**Usage:**
- **Trend Identification**: The slope of the base line indicates the overall trend direction.
- **Support/Resistance**: Upper and lower channels act as dynamic levels where price might reverse or break out.
- **Volatility Analysis**: Wider channels indicate higher volatility; narrower channels suggest consolidation.
- **Correlation Insight**: Pearson's R helps assess how well price follows a linear trend.
**Notes:**
- The lower channel line currently uses `colorUpper` (blue) instead of `colorLower` (red), which may be a bug (should be fixed to `colorLower` for consistency).
- The indicator updates only on the last bar (`barstate.islast`) to optimize performance.
- Maximum bars back is set to 5000, which should match or exceed the maximum `Length` input.
**Potential Improvements:**
- Fix the lower line color to use `colorLower`.
- Add options for line width customization.
- Include additional statistical metrics (e.g., R-squared).
Trend SCANThe visually important moving averages EMA5, EMA20, EMA144 and EMA169 are seen on the indicator.
However, the main purpose of the indicator is to combine the changes in the rsi, ema, volume, momentum and cci data on the stock and to display them in a label on the chart with a formula aimed at determining the stocks that are in an uptrend.
The group that the stock group is desired to be scanned from the indicator settings is selected and the scanning process is instantly visible on the label in the chart period or in the time interval selected outside the chart period.
The stock groups are grouped as BIST50, BIST100, Yildiz Pazar and Main Pazar. But these can be selected as desired.
HTF Candle Volume Thermometer [ChartPrime]The HTF Candle Volume Thermometer is a powerful volume heatmap tool that visualizes higher timeframe candle volume distributions directly on the chart. It helps traders identify key price levels where liquidity is concentrated, allowing for more informed trading decisions.
⯁ KEY FEATURES
Higher Timeframe Volume Mapping
Uses higher timeframe (HTF) candles to create a heatmap of volume distribution within each candle.
Dynamic Volume Heatmap
Colors each HTF candle background green for bullish and red for bearish, with a gradient heat overlay highlighting volume concentration.
Max Volume Point Identification
Marks the level within each HTF candle where the highest volume was recorded, using red for the most significant volume area.
Fully Customizable Display
Users can adjust the HTF timeframe, color settings, and resolution to tailor the indicator to their trading preferences.
Segmented Volume Distribution
Each HTF candle is divided into smaller levels, allowing traders to see volume changes within the range of each candle.
Key Level Detection
Max volume points often act as key support and resistance levels where price is likely to react, helping traders refine their strategies.
⯁ HOW TO USE
Identify Liquidity Zones
Use the max volume levels to determine areas where price is likely to find support or resistance.
Assess Trend Strength
Compare volume distribution between bullish and bearish HTF candles to gauge market momentum.
Optimize Trade Entries & Exits
Look for price reactions at high-volume areas to refine stop-loss and take-profit levels.
Adjust Heatmap Resolution
Customize the resolution setting to get a more detailed or broader view of volume segmentation within HTF candles.
⯁ CONCLUSION
The HTF Candle Volume Thermometer is a must-have tool for traders who want to integrate volume analysis with higher timeframe structures. By visualizing volume heatmaps within each HTF candle, this indicator helps traders pinpoint critical liquidity zones and key price levels.
SGS - Simple Levels V2Paints Simple Levles
Daily,Weekly,Monthly Open
Naked Daily
Naked Weekly
CME Weekend Close
Monday High / Low
Non-Repainting Renko Emulation Strategy [PineIndicators]Introduction: The Repainting Problem in Renko Strategies
Renko charts are widely used in technical analysis for their ability to filter out market noise and emphasize price trends. Unlike traditional candlestick charts, which are based on fixed time intervals, Renko charts construct bricks only when price moves by a predefined amount. This makes them useful for trend identification while reducing small fluctuations.
However, Renko-based trading strategies often fail in live trading due to a fundamental issue: repainting .
Why Do Renko Strategies Repaint?
Most trading platforms, including TradingView, generate Renko charts retrospectively based on historical price data. This leads to the following issues:
Renko bricks can change or disappear when new data arrives.
Backtesting results do not reflect real market conditions. Strategies may appear highly profitable in backtests because historical data is recalculated with hindsight.
Live trading produces different results than backtesting. Traders cannot know in advance whether a new Renko brick will form until price moves far enough.
Objective of the Renko Emulator
This script simulates Renko behavior on a standard time-based chart without repainting. Instead of using TradingView’s built-in Renko charting, which recalculates past bricks, this approach ensures that once a Renko brick is formed, it remains unchanged .
Key benefits:
No past bricks are recalculated or removed.
Trading strategies can execute reliably without false signals.
Renko-based logic can be applied on a time-based chart.
How the Renko Emulator Works
1. Parameter Configuration & Initialization
The script defines key user inputs and variables:
brickSize : Defines the Renko brick size in price points, adjustable by the user.
renkoPrice : Stores the closing price of the last completed Renko brick.
prevRenkoPrice : Stores the price level of the previous Renko brick.
brickDir : Tracks the direction of Renko bricks (1 = up, -1 = down).
newBrick : A boolean flag that indicates whether a new Renko brick has been formed.
brickStart : Stores the bar index at which the current Renko brick started.
2. Identifying Renko Brick Formation Without Repainting
To ensure that the strategy does not repaint, Renko calculations are performed only on confirmed bars.
The script calculates the difference between the current price and the last Renko brick level.
If the absolute price difference meets or exceeds the brick size, a new Renko brick is formed.
The new Renko price level is updated based on the number of bricks that would fit within the price movement.
The direction (brickDir) is updated , and a flag ( newBrick ) is set to indicate that a new brick has been formed.
3. Visualizing Renko Bricks on a Time-Based Chart
Since TradingView does not support live Renko charts without repainting, the script uses graphical elements to draw Renko-style bricks on a standard chart.
Each time a new Renko brick forms, a colored rectangle (box) is drawn:
Green boxes → Represent bullish Renko bricks.
Red boxes → Represent bearish Renko bricks.
This allows traders to see Renko-like formations on a time-based chart, while ensuring that past bricks do not change.
Trading Strategy Implementation
Since the Renko emulator provides a stable price structure, it is possible to apply a consistent trading strategy that would otherwise fail on a traditional Renko chart.
1. Entry Conditions
A long trade is entered when:
The previous Renko brick was bearish .
The new Renko brick confirms an upward trend .
There is no existing long position .
A short trade is entered when:
The previous Renko brick was bullish .
The new Renko brick confirms a downward trend .
There is no existing short position .
2. Exit Conditions
Trades are closed when a trend reversal is detected:
Long trades are closed when a new bearish brick forms.
Short trades are closed when a new bullish brick forms.
Key Characteristics of This Approach
1. No Historical Recalculation
Once a Renko brick forms, it remains fixed and does not change.
Past price action does not shift based on future data.
2. Trading Strategies Operate Consistently
Since the Renko structure is stable, strategies can execute without unexpected changes in signals.
Live trading results align more closely with backtesting performance.
3. Allows Renko Analysis Without Switching Chart Types
Traders can apply Renko logic without leaving a standard time-based chart.
This enables integration with indicators that normally cannot be used on traditional Renko charts.
Considerations When Using This Strategy
Trade execution may be delayed compared to standard Renko charts. Since new bricks are only confirmed on closed bars, entries may occur slightly later.
Brick size selection is important. A smaller brickSize results in more frequent trades, while a larger brickSize reduces signals.
Conclusion
This Renko Emulation Strategy provides a method for using Renko-based trading strategies on a time-based chart without repainting. By ensuring that bricks do not change once formed, it allows traders to use stable Renko logic while avoiding the issues associated with traditional Renko charts.
This approach enables accurate backtesting and reliable live execution, making it suitable for trend-following and swing trading strategies that rely on Renko price action.
SIRILAK BOT RSI with SMA Cross Signals + Heikin Ashi//@version=5
indicator("SIRILAK BOT RSI with SMA Cross Signals + Heikin Ashi", overlay=true)
// RSI and SMA settings
rsiLength = 5
smaLength = 21
// Heikin Ashi calculations
var float heikinOpen = na
heikinClose = (open + high + low + close) / 4
heikinOpen := na(heikinOpen ) ? (open + close) / 2 : (heikinOpen + heikinClose ) / 2
heikinHigh = math.max(high, math.max(heikinOpen, heikinClose))
heikinLow = math.min(low, math.min(heikinOpen, heikinClose))
// Plot Heikin Ashi candles on the price chart
plotcandle(open=heikinOpen, high=heikinHigh, low=heikinLow, close=heikinClose, color=heikinClose >= heikinOpen ? color.green : color.red, wickcolor=color.black, title="Heikin Ashi Candles")
// Calculate RSI and SMA
rsi = ta.rsi(close, rsiLength)
sma = ta.sma(rsi, smaLength)
// Conditions for buy and sell signals
sellSignal = ta.crossover(sma, rsi) // RSI crosses below SMA
buySignal = ta.crossunder(sma, rsi) // RSI crosses above SMA
// Track the last signal
var string lastSignal = ""
// Ensure signal is only given after the candle closes
sellSignalClose = barstate.isconfirmed and sellSignal and (lastSignal != "SELL") // Confirm signal only on completed bar, and must be different from previous signal
buySignalClose = barstate.isconfirmed and buySignal and (lastSignal != "BUY") // Confirm signal only on completed bar, and must be different from previous signal
// Update the last signal
if (buySignalClose)
lastSignal := "BUY"
if (sellSignalClose)
lastSignal := "SELL"
// Plot RSI and SMA on RSI pane
plot(rsi, color=color.blue, linewidth=2, title="RSI")
plot(sma, color=color.orange, linewidth=2, title="SMA")
// Plot buy and sell signals only when the candle closes
plotshape(series=sellSignalClose, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
plotshape(series=buySignalClose, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
Послідовність + RSI2 сигнали:
1. Послідовні три свічки одного кольору + вихід RSI за певні межі.
2. Вихід RSI за певні межі (75 та 25)
TrendPredator FOTrendPredator Fakeout Highlighter (FO)
The TrendPredator Fakeout Highlighter is designed to enhance multi-timeframe trend analysis by identifying key market behaviors that indicate trend strength, weakness, and potential reversals. Inspired by Stacey Burke’s trading approach, this tool focuses on trend-following, momentum shifts, and trader traps, helping traders capitalize on high-probability setups.
At its core, this indicator highlights peak formations—anchor points where price often locks in trapped traders before making decisive moves. These principles align with George Douglas Taylor’s 3-day cycle and Steve Mauro’s BTMM method, making the FO Highlighter a powerful tool for reading market structure. As markets are fractal, this analysis works on any timeframe.
How It Works
The TrendPredator FO highlights key price action signals by coloring candles based on their bias state on the current timeframe.
It tracks four major elements:
Breakout/Breakdown Bars – Did the candle close in a breakout or breakdown relative to the last candle?
Fakeout Bars (Trend Close) – Did the candle break a prior high/low and close back inside, but still in line with the trend?
Fakeout Bars (Counter-Trend Close) – Did the candle break a prior high/low, close back inside, and against the trend?
Switch Bars – Did the candle lose/ reclaim the breakout/down level of the last bar that closed in breakout/down, signalling a possible trend shift?
Reading the Trend with TrendPredator FO
The annotations in this example are added manually for illustration.
- Breakouts → Strong Trend
Multiple candles closing in breakout signal a healthy and strong trend.
- Fakeouts (Trend Close) → First Signs of Weakness
Candles that break out but close back inside suggest a potential slowdown—especially near key levels.
- Fakeouts (Counter-Trend Close) → Stronger Reversal Signal
Closing against the trend strengthens the reversal signal.
- Switch Bars → Momentum Shift
A shift in trend is confirmed when price crosses back through the last closed breakout candles breakout level, trapping traders and fuelling a move in the opposite direction.
- Breakdowns → Trend Reversal Confirmed
Once price breaks away from the peak formation, closing in breakdown, the trend shift is validated.
Customization & Settings
- Toggle individual candle types on/off
- Customize colors for each signal
- Set the number of historical candles displayed
Example Use Cases
1. Weekly Template Analysis
The weekly template is a core concept in Stacey Burke’s trading style. FO highlights individual candle states. With this the state of the trend and the developing weekly template can be evaluated precisely. The analysis is done on the daily timeframe and we are looking especially for overextended situations within a week, after multiple breakouts and for peak formations signalling potential reversals. This is helpful for thesis generation before a session and also for backtesting. The annotations in this example are added manually for illustration.
📈 Example: Weekly Template Analysis snapshot on daily timeframe
2. High Timeframe 5-Star Setup Analysis (Stacey Burke "ain't coming back" ACB Template)
This analysis identifies high-probability trade opportunities when daily breakout or down closes occur near key monthly levels mid-week, signalling overextensions and potentially large parabolic moves. Key signals for this are breakout or down closes occurring on a Wednesday. This is helpful for thesis generation before a session and also for backtesting. The annotations in this example are added manually for illustration. Also an indicator can bee seen on this chart shading every Wednesday to identify the signal.
📉 Example: High Timeframe Setup snapshot
3. Low Timeframe Entry Confirmation
FO helps confirm entry signals after a setup is identified, allowing traders to time their entries and exits more precisely. For this the highlighted Switch and/ or Fakeout bars can be highly valuable.
📊 Example (M15 Entry & Exit): Entry and Exit Confirmation snapshot
📊 Example (M5 Scale-In Strategy): Scaling Entries snapshot
The annotations in this examples are added manually for illustration.
Disclaimer
This indicator is for educational purposes only and does not guarantee profits.
None of the information provided shall be considered financial advice.
Users are fully responsible for their trading decisions and outcomes.
Auto Fib Retracement with Buy/SellKey Features of the Advanced Script:
Multi-Timeframe (MTF) Analysis:
We added an input for the higher timeframe (higher_tf), where the trend is checked on a higher timeframe to confirm the primary trend direction.
Complex Trend Detection:
The trend is determined not only by the current timeframe but also by the trend on the higher timeframe, giving a more comprehensive and reliable signal.
Dynamic Fibonacci Levels:
Fibonacci lines are plotted dynamically, extending them based on price movement, with the Fibonacci retracement drawn only when a trend is identified.
Background Color & Labels:
A background color is added to give a clear indication of the trend direction. Green for uptrend, red for downtrend. It makes it visually easier to understand the current market structure.
"Buy" or "Sell" labels are shown directly on the chart to mark possible entry points.
Strategy and Backtesting:
The script includes strategy commands (strategy.entry and strategy.exit), which allow for backtesting the strategy in TradingView.
Stop loss and take profit conditions are added (loss=100, profit=200), which can be adjusted according to your preferences.
Next Steps:
Test with different timeframes: Try changing the higher_tf to different timeframes (like "60" or "240") and see how it affects the trend detection.
Adjust Fibonacci settings: Modify how the Fibonacci levels are calculated or add more Fibonacci levels like 38.2%, 61.8%, etc.
Optimize Strategy Parameters: Fine-tune the entry/exit logic by adjusting stop loss, take profit, and other strategy parameters.
This should give you a robust foundation for creating advanced trend detection strategies
20 EMA Touch Alert [v5]The Focuz 20 EMA Touch Alert is a simple yet powerful tool developed by Focuz to help traders stay alert when the market price touches the 20-period Exponential Moving Average (EMA).
Stable Coin Dominance RSI with Proportional + InvertStable Coin Dominance RSI with addition of an Invert checkbox to align direction with pricing.