Script_Algo - Double Smoothed CCI Strategy📉 The uniqueness of this non-trending oscillator strategy lies in the combination of two smoothed CCI lines: one signals entry into a position from overbought/oversold zones, and the other serves as a trend filter for entries. The smoothing of the fast and slow CCI lines significantly reduces market noise, allowing the filtering of false signals often generated by the standard CCI.
📚 For those unfamiliar with CCI:
The Commodity Channel Index (CCI) is a momentum-based oscillator used to identify overbought and oversold conditions.
It helps traders spot potential trend reversals or confirm trend strength by comparing the current price to its average over a period of time.
1️⃣ General Principle of Operation
⚡ Fast CCI: Generates main signals when exiting oversold and overbought zones.
📈 Slow CCI: Acts as a trend filter. For long positions, the slow CCI must be above zero (confirmation of an uptrend), and for short positions, it must be below zero (confirmation of a downtrend). This prevents the strategy from opening trades against the dominant trend.
🛡️ Dynamic ATR Stop-Loss: Unlike fixed-percentage stop-losses, a stop tied to the Average True Range (ATR) considers market volatility. During calm periods, the stop will be narrower, allowing for more profit capture. In highly volatile periods, the stop becomes wider, protecting against premature closures caused by noise.
📊 Comprehensive Risk Management: The strategy uses not only a take-profit based on signals (exit into the opposite zone) but also a protective ATR stop-loss and a mechanism to close trades upon receiving an opposite signal (e.g., closing a long when a short signal appears).
💡 Usefulness of the Strategy:
👨💻 For traders: Provides clear, mathematically justified entry and exit signals with built-in loss protection.
📉 For analysts: Visualizes the behavior of the double CCI on a separate panel, allowing study of the interaction of the fast and slow lines and their reaction to levels without mandatory trades.
📚 For learning: An excellent example of combining multiple indicators and capital management tools into a single trading system.
2️⃣ Detailed Algorithm Logic
📥 Long Entry Signals:
The fast smoothed CCI was below the oversold level (oversold_level, e.g., -100) and crossed this level upward (fast_exits_oversold).
The slow CCI at this moment is above zero (confirming an uptrend).
If both conditions are met, a long position is opened.
📤 Long Exit: Happens under one of these conditions:
The fast CCI crosses the overbought level (overbought_level) downward (exit_long).
The price reaches a stop-loss level calculated as entry price - (ATR * multiplier).
An opposite short signal appears (enter_short).
📥 Short Entry Signals:
The fast CCI was above the overbought level (overbought_level, e.g., 100) and crossed this level downward (fast_exits_overbought).
The slow CCI at this moment is below zero (confirming a downtrend).
If both conditions are met, a short position is opened.
📤 Short Exit: Happens under one of these conditions:
The fast CCI crosses the oversold level (oversold_level) upward (exit_short).
The price reaches a stop-loss level calculated as entry price + (ATR * multiplier).
An opposite long signal appears (enter_long).
3️⃣ Default Settings Description
⚙️ General Strategy Settings (strategy):
overlay=false: The indicator is displayed in a separate panel below the chart, not overlaid on it.
default_qty_type=strategy.cash, default_qty_value=1000, initial_capital=100000: The strategy manages a virtual capital of 100,000 USD, using 1,000 USD per trade.
commission_value=0.1, slippage=1: Commission (0.1%) and slippage (1 tick) are considered for more realistic testing.
⚡ Fast CCI (Signal Generator):
Length: 8 (short enough for quick price reactions).
Source: hlc3 (average of High, Low, Close).
Smoothing: WMA (Weighted Moving Average) for smoother results than SMA.
Smoothing Length: 5 (removes part of the noise).
📈 Slow CCI (Trend Filter):
Length: 20 (standard mid-term trend period).
Source: close.
Smoothing: WMA.
Smoothing Length: 21 (even stronger smoothing for a clean trend line).
📊 Levels:
Overbought Level: 100 (classic CCI level).
Oversold Level: -100 (classic CCI level).
🛡️ Stop-Loss (ATR):
ATR Length: 6 (short period for quick adaptation).
ATR Multiplier: 10.0 (very wide stop, designed for long-term trade holding and noise filtering).
💰 As seen in backtests, this strategy shows a steadily growing equity curve with minor drawdowns. On the highly liquid crypto pair XRPUSDT, the algorithm demonstrated a fairly high win rate and relatively high profit factor on a 4-hour timeframe over 4 years, though the overall profit is moderate.
⚠️ Important Notes
Always remember: Strategy results may not repeat in the future.
The market constantly changes, so:
✅ Monitor the situation
✅ Backtest regularly
✅ Adjust settings for each asset
Also remember about possible bugs in any algorithmic trading strategy.
Even if a script is well-tested, no one knows what unpredictable events the market may bring tomorrow.
⚠️ Risk Management:
Do not risk more than 1% of your deposit per trade, otherwise you may lose your account balance, since this strategy works without stop losses.
⚠️ Disclaimer
The author of the strategy does not encourage anyone to use this algorithm and bears no responsibility for any possible financial losses resulting from its application!
Any decision to use this strategy is made personally by the owners of TradingView accounts and cryptocurrency exchange accounts.
📝 Final Notes
This is not the final version. I already have ideas on how to improve it further, so follow me to not miss updates.
🐞 Bug Reports
If you notice any bugs or inconsistencies in my algorithm,
please let me know — I will try to fix them as quickly as possible.
💬 Feedback & Suggestions
If you have any ideas on how this or any of my other strategies can be improved, feel free to write to me. I will try to implement your suggestions in the script.
Wishing everyone good luck and stable profits! 🚀💰
指标和策略
Asset in Every Fiat Currency📌 Description
Asset in Every Fiat Currency is an indicator that expresses the value of any chosen asset across a basket of global fiat currencies.
It uses exchange rates to calculate a weighted aggregate signal, allowing you to see how the asset behaves when priced simultaneously in the world’s most important currencies.
⚖️ Key Features
Choose any asset (default: Gold).
Weighted by major global currencies (USD, EUR, JPY, GBP, CNY, etc.).
Fully customizable weights through user inputs.
Automatic normalization factor for consistent scaling.
🛠️ Use Cases
Compare an asset’s performance beyond the USD lens.
Detect global strength/weakness of an asset in a diversified fiat basket.
Explore alternative ways of viewing asset pricing.
⚠️ Disclaimer: This script is for educational purposes only. It does not constitute financial advice. Always do your own research before making trading decisions.
AMF PG Strategy_v2The AMF PG Strategy (Praetorian Guard) is an advanced trading system designed to seamlessly adapt to market conditions. Its unique structure balances precise entries with intelligent protection, giving traders confidence in both trending and volatility environments.
Key points include:
Adaptive Core (AMF Engine) – A dynamic framework that automatically adjusts for clearer long- and short-term opportunities and generates a robust tracking line.
Praetorian Guard – A built-in protective shield that activates in extreme conditions and helps stabilize performance when markets become turbulent.
Versatility – Effective across multiple timeframes, from scalping to swing trading, without constant parameter adjustments.
Clarity – Clear visual signals and color-coded monitoring for instant decision-making.
This strategy is designed for traders who want more than just entries and exits; it offers a command center for disciplined, adaptable, and resilient trading.
Disclaimer:
It should be noted that no strategy is guaranteed. This strategy does not provide buy-sell-hold advice. Responsibility rests with the user.
Version 2: Bugs overlooked in Version 1 have been corrected and improvements have been made.
BTC 1D — Trend START/END Signals (clean, no repaint)
This strategy is designed primarily for BTC on the daily (1D) timeframe in TradingView.
BUY (start of uptrend)
Fast EMA is above Slow EMA.
Price breaks above the previous Donchian high.
Optional filters (if enabled): volume surge and strong momentum/RSI.
Only one BUY per uptrend—no additional buys until a SELL occurs.
SELL (end of uptrend)
Price falls below the previous Donchian low, or
Price drops below the Slow EMA, or
Momentum flips bearish (DI− > DI+ or RSI ≤ threshold).
One SELL marks the end of the uptrend.
dr.forexy strategy 1“Dear friends, please do not use this strategy on your own! This setup works best on the 5-minute timeframe. I hope it brings you great profits.”
Preston Pysh - BTC Power Law in Any Fiat CurrencyThis tool helps a user understand what the power law suggests the expected annual CAGR is for any currency (can be adjusted in the settings). It also shows the project price (in said fiat currency) for the next ten years.
Parabolic Move Indicator for catching moves with Penny Stocks.
Catch the day’s first big moves! Track premarket gap-ups or gap-downs, then spot early momentum shifts using volume, RSI, VWAP, EMAs, and breakout levels—perfect for acting on strong intraday setups right at market open.
**Description:**
The Parabolic Move Scanner + VWAP Bands + EMAs indicator helps traders identify **high-probability intraday moves**, particularly immediately after market open. It is ideal for stocks that **gap up or down premarket, pull back slightly, and then show renewed strength or weakness** once regular trading begins.
The indicator combines multiple components for precise signals:
* **Relative Volume Filter: ** Highlights bars with unusually high activity to ensure signals are backed by real participation.
* **RSI Momentum Change: ** Detects sudden momentum shifts to identify early strength or weakness.
* **Recent Highs/Lows Breakout: ** Confirms price is breaking short-term resistance or support.
* **VWAP & Standard Deviation Bands: ** Provides intraday trend reference points, with optional daily reset.
* **Exponential Moving Averages (EMAs): ** Tracks trend across short, medium, and long-term intraday periods.
* **Visual Signals: ** Background highlights and horizontal breakout lines make it easy to spot key bars.
* **Alerts: ** Configurable alerts notify you of bullish or bearish parabolic moves.
**Optimal Use Case: **
Use in the first 15–30 minutes after market open at 1 minute Time Frame. Best for **stocks showing a premarket gap followed by a pullback**, then resuming strength (bullish) or weakness (bearish). The combination of **volume, RSI, breakouts, VWAP, and EMAs** ensures you identify the **day’s biggest marktet open moves especially with penny stocks moves** with higher confidence.
---
### **Recommended Settings**
**Component** | **Recommended Setting** | **Description / Purpose**
| **Volume Average Length** | 20 bars | Period for calculating average volume to detect relative spikes. |
| **Volume Multiplier** | 2.0 | Current bar volume must exceed 2× average to signal high activity. |
| **RSI Length** | 7 bars | Short-term RSI period to measure momentum changes. |
| **RSI Change Threshold** | 7 | Minimum RSI change required to trigger momentum signal. |
| **Recent Highs Lookback** | 5 bars | Number of bars to check for short-term breakout levels. |
| **Horizontal Line Length** | 10 bars | Length of horizontal breakout line drawn on the chart. |
| **Horizontal Line Color** | Green (bullish) / Red (bearish) | Visual identification of breakout levels. |
| **Horizontal Line Thickness** | 1 | Line width for breakout visualization. |
| **VWAP Source** | hlc3 | Price source for VWAP calculation. |
| **VWAP Bands Multipliers** | 1×, 2×, 3× | Standard deviation multiples for intraday bands.
| **VWAP Daily Reset** | Enabled | Resets VWAP at the start of each trading day.
| **EMA Lengths** | 9, 13, 20, 33, 50 | Short, medium, and long-term EMAs to track intraday trend. |
| **Enable Bearish Signals** | True | Allows detection of bearish parabolic moves. |
|
ADR LadderAverage Daily Range Indicator.
Buy zone is from +3% to +20%. TP before 50%.
Sell zone is from -3% to -20%. TP before -50%.
Combine with other indicators for confluence especially for support and resistance levels.
EMA/SMA Zones 9, 21, 30, 50, 100, 200 + othersMeant for swing trading on the daily chart, feel free to copy and remove/add sections as you wish (Used chatGPT for a lot of it).
SAP121212 — Close vs VWAP + Optional RSI (Signals)This indicator combines Supertrend, VWAP with bands, and an optional RSI filter to generate Buy/Sell signals.
How it works
Supertrend Flip (ATR-based): Detects when trend direction changes (from bearish to bullish, or bullish to bearish).
VWAP Band Filter: Signals only trigger if the candle close is beyond the VWAP bands:
Buy = Supertrend flips up AND close > VWAP Upper Band
Sell = Supertrend flips down AND close < VWAP Lower Band
Optional RSI Filter:
Buy requires RSI < 20
Sell requires RSI > 80
Can be enabled/disabled in settings.
Features
Choice of VWAP band calculation mode: Standard Deviation or ATR.
Adjustable ATR/StDev length and multiplier for VWAP bands.
Toggle Supertrend, VWAP lines, and Buy/Sell labels.
Alerts included: add alerts on BUY or SELL conditions (use Once Per Bar Close to avoid intrabar signals).
Use
Works best on intraday or higher timeframes where VWAP is relevant.
Use the RSI filter for more selective signals.
Can be combined with your own stop-loss and risk management rules.
⚠️ Disclaimer: This script is for educational and research purposes only. It is not financial advice. Always test thoroughly and trade at your own risk.
My scriptadvanced indicators layered into your existing multi-indicator strategy. This version is built for serious precision and trend validation.
Swing Guardrail — 30-sec Midterm Check (EBITDA Margin & EV/EBITDWhat it does
Before a short-term swing entry, this indicator right-sizes positions by a quick midterm (3–12m) durability screen using two fundamentals:
EBITDA Margin (TTM) → earning power / operational resilience
EV/EBITDA (TTM) → price tag vs earning capacity (payback feel)
A high-contrast table (top-right) shows both metrics and a verdict:
PASS — both meet thresholds → normal size
HALF — only one meets → reduce size
FAIL — neither meets → avoid
Why check “midterm” for a short-term trade?
Short swings still face earnings/news gaps, failed breakouts, and regime shifts. Names with weak margins or stretched valuation tend to break faster and deeper. A 30-sec durability check helps you:
Filter fragile setups (avoid expensive + weakening names)
Stabilize drawdowns (size down when quality/price don’t align)
Keep timing unchanged while improving risk-adjusted returns
Inputs (defaults)
Min EBITDA Margin % (TTM): 8%
Max EV/EBITDA (TTM): 12
Dark chart? High-contrast colors
How to use with a swing system
Get your entry from price/volume (e.g., Ichimoku cloud break, Kijun reclaim, Tenkan>Kijun; or your A/B/C rules).
Run this check only to set size (not timing).
Optional alerts: Once per bar close for PASS / HALF / FAIL.
Size mapping & event guard
PASS → 100% of your planned size
HALF → ~50% size / tighter stops
FAIL → watchlist only
If earnings < ~10 JP business days, drop one tier; ≤3 days → avoid.
Sector guides (tweak as needed)
Software/Internet: Margin ≥ 15%, EV/EBITDA ≤ 18
Industrials/Consumer: Margin ≥ 8%, EV/EBITDA ≤ 12
Retail: Margin ≥ 5–7%, EV/EBITDA ≤ 10–12
Edge cases / substitutions
Banks/Insurers/REITs or net-cash/negative EBITDA: EV/EBITDA may mislead → consider Net Debt/EBITDA or sector metrics (CET1/LTV/DSCR).
Sparse data / fresh listings: numbers may be NA until updates.
Notes & limitations
Data via request.financial() (TTM/most-recent). Some tickers/regions can show NA until fundamentals refresh.
This is a risk-screen / sizing tool, not a buy/sell signal.
Disclaimer
Educational use only. Not investment advice.
日本語
タイトル
スイング用ガードレール―中期“壊れにくさ”30秒チェック(EBITDAマージン & EV/EBITDA, TTM)
概要
短期スイングのエントリー前に、中期(3〜12か月)の耐久性を2指標で素早く確認し、ポジションサイズを決めるためのツールです。
EBITDAマージン(TTM):事業の稼ぐ力・体力
EV/EBITDA(TTM):その体力に対する“値札”(回収年数の感覚)
右上の高コントラスト表に数値と判定を表示:
PASS:両方クリア → 通常サイズ
HALF:片方のみ → サイズ半分
FAIL:両方NG → 見送り
なぜ短期でも“中期”を確認?
短期でも決算・ニュースのギャップ、ブレイク失敗、地合い転換は起きます。マージンが弱い/割高すぎる銘柄は崩れやすく、戻りも鈍い傾向。30秒の耐久性チェックで
脆いセットアップを回避
ドローダウンを平準化(サイズで吸収)
タイミングは変えずに、リスク調整後リターンの改善を狙えます。
入力(既定)
最低EBITDAマージン:8%
最大EV/EBITDA:12
黒背景向け:高コントラスト表示
使い方(スイング手法と併用)
まずは価格シグナル(一目の雲上抜け/基準線回復/転換線>基準線、またはA/B/Cルール)。
本インジの判定でサイズのみ決定(エントリーのタイミングは出しません)。
任意でバー確定アラート(PASS/HALF/FAIL)を設定。
サイズ目安 & イベント抑制
PASS:計画サイズ100%
HALF:約50%(ストップもタイトに)
FAIL:見送り
決算まで≦10営業日なら1段階サイズダウン、≦3営業日は原則見送り。
セクター目安(調整推奨)
ソフト/ネット:マージン 15%以上、EV/EBITDA 18以下
工業/一般消費:マージン 8%以上、EV/EBITDA 12以下
小売:マージン 5〜7%以上、EV/EBITDA 10〜12以下
例外・代替
銀行・保険・REIT/ネットキャッシュ・EBITDAマイナス:EV/EBITDAは適さない場合 → Net Debt/EBITDAやCET1/LTV/DSCR等で補助。
新規上場・データ薄:更新までNAのことあり。
注意
データは request.financial() を使用。更新前はNAの可能性。
本ツールはリスク確認/サイズ調整用で、売買シグナルではありません。
免責
情報提供のみ。投資判断は自己責任で。
Simple TPODisplays price distribution over time using Time Price Opportunities (TPO). Shows Point of Control (POC), Value Area High/Low (VAH/VAL) levels to identify key support/resistance zones and fair value areas. Includes customizable timeframes and price breakout alerts.
TRADE ORBIT:Dual MACD + HEMA TrendThis indicator combines dual MACD histograms with a Harmonic EMA (HEMA) trend overlay to provide comprehensive trend analysis, buy/sell signals, and dynamic support/resistance zones.
Features:
Dual MACD System:
Background Coloring: Uses MACD(100,200,50) histogram to color the chart background:
Green = bullish momentum
Red = bearish momentum
Buy/Sell Signals: Uses MACD(34,144,9) histogram crossovers for trade signals:
BUY Signal: Histogram crosses above zero and background is green
SELL Signal: Histogram crosses below zero and background is red
Signals are plotted as labels on the chart.
HEMA Trend Overlay:
Uses short and long HEMA lines (default 20 & 40) to detect trend direction.
Colors bars dynamically based on trend:
Green = bullish
Red = bearish
Gray = neutral or indecisive
Provides gradient fill between HEMA lines to visually highlight trend strength.
Trend Boxes & Markers:
Bullish/bearish boxes highlight areas of potential support/resistance based on HEMA crossovers.
Markers (▲ / ▼) appear when the price interacts with trend boxes for easy visual confirmation.
Alerts:
HEMA crossovers (bullish/bearish)
Price tests of bullish/bearish boxes
Optionally, can add alerts for MACD BUY/SELL signals.
Visualization:
MACD histograms plotted as columns for reference
Dynamic bar colors reflecting HEMA trend
Combined view gives a multi-layered trend analysis on a single chart.
Use Case:
Ideal for traders who want to filter trades by overall trend (background MACD), time precise entries/exits (MACD signals), and confirm trend strength (HEMA overlay) in a single indicator.
4 DU DINHSample Indicator Introduction (English)
Title:
Adaptive Trend & Momentum Indicator
Short Description:
An adaptive indicator that combines trend detection and momentum confirmation to help identify potential entry and exit points in various markets.
Full Description:
This indicator is designed to provide traders with a clear view of both trend direction and momentum strength. It dynamically adjusts to different market conditions, making it suitable for cryptocurrencies, stocks, and forex.
Main Features:
Trend Identification: Uses adaptive moving averages to detect bullish or bearish market phases.
Momentum Confirmation: Integrates oscillator-based signals to reduce false entries during sideways markets.
Customizable Inputs: Adjustable sensitivity, smoothing factors, and signal thresholds.
Non-repainting Logic: Signals are only confirmed after candle close to avoid misleading entries.
How to Use:
A bullish signal occurs when trend direction turns positive and momentum confirms.
A bearish signal occurs when trend direction turns negative with momentum confirmation.
Recommended for H1 and higher timeframes, but can be tuned for intraday strategies.
⚠️ Disclaimer: This indicator is for educational purposes only. It does not guarantee profits. Always combine with proper risk management and backtesting before trading live.
Delayed X Exit Strategy - Final Versionattempt at a scored lowerhigh, higher lower delayed exit strat
Daily CMO + Volume Intraday Strategy v6 by Subirrmomentum strategy. buy on next hourly candle after signal. target 5%, sl 1%
Higher Lows, Lower Highs & Failures with Signal Quality ScoringAn attempt at a higher low and lower high with scoring
SMA Color Changing W/ Color Smoothing SMA color changing with ability to change settings for smoothing the color changing
ARVELOV ORB + HighlightARVELOV ORB + Highlight
This indicator is designed to identify and visualize the Opening Range Breakout (ORB) for a selected trading session. The ORB is defined as the high and low price range during the first few minutes of the market open. Traders often use this range to spot potential breakout opportunities or gauge early market sentiment.
Key Features:
Customizable ORB Session: Default is 09:30–09:45 (15 minutes), but users can adjust the start and end times.
ORB High and Low Lines: Plots the highest and lowest prices reached during the ORB session.
Highlighted ORB Zone: The area between the ORB high and low is shaded to provide a clear visual of the opening range.
Intraday Timeframe Friendly: Works best on intraday charts with a timeframe equal to or smaller than the ORB duration.
Visual Aid for Breakouts: Helps traders quickly spot when the price breaks above or below the ORB, a common trigger for intraday trading strategies.
How It Works:
When the session starts, the indicator captures the first bar’s high and low as the initial ORB.
As the session progresses, it updates the ORB high and low if new highs or lows occur within the session.
The highlighted rectangle between the ORB high and low makes it easy to see the early trading range at a glance.
Use Case:
Traders can use this indicator to monitor potential breakout levels.
The ORB zone can also act as support/resistance for early intraday trades.
Strong tendence detector - Detector de Fuerte TendenciaThis chart shows when an asset is in a strong uptrend or downtrend. The legend on the left indicates if the RSI is above 62 or below 38 on the monthly, weekly, and daily timeframes. A strong uptrend is confirmed when all three timeframes are above 62, while a strong downtrend is confirmed when they are all below 38. Periods of a strong uptrend are highlighted with a green background, and periods of a strong downtrend are highlighted in red.