Win-Loss Streak PlotterWin-Loss Streak Plotter
This indicator tracks the win/loss streaks of moving average crossovers (using simple moving averages for illustration purposes). It calculates the price change after each crossover, marking each as a win (green) or loss (red). The win rate is shown separately.
Inputs:
Source: Price series (default: open)
Fast MA: Fast moving average (default: open)
Slow MA: Slow moving average (default: open)
Total Crosses to Analyze: Number of crossovers to track
Crosses per Row: Number of crossovers per row in the table
Output:
A table displays each crossover’s result (win/loss).
A separate win rate table shows the percentage of wins.
Suggestions are always welcomed!
Indicatori e strategie
Trend Strategy [BKT]The Trend Strategy is a refined trend-following algorithm designed for intraday traders seeking systematic entries and disciplined exits. It integrates volatility-adjusted levels with directional momentum to identify high-probability trading opportunities during defined trading hours and days.
User-defined trading window (hours and minutes in IST).
Custom weekday filter to control which days trading is allowed.
Flexible risk management: Enable/disable stop loss, take profit, and EMA-based exit independently.
Position sizing: Trades use a fixed percentage of equity for capital allocation.
Thunderbird Volcano & Waterfall SignalsThe Thunderbird Volcano & Waterfall signal Indicator is a strategy that incorporates the use of Price Action and TRAMA positioning to determine entry and exit points. There are 3 scenarios in which the indicator will signal an entry and exit if applicable. Keep in mind the suggested entry and exit points must be taken as consideration; further confirmations such as TRAMA pointing down or up, market structure, IFVG, etc. should be used in order for a successful trade.
Scenario 1 (SHORT) is the Thunderbird Volcano setup, TRAMA alignment is in accordance with the Volcano setup; A red arrow above will indicate entry when a candle closes below the 20T and a red cross will indicate the potential target at the 200T.
Scenario 2 (SHORT) is the Thunderbird Waterfall setup, TRAMA alignment is in accordance with the Waterfall setup; A blue arrow above will indicate entry when a candle closes below all 3 TRAMAs after corresponding position is established. Target is not indicated and can vary according to user specification.
Scenario 3 (LONG) is the Inverse Volcano setup, TRAMA alignment is in accordance with the Inverse Volcano setup. A green arrow will indicate entry below when a candle closes above the 20T and a green cross will indicate the potential target at the 200T.
Trend Strategy [BKT]The Trend Strategy is a refined trend-following algorithm designed for intraday traders seeking systematic entries and disciplined exits. It integrates volatility-adjusted levels with directional momentum to identify high-probability trading opportunities during defined trading hours and days.
PRIME 2.0PRIME 2.0 — Precision Entry Tool
PRIME 2.0 is a smart price action-based indicator designed for intraday traders who want to catch high-probability moves during the London session. It uses a combination of market structure shifts (CHOCH – Change of Character) and session-based timing to identify potential entries.
🔍 Key Features:
Session-Based Logic: Activates after the London market opens, filtering noise from other sessions.
CHOCH Detection: Spots shifts in market structure by identifying crossover and crossunder of candle highs/lows.
Visual Entry Points: Plots real-time entry points based on structure change.
🧠 Who Is It For?
Scalpers and day traders
Traders who follow Smart Money Concepts (SMC)
Anyone looking to improve entry precision without clutter
⚠️ Disclaimer:
This indicator does not generate buy/sell signals or exit points. It is meant to be used as a tool within a broader trading strategy. Combine it with your own risk management and market knowledge for best results
Haze EMA SignalStrategy Logic:
Buy Entry 🟢
→ When the 11 EMA crosses above the 50 EMA,
→ And Stochastic RSI shows bullish momentum (%K > %D).
Sell / Exit 🔴
→ When the 11 EMA crosses below the 50 EMA,
→ And Stochastic RSI shows bearish momentum (%K < %D).
This dual-confirmation method helps reduce false signals by combining trend-following and momentum-based entries and exits.
SHORT TERM TRADE SIGNAL
EMA= 11/50
K/D/L=15/7/10
Candlestick Pattern Indicator – Doji, Harami, More [algo_aakash]This Candlestick Pattern Indicator is designed to help traders identify key price action patterns like Bullish Engulfing, Bearish Engulfing, Doji, Hammer, Morning Star, Evening Star, and many more directly on your TradingView chart. With customizable options to display both bullish and bearish patterns , this indicator provides real-time visual markers and labels, helping you make informed trading decisions.
Key features of the indicator include:
Detects popular candlestick patterns such as Bullish Engulfing, Bearish Engulfing, Hammer, Morning Star, Tweezer Tops, and more.
Customizable settings for displaying pattern shapes, labels, and opacity, tailored to your trading preferences.
Option to plot signals only after a candle closes, ensuring accuracy.
Alerts for immediate notification of detected patterns.
Visual markers on the chart, including arrows and labels, for quick recognition of potential trade setups.
This indicator is ideal for traders who rely on candlestick patterns for technical analysis and want an automated tool to highlight these setups for easier decision-making.
Whether you're a beginner or an experienced trader, this tool will help you spot important patterns in real-time without cluttering your chart.
ES1! vs ZB1! Exponentially Weighted CorrelationES1! vs ZB1! Exponentially Weighted Correlation
This indicator calculates and visualizes the exponentially weighted correlation between the S&P 500 E-mini futures (ES1!) and the 30-Year U.S. Treasury Bond futures (ZB1!) over a user-defined lookback period. By using an exponential moving average (EMA) approach, it emphasizes recent price movements, providing a dynamic view of the relationship between these two key financial instruments.
Features:
- Customizable Inputs: Adjust the lookback length (default: 60) and alpha (default: 0.1) to fine-tune the sensitivity of the correlation calculation.
- Exponentially Weighted Correlation: Measures the strength and direction of the relationship between ES1! and ZB1! prices, with more weight given to recent data.
- Visual Clarity: Displays correlation as colored bars (green for positive, red for negative) for quick interpretation, with reference lines at 0, +1, and -1 for context.
- Non-Overlay Design: Plotted in a separate panel below the chart to avoid cluttering price data.
How It Works:
The indicator fetches closing prices for ES1! and ZB1!, applies an EMA to smooth the data, and computes the exponentially weighted covariance and variances. The correlation is then derived and plotted as a histogram, helping traders identify whether the two markets are moving together (positive correlation), in opposite directions (negative correlation), or independently.
Use Cases:
- Market Analysis: Gauge the relationship between equity and bond markets to inform trading strategies.
- Risk Management: Monitor correlation shifts to adjust portfolio exposure.
- Intermarket Insights: Identify trends or divergences in the stock-bond dynamic for macroeconomic analysis.
Ideal for traders and analysts tracking intermarket relationships, this indicator offers a clear, responsive tool for understanding ES1! and ZB1! correlation in real-time.
EMA Crossover and Crossunder📈 EMA Crossover and Crossunder Indicator by @girishbhangale
This script highlights significant Exponential Moving Average (EMA) crossover and crossunder events for trend-following analysis.
✅ What it does:
Tracks EMA levels for 5, 13, 26, 50, 100, and 200 periods.
Labels are shown directly on the chart whenever a shorter EMA crosses above (bullish crossover) or below (bearish crossunder) a longer EMA.
Helps identify early trend reversals and confirm ongoing trends.
🔔 Crossover & Crossunder Events Marked:
Bullish crossover (label up):
5 > 13
13 > 26
26 > 50
50 > 100
100 > 200
Bearish crossunder (label down):
5 < 13
13 < 26
26 < 50
50 < 100
100 < 200
🎨 Customization:
Each EMA level has its own color, which you can easily customize in the settings panel.
Labels are color-coded and sized to reduce clutter.
📌 Notes:
Labels are placed above or below candles to indicate cross direction.
The script is non-intrusive — designed to be visually clean while providing high-value signals.
All calculations are based on EMA values of the close price.
EMA 9/15/30/65/200Institutional traders often use a combination of these moving averages to confirm trends, identify potential entry and exit points, and manage risk. The choice of moving averages can depend on the trader's strategy, time frame, and market conditions. Always consider backtesting any moving average strategy to ensure it aligns with your trading goals.
AND FINALLY I USE IT AS A INSTITUTIONAL INTRADAY SETUP.
Candle Trend PowerThe Candle Trend Power is a custom technical indicator designed for advanced trend analysis and entry signal generation. It combines multiple smoothing methods, candle transformations, and volatility bands to visually and analytically enhance your trading decisions.
🔧 Main Features:
📉 Custom Candle Types
It transforms standard OHLC candles into one of several advanced types:
Normal Candles, Heikin-Ashi, Linear Regression, Rational Quadratic (via kernel filtering), McGinley Dynamic Candles
These transformations help traders better see trend continuations and reversals by smoothing out market noise.
🧮 Smoothing Method for Candle Data
Each OHLC value can be optionally smoothed using:
EMA, SMA, SMMA (RMA), WMA, VWMA, HMA, Mode (Statistical mode) Or no smoothing at all.
This flexibility is useful for customizing to different market conditions.
📊 Volatility Bands
Volatility-based upper and lower bands are calculated using:
Band = price ± (price% + ATR * multiplier)
They help identify overbought/oversold zones and potential reversal points.
📍 Candle Color Logic
Each candle is colored:
Cyan (#00ffff) if it's bullish and stronger than the previous candle
Red (#fd0000) if it's bearish and weaker
Alternating bar index coloring improves visual clarity.
📈 Trend Momentum Labels
The script includes a trend strength estimation using a smoothed RSI:
If the candle is bullish, it shows a BUY label with the overbought offset.
If bearish, it shows a SELL label with the oversold offset.
These labels are dynamic and placed next to the bar.
📍 Signal Markers
It also plots triangles when the price crosses the volatility bands:
Triangle up for potential long
Triangle down for potential short
✅ Use Case Summary
This script is mainly used for:
Visual trend confirmation with enhanced candles
Volatility-based entry signals
RSI-based trend momentum suggestions
Integrating different smoothing & transformation methods to fine-tune your strategy
It’s a flexible tool for both manual traders and automated system developers who want clear, adaptive signals across different market conditions.
💡 What's Different
🔄 Candle Type Transformations
⚙️ Custom Candle Smoothing
📉 Candle's Multi-level Volatility Bands
🔺 Dynamic Entry Signals (Buy/Sell Labels)
❗Important Note:
This script is provided for educational purposes and does not constitute financial advice. Traders and investors should conduct their research and analysis before making any trading decisions.
Camarilla Pivot Points with Entry/Exit SignalsThis Pine Script indicator calculates Camarilla Pivot Points based on daily high, low, and close prices and plots them as horizontal lines on the chart. It also provides Buy and Sell signals when the current price crosses above or below the pivot point.
Key Features:
Camarilla Pivot Points Calculation:
Calculates the pivot point (PP) and resistance/support levels (R1, R2, R3, S1, S2, S3) using the formula:
PP = (High + Low + Close) / 3
Resistance and support levels are derived from the daily high and low.
Horizontal Lines for Pivot Levels:
Draws lines for PP, R1, R2, R3 (resistance levels), and S1, S2, S3 (support levels) on the chart.
Entry/Exit Signals:
Generates a Buy signal when the price crosses above the pivot point.
Generates a Sell signal when the price crosses below the pivot point.
Signals are displayed as labels on the chart.
Dynamic Updates:
The pivot levels are recalculated daily and updated on each new bar.
This script is useful for traders looking to identify key support/resistance levels and potential entry/exit points based on Camarilla Pivot Points.
RSI EMA Buy/Sell SignalsThis Pine Script code is a TradingView indicator that generates buy and sell signals based on the RSI (Relative Strength Index) and two EMA (Exponential Moving Average) lines.
Key Features:
Inputs:
rsiPeriod: RSI calculation period (default 14).
ema50Period: EMA period for RSI (default 50).
ema5Period: EMA period for RSI (default 5).
Logic:
Buy Signal: When RSI crosses above the EMA 50.
Sell Signal: When RSI crosses below the EMA 5.
Visualization:
Green "Buy" label is displayed below the bar when a buy signal occurs.
Red "Sell" label is displayed above the bar when a sell signal occurs.
Purpose:
This indicator helps traders identify entry and exit points using RSI and EMA crossovers. It can be customized by adjusting the RSI and EMA periods to fit different trading strategies.
Best Practices ExampleThis Pine Script code is a TradingView indicator that uses a Simple Moving Average (SMA) to generate buy and sell signals, along with risk management features like stop loss and take profit levels.
Key Features:
Inputs:
length: SMA period (default is 14).
src: Data source for SMA calculation (default is close price).
Buy and Sell Signals:
Buy signal (longCondition) when the price crosses above the SMA.
Sell signal (shortCondition) when the price crosses below the SMA.
Signals are displayed as green "BUY" labels below the bar and red "SELL" labels above the bar.
Risk Management:
Stop loss and take profit levels are calculated based on user-defined percentages (stopLossPercentage and takeProfitPercentage).
Stop loss is drawn as a red line, and take profit is drawn as a green line.
Visualization:
SMA is plotted as a blue line.
Stop loss and take profit levels are plotted as step lines.
A gray horizontal line at zero is added for reference.
Purpose:
This indicator helps traders identify entry/exit points and manage risk effectively by visually displaying signals and predefined levels for stop loss and take profit.
SMART TRADE TREND FINDERBUY - When price close above the indicator line and take entry when the price moves above the high of the closing candle.
SELL - When price close below the indicator line and take entry when the price moves below the low of the closing candle.
Trading BotIt trades off of pivot levels which are created from 8:30am to 9:44am and it trades based off of those levels and sees how price reacts.
Quad Rotation Divergence – diag v4‑fixquad rotation divergence strategy theorised by george lane and popularised by day trading radio, this is my own little indictor to help me with spotting reversals with 4 stochastic oscilators in one indictor mimicing higher time frames
EMA Golden crossoverThis indicator highlights Exponential Moving Average (EMA) crossovers between multiple key periods:
5, 13, 26, 50, 100, and 200 EMAs.
✅ What It Does:
Marks bullish crossovers (shorter EMA crossing above longer EMA) with colored upward labels below the candle.
Marks bearish crossunders (shorter EMA crossing below longer EMA) with colored downward labels above the candle.
Helps identify trend shifts, potential entry/exit points, and confirmations for swing or positional trades.
📊 Crossovers Highlighted:
5 > 13
13 > 26
26 > 50
50 > 100
100 > 200
📉 Crossunders Highlighted:
5 < 13
13 < 26
26 < 50
50 < 100
100 < 200
Straddle Plot with VWAP and Daily 20 EMA📄 Description
The Straddle Plot with VWAP and Daily 20 EMA is a powerful visualization tool designed for options traders using straddle strategies on instruments like NIFTY, BANKNIFTY, and others.
This indicator dynamically fetches and displays the combined price action of Call (CE) and Put (PE) option premiums for up to three strike prices of the same expiry. It helps traders monitor premium trends, premium imbalance, and market bias in real time.
✅ Features
Plots Combined Option Premium Candles (Straddle OHLC)
Plots Individual CE, PE & Straddle Lines
Dynamic Symbol Construction based on expiry date and selected strike prices
VWAP Line calculated on combined straddle premiums
Daily 20 EMA for trend filtering
Real-Time Table showing:
Strike Prices used
VWAP
Call/Put/Straddle values
20 EMA
CE/PE dominance ("Call Up", "Put Up", or "Same")
📌 How to Use
Select the desired underlying (e.g., NIFTY, BANKNIFTY).
Enter the expiry date and strike prices of interest.
The script will auto-fetch and combine the OHLC data for each Call and Put option.
Observe the plotted candles and table to:
Spot changes in combined premium behavior.
Analyze VWAP/EMA deviations.
Identify if Calls or Puts are leading in premium movement.
📊 How to Interpret Trends
This indicator includes logic to compare Call (CE) and Put (PE) premiums to determine short-term market bias:
"Call Up" (🟢): Call premium is greater than Put
→ Indicates a possible bullish sentiment.
"Put Up" (🔴): Put premium is greater than Call
→ Indicates a possible bearish sentiment.
"CE/PE Same" (⚪): Both premiums are roughly equal
→ Indicates a sideways or uncertain market.
These are shown in the table under the label "CE/PE Up", helping traders act faster without analyzing price alone.
💡 Best For
Intraday and positional options traders
Users executing straddle or strangle strategies
Those looking to monitor premium buildups and breakouts
⚠️ Important Notes
Ensure the selected strike prices are liquid and available on TradingView (NSE symbols).
The script works best during market hours.
This indicator uses request.security(), which may be subject to data delay or availability issues based on your subscription plan and symbol permissions.
📢 Disclaimer
This indicator is intended for educational and informational purposes only . It does not constitute financial advice or a recommendation to buy or sell any securities. Trading in financial markets involves risk, and you should consult with a qualified financial advisor before making any investment decisions. The author is not responsible for any losses incurred from the use of this script.
Candle vs 8 SMA - Red & Green📈 Script Name: Candle vs 8 SMA – Red & Green
This TradingView Pine Script visually compares each candle's close price to the 8-period Simple Moving Average (SMA) and highlights the chart accordingly:
🔍 What It Does:
Calculates the 8-period SMA
sma8 = ta.sma(close, 8)
This line computes the average of the last 8 closing prices to smooth out short-term fluctuations.
Plots the SMA Line
Orange line shown on the chart.
Helps you visually track the short-term trend.
Identifies Candle Position
candleAbove: true if the candle’s close is above the SMA
candleBelow: true if the candle’s close is below the SMA
Highlights Background
If the close is above the 8 SMA → Green background (indicating bullish behavior)
If the close is below the 8 SMA → Red background (indicating bearish behavior)
Plots Triangle Shapes
Green triangle below candle when above the SMA
Red triangle above candle when below the SMA
Helps quickly identify conditions at a glance
🧠 Why Use It?
This script is useful for:
Intraday trend confirmation
Spotting momentum shifts
Visual clarity on how price reacts to a dynamic support/resistance (SMA)
Aiding quick decisions for scalping or intraday trades
ULTIMATE Trading System [CHARLES + CLAUDE AI]The ULTIMATE Trading System
Combines three powerful technical indicators into one comprehensive, visually intuitive trading solution. Created through a collaboration between CHARLES and CLAUDE AI 3.7, this system offers clear entry/exit signals without the clutter of multiple indicators.
## Key Features:
• **Stochastic RSI Signals (3,3,10,10)**: Generates high-probability buy/sell signals with triangular markers that blink on the most recent signal for instant visibility
• **MACD Trend Highlighter**: Colors the entire price section green during bullish MACD trends and red during bearish trends, making the overall market direction immediately apparent
• **SuperTrend Implementation (ATR 2, Multiplier 2)**: Provides dynamic support/resistance levels and additional confirmation signals, optimized for effective Swing Trading
• **Fully Customizable Settings**: Toggle components on/off to create your ideal setup:
- Use MACD filter for stricter signal generation
- Enable/disable MACD zero-cross labels
- Show/hide SuperTrend lines and signals
- Customize SuperTrend parameters
## Trading Strategies:
1. **Scalping**: Use the Stochastic RSI signals (Triangle signals) alone for quick trades in ranging markets
2. **Swing Trading**: Combine Stochastic RSI signals with SuperTrend confirmation for higher probability entries / Swing trading
3. **Trend Following**: Use the MACD highlighter to stay on the right side of the trend
## Alert Options:
• Thai Obvious BUY/SELL: Triangle signals from Stochastic RSI crossovers
• SuperTrend Buy/Sell: Swing trading opportunities on trend changes
• SuperTrend Direction Change: Major market structure shifts
Perfect for traders of all levels who want actionable signals without the complexity of managing multiple indicators.
Daily Borders with Weekday Labels[fitfatq]Indicator Overview
This indicator displays daily vertical border lines and the previous day’s weekday label on intraday charts (i.e., charts with a timeframe lower than Daily). It draws a vertical line at the start of each new trading day and places a label displaying the previous day’s weekday (e.g., Monday) at the horizontal midpoint between the previous and the current day. Users can customize various visual aspects such as the separator line style and width, label style, text color, and text size. Additionally, the indicator offers an option to fix the label’s Y coordinate at a specified price level to prevent it from being overlapped by candlesticks.
Parameter Details
Use Fixed Weekday Label Y Coordinate
Type: Boolean
Default: false
Description: When enabled, the weekday label’s vertical position will be fixed at a specified price level (see next parameter). Otherwise, the label’s Y position is determined dynamically (typically based on the current bar’s low minus 3 ticks).
Fixed Weekday Label Y Coordinate (price)
Type: Float
Default: 130.0
Description:
This parameter sets the fixed price level at which the weekday label will be displayed if the "Use Fixed Weekday Label Y Coordinate" option is enabled. Please input a value that corresponds to your chart’s price scale (e.g., 130.50). Note: In charts with high price levels (for example, stocks trading at 3000 or above), it is recommended to set this value to 3000 or above. The higher the value, the closer the label will appear to the candlesticks.
Separator Line Style
Type: String (Options: "Solid", "Dotted", "Dashed")
Default: "Dotted"
Description: Specifies the style of the vertical separator line drawn at the start of each new day. "Solid" displays a continuous line, "Dotted" shows a dotted line, and "Dashed" provides a dashed line.
Separator Line Width
Type: Integer
Default: 1
Description: Determines the thickness of the separator line. A higher number results in a thicker line; the minimum value is 1.
Label Style
Type: String (Options: "None", "Label Up", "Label Down", "Label Left", "Label Right", "Label Center")
Default: "None"
Description: Sets the built-in style for the weekday label. "None" means no background or border (plain text only), while other options apply predefined visual effects.
Text Color
Type: Color
Default: Black
Description: Determines the text color of the weekday label.
Label Text Size
Type: String (Options: "Tiny", "Small", "Normal", "Large", "Huge")
Default: "Normal"
Description: Specifies the text size of the weekday label. Adjust according to preference to ensure the label is readable.
Usage Summary
How It Works:
The indicator detects the start of a new trading day using a change in the daily timeframe (via ta.change(time("D"))). When a new day begins, it draws a vertical separator line at the first bar of that day. If previous day data is available, the indicator calculates the horizontal midpoint between the start of the previous day and the current day and displays the previous day’s weekday label at that position. If the fixed Y coordinate option is enabled, the label is drawn at the specified price level; otherwise, it is positioned relative to the current bar’s low.
Customization:
Users can adjust all visual aspects, including the line style and width as well as the label style, text color, and text size. The fixed Y coordinate option allows the label’s vertical position to remain constant, which helps prevent overlapping with price bars.
Chart Requirement:
This indicator only operates on intraday charts (timeframes lower than Daily) and will not display on Daily or higher timeframe charts.
License
This indicator is released under the Mozilla Public License 2.0. Please credit the original author (fitfatq) when using or sharing this script.
Phoenix AIPhoenix with a taste of AI. Witness the power of Phoenix's Recurrent Neural Network and Auto Adaptive functions.