Canadian Elections & PM TimelineThis script displays major Canadian federal election years along with the names and party affiliations of elected Prime Ministers, directly on your price chart. It provides a quick visual reference for key political events that may have had market impact, helping traders correlate price movements with changes in leadership.
Trend Analysis
Triple Confirmation Scalper v2Bu strateji, trend takibi ve aşırı alım/satım koşullarını birleştirir. İşlem sinyallerini filtrelemek için hacim artışını kullanır.
This strategy combines trend following and overbought/sold conditions. It uses volume spike to filter out trading signals.
Triple Confirmation Scalper
3 temel gösterge + 2 filtre kullanarak yalancı sinyalleri minimize eder.
1. Kullanılan Göstergeler ve Parametreler:
Gösterge Parametreler Amacı
EMA 9 9 periyot (Close) Kısa vadeli momentum.
EMA 21 21 periyot (Close) Trend yönü.
RSI 14 periyot Aşırı alım/satım.
VWAP 20 periyot Ortalama giriş çıkış fiyatı.
OBV (On-Balance Volume) Hacim trendi.
Özellikler ve Optimizasyonlar:
Gelişmiş VWAP Hesaplaması: HLC3 (high+low+close/3) kullanarak daha doğru VWAP değerleri
Dinamik Risk Yönetimi:
Stop-loss: Son 5 mumun en düşük/en yüksek seviyesi ±%1
Take-profit: %1.5 kar hedefi (1.5:1 risk/reward)
Hacim Analizi:
OBV göstergesiyle hacim trendi onayı
20 periyotluk hacim ortalaması üzerinde spike kontrolü
Görselleştirmeler:
EMA'lar ve VWAP bantları çizilir
Trend yönüne göre arkaplan renklendirmesi
Alert Sistem:
Long/Short sinyalleri için tradingview alertleri
Strateji Ayarları:
%100 equity kullanımı
%0.1 komisyon hesaba katılmış
Long/Short pozisyonlara izin verilmiş
Daha agresif bir strateji için:
EMA periyotlarını 5-13 yapabilirsiniz
RSI eşiklerini 40-60 arasına çekebilirsiniz
Take-profit/Stop-loss oranlarını 2:1 yapabilirsiniz
“Triple Confirmation Scalper”
Minimizes false signals using 3 basic indicators + 2 filters.
1. Indicators and Parameters used:
Indicator Parameters Purpose
EMA 9 9 period (Close) Short-term momentum.
EMA 21 21 periods (Close) Trend direction.
RSI 14 periods Overbought/sold.
VWAP 20 periods Average entry and exit price.
OBV (On-Balance Volume) Volume trend.
Features and Optimizations:
Advanced VWAP Calculation: more accurate VWAP values using HLC3 (high+low+close/3)
Dynamic Risk Management:
Stop-loss Lowest/highest level of the last 5 candles ±1
Take-profit: 1.5% profit target (1.5:1 risk/reward)
Volume Analysis:
Volume trend confirmation with OBV indicator
Spike control over 20-period volume averaging
Visualizations:
EMAs and VWAP bands are plotted
Background coloring according to trend direction
Alert System:
Tradingview alerts for Long/Short signals
Strategy Settings:
100% equity utilization
0.1% commission taken into account
Long/Short positions allowed
Combined + Reversal By DemirkanThis indicator is a comprehensive tool designed to identify potential trend reversals, trend direction, and entry/exit points by combining multiple technical analysis instruments. It includes the following components:
Two Reversal Lines (Based on Donchian Channel): Two lines with different periods indicate potential support/resistance levels and trend changes.
Hull Moving Average (HMA): A smoother, less lagging moving average helps determine trend direction and short-term momentum.
Fibonacci Level: A dynamic Fibonacci retracement level, calculated based on the highest high and lowest low over a specific period, serves as a potential support or area of interest.
Signal Generation: Produces Buy/Sell signals based on the crossovers and conditions of these components.
Visual Aids: Enhances interpretation by coloring the area between lines, coloring candlesticks, and adding labels.
Detailed Component Description:
Input Parameters (Settings):
Reversal Line 1 Length (Default: 100): The period (number of bars) used to calculate the first reversal line. Longer periods capture slower, more significant trends.
Reversal Line 2 Length (Default: 33): The period used to calculate the second reversal line. Shorter periods react to faster, shorter-term changes.
HMA Length (Default: 100): The period for calculating the Hull Moving Average.
Source (Default: close): The price source used for all calculations (close, open, high, low, etc.).
Reversal Line Bar Offset (Default: 3): Determines how many bars forward the Reversal Lines are shifted on the chart. This can make signals appear slightly earlier (or later, depending on the strategy). 0 means no shift.
Fibonacci Level (Default: 0.382): Specifies the Fibonacci retracement level (between 0.0 and 1.0). Common levels like 0.382, 0.5, 0.618 can be used.
Lookback Period (Default: 20): The period (number of bars) over which to look back for the highest high and lowest low to calculate the Fibonacci level.
Price Margin (Default: 0.005): Tolerance (as a percentage) determining how close the price needs to be to the Fibonacci level to be considered "at the level". E.g., 0.005 = 0.5%. If the price is within 0.5% of the calculated Fibonacci level, the condition is met.
Calculations:
donchian(len) Function: Calculates the average (math.avg) of the highest high (ta.highest) and lowest low (ta.lowest) over a specific period (len). This is effectively the midline of a classic Donchian Channel and is used here as the "Reversal Line".
Reversal Lines (conversionLine1, conversionLine2): Calculated using the donchian function based on the user-defined conversionPeriods1 and conversionPeriods2 lengths.
Hull Moving Average (hullMA): Calculated using the hma function. This function uniquely combines Weighted Moving Averages (WMA) to achieve less lag.
Fibonacci Level Calculation (fibLevel1, isAtFibLevel): Finds the highest high and lowest low within the lookbackPeriod, calculates the range (priceRange). fibLevel1 is determined by subtracting priceRange * fibLevel from the highest high (representing a retracement level). isAtFibLevel checks if the current closing price is within the priceMargin tolerance of the calculated fibLevel1.
Visual Elements (Plots/Drawing):
plot(conversionLine1 , ...): Plots the first reversal line in blue, shifted forward by barOffset.
plot(conversionLine2 , ...): Plots the second reversal line in black, shifted forward by barOffset.
plot(hullMA, ...): Plots the Hull Moving Average in orange.
plot(fibLevel1, ...): Plots the calculated Fibonacci level as a light blue, dashed line.
fill(...): Fills the area between the two (shifted) reversal lines. The area is colored blue if conversionLine1 > conversionLine2 (often interpreted as bullish) and red otherwise (bearish). The color transparency is set to 90 (almost opaque).
label.*: Adds labels at trend change points. A "Buy" label appears when the area turns blue (Line 1 crosses above Line 2), and a "Sell" label appears when it turns red (Line 1 crosses below Line 2). Labels appear once when the trend starts and are updated/deleted when the trend changes.
plotshape(...): Plots shapes (arrows/labels) on the chart when specific conditions are met:
Reversal Crossover Signals: A green up arrow (shape.labelup) appears when conversionLine2 crosses above conversionLine1 (Buy Signal - buySignal). A red down arrow (shape.labeldown) appears when conversionLine1 crosses below conversionLine2 (Sell Signal - sellSignal).
Hull MA Signals: A green up arrow (hullBuySignal) appears when the price closes above the HMA after being below it. A red down arrow (hullSellSignal) appears when the price closes below the HMA after being above it.
Fibonacci Buy Signal: A purple up arrow (fibBuySignal) appears when both the price is near the calculated Fibonacci level (isAtFibLevel) and a Hull MA Buy signal (hullBuySignal) occurs simultaneously. This signifies a "confluence" signal.
barcolor(...): Changes the color of the candlesticks. Bars turn blue on a Hull MA Buy signal (hullBuySignal) and red on a Hull MA Sell signal (hullSellSignal). Otherwise, the bar color remains the default chart color.
How to Use / Interpret:
Trend Direction:
Observe the color of the filled area between the reversal lines (Blue = Uptrend, Red = Downtrend).
Note whether the price is above or below the Hull MA.
Consider the slope of the Hull MA (upward or downward).
Entry/Exit Signals:
Aggressive: Use the crossovers of the reversal lines (buySignal, sellSignal). Green arrow suggests buy, red arrow suggests sell.
Trend Following: Use the HMA crossovers (hullBuySignal, hullSellSignal). Green arrow suggests buy, red arrow suggests sell. The bar colors also confirm these signals visually.
Confirmed Buy: Look for the Fibonacci Buy Signal (Purple arrow). When the price reaches a potential support level (Fibonacci) and simultaneously gets an HMA Buy signal, it can be considered a stronger buy indication.
Support/Resistance:
The reversal lines themselves can act as dynamic support/resistance levels.
The plotted Fibonacci level (fibLevel1) can be monitored as a potential retracement and support zone.
Strategy:
Confluence (multiple signals aligning) can increase confidence. For example, a buySignal or hullBuySignal occurring while the HMA is pointing up and the fill area is blue might be considered stronger.
Adjust the barOffset parameter to fine-tune the timing of the visual signals according to your trading style.
Use the Fibonacci Buy signal to potentially find entry points after pullbacks in an uptrend or near potential bottoms after a decline.
Important Notes:
No single indicator provides 100% accurate signals. It's crucial to use this indicator in conjunction with other analysis methods (price action, chart patterns, volume, etc.) and sound risk management strategies.
The indicator's performance might vary in different market conditions (trending, sideways) and across different timeframes. Backtesting before live trading is recommended.
The barOffset value shifts the plotting of the lines forward visually but does not change the time at which the underlying calculation occurs (it's still based on the data up to the current closing bar).
EREMA SignalsOverview
The EREMA Signals indicator is a specialized overlay tool designed to display precise buy and sell signals directly on your price chart. Working as a companion to the main Ehlers Reverse EMA indicator, it brings powerful momentum-based signals to your trading strategy without cluttering your chart with additional indicator panels.
Key Features
On-Chart Signal Visualization: Clear buy/sell arrows appear directly on the price chart
Dynamic Signal Positioning: Signals automatically adjust their distance from price using ATR for optimal visibility
Multiple Signal Types: Choose from three distinct signal generation methods
Clean Chart Interface: Displays only the essential signals, maintaining chart clarity
Signal Types
Zero Cross: Generates signals when the Ehlers Reverse EMA crosses above/below the zero line
MA Cross: Identifies when the Ehlers Reverse EMA crosses its own moving average
Zero & MA Cross: The strictest filter, requiring both zero line and MA crossovers for signal generation
How To Use
Setup
First add the main "Ehlers Reverse EMA" indicator to your chart
Then add this "EREMA Signals" indicator as an overlay
Configure both indicators with identical settings for alpha, MA type, and signal method
Reading Signals
Green Triangles (below price): Buy signals indicating potential upward momentum
Red Triangles (above price): Sell signals indicating potential downward momentum
Trading Applications
Trend Identification: Zero cross signals help identify changes in overall trend direction
Momentum Trading: MA cross signals can identify shorter-term momentum shifts
Confirmation Tool: Use alongside other technical indicators or price action strategies
Multiple Timeframe Analysis: Apply to different timeframes for more robust trading decisions
Best Practices
Consider using longer timeframes (4H, Daily) for more reliable signals
The combined "Zero & MA Cross" setting provides fewer but higher-quality signals
For tighter entries, use the "MA Cross" option in established trends
Adjust the Alpha parameter to match your trading style (lower for longer-term, higher for shorter-term)
This indicator works seamlessly with the main Ehlers Reverse EMA indicator while maintaining a clean chart interface, making it ideal for traders who prefer visual simplicity without sacrificing analytical power.
Uptrick X PineIndicators: Z-Score Flow StrategyThis strategy is based on the Z-Score Flow Indicator developed by Uptrick. Full credit for the original concept and logic goes to Uptrick.
The Z-Score Flow Strategy combines statistical mean-reversion logic with trend filtering, RSI confirmation, and multi-mode trade execution, offering a flexible and structured approach to trading both reversals and trend continuations.
Core Concepts Behind Z-Score Flow
1. Z-Score Mean Reversion Logic
The Z-score measures how far current price deviates from its statistical mean, in standard deviations.
A high positive Z-score (e.g. > 2) suggests price is overbought and may revert downward.
A low negative Z-score (e.g. < -2) suggests price is oversold and may revert upward.
The strategy uses Z-score thresholds to trigger signals when price deviates far enough from its mean.
2. Trend Filtering with EMA
To prevent counter-trend entries, the strategy includes a trend filter based on a 50-period EMA:
Only allows long entries if price is below EMA (mean-reversion in downtrends).
Only allows short entries if price is above EMA (mean-reversion in uptrends).
3. RSI Confirmation and Lockout System
An RSI smoothing mechanism helps confirm signals and avoid whipsaws:
RSI must be below 30 and rising to allow buys.
RSI must be above 70 and falling to allow sells.
Once a signal occurs, it is "locked out" until RSI re-enters the neutral zone (30–70).
This avoids multiple signals in overextended zones and reduces overtrading.
Entry Signal Logic
A buy or sell is triggered when:
Z-score crosses below (buy) or above (sell) the threshold.
RSI smoothed condition is met (oversold and rising / overbought and falling).
The trend condition (EMA filter) aligns.
A cooldown period has passed since the last opposite trade.
This layered approach helps ensure signal quality and timing precision.
Trade Modes
The strategy includes three distinct trade modes to adapt to various market behaviors:
1. Standard Mode
Trades are opened using the Z-score + RSI + trend filter logic.
Each signal must pass all layered conditions.
2. Zero Cross Mode
Trades are based on the Z-score crossing zero.
This mode is useful in trend continuation setups, rather than mean reversion.
3. Trend Reversal Mode
Trades occur when the mean slope direction changes, i.e., basis line changes color.
Helps capture early trend shifts with less lag.
Each mode can be customized for long-only, short-only, or long & short execution.
Visual Components
1. Z-Score Mean Line
The basis (mean) line is colored based on slope direction.
Green = bullish slope, Purple = bearish slope, Gray = flat.
A wide shadow band underneath reflects current trend momentum.
2. Gradient Fill to Price
A gradient zone between price and the mean reflects:
Price above mean = bearish zone with purple overlay.
Price below mean = bullish zone with teal overlay.
This visual aid quickly reveals market positioning relative to equilibrium.
3. Signal Markers
"𝓤𝓹" labels appear for buy signals.
"𝓓𝓸𝔀𝓷" labels appear for sell signals.
These are colored and positioned according to trend context.
Customization Options
Z-Score Period & Thresholds: Define sensitivity to price deviations.
EMA Trend Filter Length: Filter entries with long-term bias.
RSI & Smoothing Periods: Fine-tune RSI confirmation conditions.
Cooldown Period: Prevent signal spam and enforce timing gaps.
Slope Index: Adjust how far back to compare mean slope.
Visual Settings: Toggle mean lines, gradients, and more.
Use Cases & Strategy Strengths
1. Mean-Reversion Trading
Ideal for catching pullbacks in trending markets or fading overextended price moves.
2. Trend Continuation or Reversal
With multiple trade modes, traders can choose between fading price extremes or trading slope momentum.
3. Signal Clarity and Risk Control
The combination of Z-score, RSI, EMA trend, and cooldown logic provides high-confidence signals with built-in filters.
Conclusion
The Z-Score Flow Strategy by Uptrick X PineIndicators is a versatile and structured trading system that:
Fuses statistical deviation (Z-score) with technical filters.
Provides both mean-reversion and trend-based entry logic.
Uses visual overlays and signal labels for clarity.
Prevents noise-driven trades via cooldown and lockout systems.
This strategy is well-suited for traders seeking a data-driven, multi-condition entry framework that can adapt to various market types.
Full credit for the original concept and indicator goes to Uptrick.
Trendingline ZMDConfirming the Breakout
To avoid false breakouts, consider these confirmation signals:
A candle close beyond the trendline.
Increased volume during the breakout.
Retesting the trendline as support/resistance.
Trading the Breakout
Entry: Enter a trade after confirmation signals.
Stop Loss: Place a stop loss slightly beyond the trendline to limit risk.
Take Profit: Set profit targets based on support/resistance levels or Fibonacci extensions.
Trendline Retest Strategy
After breaking a trendline, the price often retests the broken trendline before continuing in the new direction. If the price respects the trendline as a new support/resistance, it adds further confirmation.
By following these steps, traders can effectively use trendline breakouts to identify high-probability trading opportunities.
Ehlers Reverse EMAOverview
The Ehlers Reverse EMA is an advanced momentum indicator designed by John Ehlers and implemented here with additional features for improved trading decision-making. This indicator helps identify trend direction, potential reversals, and generates precise buy/sell signals based on multiple confirmation methods.
What Makes It Unique
Unlike conventional EMAs, the Ehlers Reverse EMA uses a sophisticated reverse-engineering approach to provide smoother, more responsive signals with reduced lag. The indicator combines a proprietary EMA calculation with optional moving average confirmation to filter out market noise and highlight meaningful price movements.
Features
Dynamic Color Coding: Green when momentum is positive, red when negative
Moving Average Overlay: Optional MA with selectable types (SMA, EMA, WMA, VWMA)
Multiple Signal Generation Methods:
Zero-Line Crossovers: Signals when momentum shifts from positive to negative or vice versa
MA Crossovers: Signals when the Ehlers EMA crosses its own moving average
Combined Confirmation: Requires both zero-line and MA crossovers for highest probability signals
On-Chart Signal Visualization: Clear buy/sell arrows directly on the price chart
Customizable Parameters: Adjust alpha value, MA type, and signal generation to suit your trading style
How To Use
Add the main "Ehlers Reverse EMA" indicator to your chart
Add the companion "EREMA Signals" indicator to display buy/sell signals on the price chart
Ensure both indicators have matching settings for consistency
Signal Interpretation
Buy Signals (Green Triangles): Appear below price bars when conditions are met
Sell Signals (Red Triangles): Appear above price bars when conditions are met
Recommended Timeframes
Works well on all timeframes from 5-minute to daily charts. For swing trading, 4H or daily timeframes often provide the most reliable signals.
Strategy Applications
Trend Following: Use zero-line crossovers to enter with the trend
Momentum Trading: Use MA crossovers for entry and exit points
Confirmation Tool: Combine with price action or other indicators for higher-probability trades
Divergence Analysis: Compare indicator movement with price action to spot potential reversals
Parameter Settings
Alpha (Default: 0.1): Lower values create smoother lines but more lag; higher values increase responsiveness but may increase false signals
MA Length (Default: 14): Adjust based on your trading timeframe and style
This versatile indicator helps identify high-probability trading opportunities while filtering out market noise, making it valuable for both novice and experienced traders alike.
Trendingline ZMDConfirming the Breakout
To avoid false breakouts, consider these confirmation signals:
A candle close beyond the trendline.
Increased volume during the breakout.
Retesting the trendline as support/resistance.
Trading the Breakout
Entry: Enter a trade after confirmation signals.
Stop Loss: Place a stop loss slightly beyond the trendline to limit risk.
Take Profit: Set profit targets based on support/resistance levels or Fibonacci extensions.
Trendline Retest Strategy
After breaking a trendline, the price often retests the broken trendline before continuing in the new direction. If the price respects the trendline as a new support/resistance, it adds further confirmation.
By following these steps, traders can effectively use trendline breakouts to identify high-probability trading opportunities.
Multiple MAsHere's a well-written description in English for your "Multiple MAs" indicator that you can use when publishing on TradingView. It’s concise, professional, and highlights the key features of the indicator while explaining its purpose for traders.
---
### Multiple MAs Indicator
#### Overview
The **Multiple MAs** indicator is a versatile and straightforward tool designed to help traders visualize price trends using multiple Simple Moving Averages (SMAs) on a single chart. By plotting six SMAs with customizable lengths (MA5, MA10, MA20, MA50, MA100, and MA200), this indicator provides a clear view of short-term, medium-term, and long-term trends, making it ideal for trend-following strategies, crossover analysis, and identifying potential support/resistance levels.
#### Features
- **Customizable MA Lengths**: Adjust the periods of all six moving averages (MA5, MA10, MA20, MA50, MA100, MA200) to suit your trading style and timeframe.
- **Distinct Visuals**: Each MA is plotted with a unique color and line width for easy identification:
- MA5 (Dodger Blue, 1px)
- MA10 (Green, 1px)
- MA20 (Red, 2px)
- MA50 (Purple, 3px)
- MA100 (Gray, 3px)
- MA200 (White, 3px)
- **Overlay on Price Chart**: The indicator overlays directly on the price chart, allowing for seamless integration with other technical analysis tools.
- **High Precision**: Displays values with 8-decimal precision, ensuring accuracy for assets with small price movements (e.g., forex pairs or cryptocurrencies).
#### How to Use
1. **Trend Identification**: Use the longer MAs (e.g., MA100, MA200) to determine the overall trend direction. If the price is above these MAs, the trend is likely bullish; if below, it’s likely bearish.
2. **Crossover Signals**: Look for crossovers between shorter MAs (e.g., MA5 crossing MA20) for potential entry or exit signals. For example:
- A bullish signal occurs when a shorter MA crosses above a longer MA.
- A bearish signal occurs when a shorter MA crosses below a longer MA.
3. **Support and Resistance**: MAs often act as dynamic support or resistance levels. Watch for price reactions around these lines, especially the MA50, MA100, and MA200.
4. **Divergence Analysis**: Compare the slope of different MAs to identify potential trend reversals or weakening momentum.
#### Settings
- **MA5 Length**: Default is 5 bars.
- **MA10 Length**: Default is 10 bars.
- **MA20 Length**: Default is 20 bars.
- **MA50 Length**: Default is 50 bars.
- **MA100 Length**: Default is 100 bars.
- **MA200 Length**: Default is 200 bars.
#### Best Practices
- **Timeframe**: This indicator works on any timeframe but is particularly effective on daily, 4-hour, and 1-hour charts for swing trading or trend-following strategies.
- **Combine with Other Tools**: Pair the Multiple MAs with other indicators like RSI, MACD, or volume analysis to confirm signals and avoid false breakouts.
- **Adjust for Volatility**: For highly volatile assets, consider increasing the MA lengths to reduce noise and focus on broader trends.
#### Notes
- The indicator is lightweight and optimized for performance, ensuring it runs smoothly even on lower timeframes.
- Colors and line widths are pre-set for clarity but can be customized in the indicator settings if needed.
#### Credits
Created by kosar_v. Feedback and suggestions are welcome to improve this tool for the TradingView community!
SublimeDubs EMA CloudShoutout Ripster for open-sourcing his code! This is a slight improvement/update to his code. A lot is customizable via settings instead of in the script. You can change the colors more easily now. I also added lines with price labels for the clouds and offset them by x amount of bar lengths. I can't do much about the vertical spacing but at least you can move it horizontally.
Nifty 0.4% Options Strategy [15min]How This Works:
Entries:
CALL when Nifty moves +0.4% from previous close
PUT when Nifty moves -0.4% from previous close
Exits:
Automatically closes all positions after specified bars (default: 4 bars = 1 hour)
Visuals:
Gray line: Previous day's close
Green circles: +0.4% threshold
Red circles: -0.4% threshold
Moving Average Crossover ScannerThis is a scanner for Multiple Indicators like MA Cross, MACD, RSI, Adx. You can get clear market trend data by using it. Enjoy the Script!
Manual Trade Ledger# Manual Options Trade Journal – Pine Script
This project is a Pine Script implementation for TradingView that allows users to manually log options trades into a live table overlay on a chart.
## ✨ Features
- 📥 Manual entry of ticker, premium, contracts, strike, expiry, notes
- 📈 Auto-filled live data: timestamp, price, and % change since first log
- 🧾 Tabular logging for trade journaling and exporting to Google Sheets
- 🔧 Fully customizable and designed to support product experimentation
## 🎯 Use Case
This project was built to support a real-world trading workflow for options traders who:
- Prefer to manually log trades while watching charts
- Want a visual, copyable ledger that evolves in real-time
- Want to later analyze entries/exits in spreadsheets or dashboards
## 🛠 How It Works
1. Toggle the `Log Trade` switch inside TradingView’s indicator settings
2. Fill in your trade metadata (ticker, premium, etc.)
3. The script captures timestamp, price, and calculates % change
4. Each new trade adds a row to the table (up to 50 max)
CISD with Alerts [neo|]█ OVERVIEW
CISD (or Change in State of Delivery) is an ICT concept and reversal pattern which may allow traders to identify reversals or changes in market structure early, compared to using traditional market structure. This script aims to correctly identify, and update these levels and provide alerts, so that traders can take advantage of this concept with ease.
█ CONCEPTS
Simply put, CISD may be identified when price closes above the open of the candle which started the most recent downtrend or liquidity sweep. Generally, it is most powerful when applied to key points in the market as a confirmation from where you may want price to reverse.
For example, when price is in a downtrend, we take the open of the last consecutive downwards candle and observe the CISD once price closes above it, beginning an uptrend.
Examples:
COMEX:GC1!
CME_MINI:NQ1!
█ How to use
To use the indicator, simply apply it to your chart and modify any of your desired inputs.
• Bullish CISD color allows you to change the color of +CISD levels.
• Bearish CISD color allows you to change the color of -CISD levels.
• Line width allows you to modify the width of +-CISD lines.
• Line extension bars allows you to change how far ahead CISD levels are drawn (by default it is 5).
• Keep old CISD levels will allow you to preserve all past CISD levels if you would like to observe the logic.
• Enable stat table will let you add a table on your chart which will tell you the current CISD trend, as well as your ticker and timeframe.
• Table position allows you to customize where the table will appear on your chart.
BIN Based Support and Resistance [SS]This indicator presents a version of an alternative way to determine support and resistance, using a method called "Bins".
Bins provide for a flexible and interesting way to determine support and resistance levels.
First off, let's discuss BINS:
Bins are ranges or containers into which your data points can be sorted. For example, if you're grouping ages, you might have bins like 0–18, 19–35, 36–50, and 51+. Any data point within these intervals gets placed in the corresponding bin.
Binning simplifies complex data sets by grouping values into categories. This is useful for such things as
Visualizing data in histograms or bar charts.
Reducing noise and highlighting trends.
This indicator groups the price action into 10 separate bins. It determines the Support / Resistance level by averaging the values in the Bins to find an iteration of the "central tendency" or average reoccurring value.
Pros and Cons
Since this is a different approach to support and resistance, I think its important to highlight some of the pros and advantages, but also be open about the cons.
First off the PROS
Bin Based Support and Resistance Levels dynamically adjust to ranges as opposed to hard / fast peaks and valleys. This makes them better at analyzing price action vs simply drawing lines at random peaks and valleys.
Because Bins are analyzing ALL PA within a period's max and min range, Bin Support and Resistance can actually be used similar to Volume profile, where you are able to identify a pseudo-POC, or areas where price tends to consolidate. Take a look at this example on SPY:
You can see these 2 SR lines are close together. This represents that this general price range is an area where price likes to accumulate/consolidate. You can see the SPY ended up coming back to this range and consolidating there for a bit.
This is a strength of using a BIN based approach to calculating support and resistance, because as indicated before, it looks at price action vs peaks and valleys.
As a tip, these areas are areas you want to wait for a break in one direction or the other.
The indicator provides for backtest results of the support and resistance lines, to see how many times certain areas acted as resistance or support. Because this is analyzing and distributing PA evenly throughout the period's max and min, the indicator can tell you which areas tend to have higher rejection zones and which have higher support zones.
Now the CONS
Because bin based SR take an average approach, the SR lines can sometimes be slightly broken before the ticker finds rejection:
To combat this, make sure there is confirmed support. How the indicator actually backtests these lines is by waiting to see if the ticker has 3 consecutive closes above the support line or below the resistance line. So these are things to be mindful of.
It doesn't consider pivots. Most support and resistance indicators either identify max and min peaks and valleys or use pivot points. Pivot points are a great way to identify peaks and valleys and thus by extension support and resistance. However, this is also somewhat of a strength, as using BINS forces the indicator to consider ALL price action and not just the extremes (highs and lows).
Can be slightly skewed in highly volatile environments. Any time there is a massive drop or rally, it can skew the indicator to give extreme ranges to both ends. For example, the Tariff news collapse on ES1!:
Owning to limitations in lookback length, sometimes the min and max range can be exceeded and other traditional areas of support / resistance is where a ticker will find support.
Using the indicator
Here are some basic use/functionalities of the indicator:
Selecting display of backtest results: You can select to have the backtest results shown in a table:
Or directly on the lines:
Inversely, you can toggle them off completely:
You can modify the lookback length. The suggested lookback length is between 250 to 500 candles on smaller timeframes. I also suggest 252 on daily timeframes (which represents 1 trading year).
And that's the indicator!
It is very easy to use, so you should pick it up in no time!
Enjoy and as always, 🚀🚀 safe trades! 🚀🚀
Smart Money Pivot Strategy [Jason Kasei]This strategy is designed to identify key pivot points (Pivot High and Pivot Low) in the market and leverage the "Smart Money" concept to capture price breakout opportunities. It supports both long and short trades, offering customizable stop-loss (SL) and take-profit (TP) settings, while visually plotting pivot points and breakout signals on the chart.
Core Features
Pivot Point Detection:
Utilizes ta.pivothigh and ta.pivotlow functions to detect the highest (Pivot High) and lowest (Pivot Low) points within a specified period (default: 20 bars).
Trading Signals:
Long Signal: Triggered when the price breaks above a previous Pivot High, indicating a potential uptrend.
Short Signal: Triggered when the price breaks below a previous Pivot Low, indicating a potential downtrend.
How It Works
Detects Pivot High (PH) and Pivot Low (PL) over the specified period and records their price and time.
Triggers a long entry when the price breaks above a Pivot High and a short entry when it falls below a Pivot Low.
Sets exit conditions automatically based on predefined SL and TP percentages after entry.
Plots breakout points and levels on the chart for analysis.
Considerations
The strategy relies on accurate pivot point detection; adjust the period parameter based on market volatility.
In highly volatile markets, consider widening the stop loss to avoid frequent triggering.
Combine with other indicators or analysis methods to validate signals and avoid blind trading.
Dual MACD Strategy [Jason Kasei]Dual MACD Design:
MACD1 (Short-Term): Default fast length of 34, slow length of 144, and signal smoothing of 9, used to detect short-term trend changes.
MACD2 (Long-Term): Default fast length of 100, slow length of 200, and signal smoothing of 50, used to assess long-term trend direction.
Users can customize the fast, slow, and signal lengths and choose between SMA (Simple Moving Average) or EMA (Exponential Moving Average) for calculations.
Trading Logic:
Long Condition: MACD1 histogram crosses above the zero line (short-term bullish), MACD2 histogram is positive (long-term bullish), and MACD2 histogram has just crossed above zero with a deepening green (trend confirmation).
Short Condition: MACD1 histogram crosses below the zero line (short-term bearish), MACD2 histogram is negative (long-term bearish), and MACD2 histogram has just crossed below zero with a deepening red (trend confirmation).
Risk Management:
Stop Loss: Default at 1% (adjustable, minimum 0.1%), dynamically calculated based on entry price.
Take Profit: Default at 1.5% (adjustable, minimum 0.1%), dynamically calculated based on entry price.
Trades are processed at candle close to ensure signal stability.
StrategyTemplate-Pro-v1# TrendScope Pro – Adaptive Trend-Following Strategy
### 🔍 Overview
TrendScope Pro is a highly adaptable and professional Pine Script strategy template designed for disciplined, trend-based trading. Built using Pine Script v6, it supports modular configuration, risk control, and flexible exit management to meet both beginner and advanced trader needs.
---
### 📐 Core Logic
The strategy focuses on confirming strong trend entries using a combination of:
- **EMA Crossovers**: Short-term trend detection
- **Higher Timeframe EMA**: Confirms overall market direction
- **MACD**: Measures momentum of price movement
- **RSI & ADX Filters** *(optional)*: Adds further confirmation
- **ATR**: Used to dynamically set profit targets, stop losses, and trailing logic
---
### 📊 Entry Rules
#### 🟢 Buy Entry:
- Price is above EMA from higher timeframe (or custom long EMA)
- Fast EMA > Slow EMA (bullish crossover)
- MACD Line > Signal Line (positive momentum)
- Candle is bullish and strong (body/candle ratio threshold)
- RSI not in overbought zone *(if enabled)*
- ADX above threshold *(if enabled)*
- Cooldown period (X bars) passed since last trade
#### 🔴 Sell Entry:
- Price below EMA200 or long EMA
- Fast EMA < Slow EMA
- MACD Line < Signal Line
- Bearish candle with sufficient strength
- RSI not in oversold zone *(if enabled)*
- ADX confirms trend strength *(if enabled)*
---
### 🔁 Exit Options
1. **Fixed TP/SL** using ATR multipliers
2. **Trailing Stop** with adjustable ATR-based logic
3. **Partial Exit** at intermediate profit target (e.g., ATR * 1.5), remaining position uses trailing
4. **Profit Lock**: Closes trade early if sufficient profit is reached and the candle shows reversal behavior
5. **Max Loss Limit** per trade to protect capital
---
### ⚙️ Customization
| Module | Description |
|--------|-------------|
| RSI / ADX | Enable or disable as filters |
| EMA Source | Use custom or higher timeframe |
| Dynamic Size | Increase size when signal is strong |
| Trailing Stop | Replace fixed SL with trailing logic |
| Partial Exit | Take partial profits earlier |
| Profit Lock | Exit trades early on reversal signs |
| Alerts | Get real-time alerts on entry |
---
### 📦 Use Cases
- A ready-to-use base for trend-following strategies
- Can be expanded with custom indicators
- Perfect for traders who value logic, safety, and modularity
- Suitable for scalping or swing trading depending on timeframe
---
### 👨💻 Author
Published by: **emad_alwan**
Pine Script v6 | License: Open Use | Fully Commented & Modular
Zig Zag Trend Metrics“ Zig Zag Trend Metrics ” is a highly versatile indicator, built on the classic Zig Zag concept and thoughtfully designed for technical traders seeking a deeper, more structured view of market dynamics. This tool identifies significant swing highs and lows, classifies them, and annotates each with key metrics, offering a precise snapshot of each movement. It enhances visual analysis by drawing connecting lines that outline the flow of market structure, making trend progression and reversals instantly recognizable. Beyond visual mapping, it features a compact, real-time statistics table that calculates the average price and time deltas for both bullish and bearish swings, giving traders deep insights into trend momentum and rhythm. With extensive customization options, this indicator adapts seamlessly to vast trading styles or chart setups, empowering traders to spot patterns, evaluate trend strength, and make more confident, data-backed decisions.
❖ FEATURES
✦ Automatic Swing Detection
At its core, this indicator automatically identifies swing highs and lows based on a customizable lookback period (default: 10 bars).
✦ Labeling Swing Points
Each swing is visualized with a label that includes:
Swing Classification : “HH” (Higher High), “LH” (Lower High), “LL” (Lower Low), or “HL” (Higher Low).
Price Difference : Displayed in percentage or absolute value from the previous opposite swing.
Time Difference : The number of bars since the previous swing of the opposite type.
These labels offer traders clear, immediate insight into price movements and structural changes.
✦ Visual Lines
The indicator draws three types of lines:
Bullish Lines: Connect recent swing lows to new swing highs, indicating uptrends.
Bearish Lines: Connect recent swing highs to new swing lows, indicating downtrends.
Range Lines: Connect consecutive highs or lows to outline price channels.
Each line type can be color-coded and customized for visibility.
✦ Statistics Table
An on-screen metrics table provides a live summary of trends. Script uses Relative Averaging to smooth price and time changes. This prevents outliers from distorting the data and provides a more reliable sense of typical swing behavior.
Uptrend Metrics: Shows average price and time differences from recent bullish swings.
Downtrend Metrics: Shows the same for bearish swings.
🛠️ Customization Options
Ability to tailor the indicator to suit their strategy and aesthetic preferences:
Swing Period: Adjust sensitivity to short- or long-term swings.
Color Settings: Customize line and label colors.
Label Display: Choose between absolute or percentage price differences.
Table Settings: Modify size, location, or visibility.
This makes the indicator highly flexible and useful across various timeframes and assets.
Today's Daily LevelsTrack daily price action like a pro with instant visibility of key levels, percentages, and P&L values - all in one clean view.
• Shows Daily Open, High, Low & Median levels
• Dynamic color-coding: green above open, red below
• Real-time price labels with:
Exact price levels
% distance between levels
Point values
Dollar values per contract
• Auto-repaints on timeframe changes
• 30min alerts for median crosses
Dynamic Support and Resistance"Dynamic Support & Resistance" Indicator: Find Key Price Levels Easily
This indicator helps you quickly spot potential support and resistance levels on your chart. Think of these levels as price "floors" (support) and "ceilings" (resistance) where the price might bounce or change direction.
How to Use It:
Add it to your chart: Search for "Support and Resistance Zones" in TradingView's indicator library and add it to your chart.
See the lines: You'll see green dashed lines for support and red dashed lines for resistance.
Understand the levels:
Green lines (Support): These show price levels where buyers might step in and push the price back up.
Red lines (Resistance): These show price levels where sellers might step in and push the price back down.
Adjust the settings (optional):
You can change how sensitive the indicator is by adjusting the "Support Window" and "Resistance Window" settings. A smaller number finds more levels, a larger number finds fewer, but potentially stronger levels.
Use it for your trading:
Look for price bounces at support levels to consider buying.
Look for price reversals at resistance levels to consider selling.
These levels can also help you decide where to place stop-loss orders.
Why it's useful:
Saves time: It automatically finds these important price levels, so you don't have to draw them manually.
Easy to see: The colored lines make the levels clear and easy to understand.
Helps with decisions: It gives you potential entry and exit points for your trades.
In simple terms, this indicator makes it easier to see where the price might change direction, helping you make smarter trading choices.
Cz ASR indicatorAverage session range indicator built by me. Great tool to gauge volatility and intraday reversal zones. Great for FX as there is an included table that shows range in pips; however, this can be applied across all assets as a volatility measure.
How it works:
The script measures the range of sessions, including Asia, London, and New York. The lookback period could be adjusted so you can find what length works best and is most accurate. This is then averaged out to provide the ASR. This provides us with an upper and lower bound of which the price could potentially fluctuate in based on the past session ranges. I have also added the 50% ASR, which is also a super useful metric for reversals or continuations.
There is also a configurable UTC so that you can adjust the indicator so it can accurately measure the range within certain sessions.
Note - different session start and stop times vary from market to market. I have set the code to the standard forex market opens however, if you wish to change the time ,you are able to do so by editing the variables in the script
Enjoy :)
EMA CloudIt's provide the area of value between 2 EMA. Additional 1 EMA long term for determine the market status.