Relative Strength RSI with LevelsThis is a relative Strength Indicator used for comparing the performance of the Stock analyzed with the SPX, with a single line moving above or below a midline signaling over- or underperformance when compared to S&P500 SPX Index
Analisis Trend
ATR Trailing Stop with ATR Targets [v6]What the Indicator Does
This custom TradingView indicator is designed for active traders who want to automate and visualize their trailing stop management and target setting, using true market volatility. It combines the Average True Range (ATR) with dynamic market structure logic to:
Trail a stop-loss behind major swings in real time, using 2×ATR (adjustable) from the highest high in uptrends or the lowest low in downtrends.
Flip trading bias between bullish and bearish when the stop is breached.
Identify and plot three profit targets (at 1, 2, and 3 ATR from the breakout/flip point) after every stop-flip, helping traders scale out or set take-profits objectively.
Maintain a visible presence on your chart every bar to avoid indicator errors, with color and labeling for clear distinction between long/short phases.
How the Indicator Works
1. ATR Calculation
ATR Period and Multiplier: You select your preferred ATR length (default is 14 bars) and a multiplier (default is 2.0).
Volatility Adjustment: ATR measures the average "true" bar range, so the trailing stop and targets adapt to current volatility.
2. Trailing Stop Logic
Uptrend (bullish bias): The indicator tracks the highest high made since the last bearish-to-bullish flip and sets the stop at - .
The stop only raises (never lowers) during an uptrend, protecting gains in strong moves.
Downtrend (bearish bias): Tracks the lowest low made since the last bullish-to-bearish flip, with stop at + .
The stop only lowers (never raises) in a downtrend.
Flip Point: If price closes through the trailing stop, the current bias “flips,” and the logic reverses (bullish to bearish or vice versa). At the new close, flip price and bar index are stored for target calculation.
3. ATR Targets after Flip
After each stop flip:
Three targets—based on the new close price—are calculated and plotted:
Long flip (new bull bias): Target1 = close + 1×ATR, Target2 = close + 2×ATR, Target3 = close + 3×ATR.
Short flip (new bear bias): Target1 = close - 1×ATR, Target2 = close - 2×ATR, Target3 = close - 3×ATR.
These targets help with scaling out, partial profit-taking, or setting automated orders.
4. Visual Feedback
Trailing stop line: Green for long bias, red for short bias.
Targets: Distinct color-coded circles at 1, 2, 3 ATR levels from the most recent flip.
Flip Labels: Mark the bar and price where bias flipped (“Long Flip” or “Short Flip”) for quick pattern recognition.
Subtle background shading: Ensures TradingView's requirement for “indicator output every bar.”
How to Use This Indicator
Parameter Setup
ATR Period and Multiplier: Adjust to match the timeframe and volatility of your instrument.
Lower periods/multipliers for short-term/volatile trading.
Higher values for smoother signals or higher timeframes.
Starting Trend: Set to match the expected initial bias if the instrument has strong trend characteristics.
Trading Application
1. Daily Bias Approach
Establish your bias in line with your trading plan (e.g., only trade long if price is above the previous day's high, short below the previous day's low).
Only look for trades in the indicator's current bias direction, as expressed by the stop and background color.
2. Entry
Use the indicator as a real-time confirmation or trailing stop for your entries.
Breakout: Enter when price establishes the current bias, using the trailing stop as your risk level.
Reversal: Wait for a bias flip after an extended move; enter in the direction of the new bias.
VWAP Rebound: Combine with a VWAP bounce—enter only if the indicator bias supports your direction.
3. Exits/Targets
Trailing stop management: Move your stop according to the plotted line; exit if your stop is hit.
Profit-taking: Scale out or take profits as price approaches each ATR-based target.
Use the dynamic labeling to identify reversal flips and reset your plan if stopped or the bias changes.
4. Market Context
Filter and frame setups by watching correlated indicators (DXY, VIX, AUDJPY, put/call ratio) and upcoming news; trade only in the daily bias direction for best consistency.
5. Practical Tips
Combine this indicator with your custom watchlist and alert settings to get notified on flips or targets.
Review the last label ("Long Flip"/"Short Flip") and targets to plan partial exits.
Remember: ATR adapts to volatility, so the stop and targets stay proportionate even when price action shifts.
kinetic test123mattThe Nuclear Regulatory Commission (NRC) is not the kind of agency most Americans think about often.
In fact, there’s a decent chance you’ve never even heard of it outside of a few advanced social studies classes in high school or college.
The NRC was originally established back in 1975 as a successor to the United States Atomic Energy Commission. Then, just a few years later, in 1979, there was a partial meltdown in the Unit 2 reactor at the Three Mile Island Nuclear Generating Station.
That disaster was mercifully averted, but the event left a lasting impact on the still-developing agency…
Following Three Mile Island, the NRC was widely perceived as risk-averse. They developed a licensing process that could be counted among the most bureaucratic and byzantine in history.
Just securing the NRC’s approval for a new nuclear reactor could take years (in some cases over a decade) and cost hundreds of millions of dollars. And that’s before you even start breaking ground!
Bringing Georgia’s 3 and 4 reactor units at Plant Vogtle online was estimated to cost $14 billion at first. However, due to various delays in the approval process and subsequent contracting issues, costs ballooned to more than $30 billion, with a wait of 15 years.
Sounds like a nightmare, right?
Don’t worry — it gets worse!
So far, we’ve only been talking about large light-water reactors (LWRs). Perish the thought, but those are the kinds of reactors the NRC is actually optimized to work with.
Newer technologies, such as small modular reactors (SMRs) or molten salt reactors (MSRs), are evaluated on a case-by-case basis. And it just so happens that the NRC has neither the manpower nor the realistic expertise to evaluate these developments comprehensively.
That means even for the companies that can develop next-generation nuclear technology, they’re going to face a huge production bottleneck when it comes to the NRC approving the projects.
Price Volume Trend [sgbpulse]1. Introduction: What is Price Volume Trend (PVT)?
The Price Volume Trend (PVT) indicator is a powerful technical analysis tool designed to measure buying and selling pressure in the market based on price changes relative to trading volume. Unlike other indicators that focus solely on volume or price, PVT combines both components to provide a more comprehensive picture of trend strength.
How is it Calculated?
The PVT is calculated by adding or subtracting a proportional part of the daily volume from a cumulative total.
When the closing price rises, a proportional part of the daily volume (based on the percentage price change) is added to the previous PVT value.
When the closing price falls, a proportional part of the daily volume is subtracted from the previous PVT value.
If there is no change in price, the PVT value remains unchanged.
The result of this calculation is a cumulative line that rises when buying pressure is strong and falls when selling pressure dominates.
2. Why PVT? Comparison to Similar Indicators
While other indicators measure volume-price pressure, PVT offers a unique advantage:
PVT vs. On-Balance Volume (OBV):
OBV simply adds or subtracts the entire day's volume based on the closing direction (up/down), regardless of the magnitude of the price change. This means a 0.1% price change is treated the same as a 10% change.
PVT, on the other hand, gives proportional weight to volume based on the percentage price change. A trading day with a large price increase and high volume will impact the PVT significantly more than a small price increase with the same volume. This makes PVT more sensitive to trend strength and changes within it.
PVT vs. Accumulation/Distribution Line (A/D Line):
The A/D Line focuses on the relationship between the closing price and the bar's trading range (Close Location Value) and multiplies it by volume. It indicates whether the pressure is buying or selling within a single bar.
PVT focuses on the change between closing prices of consecutive bars, multiplying this by volume. It better reflects the flow of money into or out of an asset over time.
By combining volume with percentage price change, PVT provides deeper insights into trend confirmation, identifying divergences between price and volume, and spotting signs of weakness or strength in the current trend.
3. Indicator Settings (Inputs)
The "Price Volume Trend " indicator offers great flexibility for customization to your specific needs through the following settings:
Moving Average Type: Allows you to select the type of moving average used for the central line on the PVT. Your choice here will affect the line's responsiveness to PVT movements.
- "None" : No moving average will be displayed on the PVT.
- "SMA" (Simple Moving Average): A simple average, smoother, ideal for identifying longer-term trends in PVT.
- "SMA + Bollinger Bands": This unique option not only displays a Simple Moving Average but also activates the Bollinger Bands around the PVT. This is the recommended option for analyzing volatility and ranges using Bollinger Bands.
- "EMA" (Exponential Moving Average): An exponential average, giving more weight to recent data, responding faster to changes in PVT.
- "SMMA (RMA)" (Smoothed Moving Average): A smoothed average, providing extra smoothing, less sensitive to noise.
- "WMA" (Weighted Moving Average): A weighted average, giving progressively more weight to recent data, responding very quickly to changes in PVT.
Moving Average Length: Defines the number of bars used to calculate the moving average (and, if applicable, the standard deviation for the Bollinger Bands). A lower value will make the line more responsive, while a higher value will smooth it out.
PVT BB StdDev (Bollinger Bands Standard Deviation): Determines the width of the Bollinger Bands. A higher value will result in wider bands, making it less likely for the PVT to cross them. The standard value is 2.0.
4. Visual Aid: Current PVT Level Line
This indicator includes a unique and highly useful visual feature: a dynamic horizontal line displayed on the PVT graph.
Purpose: This line marks the exact level of the PVT on the most recent trading bar. It extends across the entire chart, allowing for a quick and intuitive comparison of the current level to past levels.
Why is it Important?
- Identifying Divergences: Often, an asset's price may be lower or higher than past levels, but the PVT level might be different. This auxiliary line makes it easy to spot situations where PVT is at a higher level when the price is lower, or vice-versa, which can signal potential trend changes (e.g., higher PVT than in the past while price is low could indicate strong accumulation).
- Quick Direction Indication: The line's color changes dynamically: it will be green if the PVT value on the last bar has increased (or remained the same) relative to the previous bar (indicating positive buying pressure), and red if the PVT value has decreased relative to the previous bar (indicating selling pressure). This provides an immediate visual cue about the direction of the cumulative momentum.
5. Important Note: Trading Risk
This indicator is intended for educational and informational purposes only and does not constitute investment advice or a recommendation for trading in any form whatsoever.
Trading in financial markets involves significant risk of capital loss. It is important to remember that past performance is not indicative of future results. All trading decisions are your sole responsibility. Never trade with money you cannot afford to lose.
Auto Market Structure BOS & CHOCH [TeamCash]Auto Market Structure
The Auto Market Structure (AMS) indicator automatically maps market structure to guide your trading. Using pivot points, it plots lines and labels to identify Break of Structure (BOS)—a price break of a key level signaling trend continuation—and Change of Character (CHOCH)—a shift in market direction after breaking a swing high/low. How It Works: BITSTAMP:BTCUSD BITSTAMP:ETHUSD AMS detects pivot points across multiple timeframes, marking BOS and CHOCH with white lines (solid for confirmed, dotted for potential) and labels. It automatically tracks level crosses, highlighting trend shifts or continuations. Optional Fibonacci lines (yellow) can be enabled for precise entry and target zones.
Why Use AMS?
Automates market structure analysis for faster, clearer setups.
Pairs with Fibonacci for high-probability entry and exit points.
Works across timeframes, despite minor bugs, for versatile trading.
Ideal for traders combining structure and Fibonacci in BITSTAMP:BTCUSD and BITSTAMP:ETHUSD markets, offering a powerful, evolving tool for technical analysis.
MTF FVGs [Fadi x MMT]The MTF FVGs indicator is a powerful tool for identifying and visualizing Fair Value Gaps (FVGs) across multiple timeframes on TradingView. It provides traders with customizable options to display bullish and bearish FVGs, control their appearance, and manage mitigated gaps, making it ideal for price action and imbalance-based trading strategies.
Features
Multi-Timeframe Support : Analyzes FVGs on up to seven timeframes, including an auto-adjusted timeframe and user-defined periods (e.g., 5m, 15m, 1H, 4H, 1D, 1W).
Customizable Display : Toggle visibility of FVG open, close, central equilibrium (C.E.), and connecting lines with adjustable styles (solid, dashed, dotted) and sizes.
Background Fill : Option to fill FVG areas with customizable transparency for better visualization.
Mitigation Settings : Show or hide mitigated FVGs with configurable mitigation criteria (e.g., touched, wick-filled, body-filled) and extend mitigated lines.
Labeling Options : Display labels for timeframes, FVG types (BISI/SIBI), and levels (open, close, C.E.) with customizable colors and sizes.
Proximity Filtering : Hide FVGs outside a specified price range based on daily or monthly ATR for cleaner charts.
Timeframe Filtering : Hide lower or current timeframe FVGs to focus on higher timeframe imbalances.
Performance Optimization : Limits the number of displayed FVGs and supports up to 5000 bars back, 500 lines, labels, and boxes.
Settings
Higher Timeframe (HTF) FVG Settings
Show/Hide : Enable or disable FVGs for each timeframe.
Timeframe Selection : Choose specific timeframes (e.g., 5m, 15m, 1H, 4H, 1D, 1W) or use auto-selection based on the current chart.
Colors : Set bullish (default: green) and bearish (default: red) FVG colors.
Max Count : Limit the number of FVGs displayed per timeframe (default: 5).
Display Settings
Open/Close Lines : Toggle visibility, style (solid, dashed, dotted), and size (1-4) for FVG boundaries.
Central Equilibrium (C.E.) : Show/hide the midpoint line with customizable style, size, and colors (default: white with transparency).
Link Line : Display a connecting line between FVG boundaries with adjustable style and size.
Background Transparency : Enable/disable fill between FVG boundaries with adjustable transparency (50%-98%).
Mitigation Settings
Show Mitigated FVGs : Toggle visibility of mitigated gaps.
Mitigation Type : Choose criteria for mitigation (None, Touched, Wick Filled, Body Filled, Wick Filled Half, Body Filled Half).
Mitigated Colors : Set colors for mitigated bullish and bearish FVGs (default: gray with transparency).
Extend Mitigated Lines : Extend mitigated FVG lines by a specified number of bars (default: 5).
Labeling Settings
Label Display : Toggle labels for FVGs with customizable color, background color, and size (tiny, small, normal, large, huge).
Label Levels : Show labels for open, close, or C.E. levels.
Label Content : Include timeframe, FVG type (BISI/SIBI), or level information in labels.
Advanced Settings
Proximity Filter : Hide FVGs outside a price range based on daily ATR (adjustable factor: 1-10).
Label Combine Factor : Control label visibility to avoid clutter (default: 1.0).
ATR Range : Set the number of candles for ATR calculation (default: 10).
Line Extension : Extend FVG lines by a set number of bars (default: 4) or based on price range conditions.
Timeframe Spacing : Adjust spacing between FVGs from different timeframes (default: 4 bars).
How to Use
Add the indicator to your TradingView chart.
Configure the desired timeframes and settings via the indicator's input menu.
Analyze FVGs to identify potential support/resistance zones or imbalance areas for trading decisions.
Use mitigation settings to track filled gaps and proximity filters to focus on relevant price levels.
Crypto Trend StrengthCrypto Trend Strength Dashboard (11-Point System)
Description:
This indicator is a visually enhanced dashboard that evaluates 11 key technical signals to assess bullish momentum for crypto. Each condition is displayed in a easy reading table for quick interpretation and visual appeal.
Signals include:
Higher highs and higher lows
Price above SMA18 and SMA365
SMA180 > SMA365
Positive slope on SMA180 and SMA365
RSI trending upward
Ideal for traders who want a clean, at-a-glance summary of market strength without scanning multiple charts or indicators.
PRO SMC DASHBOARDPRO SMC DASHBOARD - PRO LEVEL
Advanced Supply & Demand / SMC dashboard for scalping and intraday:
Multi-Timeframe Trend: Visualizes trend direction for M1, M5, M15, H1, H4.
HTF Supply/Demand: Shows closest high time frame (HTF) supply/demand zone and distance (in pips).
Smart “Flip” & Liquidity Signals: Flip and Liquidity Sweep arrows/signals are shown only when truly significant:
Near HTF Supply/Demand zone
And confirmed by volume spike or high confluence score
Momentum & Bias: Real-time momentum (RSI M1), H1 bias and fakeout detection.
Confluence Score: Objective score (out of 7) for trade confidence.
Volume Spike, Divergence, BOS: Includes volume spikes, RSI divergence (M1), and Break of Structure (BOS) for both M15 & H1.
Ultra-clean chart: Only valid signals/alerts shown; no spam or visual clutter.
Full dashboard with all signals and context, always visible bottom-right.
Best used for:
Forex, Gold/Silver, US indices, and crypto
Scalping/intraday with fast, clear decisions based on multi-factor SMC logic
Usage:
Add to your chart, monitor the dashboard for valid setups, and trade only when multiple factors align for high-probability entries.
How to Use the PRO SMC DASHBOARD
1. Add the Script to Your Chart:
Apply the indicator to your favorite Forex, Gold, crypto, or indices chart (best on M1, M5, or M15 for entries).
2. Read the Dashboard (Bottom Right):
The dashboard shows real-time information from multiple timeframes and key SMC filters, including:
Trend (M1, M5, M15, H1, H4):
Arrows show up (↑) or down (↓) trend for each timeframe, based on EMA.
Momentum (RSI M1):
Shows “Strong Up,” “Strong Down,” or “Neutral” plus the current RSI value.
RSI (H1):
Higher timeframe momentum confirmation.
ATR State:
Indicates current volatility (High, Normal, Low).
Session:
Detects if the market is in London, NY, or Asia session (based on UTC).
HTF S/D Zone:
Shows the nearest high timeframe Supply or Demand zone, its timeframe (M15, H1, H4), and exact pip distance.
Fakeout (last 3):
Detects recent false breakouts—if there are multiple fakeouts, potential for reversal is higher.
FVG (Fair Value Gap):
Indicates direction and distance to the nearest FVG (Above/Below).
Bias:
“Strong Buy,” “Strong Sell,” or “Neutral”—multi-timeframe, momentum, and volatility filtered.
Inducement:
Alerts for possible “stop hunt” or liquidity grab before reversal.
BOS (Break of Structure):
Recent or live breaks of market structure (for both M15 & H1).
Liquidity Sweep:
Shows if price just swept a key high/low and then reversed (often key reversal point).
Confluence Score (0-7):
Higher score means more factors align—look for 5+ for strong setups.
Volume Spike:
“YES” appears if the current volume is significantly above average—big players are active!
RSI Divergence:
Bullish or bearish divergence on M1—signals early reversal risk.
Momentum Flip:
“UP” or “DN” appears if RSI M1 crosses the 50 line, confirmed by location and other filters.
Chart Signals (Arrows & Markers):
Flip arrows (up/down) and Liquidity markers only appear when price is at/near a key Supply/Demand zone and confirmed by either a volume spike or strong confluence.
No signal spam:
If you see an arrow or LIQ tag, it’s a truly significant moment!
Suggested Trading Workflow:
Scan the Dashboard:
Is the multi-timeframe trend aligned?
Are you near a major Supply or Demand zone?
Is the Confluence Score high (5 or more)?
Check for Signals:
Is there a Flip or LIQ marker near a Supply/Demand zone?
Is volume spiking or a fakeout just occurred?
Look for Reversal or Continuation:
If there’s a Flip at Demand (with high confluence), consider a long setup.
If there’s a LIQ sweep + flip + volume at Supply, consider a short.
Manage Risk:
Don’t chase every signal.
Confirm with your entry criteria and preferred session timing.
Pro Tips:
Highest confidence trades:
When dashboard signals and chart arrows/markers agree, especially with high confluence and volume spike.
Adapt pip distance filter:
Dashboard is tuned for FX and gold; for other assets, adjust pip-size filter if needed.
Use alerts (if enabled):
Set up custom TradingView alerts for “Flip” or “Liquidity” signals for auto-notifications.
Designed to help you make professional, objective decisions—without chart clutter or second-guessing!
EMA and Dow Theory Strategies🌐 Strategy Description
📘 Overview
This is a hybrid strategy that combines EMA crossovers, Dow Theory swing logic, and multi-timeframe trend overlays. It is suitable for intraday to short-term trading on any asset class: crypto, forex, stocks, and indices.
The strategy provides precise entry/exit signals, dynamic stop-loss and scale-out, and highly visual trade guidance.
🧠 Key Features
・Dual EMA crossover system (applied to both symbol and external index)
・Dow Theory-based swing high/low detection for trend confirmation
・Visual overlay of higher timeframe swing trend (htfTrend)
・RSI filter to avoid overbought/oversold entries
・Dynamic partial take-profit when trend weakens
・Custom stop-loss (%) control
・Visualized trade PnL labels directly on chart
・Alerts for entry, stop-loss, partial exit
・Gradient background zones for swing zones and trend visualization
・Auto-tracked metrics: APR, drawdown, win rate, equity curve
⚙️ Input Parameters
| Parameter | Description |
| ------------------------- | -------------------------------------------------------- |
| Fast EMA / Slow EMA | Periods for detecting local trend via EMAs |
| Index Fast EMA / Slow EMA | EMAs applied to external reference index |
| StopLoss | Maximum loss threshold in % |
| ScaleOut Threshold | Scale-out percentage when trend changes color |
| RSI Period / Levels | RSI period and overbought/oversold levels |
| Swing Detection Length | Number of bars used to detect swing highs/lows |
| Stats Display Options | Toggle PnL labels and position of statistics table |
🧭 About htfTrend (Higher Timeframe Trend)
The script includes a higher timeframe trend (htfTrend) calculated using Dow Theory (pivot highs/lows).
This trend is only used for visual guidance, not for actual entry conditions.
Why? Strictly filtering trades by higher timeframe often leads to missed opportunities and low frequency.
By keeping htfTrend visual-only, traders can still refer to macro structure but retain trade flexibility.
Use it as a contextual tool, not a constraint.
ストラテジー説明
📘 概要
本ストラテジーは、EMAクロスオーバー、ダウ理論によるスイング判定、**上位足トレンドの視覚表示(htfTrend)**を組み合わせた複合型の短期トレーディング戦略です。
仮想通貨・FX・株式・指数など幅広いアセットに対応し、デイトレード〜スキャルピング用途に適しています。
動的な利確/損切り、視覚的にわかりやすいエントリー/イグジット、統計表示を搭載しています。
🧠 主な機能
・対象銘柄+外部インデックスのEMAクロスによるトレンド判定
・ダウ理論に基づいたスイング高値・安値検出とトレンド判断
・上位足スイングトレンド(htfTrend)の視覚表示
・RSIフィルターによる過熱・売られすぎの回避
・トレンドの弱まりに応じた部分利確(スケールアウト)
・**損切り閾値(%)**をカスタマイズ可能
・チャート上に損益ラベル表示
・アラート完備(エントリー・決済・部分利確)
・トレンドゾーンを可視化する背景グラデーション
・勝率・ドローダウン・APR・資産増加率などの自動表示
| 設定項目名 | 説明内容 |
| --------------------- | -------------------------- |
| Fast EMA / Slow EMA | 銘柄に対して使用するEMAの期間設定 |
| Index Fast / Slow EMA | 外部インデックスのEMA設定 |
| 損切り(StopLoss) | 損切りラインのしきい値(%で指定) |
| 部分利確しきい値 | トレンド弱化時にスケールアウトする割合(%) |
| RSI期間・水準 | RSI計算期間と、過熱・売られすぎレベル設定 |
| スイング検出期間 | スイング高値・安値の検出に使用するバー数 |
| 統計表示の切り替え | 損益ラベルや統計テーブルの表示/非表示選択 |
🧭 上位足トレンド(htfTrend)について
本スクリプトには、上位足でのスイング高値・安値の更新に基づく**htfTrend(トレンド判定)が含まれています。
これは視覚的な参考情報であり、エントリーやイグジットには直接使用されていません。**
その理由は、上位足を厳密にロジックに組み込むと、トレード機会の損失が増えるためです。
このスクリプトでは、**判断の補助材料として「表示のみに留める」**設計を採用しています。
→ 裁量で「利確を早める」「逆張りを避ける」判断に活用可能です。
Ultra BUY SELL//@version=5
indicator("Ultra BUY SELL", overlay = false)
// Inputs
src = input(close, "Source", group = "Main settings")
p = input.int(180, "Trend period", group = "Main settings", tooltip = "Changes STRONG signals' sensitivity.", minval = 1)
atr_p = input.int(155, "ATR Period", group = "Main settings", minval = 1)
mult = input.float(2.1, "ATR Multiplier", step = 0.1, group = "Main settings", tooltip = "Changes sensitivity: higher period = higher sensitivty.")
mode = input.string("Type A", "Signal mode", options = , group = "Mode")
use_ema_smoother = input.string("No", "Smooth source with EMA?", options = , group = "Source")
src_ema_period = input(3, "EMA Smoother period", group = "Source")
color_bars = input(true, "Color bars?", group = "Addons")
signals_view = input.string("All", "Signals to show", options = , group = "Signal's Addon")
signals_shape = input.string("Labels", "Signal's shape", options = , group = "Signal's Addon")
buy_col = input(color.rgb(0, 255, 8), "Buy colour", group = "Signal's Addon", inline = "BS")
sell_col = input(color.rgb(255, 0, 0), "Sell colour", group = "Signal's Addon", inline = "BS")
// Calculations
src := use_ema_smoother == "Yes" ? ta.ema(src, src_ema_period) : src
// Source;
h = ta.highest(src, p)
// Highest of src p-bars back;
l = ta.lowest(src, p)
// Lowest of src p-bars back.
d = h - l
ls = ""
// Tracker of last signal
m = (h + l) / 2
// Initial trend line;
m := bar_index > p ? m : m
atr = ta.atr(atr_p)
// ATR;
epsilon = mult * atr
// Epsilon is a mathematical variable used in many different theorems in order to simplify work with mathematical object. Here it used as sensitivity measure.
change_up = (mode == "Type B" ? ta.cross(src, m + epsilon) : ta.crossover(src, m + epsilon)) or src > m + epsilon
// If price breaks trend line + epsilon (so called higher band), then it is time to update the value of a trend line;
change_down = (mode == "Type B" ? ta.cross(src, m - epsilon) : ta.crossunder(src, m - epsilon)) or src < m - epsilon
// If price breaks trend line - epsilon (so called higher band), then it is time to update the value of a trend line.
sb = open < l + d / 8 and open >= l
ss = open > h - d / 8 and open <= h
strong_buy = sb or sb or sb or sb or sb
strong_sell = ss or ss or ss or ss or ss
m := (change_up or change_down) and m != m ? m : change_up ? m + epsilon : change_down ? m - epsilon : nz(m , m)
// Updating the trend line.
ls := change_up ? "B" : change_down ? "S" : ls
// Last signal. Helps avoid multiple labels in a row with the same signal;
colour = ls == "B" ? buy_col : sell_col
// Colour of the trend line.
buy_shape = signals_shape == "Labels" ? shape.labelup : shape.triangleup
sell_shape = signals_shape == "Labels" ? shape.labeldown : shape.triangledown
// Plottings
// Signals with label shape
plotshape(signals_shape == "Labels" and (signals_view == "All" or signals_view == "Buy/Sell") and change_up and ls != "B" and not strong_buy, "Buy signal" , color = colour, style = buy_shape , location = location.belowbar, size = size.normal, text = "BUY", textcolor = color.white, force_overlay=true)
// Plotting the BUY signal;
plotshape(signals_shape == "Labels" and (signals_view == "All" or signals_view == "Buy/Sell") and change_down and ls != "S" and not strong_sell, "Sell signal" , color = colour, style = sell_shape, size = size.normal, text = "SELL", textcolor = color.white, force_overlay=true)
// Plotting the SELL signal.
plotshape(signals_shape == "Labels" and (signals_view == "All" or signals_view == "Strong") and change_up and ls != "B" and strong_buy, "Strong Buy signal" , color = colour, style = buy_shape , location = location.belowbar, size = size.normal, text = "STRONG", textcolor = color.white, force_overlay=true)
// Plotting the STRONG BUY signal;
plotshape(signals_shape == "Labels" and (signals_view == "All" or signals_view == "Strong") and change_down and ls != "S" and strong_sell, "Strong Sell signal" , color = colour, style = sell_shape, size = size.normal, text = "STRONG", textcolor = color.white, force_overlay=true)
// Plotting the STRONG SELL signal.
// Signal with arrow shape
plotshape(signals_shape == "Arrows" and (signals_view == "All" or signals_view == "Buy/Sell") and change_up and ls != "B" and not strong_buy, "Buy signal" , color = colour, style = buy_shape , location = location.belowbar, size = size.tiny, force_overlay=true)
// Plotting the BUY signal;
plotshape(signals_shape == "Arrows" and (signals_view == "All" or signals_view == "Buy/Sell") and change_down and ls != "S" and not strong_sell, "Sell signal" , color = colour, style = sell_shape, size = size.tiny, force_overlay=true)
// Plotting the SELL signal.
plotshape(signals_shape == "Arrows" and (signals_view == "All" or signals_view == "Strong") and change_up and ls != "B" and strong_buy, "Strong Buy signal" , color = colour, style = buy_shape , location = location.belowbar, size = size.tiny, force_overlay=true)
// Plotting the STRONG BUY signal;
plotshape(signals_shape == "Arrows" and (signals_view == "All" or signals_view == "Strong") and change_down and ls != "S" and strong_sell, "Strong Sell signal" , color = colour, style = sell_shape, size = size.tiny, force_overlay=true)
// Plotting the STRONG SELL signal.
barcolor(color_bars ? colour : na)
// Bar coloring
// Alerts
matype = input.string(title='MA Type', defval='EMA', options= )
ma_len1 = input(title='Short EMA1 Length', defval=5)
ma_len2 = input(title='Long EMA1 Length', defval=7)
ma_len3 = input(title='Short EMA2 Length', defval=5)
ma_len4 = input(title='Long EMA2 Length', defval=34)
ma_len5 = input(title='Short EMA3 Length', defval=98)
ma_len6 = input(title='Long EMA3 Length', defval=45)
ma_len7 = input(title='Short EMA4 Length', defval=7)
ma_len8 = input(title='Long EMA4 Length', defval=11)
ma_len9 = input(title='Short EMA5 Length', defval=11)
ma_len10 = input(title='Long EMA5 Length', defval=15)
ma_offset = input(title='Offset', defval=0)
//res = input(title="Resolution", type=resolution, defval="240")
f_ma(malen) =>
float result = 0
if matype == 'EMA'
result := ta.ema(src, malen)
result
if matype == 'SMA'
result := ta.sma(src, malen)
result
result
htf_ma1 = f_ma(ma_len1)
htf_ma2 = f_ma(ma_len2)
htf_ma3 = f_ma(ma_len3)
htf_ma4 = f_ma(ma_len4)
htf_ma5 = f_ma(ma_len5)
htf_ma6 = f_ma(ma_len6)
htf_ma7 = f_ma(ma_len7)
htf_ma8 = f_ma(ma_len8)
htf_ma9 = f_ma(ma_len9)
htf_ma10 = f_ma(ma_len10)
//plot(out1, color=green, offset=ma_offset)
//plot(out2, color=red, offset=ma_offset)
//lengthshort = input(8, minval = 1, title = "Short EMA Length")
//lengthlong = input(200, minval = 2, title = "Long EMA Length")
//emacloudleading = input(50, minval = 0, title = "Leading Period For EMA Cloud")
//src = input(hl2, title = "Source")
showlong = input(false, title='Show Long Alerts')
showshort = input(false, title='Show Short Alerts')
showLine = input(false, title='Display EMA Line')
ema1 = input(true, title='Show EMA Cloud-1')
ema2 = input(true, title='Show EMA Cloud-2')
ema3 = input(true, title='Show EMA Cloud-3')
ema4 = input(true, title='Show EMA Cloud-4')
ema5 = input(true, title='Show EMA Cloud-5')
emacloudleading = input.int(0, minval=0, title='Leading Period For EMA Cloud')
mashort1 = htf_ma1
malong1 = htf_ma2
mashort2 = htf_ma3
malong2 = htf_ma4
mashort3 = htf_ma5
malong3 = htf_ma6
mashort4 = htf_ma7
malong4 = htf_ma8
mashort5 = htf_ma9
malong5 = htf_ma10
cloudcolour1 = mashort1 >= malong1 ? color.rgb(0, 255, 0) : color.rgb(255, 0, 0)
cloudcolour2 = mashort2 >= malong2 ? #4caf4f47 : #ff110047
cloudcolour4 = mashort4 >= malong4 ? #4caf4f52 : #f2364652
cloudcolour5 = mashort5 >= malong5 ? #33ff0026 : #ff000026
//03abc1
mashortcolor1 = mashort1 >= mashort1 ? color.olive : color.maroon
mashortcolor2 = mashort2 >= mashort2 ? color.olive : color.maroon
mashortcolor3 = mashort3 >= mashort3 ? color.olive : color.maroon
mashortcolor4 = mashort4 >= mashort4 ? color.olive : color.maroon
mashortcolor5 = mashort5 >= mashort5 ? color.olive : color.maroon
mashortline1 = plot(ema1 ? mashort1 : na, color=showLine ? mashortcolor1 : na, linewidth=1, offset=emacloudleading, title='Short Leading EMA1', force_overlay=true)
mashortline2 = plot(ema2 ? mashort2 : na, color=showLine ? mashortcolor2 : na, linewidth=1, offset=emacloudleading, title='Short Leading EMA2', force_overlay=true)
mashortline3 = plot(ema3 ? mashort3 : na, color=showLine ? mashortcolor3 : na, linewidth=1, offset=emacloudleading, title='Short Leading EMA3', force_overlay=true)
mashortline4 = plot(ema4 ? mashort4 : na, color=showLine ? mashortcolor4 : na, linewidth=1, offset=emacloudleading, title='Short Leading EMA4', force_overlay=true)
mashortline5 = plot(ema5 ? mashort5 : na, color=showLine ? mashortcolor5 : na, linewidth=1, offset=emacloudleading, title='Short Leading EMA5', force_overlay=true)
malongcolor1 = malong1 >= malong1 ? color.green : color.red
malongcolor2 = malong2 >= malong2 ? color.green : color.red
malongcolor3 = malong3 >= malong3 ? color.green : color.red
malongcolor4 = malong4 >= malong4 ? color.green : color.red
malongcolor5 = malong5 >= malong5 ? color.green : color.red
malongline1 = plot(ema1 ? malong1 : na, color=showLine ? malongcolor1 : na, linewidth=3, offset=emacloudleading, title='Long Leading EMA1', force_overlay=true)
malongline2 = plot(ema2 ? malong2 : na, color=showLine ? malongcolor2 : na, linewidth=3, offset=emacloudleading, title='Long Leading EMA2', force_overlay=true)
malongline3 = plot(ema3 ? malong3 : na, color=showLine ? malongcolor3 : na, linewidth=3, offset=emacloudleading, title='Long Leading EMA3', force_overlay=true)
malongline4 = plot(ema4 ? malong4 : na, color=showLine ? malongcolor4 : na, linewidth=3, offset=emacloudleading, title='Long Leading EMA4', force_overlay=true)
malongline5 = plot(ema5 ? malong5 : na, color=showLine ? malongcolor5 : na, linewidth=3, offset=emacloudleading, title='Long Leading EMA5', force_overlay=true)
fill(mashortline1, malongline1, color=cloudcolour1, title='MA Cloud1', transp=45)
fill(mashortline2, malongline2, color=cloudcolour2, title='MA Cloud2', transp=65)
fill(mashortline4, malongline4, color=cloudcolour4, title='MA Cloud4', transp=65)
fill(mashortline5, malongline5, color=cloudcolour5, title='MA Cloud5', transp=65)
leftBars = input(15, title='Left Bars ')
rightBars = input(15, title='Right Bars')
volumeThresh = input(20, title='Volume Threshold')
//
highUsePivot = fixnan(ta.pivothigh(leftBars, rightBars) )
lowUsePivot = fixnan(ta.pivotlow(leftBars, rightBars) )
r1 = plot(highUsePivot, color=ta.change(highUsePivot) ? na : #FF0000, linewidth=3, offset=-(rightBars + 1), title='Resistance', force_overlay=true)
s1 = plot(lowUsePivot, color=ta.change(lowUsePivot) ? na : #00ff0d, linewidth=3, offset=-(rightBars + 1), title='Support', force_overlay=true)
//Volume %
short = ta.ema(volume, 5)
long = ta.ema(volume, 10)
osc = 100 * (short - long) / long
//For bull / bear wicks
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © divudivu600
// Developer By ALCON ALGO
//telegram : @harmonicryptosignals
//@version = 5
//indicator(shorttitle='Oscillator Vision', title='Alcon Oscillator Vision', overlay=false)
n1 = input(10, 'Channel length')
n2 = input(21, 'Average length')
reaction_wt = input.int(defval=1, title='Reaction in change of direction', minval=1)
nsc = input.float(53, 'Levels About Buys', minval=0.0)
nsv = input.float(-53, 'Levels About Sells', maxval=-0.0)
Buy_sales = input(true, title='Only Smart Buy Reversal')
Sell_sales = input(true, title='Only Smart Sell Reversal')
Histogram = input(true, title='Show Histogarm')
//Trendx = input(false, title='Show Trendx')
barras = input(true, title='Divergence on chart(Bars)')
divregbull = input(true, title='Regular Divergence Bullish')
divregbear = input(true, title='Regular Divergence Bearish')
divhidbull = input(true, title='Show Divergence Hidden Bullish')
divhidbear = input(true, title='Show Divergence Hidden Bearish')
Tags = input(true, title='Show Divergence Lable')
amme = input(false, title='Activar media movil Extra para WT')
White = #FDFEFE
Black = #000000
Bearish = #e91e62
Bullish = #18e0ff
Strong_Bullish = #2962ff
Bullish2 = #00bedc
Blue1 = #00D4FF
Blue2 = #009BBA
orange = #FF8B00
yellow = #FFFB00
LEZ = #0066FF
purp = #FF33CC
// Colouring
tf(_res, _exp, gaps_on) =>
gaps_on == 0 ? request.security(syminfo.tickerid, _res, _exp) : gaps_on == true ? request.security(syminfo.tickerid, _res, _exp, barmerge.gaps_on, barmerge.lookahead_off) : request.security(syminfo.tickerid, _res, _exp, barmerge.gaps_off, barmerge.lookahead_off)
ha_htf = ''
show_ha = input.bool(true, "Show HA Plot/ Market Bias", group="HA Market Bias")
ha_len = input(7, 'Period', group="HA Market Bias")
ha_len2 = input(10, 'Smoothing', group="HA Market Bias")
// Calculations {
o = ta.ema(open, ha_len)
c = ta.ema(close, ha_len)
h1 = ta.ema(high, ha_len)
l1 = ta.ema(low, ha_len)
haclose = tf(ha_htf, (o + h1 + l1 + c) / 4, 0)
xhaopen = tf(ha_htf, (o + c) / 2, 0)
haopen = na(xhaopen ) ? (o + c) / 2 : (xhaopen + haclose ) / 2
hahigh = math.max(h1, math.max(haopen, haclose))
halow = math.min(l1, math.min(haopen, haclose))
o2 = tf(ha_htf, ta.ema(haopen, ha_len2), 0)
c2 = tf(ha_htf, ta.ema(haclose, ha_len2), 0)
h2 = tf(ha_htf, ta.ema(hahigh, ha_len2), 0)
l2 = tf(ha_htf, ta.ema(halow, ha_len2), 0)
ha_avg = (h2 + l2) / 2
// }
osc_len = 8
osc_bias = 100 *(c2 - o2)
osc_smooth = ta.ema(osc_bias, osc_len)
sigcolor =
(osc_bias > 0) and (osc_bias >= osc_smooth) ? color.new(Bullish, 35) :
(osc_bias > 0) and (osc_bias < osc_smooth) ? color.new(Bullish2, 75) :
(osc_bias < 0) and (osc_bias <= osc_smooth) ? color.new(Bearish, 35) :
(osc_bias < 0) and (osc_bias > osc_smooth) ? color.new(Bearish, 75) :
na
// }
nsc1 = nsc
nsc2 = nsc + 5
nsc3 = nsc + 10
nsc4 = nsc + 15
nsc5 = nsc + 20
nsc6 = nsc + 25
nsc7 = nsc + 30
nsc8 = nsc + 35
nsv1 = nsv - 5
nsv2 = nsv - 10
nsv3 = nsv - 15
nsv4 = nsv - 20
nsv5 = nsv - 25
nsv6 = nsv - 30
nsv7 = nsv - 35
nsv8 = nsv - 40
ap = hlc3
esa = ta.ema(ap, n1)
di = ta.ema(math.abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * di)
tci = ta.ema(ci, n2)
wt1 = tci
wt2 = ta.sma(wt1, 4)
direction = 0
direction := ta.rising(wt1, reaction_wt) ? 1 : ta.falling(wt1, reaction_wt) ? -1 : nz(direction )
Change_of_direction = ta.change(direction, 1)
pcol = direction > 0 ? Strong_Bullish : direction < 0 ? Bearish : na
obLevel1 = input(60, 'Over Bought Level 1')
obLevel2 = input(53, 'Over Bought Level 2')
osLevel1 = input(-60, 'Over Sold Level 1')
osLevel2 = input(-53, 'Over Sold Level 2')
rsi = ta.rsi(close,14)
color greengrad = color.from_gradient(rsi, 10, 90, #00ddff, #007d91)
color redgrad = color.from_gradient(rsi, 10, 90, #8b002e, #e91e62)
ob1 = plot(obLevel1, color=#e91e6301)
os1 = plot(osLevel1, color=#00dbff01)
ob2 = plot(obLevel2, color=#e91e6301)
os2 = plot(osLevel2, color=#00dbff01)
p1 = plot(wt1, color=#00dbff01)
p2 = plot(wt2, color=#e91e6301)
plot(wt1 - wt2, color=wt2 - wt1 > 0 ? redgrad : greengrad, style=plot.style_columns)
// fill(p1,p2,color = wt2 - wt1 > 0 ? redgrad: greengrad) // old
fill(p1,p2,color = sigcolor)
// new
fill(ob1,ob2,color = #e91e6350)
fill(os1,os2,color = #00dbff50)
midpoint = (nsc + nsv) / 2
ploff = (nsc - midpoint) / 8
BullSale = ta.crossunder(wt1, wt2) and wt1 >= nsc and Buy_sales == true
BearSale = ta.crossunder(wt1, wt2) and Buy_sales == false
Bullishh = ta.crossover(wt1, wt2) and wt1 <= nsv and Sell_sales == true
Bearishh = ta.crossover(wt1, wt2) and Sell_sales == false
plot(BullSale ? wt2 + ploff : na, style=plot.style_circles, color=color.new(Bearish, 0), linewidth=6, title='BuysG')
plot(BearSale ? wt2 + ploff : na, style=plot.style_circles, color=color.new(Bearish, 0), linewidth=6, title='SellsG')
plot(Bullishh ? wt2 - ploff : na, style=plot.style_circles, color=color.new(Strong_Bullish, 0), linewidth=6, title='Buys On Sale')
plot(Bearishh ? wt2 - ploff : na, style=plot.style_circles, color=color.new(Strong_Bullish, 0), linewidth=6, title='Sells on Sale')
//plot(Histogram ? wt1 - wt2 : na, style=plot.style_area, color=color.new(Blue2, 80), linewidth=1, title='Histograma')
//barcolor(barras == true and Bullishh == true or barras == true and Bearishh == true ? Bullish2 : na)
//barcolor(barras == true and BullSale == true or barras == true and BearSale == true ? Bearish : na)
/////// Divergence ///////
f_top_fractal(_src) =>
_src < _src and _src < _src and _src > _src and _src > _src
f_bot_fractal(_src) =>
_src > _src and _src > _src and _src < _src and _src < _src
f_fractalize(_src) =>
f_top_fractal(_src) ? 1 : f_bot_fractal(_src) ? -1 : 0
fractal_top1 = f_fractalize(wt1) > 0 ? wt1 : na
fractal_bot1 = f_fractalize(wt1) < 0 ? wt1 : na
high_prev1 = ta.valuewhen(fractal_top1, wt1 , 0)
high_price1 = ta.valuewhen(fractal_top1, high , 0)
low_prev1 = ta.valuewhen(fractal_bot1, wt1 , 0)
low_price1 = ta.valuewhen(fractal_bot1, low , 0)
regular_bearish_div1 = fractal_top1 and high > high_price1 and wt1 < high_prev1 and divregbear == true
hidden_bearish_div1 = fractal_top1 and high < high_price1 and wt1 > high_prev1 and divhidbear == true
regular_bullish_div1 = fractal_bot1 and low < low_price1 and wt1 > low_prev1 and divregbull == true
hidden_bullish_div1 = fractal_bot1 and low > low_price1 and wt1 < low_prev1 and divhidbull == true
col1 = regular_bearish_div1 ? Bearish : hidden_bearish_div1 ? Bearish : na
col2 = regular_bullish_div1 ? Strong_Bullish : hidden_bullish_div1 ? Strong_Bullish : na
//plot(title='Divergence Bearish', series=fractal_top1 ? wt1 : na, color=col1, linewidth=2, transp=0)
//plot(title='Divergence Bullish', series=fractal_bot1 ? wt1 : na, color=col2, linewidth=2, transp=0)
plotshape(regular_bearish_div1 and divregbear and Tags ? wt1 + ploff * 1 : na, title='Divergence Regular Bearish', text='Bear', location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(Bearish, 0), textcolor=color.new(White, 0))
plotshape(hidden_bearish_div1 and divhidbear and Tags ? wt1 + ploff * 1 : na, title='Divergence Hidden Bearish', text='H Bear', location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(Bearish, 0), textcolor=color.new(White, 0))
plotshape(regular_bullish_div1 and divregbull and Tags ? wt1 - ploff * 1 : na, title='Divergence Regular Bullish', text='Bull', location=location.absolute, style=shape.labelup, size=size.tiny, color=color.new(Strong_Bullish, 0), textcolor=color.new(White, 0))
plotshape(hidden_bullish_div1 and divhidbull and Tags ? wt1 - ploff * 1 : na, title='Divergence Hidden Bullish', text='H Bull', location=location.absolute, style=shape.labelup, size=size.tiny, color=color.new(Strong_Bullish, 0), textcolor=color.new(White, 0))
/////// Unfazed Alerts //////
////////////////////////////////////////////////-MISTERMOTA MOMENTUM-/////////////////////////////////////
source = input(close)
responsiveness = math.max(0.00001, input.float(0.9, minval=0.0, maxval=1.0))
periodd = input(50)
sd = ta.stdev(source, 50) * responsiveness
var worm = source
diff = source - worm
delta = math.abs(diff) > sd ? math.sign(diff) * sd : diff
worm += delta
ma = ta.sma(source, periodd)
raw_momentum = (worm - ma) / worm
current_med = raw_momentum
min_med = ta.lowest(current_med, periodd)
max_med = ta.highest(current_med, periodd)
temp = (current_med - min_med) / (max_med - min_med)
value = 0.5 * 2
value *= (temp - .5 + .5 * nz(value ))
value := value > .9999 ? .9999 : value
value := value < -0.9999 ? -0.9999 : value
temp2 = (1 + value) / (1 - value)
momentum = .25 * math.log(temp2)
momentum += .5 * nz(momentum )
//momentum := raw_momentum
signal = nz(momentum )
trend = math.abs(momentum) <= math.abs(momentum )
////////////////////////////////////////////////-GROWING/FAILING-//////////////////////////////////////////
length = input.int(title="MOM Period", minval=1, defval=14, group="MOM Settings")
srcc = input(title="MOM Source", defval=hlc3, group="MOM Settings")
txtcol_grow_above = input(#1a7b24, "Above Grow", group="MOM Settings", inline="Above")
txtcol_fall_above = input(#672ec5, "Fall", group="MOM Settings", inline="Above")
txtcol_grow_below = input(#F37121, "Below Grow", group="MOM Settings", inline="Below")
txtcol_fall_below = input(#be0606, "Fall", group="MOM Settings", inline="Below")
ma(source, length, type) =>
switch type
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
typeMA = input.string(title = "Method", defval = "SMA", options= , group="MA Settings")
smoothingLength = input.int(title = "Length", defval = 5, minval = 1, maxval = 100, group="MA Settings")
smoothingLine = ma(delta, smoothingLength, typeMA)
deltaText=(delta > 0 ? (delta > delta ? " MOM > 0 and ▲ Growing, MOM = " + str.tostring(delta , "#.##") :" MOM > 0 and ▼ Falling, MOM = " + str.tostring(delta , "#.##") ) : (delta > delta ? "MOM < 0 and ▲ Growing, MOM = " + str.tostring(delta , "#.##"): " MOM < 0 and ▼ Falling, MOM = " + str.tostring(delta , "#.##")))
oneDay = 24 * 60 * 60 * 1000
barsAhead = 3
tmf = if timeframe.ismonthly
barsAhead * oneDay * 30
else if timeframe.isweekly
barsAhead * oneDay * 7
else if timeframe.isdaily
barsAhead * oneDay
else if timeframe.isminutes
barsAhead * oneDay * timeframe.multiplier / 1440
else if timeframe.isseconds
barsAhead * oneDay * timeframe.multiplier / 86400
else
0
angle(_src) =>
rad2degree = 180 / 3.14159265359
//pi
ang = rad2degree * math.atan((_src - _src ) / ta.atr(14))
ang
emae = angle(smoothingLine)
emaanglestat = emae > emae ? "▲ Growing": "▼ Falling"
deltaTextxxx = "MOM MA/ATR angle value is " + str.tostring(emae, "#.##") + "° and is " + emaanglestat
deltacolorxxx = emae >0 and emae >=emae ? txtcol_grow_above : txtcol_fall_below
// Label
label lpt1 = label.new(time, -30, text=deltaTextxxx , color=deltacolorxxx, xloc=xloc.bar_time, style=label.style_label_left, textcolor=color.white, textalign=text.align_left, size=size.normal)
label.set_x(lpt1, label.get_x(lpt1) + tmf)
label.delete(lpt1 )
txtdeltaColors = (delta > 50 ? (delta < delta ? txtcol_grow_above : txtcol_fall_above) : (delta < delta ? txtcol_grow_below : txtcol_fall_below))
label ldelta1 = label.new(time, 30, text=deltaText , color=txtdeltaColors, xloc=xloc.bar_time, style=label.style_label_left, textcolor=color.white, textalign=text.align_left, size=size.normal)
label.set_x(ldelta1, label.get_x(ldelta1) + tmf)
label.delete(ldelta1 )
Eliora Gold 1min (Heikin Ashi)Eliora -focused trading strategy designed for anything on the 1-minute timeframe using Heikin Ashi candles. This mode combines advanced market logic with structured risk management to deliver smooth, disciplined trade execution.
Key Features:
✅ Trend Confirmation – Aligns with dominant market direction for higher accuracy.
✅ ATR-Based Volatility Filter – Avoids high-risk conditions and chaotic price action.
✅ Candle Strength Logic – Filters weak setups, focusing on strong momentum.
✅ Balanced Risk/Reward – Calculates stop-loss and take-profit dynamically for consistent results.
✅ Cooldown & Overtrade Protection – Limits frequency to maintain trade quality.
This version of Eliora is built for scalpers and intraday traders seeking high-probability entries with graceful exits.
15m EMA 50 CloudDescription:
The 15m EMA 50 Cloud is a simple but powerful tool designed for scalpers and intraday traders who hunt for low timeframe patterns while staying anchored to higher timeframe trend context.
This indicator displays the 50-period EMA and its volatility cloud from the 15-minute chart on any timeframe - including 1m, 3m, or 5m. The cloud adapts dynamically and remains visible even when you zoom into lower timeframes, helping you instantly see whether price is trading above, below or within the 15m trend structure.
Features:
* Plots the 15-minute 50 EMA Cloud on any chart, regardless of your selected timeframe.
* Cloud width is based on 15m price volatility (standard deviation), inspired by the popular "Traders Reality" indicator.
* Option to enable or hide the EMA line for a cleaner look.
* Customizable colors for the cloud fill, border, and EMA line.
* Works with all markets and all symbols.
How to Use:
* Perfect for scalpers who want to spot micro patterns (e.g., on 1m or 3m charts) while keeping
the 15m EMA cloud as a visual "road map".
* Use the cloud as a dynamic support/resistance zone or to define higher timeframe trend bias.
* Combine with your favorite price action or orderflow setups for multi-timeframe confluence.
Settings:
* Toggle EMA line ON/OFF.
* Adjust cloud and border colors for your chart style.
For educational purposes only. This indicator does not provide financial advice or signals. Always use proper risk management.
⚠️ Important Notice
This tool is provided for educational and informational purposes only . It is designed to assist in technical analysis learning and visual chart study.
It is not intended to be used as financial advice, a buy/sell signal, or any form of investment recommendation .
By using this indicator, you acknowledge that all actions you take are your own and you assume full responsibility for any decisions made.
Auto Intelligence Selective Moving Average(AI/MA)# 🤖 Auto Intelligence Moving Average Strategy (AI/MA)
**AI/MA** is a state-adaptive moving average crossover strategy designed to **maximize returns from golden cross / death cross logic** by intelligently switching between different MA types and parameters based on market conditions.
---
## 🎯 Objective
To build a moving average crossover strategy that:
- **Adapts dynamically** to market regimes (trend vs range, rising vs falling)
- **Switches intelligently** between SMA, EMA, RMA, and HMA
- **Maximizes cumulative return** under realistic backtesting
---
## 🧪 materials amd methods
- **MA Types Considered**: SMA, EMA, RMA, HMA
- **Parameter Ranges**: Periods from 5 to 40
- **Market Conditions Classification**:
- Based on the slope of a central SMA(20) line
- And the relative position of price to the central line
- Resulting in 4 regimes: A (Bull), B (Pullback), C (Rebound), D (Bear)
- **Optimization Dataset**:
- **Bybit BTCUSDT.P**
- **1-hour candles**
- **2024 full-year**
- **Search Process**:
- **Random search**: 200 parameter combinations
- Evaluated by:
- `Cumulative PnL`
- `Sharpe Ratio`
- `Max Drawdown`
- `R² of linear regression on cumulative PnL`
- **Implementation**:
- Optimization performed in **Python (Pandas + Matplotlib + Optuna-like logic)**
- Final parameters ported to **Pine Script (v5)** for TradingView backtesting
---
## 📈 Performance Highlights (on optimization set)
| Timeframe | Return (%) | Notes |
|-----------|------------|----------------------------|
| 6H | +1731% | Strongest performance |
| 1D | +1691% | Excellent trend capture |
| 12H | +1438% | Balance of trend/range |
| 5min | +27.3% | Even survives scalping |
| 1min | +9.34% | Robust against noise |
- Leverage: 100x
- Position size: 100%
- Fees: 0.055%
- Margin calls: **none** 🎯
---
## 🛠 Technology Stack
- `Python` for data handling and optimization
- `Pine Script v5` for implementation and visualization
- Fully state-aware strategy, modular and extendable
---
## ✨ Final Words
This strategy is **not curve-fitted**, **not over-parameterized**, and has been validated across multiple timeframes. If you're a fan of dynamic, intelligent technical systems, feel free to use and expand it.
💡 The future of simple-yet-smart trading begins here.
CandleTrack Pro | Pure Price Action Trend Detection CandleTrack Pro | Pure Price Action Trend Detection with Smart Candle Coloring
📝 Description:
CandleTrack Pro is a clean, lightweight trend-detection tool that uses only candle structure and ATR-based logic to determine market direction — no indicators, no overlays, just pure price action.
🔍 Features:
✅ Smart Candle-Based Trend Detection
Uses dynamic ATR thresholds to identify trend shifts with precision.
✅ Doji Protection Logic
Automatically filters indecision candles to avoid whipsaws and false signals.
✅ Dynamic Bull/Bear Color Coding
Bullish candles are colored green, bearish candles are colored red — see the trend instantly.
✅ No Noise, No Lag
No moving averages, no smoothing — just real-time decision-making power based on price itself.
📈 Ideal For:
Price action purists
Scalpers and intraday traders
Swing traders looking for clear visual bias
─────────────────────────────────────────────────────────────
Disclaimer:
This indicator is provided for educational and informational purposes only and should not be considered as financial or investment advice. The tool is designed to assist with technical analysis, but it does not guarantee any specific results or outcomes. All trading and investment decisions are made at your own risk. Past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before making any trading decisions. The author accepts no liability for any losses or damages resulting from the use of this script. By using this indicator, you acknowledge and accept these terms.
─────────────────────────────────────────────────────────────
LANZ Strategy 5.0🔷 LANZ Strategy 5.0 — Intraday BUY Signals, Dynamic Lot Size per Account, Real-Time Dashboard and Smart Execution
LANZ Strategy 5.0 is a powerful intraday tool designed for traders who need a visual-first, data-backed BUY system, enhanced with risk-aware lot size calculation and a real-time performance dashboard. This indicator intelligently detects strong momentum setups and provides visual and statistical clarity throughout the session.
📌 This is an indicator, not a strategy — It does not place trades automatically but provides precise conditions, alerts, and visual guides to support execution.
🧠 Core Logic & Features
BUY Entry Conditions (Signal Engine)
A BUY signal is triggered when:
The current price is above the EMA200 (trend filter)
The last 3 candles are bullish (candle body close > open)
You are within the defined session window (NY time)
When all conditions are met and you haven’t reached the daily trade limit, a signal appears on the chart and an optional alert is triggered.
Operational Hours Filter (NY Time)
You define:
Start time (e.g., 01:15 NY)
End time (e.g., 16:00 NY)
The system only evaluates and executes signals within this period. If a BUY setup occurs outside the window, it’s ignored. The chart is also highlighted with a transparent teal background to visually show active trading hours.
Lot Size Panel with Per-Account Risk Management
Designed for traders managing multiple accounts or capital sources. You can enable up to 5 accounts, each with:
Its own capital
Its own risk percentage per trade
The system uses the defined SL in pips, plus the instrument’s pip value, to calculate the lot size per account. All values are shown in a dedicated panel at the bottom-right, automatically updating with each new trade.
The emojis (🐣🦊🦁🐲🐳) distinguish each account visually.
Trade Visualization with Customizable Lines
When a signal is triggered:
An Entry Point (EP) line is drawn at the candle’s close.
A Stop Loss (SL) line is placed X pips below the entry.
A Take Profit (TP) line is placed Y pips above the entry.
All three lines are fully customizable in style, color, and thickness. You define how many bars the lines should extend.
Outcome Tracking & Real-Time Dashboard
Each trade outcome is measured:
SL hit = –1.00%
TP hit = +3.00%
Manual close = calculated dynamically based on price at close time
Each result is labeled on the chart near its level, and stored.
The top-right dashboard updates in real time:
✅ Number of trades
📈 Cumulative % gain/loss of the day (color-coded)
Alerts You Can Trust:
You’ll get a Buy Alert when a valid signal is formed
You’ll get a Trade Executed Alert when the visual operation is plotted
You’ll get a SL/TP Hit Alert with price and result
You’ll get a Manual Close Alert if the configured time is reached and the trade is still active
⚙️ Step-by-Step Execution Flow
At every bar, the system checks:
Are we within the session time window?
Is price above EMA?
Are the last 3 candles bullish?
✅ If yes:
A BUY signal is plotted
Entry/SL/TP lines are drawn
Lot sizes are calculated and displayed
Trade is added to the daily count
🕐 At the configured Manual Close time (e.g., 16:00 NY):
If the trade is still open, it's closed
A label is added with the exact result in %
💡 Ideal For:
Intraday traders who operate within fixed time sessions
Traders managing multiple accounts or capital pools
Anyone who wants full visual clarity of every decision point
Traders who appreciate dynamic lot size calculation and clean execution tracking
👨💻 Credits:
💡 Developed by: LANZ
🧠 Strategy concept & execution model: LANZ
🧪 Tested on: 1H charts with visual-only execution
📈 Designed for: Clarity, adaptability, and full intraday control
MA Deviation
This indicator visualizes the percentage deviation between up to 3 configurable moving averages (MA), helping traders assess trend momentum and potential overextension.
✅ Key Features
Supports multiple MA types: Choose from SMA, EMA, WMA, RMA, VWMA, and HMA.
Set up to 3 custom MAs with different periods.
Plots the deviation (%) between each pair of selected MAs.
Background color highlights extreme deviations (green = strong positive deviation, red = strong negative deviation).
Data Window flag (1 or 0) shows whether background highlight is active.
⚠️ Notes
Deviation percentages are not predictive, but useful for identifying trend strength or market overheating.
Especially useful for trend analysis, not for exact entry signals.
Even if not all lines are shown, the background color may still appear based on the enabled MA comparisons.
このインジケーターは、3本の移動平均線(MA)の乖離率を視覚化し、相場の過熱感やトレンドの強さを判定するためのツールです。
✅ 主な機能
複数の移動平均タイプに対応:SMA, EMA, WMA, RMA, VWMA, HMAから選択可能。
最大3本の移動平均を自由に設定可能。
それぞれのMA間の乖離率(%)をチャートにプロット。
指定した閾値を超えた時に背景色を表示(緑=乖離が正方向に大きい、赤=負方向に大きい)。
データウィンドウ上で「背景表示フラグ」も確認可能(サインが出ているかどうかが数値で確認できます)。
⚠️ 注意事項
乖離率は過去の価格と比較したものであり、将来の価格を保証するものではありません。
短期トレードよりも、トレンドの強弱や過熱感の把握に適しています。
複数のMAを使用しない場合でも、背景色は他の設定されたMAペアで判定されることにご注意ください。
Advanced Range Theory - ART📊 Advanced Range Theory (ART): The Institutional Blueprint
Stop drawing lines. Start reading the blueprint of the market. Advanced Range Theory (ART) is not another support and resistance indicator; it is a military-grade market structure engine designed to decode the language of institutional capital. It operates on a single, powerful premise: markets move in phases of consolidation and expansion, and the key to anticipation lies in understanding the complete lifecycle of these phases.
ART provides a living, breathing map of the battlefield, identifying institutional accumulation zones and tracking them with unparalleled precision from their inception as "Pending" ranges to their ultimate classification after a breakout. This is your X-ray into the market's skeletal structure.
🔬 THEORETICAL FRAMEWORK: THE ARCHITECTURE OF PRICE ACTION
ART is built on a multi-layered system of logic that moves beyond static levels. It treats ranges as dynamic entities with a narrative—a beginning, a middle, and an end. The core of the system is the dynamic classification engine, which analyzes not just the range, but the character of the price action that resolves it.
1. The Range Lifecycle: From Accumulation to Classification
This is the revolutionary heart of ART. A range's true identity is only revealed by how it is broken.
Phase 1: PENDING (Yellow): A new range is identified based on a period of price consolidation (a "parent" candle followed by a minimum number of "inside" candles). At this stage, it is a neutral zone of potential energy—an area where institutions are likely building positions. It is a question the market has not yet answered.
Phase 2: MITIGATION & CLASSIFICATION: When price breaks out and reaches a calculated extension level, the range is considered "mitigated." At this exact moment, ART analyzes the breakout's DNA to classify the range's true intent:
TYPE 1 - BREAKOUT (Blue): Characterized by a strong, impulsive move with confirming volume. This is a high-conviction breakout, signaling aggressive institutional participation and the likely start of a new trend. It is a statement of intent.
TYPE 2 - REVERSAL (Orange): Occurs when price attempts to break one way but is aggressively rejected, reversing and breaking out the other side. This signals absorption and a "failed auction," often marking significant market turning points.
TYPE 3 - PIVOT (Green): A more balanced breakout, lacking the explosive momentum of a Type 1. This often represents a resolution after a period of indecision or a pivot within a larger trading range.
2. The Hierarchical Map: Source & S/R Levels
ART doesn't just draw boxes; it builds a genealogical map of market structure.
SOURCE LEVEL (Thick Gold Line): This is the "genesis" point—the most recently mitigated range. It acts as the primary point of origin for the current market swing and serves as a critical level for determining overall bias. Price action above the Source is generally bullish; below is bearish.
S/R LEVELS (Cyan Lines): When a range is mitigated, the price level where it broke becomes a key Support/Resistance zone for the future. ART tracks the two most recent S/R levels, as these often act as powerful magnets or rejection points for price.
3. The Multi-Factor Validation Engine
To eliminate noise and focus only on institutionally significant ranges, every potential range must pass a rigorous quality control check:
Time-Based Consolidation: Requires a minimum number of consecutive inside candles (minInsideCandles), ensuring a true period of balance.
Volatility-Based Significance: The range's size must be greater than a multiple of the Average True Range (minRangeSize), filtering out insignificant micro-consolidations.
Participation Confirmation: The parent candle of the range is checked against average volume to ensure there was meaningful activity during its formation.
⚙️ THE COMMAND CONSOLE: CONFIGURING YOUR ART ENGINE
Every input is designed to give you granular control over the detection engine, allowing you to tune ART to any market or timeframe with precision. Each tooltip in the script provides a deep dive, but here is a summary of the core controls.
🎯 ART Detection Engine
Minimum Inside Candles: The soul of the detection algorithm. It defines the minimum number of bars that must be contained within a single "parent" candle to qualify as a range. Higher values (3-4) find major, significant consolidation zones. Lower values (1-2) are more sensitive and will identify shorter-term accumulation patterns.
Extension Multiplier & Fibonacci Extension: These control the profit target projections. The Extension Multiplier uses a simple measured move (e.g., 1.0 = a 1:1 projection of the range's height). The Fibonacci Extension uses the golden ratio (1.618) for harmonically-derived targets.
Mitigation Method (Cross vs. Close): Determines how a breakout is confirmed. Cross is more responsive, triggering as soon as price touches the extension. Close is more conservative, requiring a full candle to close beyond the level, which helps filter out fake-outs from wicks.
Min Range Size (ATR): A crucial noise filter. It ensures that ART ignores tiny, insignificant ranges by requiring a range's height to be a certain multiple of the current market volatility (ATR).
📊 Display & Visual Configuration
These settings give you full control over the visual interface. You can toggle every single element—from the Webb Scanner to the S/R Levels—to create a clean or a comprehensive view. Choose a color theme that suits your charting environment or define a fully custom palette.
🕸️ Webb Analysis Scanner
This is a unique real-time flow analysis tool. It draws dynamic, animated lines from the current price to recent historical points. This visualization helps reveal hidden "tendrils" of momentum and short-term support/resistance that are not immediately obvious, acting as a "sonar" for immediate price flow.
📊 THE ANALYTICS HUB: YOUR DASHBOARD DECODED
The dashboard provides a real-time, at-a-glance intelligence briefing on the current state of market structure as seen by the ART engine.
RANGE METRICS: This section is a "census" of the market's structure. It tells you the total number of ranges identified, how many are still Pending (awaiting a breakout), how many are Unmitigated (active but not yet broken), and how many have been Mitigated (classified and complete).
TYPE BREAKDOWN: This is a powerful gauge of market character. A high count of Type 1 (Breakout) ranges suggests a strong, trending environment. A rising number of Type 2 (Reversal) ranges can signal market exhaustion and potential trend changes. A dominant Type 3 (Pivot) count indicates a balanced, rotational market.
KEY GUIDE: The Large dashboard includes a full legend, so you never have to guess what a line or color represents. It's your built-in user manual.
🎨 DECODING THE BLUEPRINT: A VISUAL INTERPRETATION GUIDE
Every line and color in ART is designed for instant, intuitive understanding.
The Range Lines:
Yellow Lines: A Pending range. This is an active zone of accumulation. Pay close attention.
Colored Lines (Blue/Orange/Green): An unmitigated, classified range. The color tells you its breakout character.
Dotted Lines: A Mitigated range. Its story has been told. These historical levels can still act as support or resistance.
The Identification Zones: These colored boxes appear at a range's origin point after it has been classified. They are the "birth certificate" of the range, permanently marking its type (Breakout, Reversal, or Pivot) and providing an immediate visual history of market behavior.
The Hierarchical Lines:
Thick Gold Line (Source): The most important line on your chart. It is the anchor for your bias.
Cyan Lines (S/R): High-probability decision points. Expect reactions here.
Purple Dotted Lines (Extensions): Logical, calculated profit targets for breaking ranges.
🔧 THE ARCHITECT'S VISION: THE DEVELOPMENT JOURNEY
ART was born from a deep frustration with the static and subjective nature of traditional market structure analysis. Drawing lines by hand is inconsistent, and most indicators are reactive, only confirming what has already happened. The goal was to create a proactive, objective, and dynamic framework that could think about the market in terms of phases and lifecycles.
The breakthrough came from a simple shift in perspective: a range's true character isn't defined when it forms, but by how it resolves. This led to the development of the "post-breakout classification engine," which waits for the market to show its hand before assigning a definitive type. The Webb Scanner was inspired by the desire to visualize the unseen, to create a tool that could feel the immediate "pull" and "push" of price flow. The result is not just an indicator; it is a new language for interpreting price action, built on a foundation of logic, clarity, and precision.
⚠️ RISK DISCLAIMER & BEST PRACTICES
Advanced Range Theory is a professional-grade analytical tool designed to enhance a trader's decision-making process. It does not provide direct buy or sell signals. The levels and classifications it generates are based on historical price action and mathematical probabilities. All trading involves substantial risk, and past performance is not indicative of future results. Always use this tool in conjunction with a robust risk management plan.
"I fear not the man who has practiced 10,000 kicks once, but I fear the man who has practiced one kick 10,000 times."
— Dskyz, Trade with insight. Trade with anticipation.
— Bruce Lee
MP MTF FVG/IFVG/BPRMP MTF FVG/IFVG/BPR — Script Description
Overview:
The “MP MTF FVG/IFVG/BPR” indicator is a multi-timeframe (MTF) trading tool that automatically identifies and visualizes three key Smart Money Concepts (SMC) price imbalances:
FVG (Fair Value Gap)
IFVG (Improved/Mitigated Fair Value Gap)
BPR (Balanced Price Range)
The script allows traders to monitor these liquidity zones across multiple custom timeframes (up to 6), helping them spot high-probability trade setups and market structure shifts. Designed for intraday and swing traders, it adapts to any market—forex, stocks, indices, or crypto.
Key Features:
Multi-Timeframe Support:
Select up to 6 different timeframes for simultaneous analysis.
Toggle visibility, set custom max number of imbalances to show per TF, and choose custom colors for each type and timeframe.
FVG Detection:
Automatically marks Fair Value Gaps (price imbalances where rapid moves may leave “inefficiency” between candles), highlighting both bullish and bearish gaps.
IFVG Identification:
Optionally marks mitigated or improved FVGs based on user logic or additional filters, to highlight areas where imbalances have been partially filled.
BPR Highlighting:
Detects and draws Balanced Price Ranges—zones where price efficiently rebalances after filling a previous gap or sweep.
Visualization:
Draws clean colored boxes/lines for each zone, with options for border style, fill opacity, and label display (including timeframe tags).
Option to enable or disable the midline for BPRs.
Performance Optimization:
Limits max active boxes/lines per TF to prevent chart clutter or performance lag.
Works Only On Closed Bars:
The indicator is designed to avoid drawing liquidity zones on unfinished candles, ensuring only valid, confirmed imbalances are shown.
Use Cases:
Identify high-probability entry/exit zones based on institutional trading concepts.
Spot potential reversal, retracement, or continuation areas.
Combine with your own execution model or other SMC tools for more robust strategies.
Parameters:
Enable/disable each timeframe (TF1–TF6)
Custom timeframe selection for each
Max FVGs, IFVGs, BPRs per TF
Custom color for each type/timeframe
Optional BPR midline and color
Notes:
This script is for educational purposes and should be used with risk management.
For best results, combine with additional confirmation signals and trade planning.
MTF Trend Table - Manual InputMTF Trend Table - Manual Input
Description:
This indicator displays a simple and clear multi-timeframe (MTF) trend table in the upper right corner of your chart. You can manually set the current trend direction (Up, Down, or Neutral) for each timeframe: Monthly, Weekly, Daily, 4h, 1h, and 15min. The table shows the status of each timeframe with colored backgrounds—green for Up, red for Down, and gray for Neutral—making it easy to monitor trend alignment across different timeframes at a glance.
Features:
Manual selection of trend direction for each timeframe.
Color-coded status: green (Up), red (Down), gray (Neutral).
Quickly visualize trend alignment across Monthly, Weekly, Daily, 4h, 1h, and 15min.
Table is positioned in the top right corner of the chart for easy reference.
How to use:
Open the indicator settings and select the trend direction for each timeframe based on your own analysis. Use this tool as a visual aid to track and confirm trend bias in your trading system.
T3MA Ribbon Strategy (v6 - Fixed HA) by LKALGOT3MA Ribbon Strategy (v6) by LKALGO
The T3MA Ribbon Strategy helps you catch trends with confidence!
It combines a fast and slow T3 moving average to create a color-filled ribbon that clearly shows bullish (green) and bearish (red) momentum.
✅ Key features:
Smooth trend signals using powerful T3 MAs
Optional Heikin Ashi smoothing for even cleaner trends
Simple, clear BUY and SELL signals on the chart
Alerts included for easy automation
How it works:
Enter long when the ribbon turns green (fast T3 crosses above slow T3)
Exit when it turns red (fast T3 crosses below slow T3)
Works on all timeframes and markets. Perfect for traders who want a simple but effective trend-following system.
Liquidity Swings [Nix]Liquidity Swings Indicator!
It marks recent swing highs and lows on the chart using lines and labels.
Another great feature is that it tracks whether those swing levels are SWEPT (price crosses them again) and either:
Removes swept levels, or
Fades them to indicate they’ve been taken.
You can customize:
Number of swings shown.
Colors, styles, and visibility of lines/labels.
Whether to show highs, lows, or both.
Useful for liquidity analysis.
Usually when these special swings are swept, you can consider moving stops to BE. This is because there should be enough stop losses at the swing points to liquidate others and give more fuel to your trade direction!
Drunken Bird Inspiration for the support and resistance plateau lines came from AnotherDAPTrader.
The TSL Drunken Bird is an enhanced technical analysis tool for swing traders on TradingView, based on the original Accurate Swing Trading System by ceyhun. It generates buy and sell signals when price crosses a dynamic Trailing Stop Loss (TSL) level derived from recent highs and lows. This version introduces plateau detection for support and resistance lines, dynamic label expiration to reduce clutter, customizable line styles and decay, and improved HTF confluence for trend-aligned trading. Visual elements include signal labels, horizontal lines, a colored TSL plot, and optional bar/background coloring. Alerts are available for buy/sell crossovers, making it suitable for assets like NASDAQ E-mini futures, stocks, forex, and more.
This script adapts and expands upon ceyhun's original codetradingview.com, adding significant features such as tolerance-based plateau identification for support/resistance, label management with timeframe-aware expiration (~7 days), cross-count decay for lines, and expanded customization options. Inspiration for the support and resistance plateau lines came from AnotherDAPTrader. Released under the Mozilla Public License 2.0.Key
Features
Swing Signals: "BUY" and "SELL" labels on price crossovers/crossunders of the TSL, with a user-defined lookback (default 3).
HTF Confluence: Filters signals based on higher timeframe trend (e.g., "EXIT LONG" instead of "SELL" if HTF is bullish); toggleable.
HTF Options: Select from 5m, 15m, 30m, 1h, 4h, Daily, Weekly, or Monthly.
Plateau Detection: Identifies flat highs/lows (with tolerance) for resistance/support lines, plotted as dotted/solid/dashed with customizable colors, thickness, and decay after crosses (default 2).
Horizontal Lines: Green (buy) and red (sell) lines at signal closes, extending right until crossed; toggle between short (no extension limit) or long visualization.
TSL Visualization: Colored line (green if close >= TSL, red otherwise) for dynamic levels.
Bar/Background Coloring: Optional green/red coloring based on price vs. TSL.
Label Expiration: All labels (signals and plateaus) auto-delete after ~7 days (timeframe-adjusted, default 1008 bars).
Alerts: Triggers for "Buy Signal" and "Sell Signal" on crossovers.
How to Use
Add to Chart: Paste the Pine Script into TradingView's editor and add to your chart.
Configure Settings:
Swing: Lookback for highs/lows (min 1).
Plateau Tolerance: Flatness allowance (default 0.0).
Use HTF Confluence: Enable for trend filtering.
Higher Time Frame: Choose timeframe string.
Barcolor/Bgcolor: Toggle coloring.
Show Plateau Lines: Enable support/resistance.
Line Styles/Colors/Thickness: Customize buy/sell and plateau visuals.
Plateau Line Decay: Crosses before stopping extension.
Label Expiration: Bars for auto-deletion (~7 days).
Interpret Elements:
Labels: "BUY"/"SELL" (green/red), "EXIT SHORT"/"EXIT LONG" (orange) on signals; "Res"/"Sup" on plateaus.
Lines: Extend right until conditions met (cross for buy/sell, decay threshold for plateaus).
TSL Plot: Monitors trend shifts.
Set Alerts: Use "Buy Signal" or "Sell Signal" conditions for notifications.
Testing: Apply to volatile assets; adjust Swing for signal frequency, tolerance for plateau sensitivity.
Ideal Use Cases
Swing trading on 1m–1h charts for entries/exits aligned with HTF trends.
Identifying support/resistance in ranging markets via plateaus.
Scalping with short lookbacks or longer swings with HTF enabled.
Manual or alert-based trading on futures, stocks, or forex.
Why It's Valuable
This indicator builds on ceyhun's core TSL logic with practical enhancements for modern trading: clutter reduction via expiration/decay, visual customization, and plateau-based S/R for better context. It promotes disciplined, trend-aware decisions while maintaining simplicity.
Note: Optimized for any timeframe/asset; test in demo. Not financial advice—use with risk management.
Info TableOverview
The Info Table V1 is a versatile TradingView indicator tailored for intraday futures traders, particularly those focusing on MESM2 (Micro E-mini S&P 500 futures) on 1-minute charts. It presents essential market insights through two customizable tables: the Main Table for predictive and macro metrics, and the New Metrics Table for momentum and volatility indicators. Designed for high-activity sessions like 9:30 AM–11:00 AM CDT, this tool helps traders assess price alignment, sentiment, and risk in real-time. Metrics update dynamically (except weekly COT data), with optional alerts for key conditions like volatility spikes or momentum shifts.
This indicator builds on foundational concepts like linear regression for predictions and adapts open-source elements for enhanced functionality. Gradient code is adapted from TradingView's Color Library. QQE logic is adapted from LuxAlgo's QQE Weighted Oscillator, licensed under CC BY-NC-SA 4.0. The script is released under the Mozilla Public License 2.0.
Key Features
Two Customizable Tables: Positioned independently (e.g., top-right for Main, bottom-right for New Metrics) with toggle options to show/hide for a clutter-free chart.
Gradient Coloring: User-defined high/low colors (default green/red) for quick visual interpretation of extremes, such as overbought/oversold or high volatility.
Arrows for Directional Bias: In the New Metrics Table, up (↑) or down (↓) arrows appear in value cells based on metric thresholds (top/bottom 25% of range), indicating bullish/high or bearish/low conditions.
Consensus Highlighting: The New Metrics Table's title cells ("Metric" and "Value") turn green if all arrows are ↑ (strong bullish consensus), red if all are ↓ (strong bearish consensus), or gray otherwise.
Predicted Price Plot: Optional line (default blue) overlaying the ML-predicted price for visual comparison with actual price action.
Alerts: Notifications for high/low Frahm Volatility (≥8 or ≤3) and QQE Bias crosses (bullish/bearish momentum shifts).
Main Table Metrics
This table focuses on predictive, positional, and macro insights:
ML-Predicted Price: A linear regression forecast using normalized price, volume, and RSI over a customizable lookback (default 500 bars). Gradient scales from low (red) to high (green) relative to the current price ± threshold (default 100 points).
Deviation %: Percentage difference between current price and predicted price. Gradient highlights extremes (±0.5% default threshold), signaling potential overextensions.
VWAP Deviation %: Percentage difference from Volume Weighted Average Price (VWAP). Gradient indicates if price is above (green) or below (red) fair value (±0.5% default).
FRED UNRATE % Change: Percentage change in U.S. unemployment rate (via FRED data). Cell turns red for increases (economic weakness), green for decreases (strength), gray if zero or disabled.
Open Interest: Total open MESM2 futures contracts. Gradient scales from low (red) to high (green) up to a hardcoded 300,000 threshold, reflecting market participation.
COT Commercial Long/Short: Weekly Commitment of Traders data for commercial positions. Long cell green if longs > shorts (bullish institutional sentiment); Short cell red if shorts > longs (bearish); gray otherwise.
New Metrics Table Metrics
This table emphasizes technical momentum and volatility, with arrows for quick bias assessment:
QQE Bias: Smoothed RSI vs. trailing stop (default length 14, factor 4.236, smooth 5). Green for bullish (RSI > stop, ↑ arrow), red for bearish (RSI < stop, ↓ arrow), gray for neutral.
RSI: Relative Strength Index (default period 14). Gradient from oversold (red, <30 + threshold offset, ↓ arrow if ≤40) to overbought (green, >70 - offset, ↑ arrow if ≥60).
ATR Volatility: Score (1–20) based on Average True Range (default period 14, lookback 50). High scores (green, ↑ if ≥15) signal swings; low (red, ↓ if ≤5) indicate calm.
ADX Trend: Average Directional Index (default period 14). Gradient from weak (red, ↓ if ≤0.25×25 threshold) to strong trends (green, ↑ if ≥0.75×25).
Volume Momentum: Score (1–20) comparing current to historical volume (lookback 50). High (green, ↑ if ≥15) suggests pressure; low (red, ↓ if ≤5) implies weakness.
Frahm Volatility: Score (1–20) from true range over a window (default 24 hours, multiplier 9). Dynamic gradient (green/red/yellow); ↑ if ≥7.5, ↓ if ≤2.5.
Frahm Avg Candle (Ticks): Average candle size in ticks over the window. Blue gradient (or dynamic green/red/yellow); ↑ if ≥0.75 percentile, ↓ if ≤0.25.
Arrows trigger on metric-specific logic (e.g., RSI ≥60 for ↑), providing directional cues without strict color ties.
Customization Options
Adapt the indicator to your strategy:
ML Inputs: Lookback (10–5000 bars) and RSI period (2+) for prediction sensitivity—shorter for volatility, longer for trends.
Timeframes: Individual per metric (e.g., 1H for QQE Bias to match higher frames; blank for chart timeframe).
Thresholds: Adjust gradients and arrows (e.g., Deviation 0.1–5%, ADX 0–100, RSI overbought/oversold).
QQE Settings: Length, factor, and smooth for fine-tuned momentum.
Data Toggles: Enable/disable FRED, Open Interest, COT for focus (e.g., disable macro for pure intraday).
Frahm Options: Window hours (1+), scale multiplier (1–10), dynamic colors for avg candle.
Plot/Table: Line color, positions, gradients, and visibility.
Ideal Use Case
Perfect for MESM2 scalpers and trend traders. Use the Main Table for entry confirmation via predicted deviations and institutional positioning. Leverage the New Metrics Table arrows for short-term signals—enter bullish on green consensus (all ↑), avoid chop on low volatility. Set alerts to catch shifts without constant monitoring.
Why It's Valuable
Info Table V1 consolidates diverse metrics into actionable visuals, answering critical questions: Is price mispriced? Is momentum aligning? Is volatility manageable? With real-time updates, consensus highlights, and extensive customization, it enhances precision in fast markets, reducing guesswork for confident trades.
Note: Optimized for futures; some metrics (OI, COT) unavailable on non-futures symbols. Test on demo accounts. No financial advice—use at your own risk.
The provided script reuses open-source elements from TradingView's Color Library and LuxAlgo's QQE Weighted Oscillator, as noted in the script comments and description. Credits are appropriately given in both the description and code comments, satisfying the requirement for attribution.
Regarding significant improvements and proportion:
The QQE logic comprises approximately 15 lines of code in a script exceeding 400 lines, representing a small proportion (<5%).
Adaptations include integration with multi-timeframe support via request.security, user-customizable inputs for length, factor, and smooth, and application within a broader table-based indicator for momentum bias display (with color gradients, arrows, and alerts). This extends the original QQE beyond standalone oscillator use, incorporating it as one of seven metrics in the New Metrics Table for confluence analysis (e.g., consensus highlighting when all metrics align). These are functional enhancements, not mere stylistic or variable changes.
The Color Library usage is via official import (import TradingView/Color/1 as Color), leveraging built-in gradient functions without copying code, and applied to enhance visual interpretation across multiple metrics.
The script complies with the rules: reused code is minimal, significantly improved through integration and expansion, and properly credited. It qualifies for open-source publication under the Mozilla Public License 2.0, as stated.