Crypto Risk-Weighted Allocation SuiteCrypto Risk-Weighted Allocation Suite
This indicator is designed to help users explore dynamic portfolio allocation frameworks for the crypto market. It calculates risk-adjusted allocation weights across major crypto sectors and cash based on multi-factor momentum and volatility signals. Best viewed on INDEX:BTCUSD 1D chart. Other charts and timeframes may give mixed signals and incoherent allocations.
🎯 How It Works
This model systematically evaluates the relative strength of:
BTC Dominance (CRYPTOCAP:BTC.D)
Represents Bitcoin’s share of the total crypto market. Rising dominance typically indicates defensive market phases or BTC-led trends.
ETH/BTC Ratio (BINANCE:ETHBTC)
Gauges Ethereum’s relative performance versus Bitcoin. This provides insight into whether ETH is leading risk appetite.
SOL/BTC Ratio (BINANCE:SOLBTC)
Measures Solana’s performance relative to Bitcoin, capturing mid-cap layer-1 strength.
Total Market Cap excluding BTC and ETH (CRYPTOCAP:TOTAL3ES)
Represents Altcoins as a broad category, reflecting appetite for higher-risk assets.
Each of these series is:
✅ Converted to a momentum slope over a configurable lookback period.
✅ Standardized into Z-scores to normalize changes relative to recent behavior.
✅ Smoothed optionally using a Hull Moving Average for cleaner signals.
✅ Divided by ATR-based volatility to create a risk-weighted score.
✅ Scaled to proportionally allocate exposure, applying user-configured minimum and maximum constraints.
🪙 Dynamic Allocation Logic
All signals are normalized to sum to 100% if fully confident.
An overall confidence factor (based on total signal strength) scales the allocation up or down.
Any residual is allocated to cash (unallocated capital) for conservative exposure.
The script automatically avoids “all-in” bias and prevents negative allocations.
📊 Outputs
The indicator displays:
Market Phase Detection (which asset class is currently leading)
Risk Mode (Risk On, Neutral, Risk Off)
Dynamic Allocations for BTC, ETH, SOL, Alts, and Cash
Optional momentum plots for transparency
🧠 Why This Is Unique
Unlike simple dominance indicators or crossovers, this model:
Integrates multiple cross-asset signals (BTC, ETH, SOL, Alts)
Adjusts exposure proportionally to signal strength
Normalizes by volatility, dynamically scaling risk
Includes configurable constraints to reflect your own risk tolerance
Provides a cash fallback allocation when conviction is low
Is entirely non-repainting and based on daily closing data
⚠️ Disclaimer
This script is provided for educational and informational purposes only.
It is not financial advice and should not be relied upon to make investment decisions.
Past performance does not guarantee future results.
Always consult a qualified financial advisor before acting on any information derived from this tool.
🛠 Recommended Use
As a framework to visualize relative momentum and risk-adjusted allocations
For research and backtesting ideas on portfolio allocation across crypto sectors
To help build your own risk management process
This script is not a turnkey strategy and should be customized to fit your goals.
✅ Enjoy exploring dynamic crypto allocations responsibly!
Indicatori e strategie
Tao Bounce & Exit + Rip AlertsTao bounce long and short flags/alerts, plus exit alerts (both 2 and 3 ATR). Also includes "rip" indicators to try to flag when a strong trend is in process but all the Tao entry criteria aren't met.
Multi-Indicator PanelMulti-indicator panel that combines the following into one panel:
RSI2
RSI14
%K (for stochastics)
%D (for stochastics)
ADX
DI+
DI-
MACD
MACD signal
MACD histogram
All can be toggled on/off and parameters can be adjusted in settings.
Hidden Divergence Buy/Sell SignalsHidden divergence Buy/sell signals
Hidden divergence Buy/sell signals
Hidden divergence Buy/sell signals
Hidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signals
MULTI INDICATOR BY DEEPANINDIAThis TradingView strategy combines EMA, SuperTrend, and swing high/low to identify trend breakouts. A long trade is triggered when the previous candle closes above the EMA High and the current candle breaks the prior high. A short trade occurs (if not in Long Only mode) when the opposite happens with the EMA Low. The SuperTrend confirms trend direction, while swing points act as dynamic stop-loss levels. The script includes customizable inputs for EMA lengths, SuperTrend settings, and swing lookback. It helps traders capture strong trends with defined entries and exits using a rules-based, multi-indicator approach.
Single EMA Buy/Sell + Touch + Alerts + Signal Candle Colorsthis is pure buy sell indicator based on ema
you'll use this with the help of volume
risk reward ratio 1:1.5
RSI EMA9 + WMA45The Relative Strength Index (RSI) is one of the most popular momentum oscillators used by traders. It's so widely adopted that every charting software package and professional trading system worldwide includes it as a core indicator. Not only is this indicator included in every charting package, but it's also highly likely to be part of the default settings in every system.
Smooth MTF CloudsThe smoothness of the "clouds" in the script you provided comes from the combination of plotting moving averages (typically EMA or SMA) and using the fill() function to visually create smooth, overlapping areas between two lines. Additionally, EMAs naturally create smoother curves as they respond to price changes in a lagged, less abrupt way compared to traditional plots.
Siyonacci-powerWith this indicator:
Volume momentum volume line filters the trend.
ATR bands control volatility.
You get alerts for volume mismatch.
MSB peak-bottom breakouts are visible.
MACD momentum histogram in the bottom panel confirms the strength of the signal.
SMA Pullback Strategy with Swing SL20 and 200 SMA Pullback Strategy with Swing SL and buy sell signal
Zero Clutter Scalper (ZCS) 🔒//@version=5
indicator("Zero Clutter Scalper (ZCS) 🔒", overlay=true)
// ==== SETTINGS ====
length = input.int(14, title="Momentum Length")
threshold = input.float(5, title="Momentum Threshold")
showSignals = input.bool(true, title="Show Buy/Sell Signals")
enableAlerts = input.bool(true, title="Enable Alerts")
// ==== MOMENTUM CALC ====
mom = close - close
mom_smooth = ta.ema(mom, 5)
// ==== PRICE ACTION CONFIRMATION ====
bullCandle = close > open and close > high
bearCandle = close < open and close < low
// ==== CONDITIONS ====
buyCond = mom_smooth > threshold and bullCandle
sellCond = mom_smooth < -threshold and bearCandle
// ==== PLOTTING ====
plotshape(showSignals and buyCond ? low : na, title="Buy Signal", location=location.belowbar, color=color.lime, style=shape.labelup, text="BUY")
plotshape(showSignals and sellCond ? high : na, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// ==== ALERTS ====
alertcondition(buyCond and enableAlerts, title="ZCS Buy Alert", message="ZCS Buy Signal on {{ticker}} ({{interval}})")
alertcondition(sellCond and enableAlerts, title="ZCS Sell Alert", message="ZCS Sell Signal on {{ticker}} ({{interval}})")
DIP BUYING by HAZEREAL BUY THE DIP - Educational Price Movement Indicator
This technical indicator is designed for educational purposes to help traders identify potential price reversal opportunities in equity markets, particularly focusing on NASDAQ-100 index tracking instruments and technology sector ETFs.
Key Features:
Monitors price movements relative to recent highs over customizable lookback periods
Identifies two distinct price decline thresholds: standard (5%+) and extreme (12.3%+)
Visual signals with triangular markers and background color zones
Real-time data table showing current metrics and status
Customizable alert system with webhook-ready JSON formatting
Clean overlay design that doesn't obstruct price action
How It Works:
The indicator tracks the highest price within a specified lookback period and calculates the percentage decline from that high. When price drops below the minimum threshold, it generates visual buy signals. The extreme threshold triggers enhanced alerts for more significant market movements.
Best Use Cases:
Educational analysis of market volatility patterns
Identifying potential support levels during market corrections
Studying historical price behavior around significant declines
Risk management and position sizing education
Important Note: This is a technical analysis tool for educational purposes only. All trading decisions should be based on comprehensive analysis and appropriate risk management. Past performance does not guarantee future results.
Fair Value Gap [Custom]📌 FVG Indicator – Smart Money Concepts Tool
This script is based on Smart Money Concepts (SMC) and automatically detects and marks Fair Value Gaps (FVG) on the chart, helping traders identify unbalanced price areas left behind by institutional moves.
🧠 What is an FVG?
An FVG (Fair Value Gap) is the price gap formed when the market moves rapidly, leaving behind a candle range where no trading occurred — typically between Candle 1’s high and Candle 3’s low (in a three-candle pattern). These gaps often signal imbalance, created during structural breaks or liquidity grabs, and may act as retrace zones or entry points.
🛠 Features:
✅ Automatically detects and highlights FVG zones (high-low range)
✅ Differentiates between open (unfilled) and closed (filled) FVGs
✅ Adjustable timeframe settings (works best on 1H–4H charts)
✅ Option to toggle display of filled FVGs
✅ Great for identifying pullback entries, continuation zones, or reversal setups
💡 Recommended Use:
After BOS/CHoCH, watch for price to return to the FVG for entry
Combine with Order Blocks and liquidity zones for higher accuracy
Best used as part of an ICT or SMC-based trading system
CCI Trading SystemCCI Trading System with Signal Bar Coloring
Overview
This indicator combines the classic Commodity Channel Index (CCI) oscillator with visual signal detection and bar coloring to help traders identify potential momentum shifts and trading opportunities.
Features
CCI Oscillator Display: Shows CCI values in a separate pane with customizable period length
Adjustable Thresholds: User-defined buy and sell levels (default: -100 buy, +100 sell)
Visual Signal Detection: Triangle markers indicate crossover points
Bar Coloring: Highlights only the bars where actual buy/sell signals occur
Zone Highlighting: Background colors show overbought/oversold conditions
Real-time Information Table: Displays current CCI value, thresholds, and signal status
Built-in Alerts: Notification system for signal generation
How It Works
The indicator generates signals based on CCI threshold crossovers:
Buy Signal: Triggered when CCI crosses above the buy threshold (lime bar coloring)
Sell Signal: Triggered when CCI crosses below the sell threshold (red bar coloring)
Input Parameters
CCI Length: Period for CCI calculation (default: 20)
Buy Threshold: Level for buy signal generation (default: -100)
Sell Threshold: Level for sell signal generation (default: +100)
Enable Bar Coloring: Toggle for chart bar coloring
Show Signals: Toggle for signal markers
Usage Guidelines
Adjust thresholds based on your trading timeframe and volatility preferences
Use in conjunction with other technical analysis tools for confirmation
Consider market context and trend direction when interpreting signals
The -200/+200 levels serve as additional reference points for extreme conditions
Educational Purpose
This indicator is designed for educational and analysis purposes. It demonstrates how CCI can be used to identify potential momentum shifts in price action. The visual elements help traders understand the relationship between CCI values and price movements.
Risk Disclaimer
This indicator is a technical analysis tool and does not guarantee profitable trades. Past performance does not indicate future results. Always conduct your own analysis and consider risk management principles. Trading involves substantial risk of loss and is not suitable for all investors.
Technical Notes
Uses Pine Script v5
Plots CCI with standard deviation-based calculation
Includes crossover/crossunder functions for signal generation
Features conditional bar coloring for signal visualization
Incorporates alert conditions for automated notifications
This script is open source and available for modification and educational use.
minchang volume tradingCondition
Point color
Volume ≥ 3× MA(24)
Violet
Volume ≥ 1.5× MA(24)
Red
Volume < 1.5× MA(24) & bullish
White
Volume < 1.5× MA(24) & bearish
Black
YTPBTC1HATRSSADXTitle:
High-Precision Breakout ATR Trailing Strategy with ADX Filtering for BTC 1H
Description:
YTPBTC1HATRSSADX is a precision-engineered 1-hour BTC breakout strategy utilizing adaptive ATR-based stop systems and optional ADX filtering to enhance trade quality and dynamic risk management. The system enters positions upon confirmed breakouts above/below N-period highs/lows, while aligning with trend conditions determined by a long-term RMA filter.
Key features:
✅ Adaptive ATR stop management with dual-phase logic: initial stop placement followed by dynamic trailing after reaching profit thresholds.
✅ Optional ADX filtering to confirm directional strength before entry, reducing false signals during choppy markets.
✅ Dynamic pullback-based take-profit system, locking in profits during high volatility conditions without sacrificing upside potential.
✅ Clear on-chart visualization of entry levels, ATR stops, breakout levels, and trend background color for intuitive monitoring.
✅ Fully parameterized for ATR period, multiplier, breakout period, RMA trend period, ADX threshold, and pullback settings to adjust according to market conditions.
This strategy is designed for traders seeking robust trend-following breakout entries while systematically managing risk with ATR and maximizing profit potential through trailing and pullback exit logic. Ideal for BTC perpetual futures and margin trading environments requiring disciplined execution.
Test on BTCUSDTPERP 1H to explore its consistency across different volatility regimes, and adjust parameters to align with your risk appetite and capital allocation strategies.
Low Price RSI CrossoverThis Pine Script indicator is a Multi-Timeframe Low RSI Crossover system that combines three key filtering criteria to identify high-probability buy signals. Here's what it does:
Core Concept
The indicator only generates buy signals when all three conditions are met simultaneously:
Price at Multi-Period Low: Current price must be at or near the lowest point within your selected timeframe (1 week to 5 years, or custom)
RSI Momentum Shift: The smoothed RSI must cross above its signal line (EMA), indicating upward momentum
Below Threshold Entry: Both the RSI and its signal line must be below your threshold level (default 50) when the crossover occurs
Key Features
RSI Smoothing: Uses Hull Moving Average (HMA) to smooth the raw RSI, reducing noise and false signals while maintaining responsiveness.
Flexible Timeframes: Choose from predefined periods (1W, 2W, 3W, 1M, 2M, 3M, 6M, 9M, 1Y, 2Y, 3Y, 5Y) or set a custom number of bars.
Visual Feedback:
Plots the smoothed RSI (blue line) and its signal line (red line)
Shows threshold and overbought levels
Highlights signal bars with green background
Displays tiny green triangles at signal points
Real-time status table showing all conditions
Trading Logic
This is essentially a mean-reversion strategy that waits for:
Price to reach significant lows (value zone)
Momentum to start shifting upward (RSI crossover)
Entry from oversold/neutral territory (below 50 RSI)
Why This Works
By requiring price to be at multi-period lows, you avoid buying during downtrends or sideways chop. The RSI crossover confirms that selling pressure is starting to ease, while the threshold filter ensures you're not buying into overbought conditions.
The combination of these filters should significantly reduce false signals compared to using any single indicator alone.
ArraysAssorted🟩 OVERVIEW
This library provides utility methods for working with arrays in Pine Script. The first method finds extreme values (highest/lowest) within a rolling lookback window and returns both the value and its position. I might extend the library for other ad-hoc methods I use to work with arrays.
🟩 HOW TO USE
Pine Script libraries contain reusable code for importing into indicators. You do not need to copy any code out of here. Just import the library and call the method you want.
For example, for version 1 of this library, import it like this:
import SimpleCryptoLife/ArraysAssorted/1
See the EXAMPLE USAGE sections within the library for examples of calling the methods.
You do not need permission to use Pine libraries in your open-source scripts.
However, you do need explicit permission to reuse code from a Pine Script library’s functions in a public protected or invite-only publication .
In any case, credit the author in your description. It is also good form to credit in open-source comments.
For more information on libraries and incorporating them into your scripts, see the Libraries section of the Pine Script User Manual.
🟩 METHOD 1: m_getHighestLowestFloat()
Finds the highest or lowest float value from an array. Simple enough. It also returns the index of the value as an offset from the end of the array.
• It works with rolling lookback windows, so you can find extremes within the last N elements
• It includes an offset parameter to skip recent elements if needed
• It handles edge cases like empty arrays and invalid ranges gracefully
• It can find either the first or last occurrence of the extreme value
We also export two enums whose sole purpose is to look pretty as method arguments.
method m_getHighestLowestFloat(_self, _highestLowest, _lookbackBars, _offset, _firstLastType)
Namespace types: array
This method finds the highest or lowest value in a float array within a rolling lookback window, and returns the value along with the offset (number of elements back from the end of the array) of its first or last occurrence.
Parameters:
_self (array) : The array of float values to search for extremes.
_highestLowest (HighestLowest) : Whether to search for the highest or lowest value. Use the enum value HighestLowest.highest or HighestLowest.lowest.
_lookbackBars (int) : The number of array elements to include in the rolling lookback window. Must be positive. Note: Array elements only correspond to bars if the consuming script always adds exactly one element on consecutive bars.
_offset (int) : The number of array elements back from the end of the array to start the lookback window. A value of zero means no offset. The _offset parameter offsets both the beginning and end of the range.
_firstLastType (FirstLast) : Whether to return the offset of the first (lowest index) or last (highest index) occurrence of the extreme value. Use FirstLast.first or FirstLast.last.
Returns: (tuple) A tuple containing the highest or lowest value and its offset -- the number of elements back from the end of the array. If not found, returns . NOTE: The _offsetFromEndOfArray value is not affected by the _offset parameter. In other words, it is not the offset from the end of the range but from the end of the array. This number may or may not have any relation to the number of *bars* back, depending on how the array is populated. The calling code needs to figure that out.
EXPORTED ENUMS
HighestLowest
Whether to return the highest value or lowest value in the range.
• highest : Find the highest value in the specified range
• lowest : Find the lowest value in the specified range
FirstLast
Whether to return the first (lowest index) or last (highest index) occurrence of the extreme value.
• first : Return the offset of the first occurrence of the extreme value
• last : Return the offset of the last occurrence of the extreme value
Panchak 369This indicator highlights Panchak Dates based on Vedic astrology, marking specific lunar dates (Tithis) that occur when the Moon transits from Dhanishta to Revati Nakshatra. These days are considered astrologically sensitive and are traditionally avoided for initiating important activities.
doublepattern_dachengLibrary "doublepattern_dacheng"
f_detect_top_bottom(x, sig, color_green, color_red, var_sequence, state)
Parameters:
x (int)
sig (bool)
color_green (color)
color_red (color)
var_sequence (array)
state (TopBottomState)
store
Fields:
dir (series int)
n (series int)
y (series float)
TopBottomState
Fields:
lpt (series int)
prev_lpt (series int)
pph (series float)
ppl (series float)
cpph (series float)
cppl (series float)
ln (series int)
hn (series int)
awaiting_DBC (series int)
awaiting_DTC (series int)
tthresh (series float)
bthresh (series float)
自定义类型定义说明(Type Definitions)
该库定义了三个核心类型(type),用于结构化处理双顶双底形态识别逻辑:
This library defines three custom types to structurally manage double top/bottom pattern detection logic:
store
TopBottomState
f_detect_top_bottom() 函数
// 引入库(请将 {version_code} 替换为具体版本号)
// Import the library (replace {version_code} with the actual version code)
import dachengsuper/doublepattern_dacheng/{version_code} as dp
// ====================== 以下为 M 顶 和 W 底 的检测 开始 ====================
// ====================== Start of M Top and W Bottom Detection ====================
// 用一个 store 类型的动态数组 sequence 保存最近的枢轴点(最多 3 个)
// A dynamic array of type `store` to store recent pivot points (up to 3 points)
var dp.store sequence = array.new()
// 初始化状态对象,用于跟踪当前和历史的顶部/底部状态
// Initialize a TopBottomState object to track current and historical top/bottom state
var dp.TopBottomState state = dp.TopBottomState.new(0, 0, na, na, na, na, na, na, 0, 0, 0.0, 0.0)
// 调用检测函数:检测是否形成了 M 顶 或 W 底
// Call the detection function to check for M Top or W Bottom patterns
= dp.f_detect_top_bottom(x, sig, green, red, sequence, state)
// ====================== M 顶 和 W 底 的检测 结束 ====================
// ====================== End of M Top and W Bottom Detection ====================
// 当 DTC 为 true 时,表示检测到双顶形态
// When DTC is true, it indicates a double top pattern is detected
// 当 DBC 为 true 时,表示检测到双底形态
// When DBC is true, it indicates a double bottom pattern is detected
// 示例:如果需要发送 webhook 信号,请加上 `barstate.isconfirmed` 判断,这样就不会重绘
// Example: To send a webhook signal, use `DTC and barstate.isconfirmed` to avoid repainting
Siyonacci-CheapResult:
Single line %K → colors change depending on the signal
Overbought and oversold zones are indicated by levels 80–20
Orange color appears in indecisive signals
Reverscope 5M🚀 Reverscope 5M – Precision Reversal Engine for BTC Futures
Reverscope 5M is a high-frequency trend reversal strategy, purpose-built for BTC/USDT futures trading on the 5-minute chart.
Rather than following the trend, this system specializes in identifying turning points using a combination of WMA crossovers, 3-bar ATR decline filtering, and a dynamic trailing stop mechanism. It’s designed for traders seeking to exploit short-term overextensions and reversal setups — especially in high-volatility conditions.
⚙️ Technical Features:
WMA8 crossing WMA21: Primary entry trigger
Trigger Threshold: 1.2%: Activates trailing logic after initial profit
Pullback Ratio: 0.6%: Defines trailing stop distance after trigger
Max Loss: 5%: Capital protection on each trade
ATR 3-bar decline filter: Blocks signals during weak or collapsing price structures
Supports both Long and Short positions (with reversal bias)
Compatible with TradingView alerts
(📌 Note: Alert logic and messages will be updated in future versions.)
⚠️ Critical Warnings:
This is a reversal-based strategy, not a trend-following one.
It is optimized to enter against the prevailing trend, so using it in strong trend conditions may lead to consecutive losses.
Designed for futures and leveraged instruments — significant risk is involved.
Always backtest thoroughly with Strategy Tester before using in live markets.
Understand the signal logic, trailing mechanism, and filtering behavior before deploying.