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.
Göstergeler ve stratejiler
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.
Current Average Gain and LossThe Momentum-Based Non-Lagging Indicator for Swift Trade Decisions is a unique, non-lagging technical analysis tool designed for high-frequency scalping trades with timeframes ranging from 1 minute to 2 hours. This indicator calculates and plots the moving averages of gains and losses over a 14-day period, providing instantaneous buy and sell signals based on real-time market condition
My Strategy//@version=5
strategy("My Strategy", overlay = true)
// Create Indicator's
ema1 = ta.ema(close, 8)
ema2 = ta.ema(close, 18)
ema3 = ta.ema(close, 44)
//plot the Indicators
plot(ema1, title = "EMA1", color = color.blue, linewidth = 2)
plot(ema2, title = "EMA2", color = color.red, linewidth = 2)
plot(ema3, title = "EMA3", color = color.black, linewidth = 2)
// Specify crossover conditions
Enterlong = ta.crossover(ema2, ema3)
Exitlong = ta.crossunder(ema1,ema2)
Entershort = ta.crossunder(ema2, ema3)
Exitshort = ta.crossover(ema1,ema2)
//Execution Logic - Placing Orders
strategy.entry("Long", strategy.long, 1, when = Enterlong)
strategy.close("Long", when = Exitlong)
strategy.entry("Short", strategy.short, 1, when = Entershort)
strategy.close("Short", when = Exitshort)
My CustomThis indicator combines the Session VWAP, EMA 13 by 21 crossover,Support and resistances and Previous day High/Low with 38.2% and 61.8% retracements.
So, one can confirm these for trading intraday as well as swing trade.
Profit Hunter @DaviddTechProfit Hunter @DaviddTech is an advanced multi-strategy indicator designed to give traders a significant edge in identifying high-probability trading opportunities across all market conditions. By combining the power of T3 adaptive moving averages, ADX-based trend strength analysis, SuperTrend trailing stops, and dynamic support/resistance detection, this indicator delivers a complete trading system in one powerful package.
## 📊 Recommended Usage
Timeframes: Most effective on 1H, 4H, and Daily charts for swing trading; 5M and 15M for day trading
Markets: Works across all markets including Forex, Crypto, Indices, and Stocks
Setup Guidelines: Look for T3 crossovers with strong ADX readings (>25) coinciding with breakout signals (yellow dots/red crosses) near key support/resistance levels for highest probability entries
## 🔥 Key Features:
### T3 Adaptive Trend Detection:
Utilizes premium T3 adaptive indicators instead of standard EMAs for superior smoothing and accuracy
Dynamic color-shifting cloud formation between fast and slow T3 lines reveals immediate trend direction
Proprietary transparency algorithm intensifies cloud colors during strong trends based on real-time ADX readings
### Advanced Support & Resistance Mapping:
Automatically identifies and marks key market structure levels during T3 crossovers
Dynamic horizontal level plotting with optional extension for monitoring future price interactions
Intelligent level validation - converts to dotted lines when price breaks through, maintaining visual clarity
### SuperTrend Trailing Stoploss System:
Professional-grade white trailing stop indicator adapts to market volatility using ATR calculations
Generates precise entry and exit signals with optional buy/sell labels at critical reversal points
Visual trend state highlighting for immediate assessment of current market position
### Breakout Detection & Confirmation:
Sophisticated dual-algorithm breakout system combining Bollinger Bands and Keltner Channels
Visual breakout alerts with yellow dots (bullish) and red crosses (bearish) for instant pattern recognition
Validates breakouts against T3 trend direction to minimize false signals
### Alpha Edge Color System:
Utilizes DaviddTech's signature color scheme with bullish green and bearish pink
Revolutionary transparency algorithm translates ADX readings into precise visual intensity
Higher ADX values produce more vivid colors, instantly communicating trend strength without additional indicators
## 💰 Trading Applications:
Alpha Discovery: Identify emerging trends before the majority of market participants
Precision Entry/Exit: Use SuperTrend signals combined with support/resistance levels for optimal trade execution
Risk Management: Set stops based on the white trailing stoploss line for mathematically-optimized protection
Trend Confirmation: Validate setups using the T3 cloud direction and ADX-based intensity
Breakout Trading: Capture explosive moves with confirmed Bollinger/Keltner breakout signals
Swing Position Management: Monitor extended support/resistance levels for multi-day positioning
## ✨ Strategy Example
As shown in the chart image, ideal entries occur when:
The T3 cloud turns bullish (green) or bearish (pink) with strong color intensity
A yellow dot (bullish) or red cross (bearish) breakout signal appears
Price respects the white SuperTrend line as support/resistance
The trade aligns with key horizontal support/resistance levels identified by the indicator
## 📝 Attribution
This indicator builds upon and enhances concepts from:
Market Trend Levels Detector by BigBeluga (support/resistance detection framework)
T3 indicator implementation by DaviddTech (adaptive moving average system)
Average Directional Index (ADX) methodology for trend strength measurement
Profit Hunter @DaviddTech represents the culmination of advanced technical analysis methodologies in one seamless system.