SwingTrade VWAP Strategy[TiamatCrypto]V1.1This Pine Scriptยฎ code creates a trading strategy called "SwingTrade VWAP Strategy V1.1." This strategy incorporates various trading tools, such as VWAP (Volume Weighted Average Price), ADX (Average Directional Index), and volume signals. Below is an explanation of the components and logic within the script:
### Overview of Features
- **VWAP:** A volume-weighted moving average that assesses price trends relative to the VWAP level.
- **ADX:** A trend strength indicator that helps confirm the strength of bullish or bearish trends.
- **Volume Analysis:** Leverages volume data to gauge momentum and identify volume-weighted buy/sell conditions.
- **Dynamic Entry/Exit Signals:** Combines the above indicators to produce actionable buy/sell or exit signals.
- **Customizable Inputs:** Inputs for tuning parameters like VWAP period, ADX thresholds, and volume sensitivity.
---
### **Code Breakdown**
#### **Input Parameters**
The script begins by defining several user-configurable variables under groups. These include indicators' on/off switches (`showVWAP`, `enableADX`, `enableVolume`) and input parameters for VWAP, ADX thresholds, and volume sensitivity:
- **VWAP Period and Threshold:** Controls sensitivity for VWAP signal generation.
- **ADX Settings:** Allows users to configure the ADX period and strength threshold.
- **Volume Ratio:** Detects bullish/bearish conditions based on relative volume patterns.
---
#### **VWAP Calculation**
The script calculates VWAP using the formula:
\
Where `P` is the typical price (`(high + low + close)/3`) and `V` is the volume.
- It resets cumulative values (`sumPV` and `sumV`) at the start of each day.
- Delta percentage (`deltaPercent`) is calculated as the percentage difference between the close price and the VWAP.
---
#### **Indicators and Signals**
1. **VWAP Trend Signals:**
- Identifies bullish/bearish conditions based on price movement (`aboveVWAP`, `belowVWAP`) and whether the price is crossing the VWAP level (`crossingUp`, `crossingDown`).
- Also detects rising/falling delta changes based on the VWAP threshold.
2. **ADX Calculation:**
- Calculates the directional movement (`PlusDM`, `MinusDM`) and smoothed values for `PlusDI`, `MinusDI`, and `ADX`.
- Confirms strong bullish/bearish trends when ADX crosses the defined threshold.
3. **Volume-Based Signals:**
- Evaluates the ratio of bullish volume (when `close > VWAP`) to bearish volume (when `close < VWAP`) over a specified lookback period.
---
#### **Trade Signals**
The buy and sell signals are determined by combining conditions from the VWAP, ADX, and volume signals:
- **Buy Signal:** Triggered when price upward crossover VWAP, delta rises above the threshold, ADX indicates a strong bullish trend, and volume confirms bullish momentum.
- **Sell Signal:** Triggered under inverse conditions.
- Additionally, exit conditions (`exitLong` and `exitShort`) are based on VWAP crossovers combined with the reversal of delta values.
---
#### **Plotting and Display**
The strategy plots VWAP on the chart and adds signal markers for:
- **Buy/Long Entry:** Green triangle below bars.
- **Sell/Short Entry:** Red triangle above bars.
- **Exit Signals:** Lime or orange "X" shapes for exits from long/short positions.
- Additionally, optional text labels are displayed to indicate the type of signal.
---
#### **Trading Logic**
The script's trading logic executes as follows:
- **Entries:**
- Executes long trades when the `buySignal` condition is true.
- Executes short trades when the `sellSignal` condition is true.
- **Exits:**
- Closes long positions upon `exitLong` conditions.
- Closes short positions upon `exitShort` conditions.
- The strategy calculates profits and visualizes the trade entry, exit, and running profit within the chart.
---
#### **Alerts**
Alerts are set up to notify traders via custom signals for buy and sell trades.
---
### **Use Case**
This script is suitable for day traders, swing traders, or algorithmic traders who rely on confluence signals from VWAP, ADX, and volume momentum. Its modular structure (e.g., the ability to enable/disable specific indicators) makes it highly customizable for various trading styles and financial instruments.
#### **Customizability**
- Adjust VWAP, ADX, and volume sensitivity levels to fit unique market conditions or asset classes.
- Turn off specific criteria to focus only on VWAP or ADX signals if desired.
#### **Caution**
As with all trading strategies, this script should be used for backtesting and analysis before live implementation. It's essential to validate its performance on historical data while considering factors like slippage and transaction costs.
Penunjuk dan strategi
ADX and DI - Trader FelipeADX and DI - Trader Felipe
This indicator combines the Average Directional Index (ADX) and the Directional Indicators (DI+ and DI-) to help traders assess market trends and their strength. It is designed to provide a clear view of whether the market is in a trending phase (either bullish or bearish) and helps identify potential entry and exit points.
What is ADX and DI?
DI+ (Green Line):
DI+ measures the strength of upward (bullish) price movements. When DI+ is above DI-, it signals that the market is experiencing upward momentum.
DI- (Red Line):
DI- measures the strength of downward (bearish) price movements. When DI- is above DI+, it suggests that the market is in a bearish phase, with downward momentum.
ADX (Blue Line):
ADX quantifies the strength of the trend, irrespective of whether it is bullish or bearish. The higher the ADX, the stronger the trend:
ADX > 20: Indicates a trending market (either up or down).
ADX < 20: Indicates a weak or sideways market with no clear trend.
Threshold Line (Gray Line):
This horizontal line, typically set at 20, represents the threshold for identifying whether the market is trending or not. If ADX is above 20, the market is considered to be in a trend. If ADX is below 20, it suggests that the market is not trending and is likely in a consolidation phase.
Summary of How to Use the Indicator:
Trend Confirmation: Use ADX > 20 to confirm a trending market. If ADX is below 20, avoid trading.
Long Entry: Enter a long position when DI+ > DI- and ADX > 20.
Short Entry: Enter a short position when DI- > DI+ and ADX > 20.
Avoid Sideways Markets: Do not trade when ADX is below 20. Look for other strategies for consolidation phases.
Exit Strategy: Exit the trade if ADX starts to decline or if the DI lines cross in the opposite direction.
Combine with Other Indicators: Use additional indicators like RSI, moving averages, or support/resistance to filter and confirm signals.
Yearly History Calendar-Aligned Price up to 10 Years)Overview
This indicator helps traders compare historical price patterns from the past 10 calendar years with the current price action. It overlays translucent lines (polylines) for each yearโs price data on the same calendar dates, providing a visual reference for recurring trends. A dynamic table at the top of the chart summarizes the active years, their price sources, and history retention settings.
Key Features
Historical Projections
Displays price data from the last 10 years (e.g., January 5, 2023 vs. January 5, 2024).
Price Source Selection
Choose from Open, Low, High, Close, or HL2 ((High + Low)/2) for historical alignment.
The selected source is shown in the legend table.
Bulk Control Toggles
Show All Years : Display all 10 years simultaneously.
Keep History for All : Preserve historical lines on year transitions.
Hide History for All : Automatically delete old lines to update with current data.
Individual Year Settings
Toggle visibility for each year (-1 to -10) independently.
Customize color and line width for each year.
Control whether to keep or delete historical lines for specific years.
Visual Alignment Aids
Vertical lines mark yearly transitions for reference.
Polylines are semi-transparent for clarity.
Dynamic Legend Table
Shows active years, their price sources, and history status (On/Off).
Updates automatically when settings change.
How to Use
Configure Settings
Projection Years : Select how many years to display (1โ10).
Price Source : Choose Open, Low, High, Close, or HL2 for historical alignment.
History Precision : Set granularity (Daily, 60m, or 15m).
Daily (D) is recommended for long-term analysis (covers 10 years).
60m/15m provides finer precision but may only cover 1โ3 years due to data limits.
Adjust Visibility & History
Show Year -X : Enable/disable specific years for comparison.
Keep History for Year -X : Choose whether to retain historical lines or delete them on new year transitions.
Bulk Controls
Show All Years : Display all 10 years at once (overrides individual toggles).
Keep History for All / Hide History for All : Globally enable/disable history retention for all years.
Customize Appearance
Line Width : Adjust polyline thickness for better visibility.
Colors : Assign unique colors to each year for easy identification.
Interpret the Legend Table
The table shows:
Year : Label (e.g., "Year -1").
Source : The selected price type (e.g., "Close", "HL2").
Keep History : Indicates whether lines are preserved (On) or deleted (Off).
Tips for Optimal Use
Use Daily Timeframes for Long-Term Analysis :
Daily (1D) allows 10+ years of data. Smaller timeframes (60m/15m) may have limited historical coverage.
Compare Recurring Patterns :
Look for overlaps between historical polylines and current price to identify potential support/resistance levels.
Customize Colors & Widths :
Use contrasting colors for years you want to highlight. Adjust line widths to avoid clutter.
Leverage Global Toggles :
Enable Show All Years for a quick overview. Use Keep History for All to maintain continuity across transitions.
Example Workflow
Set Up :
Select Projection Years = 5.
Choose Price Source = Close.
Set History Precision = 1D for long-term data.
Customize :
Enable Show Year -1 to Show Year -5.
Assign distinct colors to each year.
Disable Keep History for All to ensure lines update on year transitions.
Analyze :
Observe how the 2023 close prices align with 2024โs price action.
Use vertical lines to identify yearly boundaries.
Common Questions
Why are some years missing?
Ensure the chart has sufficient historical data (e.g., daily charts cover 10 years, 60m/15m may only cover 1โ3 years).
How do I update the data?
Adjust the Price Source or toggle years/history settings. The legend table updates automatically.
Risk ModuleRisk Module
This indicator provides a visual reference to determine position sizing and approximate stop placement. It is designed to support trade planning by calculating equalized risk per trade based on a stop distance derived from volatility. The tool offers supportive reference points that allow for quick evaluation of risk and position size consistency across varying markets.
Equalized Risk Per Trade
The indicator calculates the number of shares that can be traded to maintain consistent monetary risk. The formula is based on the distance between the current price and the visual stop reference, adjusting the position size proportionally.
Position Size = Dollar Risk / (Entry Price โ Stop Price)
The risk is calculated as a percentage of account size; both of which can be set in the indicatorโs settings tab. This creates a consistent risk exposure across trades regardless of volatility or structural stop distance.
Stop Placement Reference
The visual stop reference is derived from the Average True Range (ATR), providing a volatility-based anchor. The default value is set to 2 ร ATR, but this can be customized.
Price Model: Uses the current price ยฑ ATR ร multiplier. This model reacts to price movement and is set as the default option.
EMA Model: Uses the 20-period EMA ยฑ ATR ร multiplier. This model is less reactive and can be an option when used in combination with an envelope indicator.
Chart Elements
Stop Levels: Plotted above and below either the current price or EMA, depending on the selected model. These serve as visual reference points for stop placement; the lower level a sell stop for long trades, the upper level a buy stop for short trades.
Information Table: Displays the number of shares to trade, stop level and percentage risk. A compact mode is available to reduce the table to essential information (H/L and Shares).
Settings Overview
Stop Model: Choose between โPriceโ or โEMAโ stop calculation logic.
ATR Multiplier: Change the distance between price/EMA and the stop reference.
Account Size / Riskโฏ%: These risk parameters are used to calculate dollar risk per trade.
Visible Bars: Number of recent bars to show stop markers on.
Compact Mode: Minimal table view for reduced chart footprint.
Table Position / Size: Controls table placement and scale on the chart.
Hidden Gap`s VSA Volume Auto-TimeframeHidden Gap's VSA Volume with Auto-Timeframe Adaptation
Enhanced Version of Classic Volume Spread Analysis Indicator
Description:
This evolved version of the original "Hidden Gap's VSA Volume" indicator introduces intelligent timeframe adaptation while preserving its core Volume Spread Analysis (VSA) logic. The key enhancement automatically synchronizes volume calculations with your chart's current timeframe, eliminating manual resolution adjustments.
New Features:
โ
Auto-Timeframe Detection
Dynamically adjusts to any chart timeframe (1M/5M/1H/4H/D/W/M)
โ
Smart Resolution Switching
Seamlessly works across multiple timeframes without parameter changes
โ
Manual Override Option
Retains custom resolution input for multi-timeframe analysis (e.g., view weekly volume on daily charts)
โ
Modernized Engine
Upgraded to Pine Script v6 for optimal TradingView performance
Core Functionality Preserved:
โข Multi-layer volume analysis using 40/20/2-period comparisons
โข Color-coded histogram detecting:
Black: 40-period high volume
Gray: 20-period low volume
Purple: 2-period volume contraction
Blue/Red: Immediate volume changes
โข Integrated 20-period SMA reference line
Usage Scenarios:
Intraday Trading: Auto-adjusts from 1-minute to 4-hour charts
Multi-Timeframe Analysis: Compare current volume against higher timeframe patterns
Swing Trading: Maintain consistent analysis across D/W/M timeframes
QoQ PAT, Sales & OPM% Labels by GauravThis indicator automatically displays the Quarter-over-Quarter (QoQ) percentage change in Sales, PAT (Profit After Tax), and Operating Profit Margin (OPM%) directly on the price chart.
It fetches quarterly financial data using TradingViewโs request.financial() function for:
Sales (TOTAL_REVENUE),
PAT (NET_INCOME),
Operating Profit (OPER_INCOME).
For each earnings update, it calculates:
Sales QoQ %: Growth in sales vs. the previous quarter,
PAT QoQ %: Growth in PAT vs. the previous quarter,
OPM %: Operating Profit Margin = (Operating Profit / Sales) ร 100.
This helps traders and investors quickly visualize fundamental growth trends right alongside the candlestick chart, improving fundamental + technical analysis integration.
RED-E Trend Sniper RED E Trend Sniper
Indicator Description:
This Pine Script indicator is designed to highlight potential trend continuation breakouts by detecting when volume and price action align with strength. It uses a combination of candle body size, volume surge, and an optional EMA-based trend filter to trigger signals.
๐ How It Works:
Body Size Calculation: Measures the candle body (absolute difference between open and close). A candle qualifies as a "big move" when its body is 1.5ร larger than the average over the last 20 candles.
Volume Breakout Check: Compares current volume to the 20-period volume average. A volume breakout is confirmed when volume is 1.5ร higher than average.
EMA Trend Filter (Optional):
When enabled, a 50-period EMA determines trend direction.
Bullish condition: close > EMA
Bearish condition: close < EMA
โ
Signal Criteria:
Bullish Breakout Signal (Up Arrow ๐ผ):
Candle closes green (close > open)
Volume breakout + big move
(Optional) Price is above EMA
Bearish Breakout Signal (Down Arrow ๐ฝ):
Candle closes red (close < open)
Volume breakout + big move
(Optional) Price is below EMA
๐ What Triggers the Arrows:
Volume breakout is the core requirement. When it occurs with a large candle body, the script plots:
๐ผ A triangle-up arrow below the candle for bullish breakouts
๐ฝ A triangle-down arrow above the candle for bearish breakouts
๐ฏ Purpose:
This indicator is built to catch explosive price movements backed by real participation (volume), helping traders enter on strength and avoid weak or fake breakouts.
Smart FlexRange Breakout [The_lurker]The Smart FlexRange Breakout tool aims to identify trading opportunities based on price breakouts of dynamic levels (CALL, PUT) with a dotted centerline and the ability to select the applicable market. The tool relies on candlestick analysis over a specific time period (such as 3 hours). Candle data (searchHours) is collected to identify the most significant candle based on candlestick patterns and trading volume during the selected timeframe. Breakout levels and take-profit (TP) targets are then plotted, along with buy and sell signals, breakout notifications, and up/down trend lines based on Pivot Points.
The tool is run according to the selected timeframe.
Practical Use
1- Setup: Adjust the market, timeframe, number of hours, and time zone to suit the trader's needs.
2- Trading: Monitor signals (BUY/SELL) and TP levels to determine entry and exit points.
3- Trend Lines: Use them to understand the overall trend and confirm signals.
---
1. Objective: Identify trading opportunities based on price breakouts
- Trading opportunities: The indicator is designed to help traders identify moments when significant price movements are likely, allowing them to enter buy or sell trades based on market changes.
- Price breakouts: The indicator focuses on moments when prices break through key levels (resistance or support). A breakout occurs when the price exceeds a resistance level (up) or breaks a support level (down), indicating a potential continuation of the movement in the same direction.
- Dynamic: Resistance and support levels are not static; rather, they are calculated based on candlestick analysis over a specific period of time, making them adaptive to current market conditions.
---
2. Dynamic levels (resistance and support levels)
- Resistance levels: These represent prices that the price is difficult to break above, defined here as the high of the most significant candle during the specified period.
- Support levels: These represent prices below which the price is difficult to fall, defined as the low of the most significant candle.
- Dynamic: These levels are recalculated every new search period (searchHours), meaning they change based on the latest market data, unlike traditional static levels.
---
3. Adding a Dotted Center Line
- Center Line: A horizontal dotted line is drawn at the midpoint between the high and low of the most significant candle.
- Purpose:
- Provides a visual reference point for determining the current price position relative to support and resistance levels.
- Helps assess whether the price is moving toward a breakout (near resistance) or a breakout (near support).
- Dotted: The dotted pattern distinguishes it from the solid upper and lower lines, making it easier to distinguish visually.
---
4. Relying on candlestick analysis over a specific time period (searchHours)
- Candlestick Analysis: The indicator examines candlesticks to determine which ones have the most influence on price movement.
- Timeframe (searchHours):
- The user specifies the number of hours (1-6) for candle analysis, which determines the range of data the indicator relies on.
- Example: If searchHours = 3 and timeframe = 30 minutes, 6 candles are analyzed (3 hours รท 30 minutes).
- Flexibility: This period can be adjusted to suit different markets (such as volatile cryptocurrencies or more stable Forex).
---
5. Determining the Most Important Candle Based on Candle Patterns and Volume
- The most important candle: is the candle believed to have the greatest impact on price movement based on specific criteria.
- Candle Patterns:
- Candles are analyzed using a candlestick pattern library (such as Engulfing, Hammer, Doji).
- Reversal patterns (such as Morning Star, Shooting Star) are given a high importance score (100 points) because they indicate potential trend changes.
- Trading Volume:
- The trading volume of each candle is measured and compared to the maximum and minimum during the period.
- Volume is calculated as a percentage (0-100) and added to the pattern score to determine the most significant candle.
- Result: The candle with the highest score (patterns + volume) is used to determine support and resistance levels.
---
6. Timeframe
- Time interval: The user selects a time frame for the candles (15, 30, or 60 minutes).
- Importance:
- Determines the number of candles analyzed during the searchHours period.
- Affects the accuracy and speed of the signals (shorter timeframe = faster but less reliable signals; longer timeframe = slower but more reliable signals).
- Example: If the timeframe is 60 minutes and searchHours is 3, only 3 candles are analyzed.
---
7. Drawing Breakout Levels and Take Profit Targets (TP)
- Breakout Levels:
- Upper line (resistance): Drawn at the highest price of the most significant candle and is labeled "CALL".
- Lower line (support): Drawn at the lowest price of the most important candle and is called "PUT."
- These lines represent levels where a breakout is expected to lead to a strong price movement.
- Take Profit Targets (TP):
- Up to 8 bullish (above the upper line) and bearish (below the lower line) TP levels are calculated.
- They are calculated based on a percentage (tpPercentage) added or subtracted from the base lines.
- Example: If tpPercentage = 0.6% and the high price = 100, then bullish TP1 = 100.6, TP2 = 101.2, etc.
- Labels: Labels are drawn for each TP level indicating the value and level (TP1, TP2, etc.).
---
8. Buy and Sell Signals
- Buy (BUY) signal:
- Generated when the price breaks the upper line (ta.crossover).
- The "BUY" label is drawn with the redrawing of the TP levels.
- Sell signal (SELL):
- Generated when the price breaks the lower line (ta.crossunder).
- The "SELL" label is drawn with the redrawing of the TP levels.
- Purpose: To provide clear signals to the trader for making trade entry decisions.
=========================================================================
Thank you, n00btraders.
For using the import library: n00btraders/Timezone/1
For using the import library: The_lurker/AllCandlestickPatternsLibrary/1
========================================================================
Disclaimer:
The information and publications are not intended to be, nor do they constitute, financial, investment, trading, or other types of advice or recommendations provided or endorsed by TradingView.
ุชูุฏู ุฃุฏุงุฉ Smart FlexRange Breakout ุฅูู ุชุญุฏูุฏ ูุฑุต ุงูุชุฏุงูู ุจูุงุกู ุนูู ุงุฎุชุฑุงูุงุช ุงูุฃุณุนุงุฑ ููู
ุณุชููุงุช ุงูุฏููุงู
ูููุฉ (CALLุ PUT) ู
ุน ุฎุท ู
ุฑูุฒู ู
ููุทุ ู
ุน ุฅู
ูุงููุฉ ุงุฎุชูุงุฑ ุงูุณูู ุงูู
ูุงุณุจ. ุชุนุชู
ุฏ ุงูุฃุฏุงุฉ ุนูู ุชุญููู ุงูุดู
ูุน ุงููุงุจุงููุฉ ุนูู ู
ุฏู ูุชุฑุฉ ุฒู
ููุฉ ู
ุญุฏุฏุฉ (ู
ุซู 3 ุณุงุนุงุช). ุชูุฌู
ุน ุจูุงูุงุช ุงูุดู
ูุน (searchHours) ูุชุญุฏูุฏ ุฃูู
ุดู
ุนุฉ ุจูุงุกู ุนูู ุฃูู
ุงุท ุงูุดู
ูุน ูุญุฌู
ุงูุชุฏุงูู ุฎูุงู ุงูุฅุทุงุฑ ุงูุฒู
ูู ุงูู
ุญุฏุฏ. ุซู
ุชูุฑุณู
ู
ุณุชููุงุช ุงูุงุฎุชุฑุงู ูุฃูุฏุงู ุฌูู ุงูุฃุฑุจุงุญ (TP)ุ ุจุงูุฅุถุงูุฉ ุฅูู ุฅุดุงุฑุงุช ุงูุจูุน ูุงูุดุฑุงุกุ ูุฅุดุนุงุฑุงุช ุงูุงุฎุชุฑุงูุ ูุฎุทูุท ุงูุงุชุฌุงู ุงูุตุนูุฏู/ุงููุจูุทู ุจูุงุกู ุนูู ููุงุท ุงูู
ุญูุฑ.
ูุชู
ุชุดุบูู ุงูุงุฏุงู ุญุณุจ ุงููุงุตู ุงูู
ุฎุชุงุฑ timeframe
ุงูุงุณุชุฎุฏุงู
ุงูุนู
ูู
1- ุงูุฅุนุฏุงุฏ: ุงุถุจุท ุงูุณููุ ูุงูุฅุทุงุฑ ุงูุฒู
ููุ ูุนุฏุฏ ุงูุณุงุนุงุชุ ูุงูู
ูุทูุฉ ุงูุฒู
ููุฉ ูุชูุงุณุจ ุงุญุชูุงุฌุงุช ุงูู
ุชุฏุงูู.
2- ุงูุชุฏุงูู: ุฑุงูุจ ุฅุดุงุฑุงุช (ุงูุดุฑุงุก/ุงูุจูุน) ูู
ุณุชููุงุช ุฌูู ุงูุฃุฑุจุงุญ ูุชุญุฏูุฏ ููุงุท ุงูุฏุฎูู ูุงูุฎุฑูุฌ.
3- ุฎุทูุท ุงูุงุชุฌุงู: ุงุณุชุฎุฏู
ูุง ูููู
ุงูุงุชุฌุงู ุงูุนุงู
ูุชุฃููุฏ ุงูุฅุดุงุฑุงุช.
1. ุงููุฏู: ุชุญุฏูุฏ ูุฑุต ุงูุชุฏุงูู ุจูุงุกู ุนูู ุงุฎุชุฑุงูุงุช ุงูุฃุณุนุงุฑ
- ูุฑุต ุงูุชุฏุงูู: ุตูู
ู
ูุฐุง ุงูู
ุคุดุฑ ูู
ุณุงุนุฏุฉ ุงูู
ุชุฏุงูููู ุนูู ุชุญุฏูุฏ ุงููุญุธุงุช ุงูุชู ููุญุชู
ู ูููุง ุญุฏูุซ ุชุญุฑูุงุช ุณุนุฑูุฉ ูุจูุฑุฉุ ู
ู
ุง ูุณู
ุญ ููู
ุจุงูุฏุฎูู ูู ุตููุงุช ุดุฑุงุก ุฃู ุจูุน ุจูุงุกู ุนูู ุชุบูุฑุงุช ุงูุณูู.
- ุงุฎุชุฑุงูุงุช ุงูุฃุณุนุงุฑ: ููุฑูุฒ ุงูู
ุคุดุฑ ุนูู ุงููุญุธุงุช ุงูุชู ุชุฎุชุฑู ูููุง ุงูุฃุณุนุงุฑ ู
ุณุชููุงุช ุฑุฆูุณูุฉ (ู
ูุงูู
ุฉ ุฃู ุฏุนู
). ูุญุฏุซ ุงูุงุฎุชุฑุงู ุนูุฏู
ุง ูุชุฌุงูุฒ ุงูุณุนุฑ ู
ุณุชูู ู
ูุงูู
ุฉ (ุตุนูุฏูุง) ุฃู ูุฎุชุฑู ู
ุณุชูู ุฏุนู
(ูุจูุทูุง)ุ ู
ู
ุง ููุดูุฑ ุฅูู ุงุญุชู
ุงู ุงุณุชู
ุฑุงุฑ ุงูุญุฑูุฉ ูู ููุณ ุงูุงุชุฌุงู.
- ุฏููุงู
ููู: ู
ุณุชููุงุช ุงูู
ูุงูู
ุฉ ูุงูุฏุนู
ููุณุช ุซุงุจุชุฉุ ุจู ุชูุญุณุจ ุจูุงุกู ุนูู ุชุญููู ุงูุดู
ูุน ุงููุงุจุงููุฉ ุนูู ู
ุฏู ูุชุฑุฉ ุฒู
ููุฉ ู
ุญุฏุฏุฉุ ู
ู
ุง ูุฌุนููุง ู
ููููุฉ ู
ุน ุธุฑูู ุงูุณูู ุงูุญุงููุฉ.
2. ุงูู
ุณุชููุงุช ุงูุฏููุงู
ูููุฉ (ู
ุณุชููุงุช ุงูู
ูุงูู
ุฉ ูุงูุฏุนู
)
- ู
ุณุชููุงุช ุงูู
ูุงูู
ุฉ: ุชูู
ุซู ูุฐู ุงูุฃุณุนุงุฑ ุงูุชู ูุตุนุจ ุนูู ุงูุณุนุฑ ุชุฌุงูุฒูุงุ ูุชูุนุฑู ููุง ุจุฃููุง ุงุฑุชูุงุน ุงูุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ ุฎูุงู ุงููุชุฑุฉ ุงูู
ุญุฏุฏุฉ.
- ู
ุณุชููุงุช ุงูุฏุนู
: ุชูู
ุซู ูุฐู ุงูุฃุณุนุงุฑ ุงูุชู ูุตุนุจ ุนูู ุงูุณุนุฑ ุงูุงูุฎูุงุถ ุฏูููุงุ ูุชูุนุฑู ุจุฃููุง ุฃุฏูู ู
ุณุชูู ููุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ.
- ุฏููุงู
ููู: ุชูุนุงุฏ ุญุณุงุจ ูุฐู ุงูู
ุณุชููุงุช ู
ุน ูู ูุชุฑุฉ ุจุญุซ ุฌุฏูุฏุฉ (ุณุงุนุงุช ุงูุจุญุซ)ุ ู
ู
ุง ูุนูู ุฃููุง ุชุชุบูุฑ ุจูุงุกู ุนูู ุฃุญุฏุซ ุจูุงูุงุช ุงูุณููุ ุนูู ุนูุณ ุงูู
ุณุชููุงุช ุงูุซุงุจุชุฉ ุงูุชูููุฏูุฉ.
3. ุฅุถุงูุฉ ุฎุท ู
ุฑูุฒู ู
ููุท
- ุฎุท ุงูู
ุฑูุฒ: ููุฑุณู
ุฎุท ุฃููู ู
ููุท ุนูุฏ ููุทุฉ ุงูู
ูุชุตู ุจูู ุฃุนูู ูุฃุฏูู ุดู
ุนุฉ ุฐุงุช ุฃูู
ูุฉ.
- ุงูุบุฑุถ:
- ูููุฑ ููุทุฉ ู
ุฑุฌุนูุฉ ุจุตุฑูุฉ ูุชุญุฏูุฏ ูุถุน ุงูุณุนุฑ ุงูุญุงูู ุจุงููุณุจุฉ ูู
ุณุชููุงุช ุงูุฏุนู
ูุงูู
ูุงูู
ุฉ.
- ูุณุงุนุฏ ูู ุชูููู
ู
ุง ุฅุฐุง ูุงู ุงูุณุนุฑ ูุชุญุฑู ูุญู ุงุฎุชุฑุงู (ุจุงููุฑุจ ู
ู ุงูู
ูุงูู
ุฉ) ุฃู ุงุฎุชุฑุงู (ุจุงููุฑุจ ู
ู ุงูุฏุนู
).
- ู
ููุท: ููู
ูุฒู ุงููู
ุท ุงูู
ููุท ุนู ุงูุฎุทูุท ุงูุนูููุฉ ูุงูุณูููุฉ ุงูู
ุชุตูุฉุ ู
ู
ุง ููุณููู ุชู
ููุฒู ุจุตุฑููุง.
4. ุงูุงุนุชู
ุงุฏ ุนูู ุชุญููู ุงูุดู
ูุน ุงููุงุจุงููุฉ ุนูู ู
ุฏู ูุชุฑุฉ ุฒู
ููุฉ ู
ุญุฏุฏุฉ (ุณุงุนุงุช ุงูุจุญุซ)
- ุชุญููู ุงูุดู
ูุน ุงููุงุจุงููุฉ: ููุญุต ุงูู
ุคุดุฑ ุงูุดู
ูุน ุงููุงุจุงููุฉ ูุชุญุฏูุฏ ุฃููุง ุงูุฃูุซุฑ ุชุฃุซูุฑูุง ุนูู ุญุฑูุฉ ุงูุณุนุฑ.
- ุงูุฅุทุงุฑ ุงูุฒู
ูู (ุณุงุนุงุช ุงูุจุญุซ):
- ููุญุฏุฏ ุงูู
ุณุชุฎุฏู
ุนุฏุฏ ุงูุณุงุนุงุช (ู
ู 1 ุฅูู 6) ูุชุญููู ุงูุดู
ูุนุ ูุงูุฐู ููุญุฏุฏ ูุทุงู ุงูุจูุงูุงุช ุงูุชู ูุนุชู
ุฏ ุนูููุง ุงูู
ุคุดุฑ.
- ู
ุซุงู: ุฅุฐุง ูุงูุช ุณุงุนุงุช ุงูุจุญุซ = 3 ูุงูุฅุทุงุฑ ุงูุฒู
ูู = 30 ุฏูููุฉุ ูุณูุชู
ุชุญููู 6 ุดู
ูุน (3 ุณุงุนุงุช รท 30 ุฏูููุฉ).
- ุงูู
ุฑููุฉ: ููู
ูู ุชุนุฏูู ูุฐู ุงููุชุฑุฉ ูุชูุงุณุจ ุงูุฃุณูุงู ุงูู
ุฎุชููุฉ (ู
ุซู ุงูุนู
ูุงุช ุงูู
ุดูุฑุฉ ุงูู
ุชููุจุฉ ุฃู ุณูู ุงูููุฑูุณ ุงูุฃูุซุฑ ุงุณุชูุฑุงุฑูุง).
5. ุชุญุฏูุฏ ุงูุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ ุจูุงุกู ุนูู ุฃูู
ุงุท ุงูุดู
ูุน ูุญุฌู
ุงูุชุฏุงูู
- ุงูุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ: ูู ุงูุดู
ุนุฉ ุงูุชู ููุนุชูุฏ ุฃู ููุง ุงูุชุฃุซูุฑ ุงูุฃูุจุฑ ุนูู ุญุฑูุฉ ุงูุณุนุฑ ุจูุงุกู ุนูู ู
ุนุงููุฑ ู
ุญุฏุฏุฉ.
- ุฃูู
ุงุท ุงูุดู
ูุน:
- ูุชู
ุชุญููู ุงูุดู
ูุน ุจุงุณุชุฎุฏุงู
ู
ูุชุจุฉ ุฃูู
ุงุท ุงูุดู
ูุน (ู
ุซู ุดู
ุนุฉ ุงูุงุจุชูุงุนุ ูุดู
ุนุฉ ุงูู
ุทุฑูุฉุ ูุดู
ุนุฉ ุงูุฏูุฌู).
- ุชูู
ูุญ ุฃูู
ุงุท ุงูุงูุนูุงุณ (ู
ุซู ูุฌู
ุฉ ุงูุตุจุงุญุ ููุฌู
ุงูุดูุงุจ) ุฏุฑุฌุฉ ุฃูู
ูุฉ ุนุงููุฉ (100 ููุทุฉ) ูุฃููุง ุชูุดูุฑ ุฅูู ุชุบูุฑุงุช ู
ุญุชู
ูุฉ ูู ุงูุงุชุฌุงู.
- ุญุฌู
ุงูุชุฏุงูู:
- ูููุงุณ ุญุฌู
ุชุฏุงูู ูู ุดู
ุนุฉ ููููุงุฑู ุจุงูุญุฏ ุงูุฃูุตู ูุงูุฃุฏูู ุฎูุงู ุงููุชุฑุฉ.
- ููุญุณุจ ุงูุญุฌู
ููุณุจุฉ ู
ุฆููุฉ (0-100) ูููุถุงู ุฅูู ุฏุฑุฌุฉ ุงููู
ุท ูุชุญุฏูุฏ ุงูุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ.
- ุงููุชูุฌุฉ: ุชูุณุชุฎุฏู
ุงูุดู
ุนุฉ ุฐุงุช ุฃุนูู ุฏุฑุฌุฉ (ุงูุฃูู
ุงุท + ุงูุญุฌู
) ูุชุญุฏูุฏ ู
ุณุชููุงุช ุงูุฏุนู
ูุงูู
ูุงูู
ุฉ.
ูฆ. ุงูุฅุทุงุฑ ุงูุฒู
ูู
- ุงููุงุตู ุงูุฒู
ูู: ูุฎุชุงุฑ ุงูู
ุณุชุฎุฏู
ุฅุทุงุฑูุง ุฒู
ูููุง ููุดู
ูุน (ูกูฅุ ูฃู ุ ุฃู ูฆู ุฏูููุฉ).
- ุงูุฃูู
ูุฉ:
- ูุญุฏุฏ ุนุฏุฏ ุงูุดู
ูุน ุงูู
ูุญููุฉ ุฎูุงู ูุชุฑุฉ ุณุงุนุงุช ุงูุจุญุซ.
- ูุคุซุฑ ุนูู ุฏูุฉ ูุณุฑุนุฉ ุงูุฅุดุงุฑุงุช (ุงูุฅุทุงุฑ ุงูุฒู
ูู ุงูุฃูุตุฑ = ุฅุดุงุฑุงุช ุฃุณุฑุน ูููู ุฃูู ู
ูุซูููุฉุ ุงูุฅุทุงุฑ ุงูุฒู
ูู ุงูุฃุทูู = ุฅุดุงุฑุงุช ุฃุจุทุฃ ูููู ุฃูุซุฑ ู
ูุซูููุฉ).
- ู
ุซุงู: ุฅุฐุง ูุงู ุงูุฅุทุงุฑ ุงูุฒู
ูู ูฆู ุฏูููุฉ ูุณุงุนุงุช ุงูุจุญุซ ูฃุ ูุณูุชู
ุชุญููู ูฃ ุดู
ูุน ููุท.
---
ูง. ุฑุณู
ู
ุณุชููุงุช ุงูุงุฎุชุฑุงู ูุฃูุฏุงู ุฌูู ุงูุฃุฑุจุงุญ (TP)
- ู
ุณุชููุงุช ุงูุงุฎุชุฑุงู:
- ุงูุฎุท ุงูุนููู (ุงูู
ูุงูู
ุฉ): ููุฑุณู
ุนูุฏ ุฃุนูู ุณุนุฑ ููุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ ูููุณู
ู "CALL".
- ุงูุฎุท ุงูุณููู (ุงูุฏุนู
): ููุฑุณู
ุนูุฏ ุฃุฏูู ุณุนุฑ ููุดู
ุนุฉ ุงูุฃูุซุฑ ุฃูู
ูุฉ ูููุณู
ู "PUT".
- ุชู
ุซู ูุฐู ุงูุฎุทูุท ุงูู
ุณุชููุงุช ุงูุชู ููุชููุน ุฃู ูุคุฏู ูููุง ุงูุงุฎุชุฑุงู ุฅูู ุญุฑูุฉ ุณุนุฑูุฉ ูููุฉ.
- ุฃูุฏุงู ุฌูู ุงูุฃุฑุจุงุญ (TP):
- ูุชู
ุญุณุงุจ ู
ุง ูุตู ุฅูู 8 ู
ุณุชููุงุช ุฌูู ุฃุฑุจุงุญ ุตุนูุฏูุฉ (ููู ุงูุฎุท ุงูุนููู) ููุจูุทูุฉ (ุชุญุช ุงูุฎุท ุงูุณููู).
- ูุชู
ุญุณุงุจูุง ุจูุงุกู ุนูู ูุณุจุฉ ู
ุฆููุฉ (tpPercentage) ุชูุถุงู ุฃู ุชูุทุฑุญ ู
ู ุฎุทูุท ุงูุฃุณุงุณ.
- ู
ุซุงู: ุฅุฐุง ูุงูุช ูุณุจุฉ ุฌูู ุงูุฃุฑุจุงุญ = 0.6% ููุงู ุฃุนูู ุณุนุฑ = 100ุ ูุฅู ูุฏู ุงูุฑุจุญ ุงูุตุนูุฏู ุงูุฃูู = 100.6ุ ููุฏู ุงูุฑุจุญ ุงูุซุงูู = 101.2ุ ูููุฐุง.
- ุงูุนูุงู
ุงุช: ุชูุฑุณู
ุนูุงู
ุงุช ููู ู
ุณุชูู ุฌูู ุฃุฑุจุงุญ ุชุดูุฑ ุฅูู ุงูููู
ุฉ ูุงูู
ุณุชูู (TP1ุ TP2ุ ูููุฐุง).
---
8. ุฅุดุงุฑุงุช ุงูุดุฑุงุก ูุงูุจูุน
- ุฅุดุงุฑุฉ ุงูุดุฑุงุก (BUY):
- ุชููููุฏ ุนูุฏ ุงุฎุชุฑุงู ุงูุณุนุฑ ููุฎุท ุงูุนููู (ta.crossover).
- ุชูุฑุณู
ุนูุงู
ุฉ "ุงูุดุฑุงุก" ู
ุน ุฅุนุงุฏุฉ ุฑุณู
ู
ุณุชููุงุช ุฌูู ุงูุฃุฑุจุงุญ.
- ุฅุดุงุฑุฉ ุงูุจูุน (SELL):
- ุชููููุฏ ุนูุฏ ุงุฎุชุฑุงู ุงูุณุนุฑ ููุฎุท ุงูุณููู (ta.crossunder). - ููุฑุณู
ู
ุคุดุฑ "ุจูุน" ู
ุน ุฅุนุงุฏุฉ ุฑุณู
ู
ุณุชููุงุช ุฌูู ุงูุฃุฑุจุงุญ.
- ุงูุบุฑุถ: ุชูููุฑ ุฅุดุงุฑุงุช ูุงุถุญุฉ ููู
ุชุฏุงูู ูุงุชุฎุงุฐ ูุฑุงุฑุงุช ุฏุฎูู ุงูุตููุฉ.
==========================================================================
ุดูุฑูุง ููู
ุ ุฃููุง ุงูู
ุชุฏุงูููู ุงูุฌุฏุฏ.
ูุงุณุชุฎุฏุงู
ู
ูุชุจุฉ ุงูุงุณุชูุฑุงุฏ: n00btraders/Timezone/1
ูุงุณุชุฎุฏุงู
ู
ูุชุจุฉ ุงูุงุณุชูุฑุงุฏ: The_lurker/AllCandlestickPatternsLibrary/1
==============================================================================
ุฅุฎูุงุก ู
ุณุคูููุฉ:
ูุง ูููุตุฏ ุจูุฐู ุงูู
ุนููู
ุงุช ูุงูู
ูุดูุฑุงุช ุฃู ุชูููุ ููุง ุชูุดููุ ูุตุงุฆุญ ุฃู ุชูุตูุงุช ู
ุงููุฉ ุฃู ุงุณุชุซู
ุงุฑูุฉ ุฃู ุชุฌุงุฑูุฉ ุฃู ุฃู ููุน ุขุฎุฑ ู
ู ุงููุตุงุฆุญ ุฃู ุงูุชูุตูุงุช ุงูู
ููุฏู
ุฉ ู
ู TradingView ุฃู ุงูู
ูุนุชู
ุฏุฉ ู
ููุง.
Bull vs Bear Volume on Price ChartThis script overlays estimated bullish and bearish volume directly on the price chart, making it easy to spot buying vs. selling pressure without switching to a separate volume pane.
๐ Features:
๐ Bullish volume markers appear as green triangles below the candle.
๐ Bearish volume markers appear as red triangles above the candle.
๐ Optional smoothing to reduce noise using simple moving average (SMA).
โ ๏ธ Volume spike highlights: Bullish spikes turn lime green, bearish spikes turn bright red.
๐ข Toggle labels to see estimated volume values above/below each candle.
๐ Works on all timeframes, from intraday to weekly/monthly charts.
๐ Methodology:
Bullish and bearish volume are estimated using the candle's range:
More bullish volume when the close is near the high.
More bearish volume when the close is near the low.
This is a visual proxy, not true order flow data.
Money Flow: In & Out Detector[THANHCONG]Indicator Name:
Money Flow: In & Out Detector
Indicator Description:
The Money Flow: In & Out Detector indicator uses technical indicators such as RSI (Relative Strength Index), MFI (Money Flow Index), and volume analysis to determine money inflow and outflow in the market.
This indicator helps traders identify changes in money flow, allowing them to detect buy and sell signals based on the combination of the following factors:
RSI > 50 and MFI > 50: Money inflow, indicating a buy signal.
RSI < 50 and MFI < 50: Money outflow, indicating a sell signal.
Volume increase/decrease relative to the average: Identifies strong market behavior changes.
Adjustable Parameters:
RSI Length: The number of periods to calculate the RSI (default is 14).
MFI Length: The number of periods to calculate the MFI (default is 14).
Volume MA Length: The number of periods to calculate the moving average of volume (default is 20).
Volume Increase/Decrease (%): The percentage threshold for volume change compared to the moving average (default is 20%).
Look Back Period: The number of periods used to identify peaks and troughs (default is 20).
How to Use the Indicator:
Money Inflow: When both RSI and MFI are above 50, and volume increases significantly relative to the moving average, the indicator shows a Buy signal.
Money Outflow: When both RSI and MFI are below 50, and volume decreases significantly relative to the moving average, the indicator shows a Sell signal.
Identifying Peaks and Troughs: The indicator also helps identify market peaks and troughs based on technical conditions.
Note:
This indicator assists in decision-making, but does not replace comprehensive market analysis.
Use this indicator in conjunction with other technical analysis methods to increase the accuracy of trade signals.
Steps for Publishing the Indicator on TradingView:
Log in to TradingView:
Go to TradingView and log into your account.
Access Pine Script Editor:
Click on Pine Editor from the menu under the chart.
Paste your Pine Scriptยฎ code into the editor window.
Check the Source Code:
Ensure your code is error-free and running correctly.
Review the entire source code and add the MPL-2.0 license notice if necessary.
Save and Publish:
After testing and confirming the code works correctly, click Add to Chart to try the indicator on your chart.
If satisfied with the result, click Publish Script at the top right of the Pine Editor.
Provide a name for the indicator and then enter the detailed description youโve prepared.
Ensure you specify the MPL-2.0 license in the description if required.
Choose the Access Type:
You can choose either Public or Private access for your indicator depending on your intention.
Submit for Publication:
Wait for TradingView to review and approve your indicator. Typically, this process takes a few working days for verification and approval.
User Guide:
You can share detailed instructions for users on how to use the indicator on TradingView, including how to adjust the parameters and interpret the signals. For example:
Set RSI Length: Experiment with different RSI Length values to find the sensitivity that suits your strategy.
Interpreting In/Out Signals: When there is strong money inflow (In), consider entering a buy order. When there is strong money outflow (Out), consider selling.
Bull vs Bear Volume (Enhanced)Bull vs Bear Volume (Enhanced) is a custom volume histogram that separates and visualizes estimated buying vs. selling volume within each candle. This allows traders to better understand market sentiment and detect imbalances in demand and supply.
๐ What It Does:
Plots bullish volume (green) above the x-axis and bearish volume (red) below.
Estimates bull/bear volume by analyzing the close location within the candle's range.
Highlights volume spikes with lime (bullish) or maroon (bearish) when volume exceeds a user-defined threshold.
Includes an optional total volume line for added context.
Supports smoothing via simple moving average (SMA) to reduce noise.
๐ ๏ธ Inputs:
Toggle smoothing and set its length.
Enable/disable threshold spike highlighting.
Show/hide the total volume overlay.
Adjust the threshold multiplier for spike detection.
โ ๏ธ Important:
This script uses a proxy method based on candle structure to estimate volume split โ it does not use real-time order flow or trade direction data.
Works best on liquid assets with consistent volume.
AP IFTCCIv2/IFTStoch/IFTRSI Multi-TimeframeMulti-Timeframe IFT-CCI/Stoch/RSI Composite
This enhanced indicator combines three powerful oscillatorsโInverse Fisher Transform (IFT) versions of the Commodity Channel Index (CCI), Stochastic, and Relative Strength Index (RSI)โinto a unified multi-timeframe analysis tool. Originally developed by John Ehlers (pioneer of cyclical analysis and signal processing in trading systems) and adapted by KIVANC (@fr3762), this version adds dual-timeframe capability to compare indicator values across different chart resolutions.
Key Features:
Triple Oscillator Composite
IFT-CCI: Smoothed CCI values transformed via Ehlers' Inverse Fisher Transform (blue-gold)
IFT-Stochastic: Classic stochastic oscillator processed through IFT (blue)
IFT-RSI: RSI oscillator converted to IFT format (magenta)
Composite Average Line: Combined average of all three indicators (green)
Multi-Timeframe Analysis
Compare primary and secondary timeframes (e.g., 1H vs. 4H, daily vs. weekly)
Primary timeframe plots use solid lines with 80% opacity
Secondary timeframe (optional) uses dashed/circle markers with 40% opacity
Key Levels
Overbought (+0.75) and oversold (-0.75) reference lines
Zero-centerline for momentum direction bias
Applications:
Trend Confirmation: Align higher timeframe signals with lower timeframe entries
Divergence Detection: Spot inter-timeframe discrepancies in momentum
Regime Filter: Use higher timeframe composite values to filter trades
Technical Basis:
Inverse Fisher Transform: Compresses oscillator values into bounded (-1 to +1) range while emphasizing extreme moves
Dual WMA Smoothing: Combines initial calculation smoothing (WMA1) with final output smoothing (WMA2)
Exponential Scaling: (e^2x - 1)/(e^2x + 1) formula converts Gaussian-like distributions to bounded outputs
Credits:
Original Concept: John Ehlers (IFT methodology, cyclical analysis foundations)
Initial Implementation: KIVANC (@fr3762 on Twitter) for the base IFT-CCI/Stoch/RSI script
Multi-Timeframe Adaptation: for cross-resolution analysis capabilities
This tool is particularly effective for traders seeking to align multiple timeframes while using Ehlers' noise-reduction techniques. The composite average line provides a consensus view, while the individual oscillators help identify component strength/weakness.
SBC ProtfoSBC Portfo PNL Indicator
Description
The SBC Portfo PNL Indicator is a user-friendly tool designed for Hebrew-speaking traders to track the Profit and Loss (PNL) of their stock portfolios on TradingView charts. It supports up to 5 distinct portfolios, each capable of holding an unlimited number of stocks with unlimited buy commands, allowing real-time monitoring of portfolio performance.
Key Features
- Multi-Portfolio Support: Track up to 5 separate portfolios for different trading strategies or accounts.
- Unlimited Stock Entries: Add unlimited stocks and buy commands per portfolio.
- Detailed Buy Commands: Input for each stock:
- Stock Ticker (e.g., AAPL, TSLA).
- Buy Price (e.g., 150.25).
- Buy Amount (e.g., 10).
- Hebrew-Friendly Interface: Intuitive settings dialog with clear instructions in Hebrew.
- Customizable PNL Tracking: Visualize PNL on charts with real-time updates based on market data.
How to Use
1. Add the Indicator:
- Go to the Indicators menu in TradingView and add the "SBC Portfo" PNL Indicator.
2. Configure Portfolios:
- Open the indicatorโs settings dialog.
- For each portfolio (up to 5), enter data in the provided input fields using this format:
PortfolioName:StockTicker:BuyPricexBuyAmount;StockTicker:BuyPricexBuyAmount
Example:
Portfolio1:AAPL:150.25x10;TSLA:266.72x5
- This represents a portfolio named "Portfolio1" with:
- 10 shares of AAPL bought at $150.25.
- 5 shares of TSLA bought at $266.72.
- Repeat for additional portfolios (e.g., Portfolio2, Portfolio3).
- Add multiple buy commands for the same stock if needed (e.g., AAPL:160.50x20).
3. Apply Settings:
- Save settings to display PNL based on current market prices.
4. Monitor PNL:
- View PNL for each portfolio on the chart via tables, labels, or graphical overlays (based on settings).
Input Format
Enter portfolio data manually in the settings dialog, one input field per portfolio:
PortfolioName:StockTicker:BuyPricexBuyAmount;StockTicker:BuyPricexBuyAmount
- PortfolioName: Unique name (e.g., Portfolio1, Growth).
- StockTicker: Stock symbol (e.g., AAPL).
- BuyPrice: Purchase price per share (e.g., 150.25).
- BuyAmount: Number of shares (e.g., 10).
- Use
: to separate portfolio name, ticker, and buy data
x to separate price and amount
; for multiple stocks in the portfolio
Example:
- Portfolio 1: GrowthPortfolio:AAPL:150.25x10;TSLA:266.72x5
- Portfolio 2: DividendPortfolio:KO:55.20x50;PG:145.30x30
Notes
- Hebrew Support: Settings and labels are optimized for Hebrew users.
- Manual Input: Enter portfolio data manually in the settings dialog using the correct format.
- Compatibility: Works with any stock ticker supported by TradingView.
ืชืืืืจ ืืื ืืืงืืืจ SBC Portfo PNL ืืื ืืื ืืืืืืชื ืืืฉืชืืฉ ืฉืชืืื ื ืืืืืื ืขืืืจ ืกืืืจืื ืืืืจื ืขืืจืืช ืืืขืงื ืืืจ ืจืืื ืืืคืกื (PNL) ืฉื ืชืืงื ืืื ืืืช ืฉืืื ืืฉืืจืืช ืืืจืคืื ืฉื TradingView. ืืื ืชืืื ืืขื 5 ืชืืงืื ื ืคืจืืื, ืืืฉืจ ืื ืชืืง ืืืื ืืืืื ืืกืคืจ ืืืชื ืืืืื ืฉื ืื ืืืช ืขื ืคืงืืืืช ืงื ืืื ืืืชื ืืืืืืืช, ืืืืคืฉืจ ืืขืงื ืืืื ืืืช ืืืจ ืืืฆืืขื ืืชืืง.
ืชืืื ืืช ืขืืงืจืืืช
- ืชืืืื ืืจืืืื ืชืืงืื: ืืขืงื ืืืจ ืขื 5 ืชืืงืื ื ืคืจืืื ืขืืืจ ืืกืืจืืืืืช ืืกืืจ ืื ืืฉืืื ืืช ืฉืื ืื.
- ืจืืฉืื ืื ืืืช ืืื ืืืืื: ืืืกืคืช ืืกืคืจ ืืืชื ืืืืื ืฉื ืื ืืืช ืืคืงืืืืช ืงื ืืื ืืื ืชืืง.
- ืคืงืืืืช ืงื ืืื ืืคืืจืืืช: ืืื ืช ื ืชืื ืื ืขืืืจ ืื ืื ืื:
- ืกืืืื ืืื ืื (ืืืฉื, AAPL, TSLA).
- ืืืืจ ืงื ืืื (ืืืฉื, 150.25).
- ืืืืช ืงื ืืื (ืืืฉื, 10).
- ืืืฉืง ืืืืืืชื ืืขืืจืืช: ืืืื ืืช ืืืืจืืช ืืื ืืืืืืืืืช ืขื ืืืจืืืช ืืจืืจืืช ืืขืืจืืช.
- ืืขืงื PNL ืื ืืชื ืืืชืืื: ืืฆืืช ืจืืื ืืืคืกื ืืืจืคืื ืขื ืขืืืื ืื ืืืื ืืืช ืืืชืืกืก ืขื ื ืชืื ื ืืฉืืง.
ืืืฆื ืืืฉืชืืฉ
1. ืืืกืคืช ืืืื ืืืงืืืจ:
- ื ืืื ืืชืคืจืื ืืืื ืืืงืืืจืื ื-TradingView ืืืืกืฃ ืืช "SBC Portfo PNL Indicator".
2. ืืืืจืช ืชืืงืื:
- ืคืชื ืืช ืืืื ืืช ืืืืืจืืช ืฉื ืืืื ืืืงืืืจ.
- ืขืืืจ ืื ืชืืง (ืขื 5), ืืื ื ืชืื ืื ืืฉืืืช ืืืกืืคืงืื ืืคืืจืื ืืื:
PortfolioName:StockTicker:BuyPricexBuyAmount;StockTicker:BuyPricexBuyAmount
ืืืืืื:
Portfolio1:AAPL:150.25x10;TSLA:266.72x5
ืฉืืจื ืื ืืืืฆืืช ืชืืง ืืฉื "Portfolio1" ืขื:
- 10 ืื ืืืช ืฉื AAPL ืฉื ืงื ื ื-$150.25.
- 5 ืื ืืืช ืฉื TSLA ืฉื ืงื ื ื-$266.72.
- ืืืืจ ืขื ืืชืืืื ืขืืืจ ืชืืงืื ื ืืกืคืื (ืืืฉื, Portfolio2, Portfolio3).
- ื ืืชื ืืืืกืืฃ ืคืงืืืืช ืงื ืืื ืืจืืืืช ืืืืชื ืื ืื ืืคื ืืฆืืจื (ืืืฉื, AAPL:160.50x20).
3. ืืืืช ืืืืืจืืช:
- ืฉืืืจ ืืช ืืืืืจืืช ืืืฆืืช ื-PNL ืืืชืืกืก ืขื ืืืืจื ืืฉืืง ืื ืืืืืื.
4. ืืขืงื ืืืจ PNL:
- ืฆืคื ื-PNL ืขืืืจ ืื ืชืืง ืืืจืฃ ืืืืฆืขืืช ืืืืืืช, ืชืืืืืช ืื ืฉืืืืช ืืจืคืืืช (ืืืชืื ืืืืืจืืช).
ืคืืจืื ืงืื ืืื ื ืชืื ื ืชืืง ืืื ืืช ืืืืื ืืช ืืืืืจืืช, ืฉืื ืงืื ืืื ืืื ืชืืง: PortfolioName:StockTicker:BuyPricexBuyAmount;StockTicker:BuyPricexBuyAmount
PortfolioName: ืฉื ืืืืืื (ืืืฉื, Portfolio1, Growth).
StockTicker: ืกืืืื ืืื ืื (ืืืฉื, AAPL).
BuyPrice: ืืืืจ ืจืืืฉื ืืื ืื (ืืืฉื, 150.25).
BuyAmount: ืืกืคืจ ืืื ืืืช (ืืืฉื, 10).
ืืฉืชืืฉ ื-
: ืืืคืจืื ืืื ืฉื ืืชืืง, ืกืืืื ืื ืชืื ื ืงื ืืื
x ืืืคืจืื ืืื ืืืืจ ืืืืืช
; ืืืคืจืื ืืื ืื ืืืช ืืจืืืืช
ืืืืื:
- ืชืืง 1: GrowthPortfolio:AAPL:150.25x10;TSLA:266.72x5
- ืชืืง 2: DividendPortfolio:KO:55.20x50;PG:145.30x30
Release Notes
Version 1.1 includes:
- Calculations for extended hours (Pre-Market & After-Hours).
- Option to display portfolio summary data for stocks not in the portfolio (enable via settings checkbox).
- Table background for better visibility; click to bring table to the front.
- Updated text strings (names, titles, tooltips).
ืืขืจืืช
ืชืืืื ืืขืืจืืช: ืืืืืจืืช ืืืชืืืืืช ืืืชืืืืช ืืืฉืชืืฉืื ืืืืจื ืขืืจืืช.
ืืื ื ืืื ืืช: ืืื ื ืชืื ื ืชืืง ืืื ืืช ืืืืื ืืช ืืืืืจืืช ืชืื ืฉืืืืฉ ืืคืืจืื ืื ืืื.
ืชืืืืืช: ืขืืื ืขื ืื ืกืืืื ืื ืื ืื ืชืื ืขื ืืื TradingView.
ืืจืกื 1.1 ืืืืื:
1. ืืืฉืืืื ืืืืืื ืฉืขืืช ืืกืืจ ืืืจืืืืช (Pre-Market ื-After-Hours).
2. ืืคืฉืจืืช ืืืฆืื ื ืชืื ื ืชืืง ืืืืืื ืขืืืจ ืื ืืืช ืฉืืื ื ืืชืืง (ืืคืขื ืืืืฆืขืืช ืชืืืช ืกืืืื ืืืืืจืืช).
3. ืฆืืข ืจืงืข ืืืืื ืืฉืืคืืจ ืื ืจืืืช; ืืืืฆื ืขื ืืืืื ืืืืื ืืืชื ืืืืืช.
4. ืชืืงืื ื ืืกืืื (ืฉืืืช, ืืืชืจืืช, ืืืืืืืคืื).
Rocky's Dynamic DikFat Supply & Demand ZonesDynamic Supply & Demand Zones
Overview
The Dynamic Supply & Demand Zones indicator identifies key supply and demand levels on your chart by detecting pivot highs and lows. It draws customizable boxes around these zones, helping traders visualize areas where price may react. With flexible display options and dynamic box behavior, this tool is designed to assist in identifying potential support and resistance levels for various trading strategies.
Key Features
Pivot-Based Zones: Automatically detects supply (resistance) and demand (support) zones using pivot highs and lows on the chartโs timeframe.
Dynamic Box Sizing: Boxes shrink when price enters them, reflecting reduced zone strength, and stop adjusting once price fully crosses through.
Customizable Display: Choose to show current-day boxes, historical boxes, or all boxes, with an option to update past box colors dynamically.
Session-Based Extension: Boxes can extend to the current bar or stop at 4:00 PM of the creation dayโs 9:30 AMโ4:00 PM trading session (ideal for stock markets).
Color Coding: Borders change color based on price position:
Green for demand zones (price above the box).
Red for supply zones (price below the box).
White for neutral zones (price inside the box).
User-Friendly Inputs: Adjust pivot lookback periods, box visibility, extension behavior, and colors via intuitive input settings.
How It Works
Zone Detection: The indicator uses pivot highs and lows to define supply and demand zones, plotting boxes between these levels.
Box Behavior:
Boxes are created when pivot highs and lows are confirmed, with no overlap with the previous box.
When price enters a box, it shrinks to reflect interaction, stopping once price exits completely.
Boxes can extend to the current bar or end at 4:00 PM of the creation day (or next trading day if created after 4:00 PM or on weekends).
Display Options:
Current Only: Shows boxes created on the current day.
Historical Only: Shows boxes from previous days, with optional color updates.
All Boxes: Shows all boxes, with an option to hide historical box color updates.
Performance: Limits the number of boxes to 200 to ensure smooth performance, removing older boxes as needed.
Inputs
Pivot Look Right/Left: Set the number of bars (default: 2) to confirm pivot highs and lows.
What Boxes to Show: Select Current Only, Historical Only, or All Boxes (default: Current Only).
Boxes On/Off: Toggle box visibility (default: on).
Extend Boxes to Current Bar: Choose whether boxes extend to the current bar or stop at 4:00 PM (default: off, stops at 4:00 PM).
Update Past Box Colors: Enable/disable color updates for historical boxes (default: on).
Demand/Supply/Neutral Box Color: Customize border colors (default: green, red, white).
How to Use
Add the indicator to your chart.
Adjust inputs to match your trading style (e.g., pivot lookback, box extension, colors).
Use the boxes to identify potential support (demand) and resistance (supply) zones:
Green-bordered boxes (price above) may act as support.
Red-bordered boxes (price below) may act as resistance.
White-bordered boxes (price inside) indicate active price interaction.
Combine with other analysis tools (e.g., trendlines, indicators) to confirm trade setups.
Monitor box shrinking to gauge zone strength and watch for breakouts when price fully crosses a box.
Understanding Supply and Demand in Stock Trading
In stock trading, supply and demand are fundamental forces driving price movements. Demand refers to the willingness of buyers to purchase a stock at a given price, often creating support levels where buying interest prevents further price declines. Supply represents the willingness of sellers to offload a stock, forming resistance levels where selling pressure halts price increases. These zones are critical because they highlight areas where significant buying or selling activity has occurred, influencing future price behavior.
The importance of supply and demand lies in their ability to reveal where institutional traders, with large orders, have entered or exited the market. Demand zones, often seen at pivot lows, indicate strong buying interest and potential areas for price reversals or bounces. Supply zones, typically at pivot highs, signal heavy selling and possible reversal points for downward moves. By identifying these zones, traders can anticipate where price is likely to stall, reverse, or break out, enabling better entry and exit decisions. This indicator visualizes these zones as dynamic boxes, making it easier to spot high-probability trading opportunities while emphasizing the core market dynamics of supply and demand.
Feedback
This indicator is designed to help traders visualize supply and demand zones effectively. If you have suggestions for improvements, please share your feedback in the comments!
Anomaly Counter-Trend StrategyA mean-reversion style strategy that automatically spots unusually large price moves over a configurable lookback period and takes the opposite side, with full risk-management, commission and slippage modelingโbuilt in Pine Scriptยฎ v6.
๐ Overview
ACTS monitors the percent-change over the past N minutes and, when that move exceeds your chosen threshold, enters a counter-trend position (short on a strong rise; long on a sharp fall). Itโs ideal for markets that often โovershootโ and snap back, and can be applied on any symbol or timeframe.
โ๏ธ Key Features
Anomaly Detection: Detect abnormal price swings based on a user-defined % change over a lookback period.
Counter-Trend Entries: Auto-enter short on rise anomalies, long on fall anomalies (with seamless flatโreverse transitions).
Risk Management: Configurable stop-loss and take-profit in ticks per trade.
Realistic Modeling: Simulates commissions (0.05 % default), slippage (2 ticks), and percent-of-equity sizing.
Immediate Bar-Close Execution: Orders processed on bar close for faster fills.
Visual Aids: Optional on-chart BUY/SELL triangles and background highlights during anomaly periods.
โ๏ธ Inputs
Input Default Description
Percentage Threshold (%) 2.00 Min % move over lookback to trigger an anomaly.
Lookback Period (Minutes) 15 Number of minutes over which to measure change.
Stop Loss (Ticks) 100 Distance from entry for stop-loss exit.
Take Profit (Ticks) 200 Distance from entry for take-profit exit.
Plot Trade Signal Shapes (on/off) true Show BUY/SELL triangles on chart.
Highlight Anomaly Background true Shade background during anomaly bars.
๐ How to Use
Add to Chart: Apply the script to any ticker & timeframe.
Tune: Adjust your percentage threshold and lookback to match each instrumentโs volatility.
Review Backtest: Check built-in strategy performance (drawdown, Sharpe, etc.) under the Strategy Tester tab.
Go Live: Once optimized, link to alerts or your trade execution system.
โ ๏ธ Disclaimer
This script is provided โas-isโ for educational purposes and backtesting only. Past performance does not guarantee future results. Always backtest thoroughly, manage your own risk, and consider market conditions before live trading.
Enjoy experimentingโand may your counter-trend entries catch the next big snapback!
CorrelationMulti-Timeframe Correlation Indicator
This Pine Script indicator measures the correlation between the current symbol and a reference symbol (default: GLD) across three different timeframes. It provides traders with valuable insights into how assets move in relation to each other over short, medium, and long-term periods.
Key Features
Multiple Timeframe Analysis: Calculates correlation coefficients over three customizable periods (default: 20, 50, and 200 bars)
Visual Reference Lines: Displays horizontal lines at +1, 0, and -1 to indicate perfect positive correlation, no correlation, and perfect negative correlation
Color-Coded Outputs: Shows short-term correlation in green, medium-term in yellow, and long-term in red for easy visual interpretation
Understanding Correlation
The correlation coefficient measures the statistical relationship between two data series, ranging from -1 to +1:
+1: Perfect positive correlation (both assets move together in the same direction)
0: No correlation (movements are random and independent)
-1: Perfect negative correlation (assets move in opposite directions)
How To Use This Indicator
Market Relationships: Identify how strongly your current asset correlates with the reference symbol
Diversification Analysis: Find assets with negative correlations to build a diversified portfolio
Divergence Opportunities: Watch for changes in correlation patterns that might signal trading opportunities
Trend Confirmation: Use correlation with benchmark assets to confirm broader market trends
Customization Options
Reference Symbol: Change the default GLD to any other symbol you want to compare against
Period Lengths: Adjust the short, medium, and long timeframes to match your trading strategy and timeframe
This indicator helps traders make more informed decisions by understanding the interrelationships between different assets across various timeframes, potentially improving portfolio construction and risk management strategies.