GIGANEVA V6.61 PublicThis enhanced Fibonacci script for TradingView is a powerful, all-in-one tool that calculates Fibonacci Levels, Fans, Time Pivots, and Golden Pivots on both logarithmic and linear scales. Its ability to compute time pivots via fan intersections and Range interactions, combined with user-friendly features like Bool Fib Right, sets it apart. The script maximizes TradingView’s plotting capabilities, making it a unique and versatile tool for technical analysis across various markets.
1. Overview of the Script
The script appears to be a custom technical analysis tool built for TradingView, improving upon an existing script from TradingView’s Community Scripts. It calculates and plots:
Fibonacci Levels: Standard retracement levels (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range.
Fibonacci Fans: Trendlines drawn from a high or low point, radiating at Fibonacci ratios to project potential support/resistance zones.
Time Pivots: Points in time where significant price action is expected, determined by the intersection of Fibonacci Fans or their interaction with key price levels.
Golden Pivots: Specific time pivots calculated when the 0.5 Fibonacci Fan (on a logarithmic or linear scale) intersects with its counterpart.
The script supports both logarithmic and linear price scales, ensuring versatility across different charting preferences. It also includes a feature to extend Fibonacci Fans to the right, regardless of whether the user selects the top or bottom of the range first.
2. Key Components Explained
a) Fibonacci Levels and Fans from Top and Bottom of the "Range"
Fibonacci Levels: These are horizontal lines plotted at standard Fibonacci retracement ratios (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range (the "Range"). The Range is typically the distance between a significant high (top) and low (bottom) on the chart.
Example: If the high is $100 and the low is $50, the 0.618 retracement level would be at $80.90 ($50 + 0.618 × $50).
Fibonacci Fans: These are diagonal lines drawn from either the top or bottom of the Range, radiating at Fibonacci ratios (e.g., 0.382, 0.5, 0.618). They project potential dynamic support or resistance zones as price evolves over time.
From Top: Fans drawn downward from the high of the Range.
From Bottom: Fans drawn upward from the low of the Range.
Log and Linear Scale:
Logarithmic Scale: Adjusts price intervals to account for percentage changes, which is useful for assets with large price ranges (e.g., cryptocurrencies or stocks with exponential growth). Fibonacci calculations on a log scale ensure ratios are proportional to percentage moves.
Linear Scale: Uses absolute price differences, suitable for assets with smaller, more stable price ranges.
The script’s ability to plot on both scales makes it adaptable to different markets and user preferences.
b) Time Pivots
Time pivots are points in time where significant price action (e.g., reversals, breakouts) is anticipated. The script calculates these in two ways:
Fans Crossing Each Other:
When two Fibonacci Fans (e.g., one from the top and one from the bottom) intersect, their crossing point represents a potential time pivot. This is because the intersection indicates a convergence of dynamic support/resistance zones, increasing the likelihood of a price reaction.
Example: A 0.618 fan from the top crosses a 0.382 fan from the bottom at a specific bar on the chart, marking that bar as a time pivot.
Fans Crossing Top and Bottom of the Range:
A fan line (e.g., 0.5 fan from the bottom) may intersect the top or bottom price level of the Range at a specific time. This intersection highlights a moment where the fan’s projected support/resistance aligns with a key price level, signaling a potential pivot.
Example: The 0.618 fan from the bottom reaches the top of the Range ($100) at bar 50, marking bar 50 as a time pivot.
c) Golden Pivots
Definition: Golden pivots are a special type of time pivot calculated when the 0.5 Fibonacci Fan on one scale (logarithmic or linear) intersects with the 0.5 fan on the opposite scale (or vice versa).
Significance: The 0.5 level is the midpoint of the Fibonacci sequence and often acts as a critical balance point in price action. When fans at this level cross, it suggests a high-probability moment for a price reversal or significant move.
Example: If the 0.5 fan on a logarithmic scale (drawn from the bottom) crosses the 0.5 fan on a linear scale (drawn from the top) at bar 100, this intersection is labeled a "Golden Pivot" due to its confluence of key Fibonacci levels.
d) Bool Fib Right
This is a user-configurable setting (a boolean input in the script) that extends Fibonacci Fans to the right side of the chart.
Functionality: When enabled, the fans project forward in time, regardless of whether the user selected the top or bottom of the Range first. This ensures consistency in visualization, as the direction of the Range selection (top-to-bottom or bottom-to-top) does not affect the fan’s extension.
Use Case: Traders can use this to project future support/resistance zones without worrying about how they defined the Range, improving usability.
3. Why Is This Code Unique?
Original calculation of Log levels were taken from zekicanozkanli code. Thank you for giving me great Foundation, later modified and applied to Fib fans. The script’s uniqueness stems from its comprehensive integration of Fibonacci-based tools and its optimization for TradingView’s plotting capabilities. Here’s a detailed breakdown:
All-in-One Fibonacci Tool:
Most Fibonacci scripts on TradingView focus on either retracement levels, extensions, or fans.
This script combines:
Fibonacci Levels: Static horizontal lines for retracement and extension.
Fibonacci Fans: Dynamic trendlines for projecting support/resistance.
Time Pivots: Temporal analysis based on fan intersections and Range interactions.
Golden Pivots: Specialized pivots based on 0.5 fan confluences.
By integrating these functions, the script provides a holistic Fibonacci analysis tool, reducing the need for multiple scripts.
Log and Linear Scale Support:
Many Fibonacci tools are designed for linear scales only, which can distort projections for assets with exponential price movements. By supporting both logarithmic and linear scales, the script caters to a wider range of markets (e.g., stocks, forex, crypto) and user preferences.
Time Pivot Calculations:
Calculating time pivots based on fan intersections and Range interactions is a novel feature. Most TradingView scripts focus on price-based Fibonacci levels, not temporal analysis. This adds a predictive element, helping traders anticipate when significant price action might occur.
Golden Pivot Innovation:
The concept of "Golden Pivots" (0.5 fan intersections across scales) is a unique addition. It leverages the symmetry of the 0.5 level and the differences between log and linear scales to identify high-probability pivot points.
Maximized Plot Capabilities:
TradingView imposes limits on the number of plots (lines, labels, etc.) a script can render. This script is coded to fully utilize these limits, ensuring that all Fibonacci levels, fans, pivots, and labels are plotted without exceeding TradingView’s constraints.
This optimization likely involves efficient use of arrays, loops, and conditional plotting to manage resources while delivering a rich visual output.
User-Friendly Features:
The Bool Fib Right option simplifies fan projection, making the tool intuitive even for users who may not consistently select the Range in the same order.
The script’s flexibility in handling top/bottom Range selection enhances usability.
4. Potential Use Cases
Trend Analysis: Traders can use Fibonacci Fans to identify dynamic support/resistance zones in trending markets.
Reversal Trading: Time pivots and Golden Pivots help pinpoint moments for potential price reversals.
Range Trading: Fibonacci Levels provide key price zones for trading within a defined range.
Cross-Market Application: Log/linear scale support makes the script suitable for stocks, forex, commodities, and cryptocurrencies.
The original code was from zekicanozkanli . Thank you for giving me great Foundation.
Pivot-Punkte und Levels
Zig Zag + Fibonacci PROPlots ZigZag structure with optional Fibonacci retracement levels.
Helps identify recent highs/lows and possible support/resistance zones.
Customizable levels and alert on price cross.
Session OHLC LevelsMarks:
- NY open, AM high, AM low, PM high, PM low and close
- Asia open, high, low and close
- London open, high, low and close
Phoenix Pro Strategy with AlertsPhoenix Pro Strategy with Alerts – Documentation
Version: Pine Script v5
Overlay: true
Purpose: Trend-based buy/sell strategy with alert support
🔧 Inputs
EMA Fast/Slow: Determines trend direction (default: 9, 21)
SMA Short/Long: Used for additional filtering (default: 20, 50)
RSI: Detects overbought/oversold levels (14 period)
Bollinger Bands: Measures price volatility and deviation from average (default: 20 period, 2.0 multiplier)
Pivot High/Low: Identifies support/resistance points (default: 5 bars left/right)
ZigZag: Highlights price swings based on percentage deviation (5%)
📈 Indicators & Calculations
EMA and SMA: Filters for trend direction and price positioning
RSI: Measures momentum
Bollinger Bands: Evaluates market volatility
Pivots & ZigZag: Visual support/resistance and trend reversals
✅ Long Entry Conditions
EMA Fast > EMA Slow
Price > SMA Short
RSI < 60
Price > Bollinger Basis
❌ Short Entry Conditions
EMA Fast < EMA Slow
Price < SMA Short
RSI > 40
Price < Bollinger Basis
Bijnor Pivot ExtendedOverview: The Bijnor Pivot Extended (BP+) indicator is a powerful visual tool designed to help traders identify key price levels using Fibonacci-based pivots. It dynamically plots Support and Resistance levels based on your chosen timeframe (Daily, Weekly, or Monthly) and displays them only for the current session, reducing chart clutter and improving focus.
🔧 Features:
📆 Pivot Timeframe Selection: Choose between Daily, Weekly, or Monthly pivots.
🎯 Fibonacci Pivot Levels:
Central Pivot (P)
Resistance: R1, R2, R3, R4 (Extended)
Support: S1, S2, S3, S4 (Extended)
🎨 Full Customization:
Toggle labels and prices on/off
Position labels to the left or right
Change line width and individual colors for pivot, support, and resistance lines
🧠 Smart Line Plotting:
Lines are drawn only during the selected session, keeping your chart clean
🕹️ Max Performance: Optimized to stay lightweight with max_lines_count and max_labels_count set to 500
🧭 How to Use It:
Use this indicator to:
Plan entries and exits around key Fibonacci pivot zones
Identify overbought/oversold zones at R3/R4 and S3/S4
Enhance your intraday, swing, or positional trading setups
Combine with price action, candlestick patterns, or volume for maximum edge.
✅ Bonus:
This script is ideal for traders looking for a minimalist yet powerful pivot framework, with extended levels for breakout or reversal scenarios.
FVG# Fair Value Gap (FVG) Indicator
## Overview
The Fair Value Gap (FVG) indicator is a technical analysis tool designed to identify potential areas of price imbalance in the market. These imbalances, known as "fair value gaps," represent discontinuities in price movement where supply and demand were significantly imbalanced, potentially creating zones that price may return to in the future. This indicator was developed by Michele Amori for TradingView and operates as an overlay on price charts.
## Core Concept
Fair Value Gaps occur when price makes a significant move in one direction, leaving behind an area where no trading occurred. Specifically:
- **Bullish FVG**: Forms when the low of the current candle is higher than the high of the candle two positions back, creating an upward gap in price movement.
- **Bearish FVG**: Forms when the high of the current candle is lower than the low of the candle two positions back, creating a downward gap in price movement.
These gaps represent potential "fair value" areas that price may revisit to establish equilibrium between buyers and sellers.
## Visual Representation
The indicator displays FVGs in the following manner:
1. **Bullish FVGs**:
- Represented by semi-transparent green boxes
- Extend from the high of the candle two positions back to the low of the current candle
- Include a dashed green center line representing the middle point of the gap
2. **Bearish FVGs**:
- Represented by semi-transparent red boxes
- Extend from the low of the candle two positions back to the high of the current candle
- Include a dashed red center line representing the middle point of the gap
All FVG boxes and their center lines are extended to the right of the chart, making them visible until they are filled or invalidated.
## Invalidation Logic
The indicator automatically removes FVGs when they are considered filled or invalidated:
- **Bullish FVGs**: Removed when the closing price falls below the bottom of the FVG box, indicating that the upward gap has been filled.
- **Bearish FVGs**: Removed when the closing price rises above the top of the FVG box, indicating that the downward gap has been filled.
This removal only occurs after a candle is confirmed (fully formed), ensuring that premature invalidation doesn't occur during candle formation.
## Technical Implementation
The indicator uses arrays to store and manage the FVG boxes and their center lines. Key features of the implementation include:
- Creation of new FVGs only after candle confirmation
- Dynamic addition and removal of visual elements
- Transparent coloring (80% transparency) for better chart visibility
- Dashed center lines with less transparency (25%) to highlight the middle point of gaps
Gold Supply & Demand Zones [HTF] + VWAPGold Supply & Demand Zones + VWAP indicator to effectively, trade XAUUSD (Gold).
🧠 What This Indicator Does
It combines two powerful concepts:
Supply & Demand Zones from a Higher Timeframe (HTF).
VWAP (Volume Weighted Average Price) to understand the price’s relation to fair value.
Supply Zone = Area of potential selling pressure (resistance).
Demand Zone = Area of potential buying pressure (support).
✅ How it's calculated:
You select a Higher Timeframe (default = 1 hour).
Highest high = Supply Zone Top
Lowest low = Demand Zone Bottom
It creates a zone width using a pip size you define (default = 10 pips).
✅ When are zones visible?
Zones only appear if the current price is near them — this avoids clutter and keeps things relevant.
📊 How to Use the Indicator (Strategy Idea)
🟢 Bullish Setup (Buy):
Price enters the demand zone (green lines visible).
VWAP turns green (price above VWAP).
Look for a bullish candle or reversal pattern.
Enter long — target could be mid-range or supply zone.
🔴 Bearish Setup (Sell):
Price enters the supply zone (red lines visible).
VWAP turns red (price below VWAP).
Look for a bearish candle or breakdown.
Enter short — target could be mid-range or demand zone.
Imagine you're on a 15-minute chart with HTF set to 1H:
Gold drops into a green demand zone, VWAP is now green — this is a high-probability long setup.
Gold rallies into a red supply zone, VWAP turns red — this is a potential short.
Like this indicator? Boost it ❣️
Break of Structure & Change of CharacterThis Break of Structure & Change of Character indicator is a fully customizable Pine Script v6 tool designed to help you spot key market structure shifts on any timeframe (optimized by default for 5‑minute charts). Here’s what it does and how to tailor it:
What It Detects
Swing Pivots
Finds local swing highs and lows over a configurable lookback (Pivot Lookback).
Break of Structure (BOS)
Marks when price closes beyond the last swing high (bullish BOS) or below the last swing low (bearish BOS), using an ATR‑based buffer to filter out minor moves.
Change of Character (CHoCH)
After a BOS, watches for price to reverse back through that level (e.g. a drop below the higher‑low after a bullish BOS), signaling a potential shift in momentum.
Key Inputs & Features
Pivot Lookback (pivotLen): How many bars to look back for pivots (default 8 for a 5‑min chart).
Fast Mode: When enabled, halves both the pivot lookback and ATR threshold for quicker—but noisier—signals.
ATR Threshold (atrLen & atrMult): Uses ATR(atrLen) × atrMult to require a minimum follow‑through beyond the pivot for a valid BOS/CHoCH.
Show Labels / Show Pivot Labels: Toggle on/off all structure labels or just pivot “x” markers.
Appearance Customization
Colors: Choose separate colors for pivot highs/lows, BOS labels, CHoCH labels, and structure lines.
Line Style: Select “Solid”, “Dotted”, or “Dashed” for your swing‑level lines.
Label Size & Style: Pick “Tiny”, “Small”, or “Normal” text size and choose label orientation (Up/Down/Left/Right) independently for pivots, BOS, and CHoCH.
Pivot Label Text: Change the pivot marker from the default “x” to any character you prefer.
How to Use
Add to Chart: Apply it on a 5‑minute chart (you’ll get a one‑time notice if you’re on another timeframe).
Tweak Inputs: Adjust pivot lookback, ATR multiplier, and toggle Fast Mode to suit your style.
Interpret Signals:
Green “BOS↑” or red “BOS↓” labels mark structure breaks.
Orange “CHoCH↓” or “CHoCH↑” labels flag the reversal through that level.
Dotted (or styled) lines trace the last swing high/low for visual reference.
Pelosi Kenobi LevelsThe Pelosi Kenobi Levels Indicator is a sophisticated PineScript v6 tool designed for TradingView to assist traders in identifying key price levels and market dynamics across multiple timeframes. It integrates several technical analysis components, including:
High, Low, and 50% Retracement Levels: Displays current and previous day, week, and month high, low, and 50% retracement levels, with customizable display options for standard, non-standard, and rolling calculations.
Liquidity Clusters: Visualizes bullish and bearish liquidity zones using three-tiered boxes (b1, b2, b3) based on volume and price proximity to significant retracement levels, helping traders spot areas of potential support or resistance.
Cumulative Delta Heatmap: Shows cumulative volume delta as a heatmap, indicating buying or selling pressure, with customizable reset periods (e.g., daily, weekly, custom).
Anchored VWAP (AVWAP): Plots a multi-timeframe anchored Volume Weighted Average Price, reset on new timeframe bars, to highlight price areas where significant trading volume has occurred.
YaGA Retracement Index: Provides a table scoring bullish and bearish strength based on the proximity of price to key levels, aiding in trend assessment.
Opening Range Fib50 (OR31FIB50 and ORCUSTOMFIB50): Plots high, low, and 50% retracement levels for 31-minute or custom-minute opening ranges, useful for intraday trading strategies.
Custom Levels: Allows traders to define their own price levels for additional reference points.
How It Helps Traders:
Market Structure Insight: Identifies critical support/resistance zones through highs, lows, and retracements, enabling traders to anticipate price reactions.
Liquidity Detection: Liquidity clusters highlight areas where large orders may be placed, useful for entry/exit timing or stop placement.
Trend and Momentum Analysis: The delta heatmap and YaGA index provide real-time insights into buying/selling pressure and trend strength, aiding in directional bias.
Intraday Precision: Opening range levels help scalpers and day traders target breakouts or reversals during high-volatility periods.
Customization: Extensive input options allow traders to tailor the indicator to their preferred timeframes, visual styles, and trading strategies, enhancing adaptability across markets (e.g., stocks, forex, crypto).
This indicator is particularly valuable for technical traders seeking a comprehensive, visually intuitive tool to combine price action, volume analysis, and market sentiment for informed decision-making.
Session Highs/Lows for Full Day + Open/Close Labelsthis indicator shows the start and stop of each trading session and plots the high and low of each session
Time Cycles# New York Time Cycles Indicator
## Overview
The Time Cycles indicator is a specialized technical analysis tool designed to divide the trading day into distinct time blocks based on New York trading hours. Developed for TradingView, this indicator helps traders identify and analyze market behavior during specific time periods throughout the trading session. The indicator displays six consecutive time blocks, each representing 90-minute segments of the trading day, while tracking price ranges within each block.
## Core Concept
The Time Cycles indicator is built on the premise that different periods during the trading day often exhibit unique market characteristics and behaviors. By segmenting the trading day into standardized 90-minute blocks, traders can:
1. Identify recurring patterns at specific times of day
2. Compare price action across different time blocks
3. Recognize potential support and resistance levels based on the high and low of previous time blocks
4. Develop time-based trading strategies specific to certain market hours
## Time Block Structure
The indicator divides the trading day into six sequential 90-minute blocks based on New York time:
1. **Box 1**: 07:00 - 08:30 ET
2. **Box 2**: 08:30 - 10:00 ET
3. **Box 3**: 10:00 - 11:30 ET
4. **Box 4**: 11:30 - 13:00 ET
5. **Box 5**: 13:00 - 14:30 ET
6. **Box 6**: 14:30 - 16:00 ET
These time blocks cover the core US trading session from pre-market into regular market hours.
## Visual Representation
Each time block is represented on the chart as a visual box that:
- Spans the exact time period of the block (horizontally)
- Extends from the highest high to the lowest low recorded during that time period (vertically)
- Is displayed with customizable colors and transparency levels
- Automatically builds in real-time as price action develops
Additionally, the indicator draws dashed projection lines that:
- Display the high and low of the most recently completed time block
- Extend forward in time (for up to 24 hours)
- Help traders identify potential support and resistance levels
## Technical Implementation
The indicator employs several key technical features:
1. **Time Detection**: Accurately identifies the current New York time to place each box in the correct time period
2. **Dynamic Box Creation**: Initializes and updates boxes in real-time as price action develops
3. **Range Tracking**: Continuously monitors and adjusts the high and low of each active time block
4. **Projection Lines**: Creates horizontal dashed lines projecting the high and low of the most recently completed time block
5. **Daily Reset**: Automatically resets all boxes and lines at the start of each new trading day
6. **Customization**: Allows users to set custom colors and transparency levels for each time block
This Time Cycles indicator provides traders with a structured framework for analyzing intraday market movements based on specific time periods. By understanding how the market typically behaves during each 90-minute block, traders can develop more targeted strategies and potentially identify higher-probability trading opportunities throughout the trading day.
StochDL 355This is a Stochastic indicator marking Regular and Hidden Divergence which I liked from the script of Dev Lucem who called his indicator "Plain Stochastic Divergence". I call this indicator StochDL to give Dev Lucem credit for his original contribution. I noticed in his original script that the %K and %D calculation could be improved which I changed to be: period K and period D should be calculated to be %K. Then smooth K and %K should be smoothed to get %D.
His script nicely identifies regular and hidden divergence for %K. However, I then added script to also identify regular and hidden divergence for %D. The "top Spot" and "Bottom Spot" mark when the divergence is complete. It is not my intention to claim that I solely generated this indicator, however, I have altered and added content to make this indicator unique from the original.
I use these arrows for to alert me that there is divergence. I then use other indicators to confirm a change of trend has taken place.
Levels [Serhio]The strategy "Levels " is a pivot-based trading approach that identifies key support and resistance levels from a higher timeframe (e.g., 60 minutes). It enters trades when price bounces off these levels:
Level Identification: Uses pivot highs/lows to define dynamic support/resistance levels.
Entry Signals:
Long: When price crosses back above support after being below it.
Short: When price crosses back below resistance after being above it.
Risk Management:
Stop-loss is placed at the recent extreme (low for longs, high for shorts).
Take-profit is set using a user-defined risk/reward ratio (default 2:1).
Execution: Trades are automatically executed with calculated stop-loss and take-profit levels.
The strategy visualizes levels and signals directly on the chart for manual verification.
**** If you have any ideas or suggestions for improvement, write to us and we will improve it, profit for everyone.*****
OTC IndicatorThis OTC (Bernd Skorupinski) inspired indicator shows the US Treasury Bond Futures, Gold Futures, and Dollar Index at the same time. This is an important tool, as when all 3 instruments are aligned, it is a strong confluence to support a bullish or bearish shift in the market.
This powerful indicator requires a payment of $200 to access (lifetime access). Payment can be sent via PayPal to: setandforget@@gmx.com
Put your Tradingview username in the PayPal note section during payment or contact me.
All in One Custom IB RangeThis is sure shot winning Indicator. Combining Opening Range, Pvs Day H L M, CPR, EMA , Vwap
CPR with Support & ResistanceWe recommend some preconditions for Intraday Trading Strategy with CPR (Central Pivot Range)
Rules For BUY Setup with CPR
1) Today's Pivot Level Should be higher than Previous Day's Pivot Level
2) The previous day's close should be near day high.
Rules For SELL Setup with CPR
1) Today's Pivot Level Should be lower than Previous Day's Pivot Level
2) The previous day's close should be near day low.
CPR or central pivot range is the best tool available for the trader to see the price base indicator. You can use this tool i.e CPR (central pivot range) to check the price indicator in the stock market. You know the price of shares sometimes goes up or sometimes goes down in the stock market. So it will be best to stay updated and know it before the time the share market/stock market fall or rises.
Smart Money Strategy [Trend Confirmed]Smart Money Strategy
Timeframes: Uses a higher (HTF) and lower (LTF) timeframe for trend confirmation.
Trend Confirmation: Requires price above/below EMA(50) on both HTF and LTF.
Entry Signals: Combines BOS (Break of Structure), CHoCH (Change of Character), and FVG (Fair Value Gap) for entries.
Risk Management: Uses swing highs/lows for stop-loss and a fixed risk-reward ratio (RR) for take-profit.
Trading Rules:
Long entries when trend is up and any signal (BOS/CHoCH/FVG) triggers.
Short entries when trend is down and any signal triggers.
Visualization: Plots EMA(50) for both HTF (blue) and LTF (orange).
The strategy executes 100% of equity per trade with adjustable RR and stop methods.
거미줄 자동매매 250227Okay, let's break down this TradingView Pine Script code, '거미줄 자동매매 250227' (Spiderweb Auto-Trading 250227).
This script implements a grid trading strategy for long positions in the USDT market. The core idea is to place a series of buy limit orders at progressively lower prices below an initial entry point, aiming to lower the average entry price as the price drops. It then aims to exit the entire position when the price rises a certain percentage above the average entry price.
Here's a detailed breakdown:
1. Strategy Setup (`strategy` function):
`'거미줄 자동매매 250227'`: The name of the strategy.
`overlay = true`: Draws plots and labels directly on the main price chart.
`pyramiding = 15`: Allows up to 15 entries in the same direction (long). This is essential for grid trading, as it needs to open multiple buy orders.
`initial_capital = 600`: Sets the starting capital for backtesting to 600 USDT.
`currency = currency.USDT`: Specifies the account currency as USDT.
`margin_long/short = 0`: Doesn't define specific margin requirements (might imply spot trading logic or rely on exchange defaults if used live).
`calc_on_order_fills = false`: Strategy calculations happen on each bar's close, not just when orders fill.
2. Inputs (`input`):
Core Settings:
`lev`: Leverage (default 10x). Used to calculate position sizes.
`per1`: Percentage of total capital to allocate to the initial grid (default 80%).
`per2`: Percentage of the *remaining* capital (100 - `per1`) to use for the "semifinal" entry (default 50%). The rest goes to the "final" entry.
`len`: Lookback period (default 4 bars) to determine the initial `maxPrice`.
`range1`: The total percentage range downwards from `maxPrice` where the grid orders will be placed (default -10%, meaning 10% down).
`tp`: Take profit percentage above the average entry price (default 0.45%).
`semifinal`: Percentage drop from `maxPrice` to trigger the "semifinal" larger entry (default 12%).
`final`: Percentage drop from `maxPrice` to trigger the "final" larger entry (default 15%).
Trading Mechanics:
`trail`: Boolean (true/false) to enable an ATR-based trailing stop only if just the first grid order ("Buy 1") has filled (default true).
`atrPeriod`, `atrMult`: Settings for the ATR calculation if `trail` is true.
Rounding & Display:
`roundprice`, `round`: Decimal places for rounding price and quantity calculations.
`texts`, `label_style`: User interface preferences for text size and label appearance on the chart.
Time Filter:
`startTime`, `endTime`: Defines the date range for the backtest.
3. Calculations & Grid Setup:
`maxPrice`: The highest price point for the grid setup. Calculated as the lowest low of the previous `len` bars only if no trades are open . If trades are open, it uses the entry price of the very first order placed in the current sequence (`strategy.opentrades.entry_price(0)`).
`minPrice`: The lowest price point for the grid, calculated based on `maxPrice` and `range1`.
`totalCapital`: The amount of capital (considering leverage and `per1`) allocated for the main grid orders.
`coinRatios`: An array ` `. This defines the *relative* size ratio for each of the 11 grid orders. Later orders (at lower prices) will be progressively larger.
`totalRatio`: The sum of all ratios (66).
`positionSizes`: An array calculated based on `totalCapital` and `coinRatios`. It determines the actual quantity (size) for each of the 11 grid orders.
4. Order Placement Logic (`strategy.entry`):
Initial Grid Orders:
Runs only if within the specified time range and no position is currently open (`strategy.opentrades == 0`).
A loop places 11 limit buy orders (`Buy 1` to `Buy 11`).
Prices are calculated linearly between `maxPrice` and `minPrice`.
Order sizes are taken from the `positionSizes` array.
Semifinal & Final Entries:
Two additional, larger limit buy orders are placed simultaneously with the grid orders:
`semifinal entry`: At `maxPrice * (1 - semifinal / 100)`. Size is based on `per2`% of the capital *not* used by the main grid (`1 - per1`).
`final entry`: At `maxPrice * (1 - final / 100)`. Size is based on the remaining capital (`1 - per2`% of the unused portion).
5. Visualization (`line.new`, `label.new`, `plot`, `plotshape`, `plotchar`):
Grid Lines & Labels:
When a position is open (`strategy.opentrades > 0`), horizontal lines and labels are drawn for each of the 11 grid order prices and the "final" entry price.
Lines extend from the bar where the *first* entry occurred.
Labels show the price and planned size for each level.
Dynamic Coloring: If the price drops below a grid level, the corresponding line turns green, and the label color changes, visually indicating that the level has been reached or filled.
Plotted Lines:
`maxPrice` (initial high point for the grid).
`strategy.position_avg_price` (current average entry price of the open position, shown in red).
Target Profit Price (`strategy.position_avg_price * (1 + tp / 100)`, shown in green).
Markers:
A flag marks the `startTime`.
A rocket icon (`🚀`) appears below the bar where the `final entry` triggers.
A stop icon (`🛑`) appears below the bar where the `semifinal entry` triggers.
6. Exit Logic (`strategy.exit`, `strategy.entry` with `qty=0`):
Main Take Profit (`Full Exit`):
Uses `strategy.entry('Full Exit', strategy.short, qty = 0, limit = target2)`. This places a limit order to close the entire position (`qty=0`) at the calculated take profit level (`target2 = avgPrice * (1 + tp / 100)`). Note: Using `strategy.entry` with `strategy.short` and `qty=0` is a way to close a long position, though `strategy.exit` is often clearer. This exit seems intended to apply whenever any part of the grid position is open.
First Order Trailing Stop (`1st order Full Exit`):
Conditional : Only active if `trail` input is true AND the *last* order filled was "Buy 1" (meaning only the very first grid level was entered).
Uses `strategy.exit` with `trail_points` and `trail_offset` based on ATR values to implement a trailing stop loss/profit mechanism for this specific scenario.
This trailing stop order is cancelled (`strategy.cancel`) if any subsequent grid orders ("Buy 2", etc.) are filled.
Final/Semifinal Take Profit (`final Full Exit`):
Conditional : Only active if more than 11 entries have occurred (meaning either the "semifinal" or "final" entry must have triggered).
Uses `strategy.exit` to place a limit order to close the entire position at the take profit level (`target3 = avgPrice * (1 + tp / 100)`).
7. Information Display (Tables & UI Label):
`statsTable` (Top Right):
A comprehensive table displaying grouped information:
Market Info (Entry Point, Current Price)
Position Info (Avg Price, Target Price, Unrealized PNL $, Unrealized PNL %, Position Size, Position Value)
Strategy Performance (Realized PNL $, Realized PNL %, Initial/Total Balance, MDD, APY, Daily Profit %)
Trade Statistics (Trade Count, Wins/Losses, Win Rate, Cumulative Profit)
`buyAvgTable` (Bottom Left):
* Shows the *theoretical* entry price and average position price if trades were filled sequentially up to each `buy` level (buy1 to buy10). It uses hardcoded percentage drops (`buyper`, `avgper`) based on the initial `maxPrice` and `coinRatios`, not the dynamically changing actual average price.
`uiLabel` (Floating Label on Last Bar):
Updates only on the most recent bar (`barstate.islast`).
Provides real-time context when a position is open: Size, Avg Price, Current Price, Open PNL ($ and %), estimated % drop needed for the *next* theoretical buy (based on `ui_gridStep` input), % rise needed to hit TP, and estimated USDT profit at TP.
Shows "No Position" and basic balance/trade info otherwise.
In Summary:
This is a sophisticated long-only grid trading strategy. It aims to:
1. Define an entry range based on recent lows (`maxPrice`).
2. Place 11 scaled-in limit buy orders within a percentage range below `maxPrice`.
3. Place two additional, larger buy orders at deeper percentage drops (`semifinal`, `final`).
4. Calculate the average entry price as orders fill.
5. Exit the entire position for a small take profit (`tp`) above the average entry price.
6. Offer a conditional ATR trailing stop if only the first order fills.
7. Provide extensive visual feedback through lines, labels, icons, and detailed information tables/UI elements.
Keep in mind that grid strategies can perform well in ranging or slowly trending markets but can incur significant drawdowns if the price trends strongly against the position without sufficient retracements to hit the take profit. The leverage (`lev`) input significantly amplifies both potential profits and losses.
GR highs&lows PRO V3GR highs&lows PRO V3 is a professional intraday session tool that automatically plots the high and low wick levels for the Tokyo, London, and New York trading sessions. Each session is tracked in real time with customizable colors and line styles. The script marks the session highs and lows with horizontal lines and labels, helping traders identify key support/resistance levels from each major market session.
✅ Supports overnight sessions (e.g. Tokyo 20:00–04:00 UTC)
✅ Clean visual layout with optional background shading
✅ Keeps recent session levels on the chart (configurable)
Perfect for scalpers, session breakout traders, and anyone tracking intraday liquidity zones.
this is the update for version 2
CryptoPulse CipherCryptoPulse Cipher is a sophisticated trading indicator designed for cryptocurrency markets, combining multiple technical analysis tools to provide actionable buy/sell signals, trend reversal warnings, support/resistance zones, and divergence detection. It integrates an EMA Ribbon, WaveTrend Oscillator, Money Flow Index (MFI), VWAP, and custom divergence logic to offer traders a comprehensive view of market dynamics. This closed-source script is optimized for scalping and swing trading on volatile crypto assets, with a focus on clarity and usability.
What It Does:
The script overlays the price chart with:
EMA Ribbon: Visualizes market trend direction using eight Fibonacci-based Exponential Moving Averages (EMAs).
WaveTrend Oscillator: Identifies overbought/oversold conditions and generates buy/sell signals based on momentum crossovers.
Money Flow Index (MFI): Measures buying/selling pressure to filter signals and detect overbought/oversold zones.
VWAP: Provides a volume-weighted price anchor for intraday trend confirmation.
Trend Reversal Warnings: Flags potential reversals with blue triangles based on momentum shifts.
Support/Resistance Zones: Draws dynamic pivot-based zones to highlight key price levels.
Divergence Detection: Identifies bullish and bearish divergences between price and MFI for early reversal signals.
How It Works:
The script combines these components into a cohesive system with the following logic:
EMA Ribbon (Fibonacci EMAs): Uses EMAs with periods 8, 13, 21, 34, 55, 89, 144, and 233 (Fibonacci numbers) to assess trend direction. The ribbon turns green in bullish markets (shortest EMA > longest EMA) and red in bearish markets, providing a visual trend filter.
WaveTrend Oscillator: Calculates momentum using a modified Elder’s Impulse system, where the price average (HLC3) is smoothed with EMAs to compute a Channel Index (CI). Buy signals (green dots) occur when WaveTrend crosses up in oversold territory (below -53), and sell signals (red dots) occur when it crosses down in overbought territory (above +53). The oscillator is scaled to the price chart for visual alignment.
MFI: Complements WaveTrend by filtering signals. Buy signals require MFI < 80 (not overbought), and sell signals require MFI > 20 (not oversold). MFI is also scaled to the chart for clarity.
VWAP: Acts as a dynamic support/resistance level, calculated as the volume-weighted average price since the session start. It’s plotted prominently to guide trade entries/exits.
Trend Reversal Warnings: Detects momentum slowdowns by comparing the current price change to a 14-period SMA of price changes. A blue triangle appears when momentum weakens, signaling a potential reversal.
Support/Resistance Zones: Identifies pivot highs/lows (5 bars left, 5 bars right) and projects dashed lines forward 20 bars to mark key levels. These zones adapt dynamically to recent price action.
Divergence Detection: Compares price pivot highs/lows with MFI pivot highs/lows (3 bars left, 3 bars right). Bullish divergence occurs when price makes a lower low but MFI makes a higher low, signaling potential upside. Bearish divergence occurs when price makes a higher high but MFI makes a lower high, signaling potential downside. Divergences are marked with lines and labels.
Why This Combination?
The script’s originality lies in its integration of momentum (WaveTrend), volume (MFI and VWAP), trend (EMA Ribbon), and divergence analysis into a unified system tailored for cryptocurrencies. Unlike standalone indicators, CryptoPulse Cipher:
Filters WaveTrend signals with MFI to reduce false positives in choppy markets.
Uses Fibonacci-based EMAs for trend context, aligning with crypto market cycles.
Scales WaveTrend and MFI to the price chart, making them visually intuitive without cluttering a separate panel.
Detects divergences with precise pivot logic, enhancing reversal prediction.
Projects dynamic support/resistance zones, which are critical in volatile markets.
This mashup is purposeful: each component addresses a specific aspect of market analysis (trend, momentum, volume, reversals), and their synergy provides a robust framework for decision-making.
Pizza Money Trading Profit Triggers Scalper’s Edge: EMA-Based Entry & Exit Signals
This invite-only tool is designed for scalpers trading on the 1-minute and 5-minute timeframes. It’s built around a customized EMA crossover system that helps clarify potential entry and exit points—directly on the chart.
While many EMA scripts simply highlight crossover moments, this one includes additional timing logic to reduce noise and make signals more actionable. Entry and exit points are clearly plotted, allowing for faster decisions without guesswork during fast-moving trades.
It’s especially useful for traders who’ve struggled to define consistent scalp entries or exits using traditional methods. By visually mapping signals in real time, this tool helps improve clarity and decision-making under pressure.
Note: This script is invite-only and intended for traders seeking a structured approach to intraday scalping. Past performance is not a guarantee of future results.
Swing + 3-Bar Breakout(Mastersinnifty)Overview:
This script is a hybrid trading tool designed to combine swing-based reversal detection with 3-bar breakout confirmation, offering traders multiple perspectives on both early reversals and trend continuation setups.
It integrates:
• ZigZag-based Swing Detection — to help identify significant market turning points.
• Momentum Validation — using RSI and Rate of Change (ROC) to filter and strengthen signal confidence.
• 3-Bar Breakout Confirmation — for traders seeking breakouts after structural consolidations.
• Dynamic Trailing Stop Logic — using ATR to manage exit risk while allowing trades room to develop.
• Swing Projection Levels — to plot theoretical price targets based on measured moves from prior swings.
═════════════════════════════════════════════════════════════
What Makes This Script Unique:
Unlike basic ZigZag or momentum scripts, this indicator combines multiple layers of logic:
• Structural detection via swings,
• Momentum filtering via RSI and ROC,
• Breakout confirmation through multi-bar validation,
• Automated projection targets for reference,
• Real-time risk management via trailing stops.
This approach provides flexibility for both reversal and continuation trades in one package.
═════════════════════════════════════════════════════════════
Who This Is Useful For:
• Swing Traders — for identifying higher-lows & lower-highs during trend shifts.
• Scalpers & Intraday Traders — thanks to fast-reacting momentum filters.
• Breakout Traders — with automated breakout signals after price compression.
• Risk Managers — through built-in trailing stop logic for visual exit planning.
• Price Action Analysts — who appreciate calculated swing projection targets.
═════════════════════════════════════════════════════════════
How to Use:
• Swing Identification:
• The script automatically marks swing highs and lows, allowing you to spot trend change zones via HL (Higher Lows) and LH (Lower Highs) labels.
• Momentum Confirmation:
• Trade signals trigger when swing points align with extreme RSI readings and ROC crosses a defined threshold, confirming both price reaction and velocity.
• Breakout Detection:
• Additional breakout signals are generated when the price crosses key swing levels defined by the lookback period, highlighting possible continuation trades.
• Risk Management Tools:
• ATR-based trailing stops are plotted once a signal is triggered, offering dynamic risk control.
• Swing projection levels are calculated and plotted to visualize potential price destinations.
═════════════════════════════════════════════════════════════
⚠️ Disclaimer:
This script is intended as an analytical tool for chart-based trading insights. It does not guarantee profits or predict future outcomes. Trading carries risk, and past performance is not indicative of future results. Always perform your own due diligence before making trading decisions.
Pivot detector🧠 Pivot Detector – Multi-condition Reversal Signal with Trend & Time Filters
This indicator is specifically optimized for Bitcoin trading, combining classic reversal patterns with volume, trend, and session filters.
🟢 Long signals:
- RSI crossing up from oversold (RSI < 30)
- MACD histogram crossing above zero
- Price touching the lower Bollinger Band with OBV reversal
- Bullish engulfing pattern + volume spike
🔴 Short signals:
- RSI crossing down from overbought (RSI > 70)
- MACD histogram crossing below zero
- Price touching upper Bollinger Band + OBV failure
- Bearish engulfing pattern + volume spike
⚙️ Additional filters:
- ❌ Signals are blocked during low-volatility range zones (ADX < 20 or narrow standard deviation)
- ✅ Longs only allowed during active hours: 00–02, 07–09, 13–15 UTC
- ✅ Shorts only triggered outside strong uptrend (ADX > 25 with DI+ dominance)
📊 Best used on:
- ✅ Bitcoin / BTCUSDT
- ✅ 15m, 30m, 1H, 4H charts
🎯 Strategy focus:
- Captures short-term reversals in volatile but trendable markets
- Filters out traps and low-quality signals during sideways conditions
- Best used with manual confirmation or as part of a composite system
Alerts are built-in for both long and short triggers.
⚠️ This tool is still in its experimental phase and may require further adjustments as it's tested and improved.
Auto Support Resistance Channels [TradingFinder] Top/Down Signal🔵 Introduction
In technical analysis, a price channel is one of the most widely used tools for identifying and tracking price trends. A price channel consists of two parallel trendlines, typically drawn from swing highs (resistance) and swing lows (support). These lines define dynamic support and resistance zones and provide a clear framework for interpreting price fluctuations.
Drawing a channel on a price chart allows the analyst to more precisely identify entry points, exit levels, take-profit zones, and stop-loss areas based on how the price behaves within the boundaries of the channel.
Price channels in technical analysis are generally categorized into three types: upward channels with a positive slope, downward channels with a negative slope, and horizontal (range-bound) channels with near-zero slope. Each type offers unique insights into market behavior depending on the price structure and prevailing trend.
Structurally, channels can be formed using either minor or major pivot points. A major channel typically reflects a stronger, more reliable structure that appears on higher timeframes, whereas a minor channel often captures short-term fluctuations or corrective movements within a larger trend.
For instance, a major downward channel may indicate sustained selling pressure across the market, while a minor upward channel could represent a temporary pullback within a broader bearish trend.
The validity of a price channel depends on several factors, including the number of price touches on the channel lines, the symmetry and parallelism of the trendlines, the duration of price movement within the channel, and price behavior around the median line.
When a price channel is broken, it is generally expected that the price will move in the breakout direction by at least the width of the channel. This makes price channels especially useful in breakout analysis.
In the following sections, we will explore the different types of price channels, how to draw them accurately, the structural differences between minor and major channels, and key trade interpretations when price interacts with channel boundaries.
Up Channel :
Down Channel :
🔵 How to Use
A price channel is a practical tool in technical analysis for identifying areas of support, resistance, trend direction, and potential breakout zones. The structure consists of two parallel trendlines within which price fluctuates.
Traders use the relative position of price within the channel to make informed trading decisions. The two primary strategies include range-based trades (buying low, selling high) and breakout trades (entering when price exits the channel).
🟣 Up Channel
In an upward channel, price moves within a positively sloped range. The lower trendline acts as dynamic support, while the upper trendline serves as dynamic resistance. A common strategy involves buying near the lower support and taking profit or selling near the upper resistance.
If price breaks below the lower trendline with strong volume or a decisive candle, it can signal a potential trend reversal. Channels constructed from major pivots generally reflect dominant uptrends, while those based on minor pivots are often corrective structures within a broader bearish movement.
🟣 Down Channel
In a downward channel, price moves between two negatively sloped lines. The upper trendline functions as resistance, and the lower trendline as support. Ideal entry for short trades occurs near the upper boundary, especially when confirmed by bearish price action or a resistance level.
Exit targets are typically located near the lower support. If the upper boundary is broken to the upside, it may be an early sign of a bullish trend reversal. Like upward channels, a major down channel represents broader selling pressure, while a minor one may indicate a brief retracement in a bullish move.
🟣 Range Channel
A horizontal or range-bound channel is characterized by price oscillating between two nearly flat lines. This type of channel typically appears during sideways markets or periods of consolidation.
Traders often buy near the lower boundary and sell near the upper boundary to take advantage of contained volatility. However, fake breakouts are more frequent in range-bound structures, so it is important to wait for confirmation through candlestick signals and volume. A confirmed breakout beyond the channel boundaries can justify entering a trade in the direction of the breakout.
🔵 Settings
Pivot Period :This parameter defines how sensitive the channel detection is. A higher value causes the algorithm to identify major pivot points, resulting in broader and longer-term channels. Lower values focus on minor pivots and create tighter, short-term channels.
🔔 Alerts
Alert Configuration :
Enable or disable the full alert system
Set a custom alert name
Choose the alert frequency: every time, once per bar, or on bar close
Define the time zone for alert timestamps (e.g., UTC)
Channel Alert Types :
Each channel type (Major/Minor, Internal/External, Up/Down) supports two alert types :
Break Alert : Triggered when price breaks above or below the channel boundaries
React Alert : Triggered when price touches and reacts (bounces) off the channel boundary
🎨 Display Settings
For each of the eight channel types, you can customize:
Visibility : show or hide the channel
Auto-delete previous channels when new ones are drawn
Style : line color, thickness, type (solid, dashed, dotted), extension (right only, both sides)
🔵 Conclusion
The price channel is a foundational structure in technical analysis that enables traders to analyze price movement, identify dynamic support and resistance zones, and locate potential entry and exit points with greater precision.
When constructed properly using minor or major pivots, a price channel offers a consistent and intuitive framework for interpreting market behavior—often simpler and more visually clear than many other technical tools.
Understanding the differences between upward, downward, and range-bound channels—as well as recognizing the distinctions between minor and major structures—is critical for selecting the right trading strategy. Upward channels tend to generate buying opportunities, downward channels prioritize short setups, and horizontal channels provide setups for both mean-reversion and breakout trades.
Ultimately, the reliability of a price channel depends on various factors such as the number of touchpoints, the duration of the channel, the parallelism of the lines, and how the price reacts to the median line.
By taking these factors into account, an experienced analyst can effectively use price channels as a powerful tool for trend forecasting and precise trade execution. Although conceptually simple, successful application of price channels requires practice, pattern recognition, and the ability to filter out market noise.