Gann Single Square Swing Trading System with Gann AnglesGann Single Square Swing Trading System
This script automatically detects "squares" - geometric patterns where price movement equals time movement. When price moves the same distance as the number of bars (time), it creates powerful support/resistance levels based on Gann theory.
Key Visual Elements
• Box: The detected square pattern
• Dark Blue Line (50%): Most important trading level
• Green Lines: Profit target levels (125%, 150%)
• Red Lines: Stop loss levels (-25%, -50%)
• Colored Angle Lines: Gann angles for trend direction
• Quality Score: Blue label showing setup strength (aim for 70%+)
Simple Trading Rules
LONG Trades (Green 🟢 Square)
1. Entry: Buy when price touches the dark blue 50% line from above
2. Stop Loss: Place below the red -25% line
3. Take Profit: Exit at green 125% line (first target) or 150% line (second target)
SHORT Trades (Red 🔴 Square)
1. Entry: Sell when price touches the dark blue 50% line from below
2. Stop Loss: Place above the red -25% line
3. Take Profit: Exit at green 125% line (first target) or 150% line (second target)
Entry Checklist
✅ Square quality score > 70%
✅ Price touches 50% level (dark blue line)
✅ Volume above average (if volume filter enabled)
✅ Clear square formation visible
Alerts
The script generates automatic alerts when price reaches the 50% trading level. Enable alerts in TradingView to get notified of setups.
Bottom Line: Wait for the alert → Check quality score → Enter at 50% level → Set stop at red line → Take profit at green line.
Cicli
Reversal Signal avec TICK + RSIThis indicator is a potential reversal indicator for SCALPING, don't use it for swing. It's base on TICK and on an overbrought/oversold condition of the RSI. You can play with the setting, typicaly I like my TICK to be over reacting an 800/-800 and my rsi over 20 and 80, but it give not enough signal. So I set the TICK signal at 651/-651 and the RSI at 25/75. This indicator is made for SP500 and Nasdaq, so SPY/QQQ/SPX/ES/NQ should work well. It's the first version of it, so maybe I'll add so more data to it to increase signal and lower false one. For now I've test it on live market yet(26/7/25).
The RSI is Fast(5 period), I like to use it on the 1 or 5 min chart.
Please not that it only work during 9h30am to 4pm EST.(Because of the TICK)
Feel free to try and even comment. Don't be harsh on me, it's my first try!
(Sorry for my 'english' it's not my first language)
FAUCON
CRT Impulse Detector - Bull & BearHelps Identify Impulse Candles, only triggering those that break recent swings.
Clarix Smart FlipPurpose
This tool identifies high-probability intraday reversals by detecting when price flips through the daily open after strong early-session commitment.
How It Works
A valid flip occurs when:
The previous daily candle is bullish or bearish
The first hour today continues in the same direction
Then, the price flips back through the daily open with a minimum break threshold (user-defined)
This setup is designed to catch liquidity grabs or fakeouts near the daily open, where early buyers or sellers get trapped after showing commitment
Signal Logic
Buy Flip
Previous day bearish → first hour bearish → price flips above open
Sell Flip
Previous day bullish → first hour bullish → price flips below open
Features
Configurable flip threshold in percentage
Signals only activate after the first hour ends
Daily open line displayed on chart
Simple triangle markers with no visual clutter
Alerts ready to use for automation or notifications
Usage Tips
Use "Once Per Bar" alert mode to get notified immediately when the flip happens
Works best in active markets like FX, indices, or crypto
Adjust threshold based on asset volatility
Suggested stop loss: use the previous daily high for sell flips or the previous daily low for buy flips
Suggested take profit: secure at least 30 pips to aim for a 1:3 risk-to-reward ratio on average
ORB Scalp setup by UnenbatDescription
ORB Scalp Setup by Unenbat is a precise breakout scalping tool that identifies short-term price ranges at the transition between hourly sessions.
📌 Core Features:
Draws a dynamic box using the price range from the last 3 minutes of the previous hour and the first 3 minutes of the new hour (total 5m59s range).
Automatically plots:
Box representing the selected range.
Opening Price Line at the start of the hour.
TP Lines (Take Profit) above and below the box at customizable distances.
BE Lines (Break-Even) above and below the box at customizable distances.
Box and line lengths are user-defined (default: 60 minutes).
Works across historical data (up to the last 100 days).
Fully customizable visuals (colors, offsets, visibility toggles).
🎯 How to Use:
Ideal for scalp traders using breakout strategies.
Enter trades when price breaks above or below the box range.
Use TP and BE lines as clear reference levels for exits or trailing stop logic.
⚙️ Custom Settings:
Enable/disable each component (box, open line, TP line, BE line).
Set your own offset in pips for TP/BE lines.
Adjust the box duration to match your trading style.
Modify start and end times of the range as needed.
Hidden Liquidity Shift DetectorPurpose
The Hidden Liquidity Shift Detector identifies candles that indicate potential hidden accumulation or distribution activity based on volume and price action behavior. These setups often represent institutional absorption of liquidity ahead of larger moves.
How It Works
The script detects candles with the following characteristics:
Small real body relative to the total candle range
A strong wick (upper or lower) indicating rejection
Volume significantly higher than the recent average
It flags:
Hidden Selling (Distribution) when a bearish candle has a long upper wick and high volume
Hidden Buying (Accumulation) when a bullish candle has a long lower wick and high volume
These candles are often missed by traditional indicators but may precede significant reversals or breakouts.
Features
Automatic detection of absorption-style candles
Volume spike filtering based on configurable multiplier
Wick and body ratio thresholds to fine-tune signal quality
Non-intrusive signal markers (colored circles)
Real-time alerts for hidden buying/selling signals
Usage Tips
Use on 15m to 4H charts for intraday detection, or Daily for swing setups
Combine with support/resistance or volume profile zones for higher conviction
Clusters of signals in the same area increase reversal probability
Can be used alongside Wyckoff-style logic or smart money concepts
FTM → SONIC Combined Candlesticksthis script combines the chart of FTM and SONIC to get a better overview of the entire price action
30M Scalping Strategy with Debug LogsWhat’s changed
Spot‑only: all short logic removed—only long entries and exits are generated.
Logging: uses log.info() to send entry/exit details (timestamp, price, ATR, RSI) to the Pine Logs console.
Clean & concise: core scalp logic (EMAs, RSI, MACD, volume, ATR SL/TP) remains intact.
Improved Weinstein Stage AnalysisThe code provides an actionable, disciplined, and visually informative implementation of the “Stage Analysis” approach pioneered by Stan Weinstein, with enhancements to modernize, automate, and clarify the methodology for today’s traders using TradingView. It faithfully follows the workflow recommended: identify long-term cycles, confirm with volume and relative strength, and only engage aggressively with the market during the advancing (bullish) stage with all “clues” aligned.
London & NY Session Markers + Pip MovementThis indicator visually marks the London and New York trading sessions on your chart and optionally calculates the pip range (high-low movement) during each session. It's specifically designed for Forex traders, helping you identify volatility windows and analyze market movement within major session times.
🔍 Key Features:
✅ Session Open/Close Markers
Draws vertical dotted lines at:
London Open (08:00 UK time)
London Close (11:00 UK time)
New York Open (14:00 UK time)
New York Close (17:00 UK time)
Each marker is labeled clearly ("London Open", "NY Close", etc.)
Uses color-coding for easy identification:
Aqua for London
Lime for New York
✅ Pip Range Display (Optional)
Measures the high-low price movement during each session.
Converts this movement into pips, using:
0.0001 pip size for most pairs
0.01 pip size for JPY pairs (auto-detected)
Displays a label (e.g., "London: 42.5 pips") above the candle at session close.
This feature can be toggled on/off via the settings panel.
✅ Time-Zone Aware
Session times are aligned to Europe/London time zone.
Adjusts automatically for Daylight Saving Time (DST).
✅ User Controls
Toggle visibility for:
London session markers
New York session markers
Pip range labels
📊 Use Cases:
Identify when liquidity and volatility increase, especially during session overlaps.
Analyze historical session-based volatility (e.g., compare NY vs. London pip ranges).
Combine with price action or indicator signals that work best in high-volume hours.
Optimize entry and exit timing based on session structure.
⚙️ Best Timeframes:
5-min to 1-hour charts for precise session tracking.
Works on Forex and CFD pairs with standard tick sizes.
⚠️ Notes:
This tool does not repaint and uses only completed bar data.
Pip calculation is based on the chart’s current symbol and tick size.
Designed for spot FX, not intended for cryptocurrencies or synthetic indices.
✅ Ideal For:
Forex Day Traders
Session-based Strategy Developers
London Breakout or NY Reversal Traders
Anyone analyzing volatility by session windows
Bias Dashboard + All Open Lines (M/W/D/H4/H1/15min)What does the script do?
This script displays a dashboard that shows the current market bias relative to the open prices of multiple timeframes:
Monthly
Weekly
Daily
4H
1H
15min
Additionally, it plots horizontal lines at each of these open levels on the chart.
How it works
Fetch Open Prices:
The script uses request.security() to get the open prices for each timeframe.
Determine Bias:
Compares the current close price to each open:
If close > open, then "Bullish"
If close < open, then "Bearish"
Display Dashboard:
A visual dashboard shows:
The timeframe label
Whether the current price is above (bullish) or below (bearish) that level
Plot Lines:
Colored horizontal lines are drawn on the chart to indicate each timeframe’s open level.
MA Cross With Buy and SellThe Enhanced MA Cross indicator helps traders identify changes in market trends by tracking two moving averages: one short-term and one long-term. When the short-term average crosses above the long-term one, it suggests that momentum is shifting upward, often signaling a buying opportunity. Conversely, when the short-term average drops below the long-term, it may indicate that selling pressure is increasing, signaling a possible exit or short position.
This indicator is particularly useful in trending markets—places where prices are clearly moving up or down—like during strong moves in stocks, crypto, forex, or commodities. It gives you visual buy and sell markers right on the chart, and you can even enable alerts so you don't miss key moments.
However, it's not a great tool for sideways or ranging markets, where prices bounce around without direction. In those situations, the crossover signals can become noisy and less reliable.
Overall, it's a simple, beginner-friendly tool for spotting trend shifts and making more confident trade entries and exits. If needed, we can make it even smarter by combining it with other indicators to filter out bad signals.
Cassures Tokyo pendant New York//@version=5
indicator("Cassures Tokyo pendant New York", overlay=true)
// Paramètres de sessions
// Début et fin de Tokyo (00h00 - 08h00 GMT)
tokyo_start = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 0, 0)
tokyo_end = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 8, 0)
// Début et fin de New York (13h30 - 22h00 GMT)
ny_start = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 13, 30)
ny_end = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 22, 0)
// Initialisation des variables persistantes
var float tokyo_high = na
var float tokyo_low = na
var bool ny_started = false
var bool high_broken = false
var bool low_broken = false
// Reset des valeurs à chaque nouvelle journée
if (time >= tokyo_start and time < tokyo_end)
tokyo_high := na
tokyo_low := na
high_broken := false
low_broken := false
ny_started := false
// Détection du high/low Tokyo
if (time >= tokyo_start and time < tokyo_end)
tokyo_high := na(tokyo_high) ? high : math.max(tokyo_high, high)
tokyo_low := na(tokyo_low) ? low : math.min(tokyo_low, low)
// Détection des cassures pendant New York
if (time >= ny_start and time < ny_end)
ny_started := true
if not na(tokyo_high) and high > tokyo_high
high_broken := true
if not na(tokyo_low) and low < tokyo_low
low_broken := true
// Affichage des niveaux Tokyo
plot(tokyo_high, "Tokyo High", color=color.green, linewidth=1, style=plot.style_linebr)
plot(tokyo_low, "Tokyo Low", color=color.red, linewidth=1, style=plot.style_linebr)
// Surlignage visuel en session NY selon cassure
bgcolor(ny_started and high_broken and low_broken ? color.orange : ny_started and high_broken ? color.new(color.green, 80) : ny_started and low_broken ? color.new(color.red, 80) : na)
// Affichage texte sur le graphique
label_id = label.new(x=bar_index, y=high, text="", style=label.style_label_down, textcolor=color.white, size=size.tiny, color=color.gray)
if (ny_started)
label_text = high_broken and low_broken ? "Cassure HIGH & LOW Tokyo" :
high_broken ? "Cassure HIGH Tokyo" :
low_broken ? "Cassure LOW Tokyo" :
"Aucune cassure"
label.set_text(label_id, label_text)
label.set_xy(label_id, bar_index, high + syminfo.mintick * 10)
Volume Weighted Average Pricehelps my strategy and allows my trades to hit tp allowing me to gain profit
Asian & London Session Two-Color Candlesthis script use to find the asian and london session with different candle colours.
NY Close High/Low - UAE Time📌 Indicator Name:
New York Session Close High/Low – UAE Time
📄 Description:
This indicator automatically marks the high and low of the New York trading session closing candle, based on UAE local time (Asia/Dubai).
🕒 Time Logic:
The New York session closes at 5:00 PM EST, which corresponds to 1:00 AM UAE time (next day).
The indicator captures the 12:00 AM to 1:00 AM UAE time candle, which represents the final hour of the New York session.
✅ Features:
Marks the high and low of the NY close candle.
Updates dynamically each day.
Lines are plotted using UAE local time (Asia/Dubai).
Works on most timeframes (recommended: 1H or higher).
📈 Use Cases:
Identify key liquidity zones at the NY session close.
Use as support/resistance or breakout reference.
Combine with your existing trading strategy for precision entries.
Infalible Universal 2:1 Estrategia🔹 "Infalible Universal 2:1 Strategy" – Optimized for All Markets and Timeframes
This strategy combines proven technical indicators with a dynamic risk management model to deliver consistent and optimized entries, especially on lower timeframes like 5 and 15 minutes.
Core Components:
📈 Entry Signals:
Trades are triggered when a fast Simple Moving Average (SMA) crosses over or under a slow SMA, with confirmation from a strong trend (ADX filter).
🎯 Dynamic Take Profit and Stop Loss:
Positions are exited based on a 2:1 Risk/Reward ratio, calculated using the current Average True Range (ATR). This allows the system to adapt to market volatility and remain effective across any asset.
🧱 Visual SL/TP Zones:
Colored rectangles highlight the Stop Loss (red) and Take Profit (green) areas on the chart, helping traders clearly visualize risk and reward at every entry.
🧠 Clean and Effective Logic:
No repainting. No lagging signals. Fully backtestable. Alerts included for long and short entries.
Whether you're trading forex, crypto, indices, or stocks, this universal strategy adapts to market behavior and focuses on consistent execution through disciplined risk management.
Infalible SL y TP estrategy
**🔥 Professional Trend-Following Strategy with Dynamic Risk Management**
#### 📈 **Key Features**
✅ **High-Probability Entries:** Uses **ADX > 25** to trade only strong trending markets.
✅ **Smart Stop Loss:** Dynamic **2x ATR** trailing stop to adapt to volatility.
✅ **2:1 Risk-Reward:** Take Profit levels set at **2x SL distance** for consistent gains.
✅ **Real-Time Visuals:** Auto-updating TP/SL lines and entry markers.
---
#### 🛠 **Indicators Used**
1. **SMAs (14 & 28):** Classic crossover for entry signals.
2. **ADX (14):** Filters trades in strong trends (ADX ≥ 25).
3. **ATR (14):** Calculates stop loss distance (2x ATR).
---
#### ⚙ **Recommended Settings**
- **Markets:** Forex, Crypto, Trending Stocks.
- **Timeframes:** 15min - 4H (day trading) or Daily (swing trading).
- **Customizable:**
- `ATR Multiplier` (default: `2.0`).
- `Risk-Reward Ratio` (default: `2:1`).
---
#### 📉 **Entry/Exit Rules**
🔹 **LONG:**
- When **SMA(14) crosses ABOVE SMA(28)** + **ADX ≥ 25**.
- **SL:** Entry price - (2 x ATR).
- **TP:** Entry price + (4 x ATR).
🔹 **SHORT:**
- When **SMA(14) crosses BELOW SMA(28)** + **ADX ≥ 25**.
- **SL:** Entry price + (2 x ATR).
- **TP:** Entry price - (4 x ATR).
---
#### 🎨 **Clear Visualization**
- Fast SMA (blue) & Slow SMA (red).
- Live TP (green) and SL (red) levels.
---
#### 💡 **Why This Works**
✔ **Fewer False Signals:** ADX filter avoids choppy markets.
✔ **Adaptive Risk:** ATR-based SL adjusts to volatility.
✔ **Professional-Grade:** Strict 2:1 risk-reward discipline.
---
#### 📢 **Backtest & Optimize!**
👉 **Tip:** Tweak `ATR Multiplier` for different assets (e.g., 1.5 for forex, 3 for crypto).
👉 **Pro Tip:** Use TradingView’s **Strategy Tester** to optimize parameters.
📌 **Want a Trailing Stop or Volume Filter? Comment below!**
---
🔹 **Disclaimer:** Past performance ≠ future results. Always backtest before live trading.
---
### 🌟 **Like & Follow for More Advanced Strategies!** 🌟
BB + RSI Strategy Optimized✅ Pine Script Version 5
✅ Complete Strategy: Long + Short
✅ Automatic Entry and Exit
✅ Visual Signals: Buy/Sell, Short/Cover
✅ Trailing Take Profit
✅ Progressive
Trigonometric Sine Cosine WavesTrigonometric Sine Cosine Waves - Advanced Cyclical Analysis
Overview
This innovative indicator applies trigonometric mathematics to market analysis, generating dynamic sine and cosine waves that adapt to price movement and volatility. Unlike traditional oscillators, this tool visualizes market cycles directly on your chart using mathematical wave functions.
How It Works
The indicator calculates phase-based waves using:
• Phase Calculation: 2π × bar_index / cycle_length
• Adaptive Amplitude: EMA-based price + ATR volatility scaling
• Sine Wave: avgPrice + volatility × sin(phase)
• Cosine Wave: avgPrice + volatility × cos(phase)
Key Features
Dynamic Wave Generation
• Sine Wave: Primary cycle indicator with smooth transitions
• Cosine Wave: Leading indicator (90° phase difference from sine)
• Adaptive Amplitude: Automatically adjusts to market volatility using ATR
Turning Point Detection
• Anti-Repaint Signals: Uses confirmed values from previous bars
• Sine Bottom: Potential buy zones when wave transitions from down to up
• Sine Top: Potential sell zones when wave transitions from up to down
Advanced Analytics
• Price Correlation Angle: Shows relationship between price movement and cycle
• Phase Information: Current position in the mathematical cycle
• Real-time Values: Live sine/cosine values and phase degrees
Visual Enhancement
• Background Coloring: Changes based on sine wave position (above/below zero)
• Clean Overlay: Waves plot directly on price chart without cluttering
Parameters
• Cycle Length (5-200): Controls wave frequency - shorter = more sensitive
• Amplitude Multiplier (0.1-5.0): Adjusts wave height relative to volatility
• Display Options : Toggle sine wave, cosine wave, and correlation table
• Show Correlation : Optional table showing mathematical values
Trading Applications
Cycle Analysis
• Identify market rhythm and timing
• Spot potential reversal zones
• Understand price-to-cycle relationships
Entry/Exit Timing
• Buy Signals: Sine wave bottoms (cycle lows)
• Sell Signals: Sine wave tops (cycle highs)
• Confirmation: Use with other indicators for higher probability setups
Market Structure
• Visualize underlying market cycles
• Identify periods of high/low cyclical activity
• Track phase relationships between price and mathematical cycles
Pro Tips
1. Longer cycles (50-100) work better for swing trading
2. Shorter cycles (10-20) suitable for scalping
3. Combine with volume for stronger signal confirmation
4. Monitor correlation angle for trend strength assessment
5. Use background color as quick visual cycle reference
Important Notes
• Signals are anti-repaint using confirmed previous bar values
• Best used in trending or cyclical markets
• Consider market context when interpreting signals
• Mathematical approach - not based on traditional TA concepts
Alerts Included
• Sine Wave Buy Signal: Triggered on wave bottom detection
• Sine Wave Sell Signal: Triggered on wave top detection
Technical Requirements
• Pine Script v6
• Works on all timeframes
• No external dependencies
• Optimized for performance
This is a free, open-source indicator. Feel free to modify and improve according to your trading needs!
Educational Value: Perfect for understanding how mathematical functions can be applied to market analysis and cycle detection.
NY/LDN/TOK Stock Exchange Opening HoursThis indicator displays vertical dotted lines marking the exact opening times of the three major global stock exchanges: New York (NYSE), London (LSE), and Tokyo (TSE). Perfect for traders who need to track market opening sessions across different time zones.
Features:
New York Stock Exchange (NYSE): 9:30 AM EST/EDT
London Stock Exchange (LSE): 8:00 AM GMT/BST
Tokyo Stock Exchange (TSE): 9:00 AM JST
Key Highlights:
✓ Automatic daylight saving time adjustments for NY and London
✓ Individual color customization for each market
✓ Toggle on/off functionality for each exchange
✓ Clean vertical dotted lines (1-pixel width) that extend across the entire chart
✓ Interactive legend in bottom-right corner showing active markets
✓ Weekdays only (Monday-Friday) - no weekend lines
✓ Uses official local time zones for accurate timing
Customizable Settings:
Enable/disable individual exchanges
Custom color selection for each market line
Dynamic legend that shows only enabled markets
Time Zone Handling:
The indicator automatically handles daylight saving time transitions using official time zones:
America/New_York (EST/EDT)
Europe/London (GMT/BST)
Asia/Tokyo (JST - no DST)
Perfect for:
Multi-market traders
Session overlap analysis
Global market timing coordination
Institutional trading schedules
Simply add to your chart and customize colors/visibility in the indicator settings. The legend will automatically update to show your active markets in their respective colors.
BARTRADINGPREDV4Please note, that all of the indicators on the chart are working together. I am showing all of the indicators so that you might see the benefits of these indicators working as one. Do your own research. Trade smart. I code tools not advice. So please make decisions based on your trading style and knowledge. Use my scripts freely but please note they are protected by Mozilla.
Script Summary: BARTRADINGPREDV4
This Pine Script indicator is a comprehensive trading tool that overlays on your TradingView chart. It combines moving averages, regression channels, volume analysis, RSI filtering, and pattern recognition to assist in making trading decisions. It also provides a forward-looking projection to help anticipate future price movement.
Key Features & Logic
1. Moving Averages
HMA (High Moving Average): Simple moving average of the high price over a user-defined lookback period.
LMA (Low Moving Average): Simple moving average of the low price over the same period.
HLMA (High-Low Moving Average): The average of HMA and LMA, providing a midline reference.
2. RSI Filtering
Optionally enables a Relative Strength Index (RSI) filter to help avoid trades when the market is not trending strongly.
Only allows buy signals if RSI is above 50, and sell signals if RSI is below 50 (if enabled).
3. Signal Generation
BUY Signal: Triggered when HL2 (average of OHLC) crosses over LMA and (optionally) RSI > 50.
SELL Signal: Triggered when HL2 crosses under HMA and (optionally) RSI < 50.
XSB (Extra Strong Buy): HL2 crosses over HMA, is above HLMA, up volume is greater than down volume, and (optionally) RSI > 50.
XBS (Extra Strong Sell): HL2 crosses under LMA, is below HLMA, down volume is greater than up volume, and (optionally) RSI < 50.
Enable/Disable XSB/XBS: You can turn these signals on or off via script inputs.
4. Take Profit (TP) and Stop Loss (SL) Levels
TP and SL are dynamically calculated based on the difference between HMA and LMA, providing contextually relevant exit levels.
5. Regression Channel and Prediction
Linear Regression Line: Plots a regression line over the lookback period to show the underlying trend.
ATR Channel: Adds an upper and lower channel around the regression line using ATR (Average True Range) for a realistic prediction envelope.
Forward Projection: Projects the regression line forward by a user-defined number of bars, visually showing where the trend could extend if current momentum persists.
6. Pattern Recognition
Higher Highs/Lows and Lower Highs/Lows: Marks bars where new higher highs/lows or lower highs/lows are set, helping you spot trend continuation or reversal points.
7. Status Table
A table shows the current price’s relationship to HMA, HLMA, and LMA, color-coded for quick visual interpretation.
User Instructions
Inputs
Number of Lookback Bars: Sets the period for all moving averages and regression calculations.
Prediction Length: (Legacy; not used in current logic.)
TURN ON OR OFF XSB/XBS Signal: Toggle extra strong buy/sell signals.
Enable RSI Filter: Only allow signals when RSI is in the correct zone.
RSI Period: Sets the sensitivity of the RSI filter.
Table Position: Choose where the status table appears on your chart.
ATR Length & Multiplier: Control the width of the regression prediction channel.
Bars Forward (Projection): Number of bars to project the regression line into the future.
How to Use
Add the script to your TradingView chart.
Adjust inputs to suit your asset and timeframe.
Interpret signals:
BUY (B) and SELL (S): Appear as green/red labels below/above bars.
XSB (blue) and XBS (orange): Indicate extra strong buy/sell conditions.
HH/HL (green triangles): New higher highs/lows.
LH/LL (red triangles): New lower highs/lows.
Watch the regression channel: The yellow regression line shows the trend; the shaded band indicates expected volatility.
Check the projection: The dashed magenta line projects the regression trend forward, giving a visual target for price continuation.
Use the table: Quickly see if price is above or below each moving average.
Interpreting the Prediction Aspects
Regression Line & Channel
Regression Line (Yellow): Represents the best-fit line of price over the lookback period, showing overall trend direction.
ATR Channel: The upper and lower bands (yellow, semi-transparent) account for typical volatility, suggesting a range where price is likely to stay if the trend continues.
Forward Projection
Dashed Magenta Line: Projects the regression line forward by the specified number of bars, using the current slope. This is a trend continuation forecast—not a guarantee, but a statistically reasonable path if current conditions persist.
How to use: If price is respecting the regression trend and within the channel, the projection provides a visual target for where price might go in the near future.
TP/SL Levels
TP (Take Profit): Suggests a price target above the current HL2, based on recent volatility.
SL (Stop Loss): Suggests a protective stop below HL2.
Best Practices & Warnings
No indicator is perfect! Always combine signals with your own analysis and risk management.
Regression projection is not a crystal ball: It simply extends the current trend, which can and will change, especially after big news or at support/resistance.
Use on liquid, trending assets for best results.
Adjust lookback and ATR settings for your market and timeframe.
Summary Table Example
Price vs HMA vs HLMA vs LMA
43000 +100 +50 -20
Green: Price is above average (bullish).
Red: Price is below average (bearish).
Yellow: Price is very close to the average (neutral).
Final Notes
This script is designed to be a multi-tool for trend trading and prediction, combining classic and modern techniques. The forward projection helps visualize possible future price action, while signals and overlays keep you informed of trend shifts and trade opportunities.
Portfolio Tracker ARJO (V-01)Portfolio Tracker ARJO (V-01)
This indicator is a user-friendly portfolio tracking tool designed for TradingView charts. It overlays a customizable table on your chart to monitor up to 15 stocks or symbols in your portfolio. It calculates real-time metrics like current market price (CMP), gains/losses, and stoploss breaches, helping you stay on top of your investments without switching between multiple charts. The table uses color-coding for quick visual insights: green for profits, red for losses, and highlights breached stoplosses in red for alerts. It also shows portfolio-wide totals for overall performance.
Key Features
Supports up to 15 Symbols: Enter stock tickers (e.g., NSE:RELIANCE or BSE:TCS) with details like buy price, date, units, and stoploss.
Symbol: The stock ticker and description.
Buy Date: When you purchased it.
Units: Number of shares/units held.
Buy Price: Your entry price.
Stop Loss: Your set stoploss level (highlighted in red if breached by CMP).
CMP: Current market price (fetched from the chart's timeframe).
% Gain/Loss: Percentage change from buy price (color-coded: green for positive, red for negative).
Gain/Loss: Total monetary gain/loss based on units.
Optional Timeframe Columns: Toggle to show % change over 1 Week (1W), 1 Month (1M), 3 Months (3M), and 6 Months (6M) for historical performance.
Portfolio Summary: At the top of the table, see total % gain/loss and absolute gain/loss for your entire portfolio.
Visual Customizations: Adjust table position (e.g., Top Right), size, colors for positive/negative values, and intensity cutoff for gradients.
Benchmark Index-Based Header: The title row's background color reflects NIFTY's weekly trend (green if above 10-week SMA, red if below) for market context.
Benchmark Index-Based Header: The title row's background color reflects NIFTY's weekly trend (green if above 10-week SMA, red if below) for market context.
How to Use It: Step-by-Step Guide
Add the Indicator to Your Chart: Search for "Portfolio Tracker ARJO (V-01)" in TradingView's indicator library and add it to any chart (preferably Daily timeframe for accuracy).
Input Your Portfolio Symbols:
Open the indicator settings (gear icon).
In the "Symbol 1" to "Symbol 15" groups, fill in:
Symbol: Enter the ticker (e.g., NSE:INFY).
Year/Month/Day: Select your buy date (e.g., 2024-07-01).
Buy Price: Your purchase price per unit.
Stoploss: Your exit price if things go south.
Units: How many shares you own.
Only fill what you need—leave extras blank. The table auto-adjusts to show only entered symbols.
Customize the Table (Optional):
In "Table settings":
Choose position (e.g., Top Right) and size (% of chart).
Toggle "Show Timeframe Columns" to add 1W/1M/3M/6M performance.
In "Color settings":
Pick colors for positive (green) and negative (red) cells.
Set "Color intensity cutoff (%)" to control how strong the colors get (e.g., 10% means changes above 10% max out the color).
Interpret the Table on Your Chart:
The table appears overlaid—scan rows for each symbol's stats.
Look at colors: Greener = better gains; redder = bigger losses.
Check CMP cell: Red means stoploss breached—consider selling!
Portfolio Gain/Loss at the top gives a quick overall health check.
For Best Results:
Use on a Daily chart to avoid CMP errors (the script will warn if on Weekly/Monthly).
Refresh the chart or wait for a new bar if data doesn't update immediately.
For Indian stocks, prefix with NSE: or BSE: (e.g., BSE:RELIANCE).
This is for tracking only—not trading signals. Combine with your strategy.
If no symbols show, ensure inputs are valid (e.g., buy price > 0, valid date).
Finally, this tool makes it quite easy for beginners to track their portfolios, while also giving advanced traders powerful and customizable insights. I'd love to hear your feedback—happy trading!