週期
壹神指標突破價格進場(進階版+停損線)中文:
壹神指標突破價格進場(進階版+停損線)
此指標專為台股日內與波段交易設計,提供突破訊號、停損線、量能過濾與開盤延遲啟動功能。
請注意:本指標僅供教育與研究使用,未經本人授權請勿盜用。
English:
YiShen Breakout Entry Indicator (Advanced + Stop Line)
This indicator is designed for intraday and swing trading, providing breakout signals, stop lines, volume filters, and session start delay options.
Disclaimer: This script is for educational and research purposes only. Unauthorized use or redistribution is strictly prohibited.
Altcoins Exit Planner [SwissAlgo]Altcoins Exit Planner
Navigating Altcoin Exits: A Strategic Approach: Planning your exits before emotions take over
------------------------------------------------------------------
✅ THE PSYCHOLOGY OF ALTCOIN TRADING
Many traders face recurring challenges when managing altcoin positions:
The Greed Trap : Holding through euphoric rallies, hoping for unrealistic targets, only to watch gains evaporate during market reversals.
The Paralysis Problem : Sitting on large unrealized profits but unsure which assets to exit, when, or how much — leading to inaction.
The FOMO Cycle : Rotating into trending coins too early or too late, often abandoning solid positions prematurely.
Analysis Overload : Consuming endless opinions and indicators without ever forming a clear, actionable exit strategy.
These patterns often stem from a lack of structure and planning . Emotional decision-making in volatile markets can be costly — especially with altcoins.
Developing a systematic framework can help define exit levels in advance , aiming to reduce emotional bias and improve decision clarity. The goal is to build disciplined exit strategies based on predefined logic rather than reactive impulses.
------------------------------------------------------------------
✅ FEATURES & FUNCTIONALITY
This indicator is designed to provide traders with a structured framework for exit planning. It aims to reduce decision-making under pressure by offering a visual roadmap on the chart.
The tool provides an analysis of key data points, including:
Structured Analysis : The indicator evaluates asset strength, identifies potential market phases, and derives potential exit levels from historical price behavior. This analysis may help traders assess whether an asset shows characteristics of strength (e.g., potential for extended targets) or weakness (e.g., early exit signals).
Actionable Information : It generates specific price levels and quantities for consideration as part of a predefined exit strategy.
Proactive Alerts : The system includes configurable alerts that can notify users as prices approach these key levels, allowing time for preparation. This feature is intended to support a shift from reactive trading toward systematic, criteria-based exit planning.
------------------------------------------------------------------
✅ HOW IT WORKS - AUTOMATED ANALYSIS & PLANNING
This indicator is designed to automate key aspects of exit planning that would otherwise require manual effort:
Fibonacci Level Calculation & Plotting : Automatically identifies key historical cycle points (e.g., bear market lows, bull market highs, recent pullbacks) and calculates relevant Fibonacci levels (both "Fib Retracments" from previous cycle ATH to bear market bottom, and "Fib. extensions" - considering major price impulses/waves in current bull market). This may help reduce manual drawing errors and streamline target identification.
Automated Calculation and Plotting of "Fib. Retracement "Levels
(from ATH of previous cycle to bottom in bear market)
Fibonacci retracement levels are a popular tool used in technical analysis to identify potential support and resistance levels in a market. After a significant price move, traders look for the price to "retrace" or pull back to one of several key Fibonacci ratios of the original move before continuing in its original direction. The most common retracement levels are 23.6%, 38.2%, 50%, 61.8%, and 78.6%. These levels are static horizontal lines on a chart, and their predictive power is based on the idea that they are "areas of interest" where a trend might pause or reverse.
Automated Calculation and Plotting of "Fib. Extension" Levels
(Price Impulses/Waves within current Bull Market)
Fibonacci extension levels are used to identify potential price targets or profit zones once a market has moved past its previous high or low. Unlike retracements, which measure a pullback, extensions project how far a trend might continue in the direction of its impulse move. They are typically used to anticipate where a wave or a rally might end and are based on ratios like 127.2%, 161.8%, 261.8%, and sometimes even higher. Extensions are a key tool for traders looking to set price targets for taking profits.
Coin Strength Assessment: Evaluates recovery performance relative to previous cycle peaks and classifies assets into four categories (Weak, Average, Strong, Outlier). Strength ratings may adjust dynamically based on momentum conditions — all derived from price data.
Market Phase Detection : Continuously monitors trend indicators, volume behavior, and altseason dynamics to estimate the current market phase. This may assist in contextualizing exit decisions without requiring manual phase analysis.
Exit Level Generation : Based on the asset’s strength classification and selected strategy (Conservative, Balanced, Aggressive), the system generates sequential exit levels with suggested percentages and quantities. Designed to support structured planning across three stages.
Signal Detection : Tracks multiple conditions — including price extensions, volume surges, momentum shifts, and cycle patterns — to generate alerts when predefined criteria are met.
Emergency Exit Detection : Scans for rare but high-risk scenarios (e.g., cycle top formations with multiple confluences) that may warrant immediate attention. Alerts are designed to highlight potential overextension during volatile phases.
Transfer Alerts : Calculates proximity to key exit zones and may issue early warnings to prepare for execution (e.g., moving assets from cold storage to exchanges), aiming to reduce last-minute decision pressure.
The script operates in two distinct modes:
Coin Analysis Mode Displays automatically-calculated Fibonacci levels, asset strength classification, market phase estimation, and contextual risk factors — designed to support structured analysis.
Exit Plan Mode Generates a customizable exit strategy with calculated price levels, suggested quantities, and potential outcome scenarios — aiming to assist with disciplined planning and reduce emotional bias.
------------------------------------------------------------------
✅ SETUP & INSTALLATION
Step 1: Chart Setup
Add the indicator to your altcoin USD chart (e.g., spot market pairs).
Recommended timeframe: 3 days for signal clarity.
Dark theme suggested for visual contrast.
Step 2: Configure Your Exit Strategy
Open Settings → “Setup Your Exit Plan”
Choose your strategy: Conservative: Prioritizes earlier exits for stricter risk control; Balanced: Combines early and late exits for a mixed approach; Aggressive: Targets later exits, accepting potentially higher volatility.
Input your asset quantity.
(Optional) Set a minimum sell price to block exit signals below your defined threshold.
(Optional) Set a sell-now price to trigger a sell alert when your exit target is reached, bypassing intermediate levels.
Step 3: Choose Display Mode
Coin Analysis Mode: View market conditions, strength classification, Fibonacci levels, and contextual risk insights. Designed to support monitoring and signal validation.
Exit Plan Mode: Displays your structured exit roadmap with suggested price levels, quantities, and visual chart overlays. Focuses on execution and planning.
Step 4: Set Up Alerts (Recommended)
Click the “Alert” button on the chart.
Select “Altcoins Exit Planner” as the condition.
Choose alert type: Planned Exit, Emergency Exit, Transfer Alert, Local Top, Trend Change
Set expiration to “Open-ended”
Configure your preferred notification method.
Alert Types Include:
Planned Exit Alerts: Triggered when suggested exit levels are reached (Exit #1, #2, #3).
Emergency Exit Alerts: Highlight potential cycle tops or full-exit conditions.
Transfer Alerts: Advance notice to prepare for execution (e.g., moving assets to exchanges).
Local Top Alerts: Short-term pullback signals for tactical decisions.
Trend Change Alerts: Indicate potential market phase transitions.
Once configured, the indicator begins analyzing and may notify you when exit conditions align with your selected strategy.
------------------------------------------------------------------
✅ USER INTERFACE
The interface is organized into two primary modes:
1) Coin Analysis Mode
Analysis Table Includes:
Fibonacci levels with price targets and percentage differentials
Market trend status (e.g., Strong Bull, Weakening Bull, Bear Market)
Volume behavior (Normal / Abnormal)
Price extension status (Overextended / Within range)
Altseason detection
Coin strength classification
Reversal risk assessment (Low / Average / High)
Suggested action based on current conditions
Visual Elements:
Bull/Bear trend EMA line
Volume-based candle coloring (overrides default chart candles)
Pivot points for key structural levels
Selectable Fibonacci extension/retracement lines
Background highlighting during altseason periods (potential cycle peak phase)
2) Exit Plan Mode
Exit Plan Table Displays:
Suggested quantity to sell at each exit level
Estimated portfolio value in USD
Structured exit plan with Fibonacci levels, percentages, quantities, and projected amounts
Average exit price calculation
Potential outcome scenarios if all exit levels are reached
Price Lines:
Individual exit level markers with contextual details
Average exit price reference line
Minimum sell price line (if enabled)
Sell-now price line (if enabled)
Signal Indicators:
Blue diamonds: Planned exit levels reached
Red triangles: Cycle top warnings
Orange triangles: Local top signals
These elements are designed to assist with visual interpretation and structured decision-making. All outputs are derived from price data and user-defined settings.
------------------------------------------------------------------
✅ LIMITATIONS
Market Cycle Dependency: This indicator is designed for cryptocurrency market cycles and will not perform similarly in other asset classes or market conditions. Its logic is based on historical crypto behavior, which may not repeat.
Assumption-Based Framework: The methodology relies on assumptions about market cycles, Fibonacci relationships, and altcoin behavior patterns. These assumptions may not hold under future conditions.
User Responsibility
All signals require user interpretation and decision-making.
The indicator provides information, not investment advice.
Signals should be validated with additional analysis.
Position sizing and risk management remain the user's responsibility.
Technical Requirements
Intended for use on the 3-day timeframe.
Designed for altcoin/USD trading pairs.
Requires sufficient historical data for Fibonacci calculations.
May not function properly on newly listed assets with limited price history.
Risk Management Guidelines. Recommended practices include:
Use with limited portions of your portfolio.
Combine with other technical and fundamental tools.
Consider broader market context beyond indicator signals.
Maintain independent stop-loss levels.
Review and adjust settings as market conditions evolve.
Signal Interpretation
Emergency signals highlight conditions that may warrant immediate review.
Planned exits support gradual, structured position reduction.
Transfer alerts provide preparation time before potential execution.
Local top signals may assist short-term tactical decisions.
------------------------------------------------------------------
✅ DISCLAIMER
This indicator is for educational and informational purposes only . It does not constitute financial, investment, or trading advice.
The indicator:
Makes no guarantees about future market performance.
Cannot predict market movements with certainty.
May generate false signals or miss key developments.
Relies on historical patterns that may not repeat.
Should not be used as the sole basis for trading decisions.
Users are responsible for:
Conducting independent research and analysis.
Understanding the risks of cryptocurrency trading.
Making their own investment/divestment decisions.
Managing position sizes and risk exposure appropriately.
Cryptocurrency trading involves substantial risk and may not be suitable for all investors. Past performance does not guarantee future results. Users should only invest what they can afford to lose and consult qualified professionals before making financial decisions.
The indicator’s assumptions may be invalidated by changing market conditions.
By using this tool, users acknowledge these limitations and accept full responsibility for their trading decisions.
Midnight ClosesIndicator uses the 00:00 (midnight) London time as the closing for each daily candle
The subsequent Weekly, Monthly, Quarterly and Yearly closes are also determined from a midnight close time rather than the usual 22:00 (UK time)
The Weekly Closes begin at 00:00 Sunday night / Monday Morning,
The Monthly Closes begin on the 1st at 00:00
and so on...
Session Gold_shield_strategy📌 Indicator Description: Smooth Background Market Sessions
This indicator highlights the three main global trading sessions that shape daily market dynamics:
Asia (soft red)
London (soft yellow)
New York (soft blue)
Each session appears as a transparent, soft-colored background block that dynamically expands as candles form — without interfering with your price action analysis.
At the start of each block, a label with the session’s name is displayed, helping you instantly spot shifts in market activity and volume as each session opens.
🛡️ Excellence as a Core Value — Golden Shield Strategy
At Golden Shield Strategy, we know that success in trading lives in the details.
That’s why this tool was crafted with a clean, functional, and visually balanced design — fully aligned with our philosophy:
“Protection first, profits always.”
This indicator represents our commitment to delivering clear, reliable, and detail-oriented tools that support every trader who strives for consistency and discipline.
📲 Join Our Community
If you value precision, discipline, and a professional approach to trading, follow us on Instagram:
@gold_shield_strategy
Discover exclusive content on risk management, real performance results, and trading psychology — and become part of a community that puts protection first, profits always.
Day of Week by @manoascl Day of Week by @manoascl - version 1.8
One-line summary
This indicator draws vertical lines and labels at 00:00 of your chosen timezone for selected weekdays, helping you see daily structure, spot recurring weekly patterns, and prepare for upcoming trading days.
What it does
Draws vertical lines at 00:00 (calendar midnight) of the selected timezone for chosen weekdays (Mon–Sun).
Optionally adds a weekday label at the start of the day (top/middle/bottom alignment) with a user-defined offset in minutes.
Maintains stable label Y-positions via a configurable lookback window.
Projects future day markers (up to 30) in the same style, optionally filtering to your selected weekdays.
Fully customizable visuals: line color/width/style (solid/dashed/dotted), label background and text colors, label anchoring.
How it works (concepts & calculations)
Day boundary (midnight): Computes dayStartTz = timestamp(timezone, year, month, day, 0, 0, 0) so the boundary is true calendar midnight for the selected TZ.
Day change detection: Uses ta.change(dayStartTz) != 0 to detect the first bar of a new day (non-repainting).
Weekday naming: Determines the weekday using a midday shift (+12h) to avoid edge effects near midnight.
Drawing: When the weekday passes your filter, draws a vertical line (high→low) and an optional label positioned at the start of the day.
Future projection (DST-safe): Rebuilds future markers with timestamp(timezone, Y, M, D + k, 0, 0, 0) so daylight-saving transitions don’t drift.
Stability: Top/middle/bottom label Y-levels are derived from ta.highest/ta.lowest over a user lookback, preventing jitter.
How to use it
Add the indicator to your chart.
In Timezone, pick your region (or choose Custom and type an IANA TZ like Pacific/Tahiti).
Select the weekdays to display (e.g., only trading days, highlight Mondays, etc.).
Choose label position (top/middle/bottom), anchor (left/center/right), and set a minute offset if you want labels slightly inside the day.
Enable future projection to see upcoming day starts for planning around key weekdays (FOMC Wednesdays, NFP Fridays).
Tweak line style/width and colors to match your chart theme.
Practical applications for traders
Intraday: Instantly see where each local-time day begins; segment your session analysis cleanly.
Swing: Emphasize recurring weekdays (e.g., Monday opens, Friday profit-taking).
Event-driven: Pre-mark news-heavy weekdays and preview them with future projection.
Pattern studies: Compare behavior by weekday (range expansion, reversals, gaps) with consistent local-time boundaries.
Limitations
Visual aid only; no trading signals are generated.
Timezone must be chosen explicitly; if you pick a TZ different from your chart’s display, lines will follow the selected TZ by design.
Market holidays and custom sessions are not detected; lines still mark calendar midnight even if the market is closed.
On very small timeframes and long histories, many objects can impact performance—reduce lookback or future count if needed.
This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) creativecommons.org
© @manoascl
Sind_1Active trades visible:
Multiple position boxes với clear risk/reward ratios
R/R từ 3.72 đến 6.86 - impressive ratios
SL placement logic theo volume spike points
Volume confirmation:
Chuông cam X marks tại key rejection/support points
Clear volume backing tại các levels quan trọng
Pattern "hoàn công" trước khi entry
Strategy execution:
Chart này demonstrate exactly what bạn described:
D1 patterns tạo major structure (yellow levels)
Lower TF patterns refine entry zones
Volume spikes confirm institutional activity
CHOCH validation on M1 before entry
Precise SL placement after volume confirmation
The position sizing và profit targets show disciplined approach. Having multiple timeframe confluence với volume backing creates high-probability setups với excellent risk/reward ratios.
PRICE CYCLE X1 - manual modelDEFINITION OF PRICE CYCLE X1:
This is a manual method used to identify price cycles , it acts as a powerful reversal point and if price is able to traverse A CYCLE the PROBABILITY OF PRICE TRAVELLING IN THAT DIRECTION IS HIGH.
This tool is fractal in nature best applied if u combine 2 or 3 cycles at the same time for example :
use cycle 3 and 1 for a weekly bias
if the market is trending it can even act as a daily bias .
The Bigger price of the instrument the BIGGER THE CYCLES IT IS GOING TO NEED , smaller cycles for assets with smaller cycles
BONUS: THE MIDDLE SUB ZONE ( CYCLE 1 IS TREATED AS SUB ZONE IF CYCLE 3 IS USED WITH IT , LIKEWISE FOR ALL CYCLES )ACTS AS A GOOD REVERSAL POINT
385926_smtThis indicator automatically marks intraday time windows between :42 of the hour to :18 of the next hour across all 24 hours with transparent boxes. Each box tracks the highest high and lowest low for that period in real time, updating bar by bar until the window closes. Once closed, the box locks and no longer repaints. The tool also highlights Asia (18:00–02:30) and London (02:30–07:00) sessions with separate boxes. In addition, it compares Nasdaq (MNQ) and S&P (MES) futures, plotting SMT divergence lines when one makes a new high/low while the other does not.
TradeX Universal Algo For All📌 TradeX Universal Algo For All
The TradeX Universal Algo is a powerful, easy-to-use trend-following system that works on all markets and timeframes (Forex, Gold, Crypto, Stocks, Indices).
This algo is built on an ATR-based trailing stop system that dynamically adapts to volatility, giving you clear Buy/Sell signals with minimal noise.
🔑 Key Features
ATR Trailing Stop → Automatically adjusts to market volatility.
Buy & Sell Signals → Plots “Buy Above” and “Sell Below” labels when price crosses the trailing stop.
Bar Coloring → Green bars in bullish trend, red bars in bearish trend.
Custom Sensitivity → Adjust “Key Value” to fine-tune signal frequency.
Multi-Market Compatible → Works seamlessly on Forex, Commodities (XAUUSD, USOIL), Crypto, Indices, and Stocks.
Alerts Ready → Set alerts for Buy/Sell conditions so you never miss an opportunity.
⚙️ Inputs
Key Value (Sensitivity) → Controls how reactive the trailing stop is (default = 3).
ATR Period → Number of bars for ATR calculation (default = 5).
📊 How to Use
Apply the indicator on any chart and timeframe.
Look for Buy Above / Sell Below signals.
Follow the green bars for bullish bias and red bars for bearish bias.
Combine with your own analysis (Price Action, SMC, Supply/Demand, etc.) for best results.
⚠️ Disclaimer: This script is for educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always use proper risk management.
IBOV ShadowEnglish
IBOV Shadow
This indicator is designed to provide a complementary analysis of the Brazilian market, offering an alternative perspective to the traditional IBOV index. It can be used BMFBOVESPA:IBOV , and it operates independently, seeking a correlation with the overall market by calculating based on commodities , global stocks , interest rates , the dollar , and other assets.
What the Indicator Does
The IBOV Shadow acts as a real-time fair price forecast for the Ibovespa . The line it plots represents the value the index should have at that moment, based on multiple market factors. The primary analysis comes from comparing the indicator's line with the actual Ibovespa price:
Underpricing (Upside Potential) : When the IBOV Shadow line is above the Ibovespa's price, it suggests that the market is underpricing the index. The "fair" value is higher than the current one, which may indicate potential for an upward move.
Overpricing (Downside Potential) : When the IBOV Shadow line is below the Ibovespa's price, it suggests that the market is overpricing the index. The "fair" value is lower than the current one, which may indicate that a downward correction could be on the way.
The indicator's line also changes color to signal its own trend: green when it's trending up (a strong market) and red when it's trending down (a weak market).
How to Use It
Capturing Divergences (The Main Point) : The most powerful use of the IBOV Shadow is in identifying divergences . A divergence occurs when the price movement of the Ibovespa and the movement of our indicator are out of sync.
Bullish Divergence : This happens when the Ibovespa's price makes a new low , but the Shadow indicator does not follow, instead making a higher low . This suggests that downward pressure is weakening.
Bearish Divergence : This occurs when the Ibovespa's price makes a new high , but the Shadow indicator fails to do the same, creating a lower high . This is a strong sign that the uptrend is weakening.
Trend Confirmation : Use the line's color as a confirmation tool. If you already have an uptrend in mind, a green line can reinforce your analysis. Likewise, a red line can confirm a downtrend.
Contextual Analysis : This indicator is most effective when used in conjunction with other tools and analyses. Do not use it as your sole decision-making source.
Final Considerations
Remember that this indicator is a supporting tool. The financial market is complex, and no single tool guarantees success. Practice and the use of multiple indicators and strategies are fundamental for a complete analysis.
Fixed Asset TurnoverFixed Asset Turnover (FAT) measures how efficiently a company uses its fixed assets (Property, Plant & Equipment – PPE) to generate revenue. It shows how many times the company “turns over” its fixed assets in a period relative to revenue.
High FAT: Assets are used efficiently; the company generates more revenue per unit of fixed assets.
Low FAT: Fixed assets are underutilized; the company may have invested too much in assets that don’t produce sufficient revenue.
Formula:
Fixed Asset Turnover=Total Revenue/Average Net Fixed Assets
What it tells you:
Indicates asset efficiency in generating sales.
Useful to compare companies within the same industry (because asset intensity varies by sector).
Helps identify whether a company is over-invested in fixed assets or underutilizing them.
How to use it:
Trend Analysis:
Track FAT over time for the same company to see if asset utilization is improving.
Benchmarking:
Compare FAT against competitors or industry averages.
Investment Decisions:
Higher FAT usually suggests more efficient operations, but context matters (e.g., heavy-capital industries naturally have lower FAT).
High Low + BOS/Sweep aaa//@version=5
indicator("High Low + BOS/Sweep", overlay=true, max_lines_count=500, max_labels_count=500)
// Inputs (giữ nguyên các tuỳ chọn của bạn, chỉ bỏ input màu)
offTop = input.int(2, "Offset đỉnh", minval=0)
offBot = input.int(2, "Offset đáy", minval=0)
w = input.int(2, "Độ dày line", minval=1)
styleBosStr = input.string("Solid", "Kiểu line BOS", options= )
styleSweepStr = input.string("Dashed", "Kiểu line Sweep", options= )
showBosLabel = input.bool(true, "Hiện label BOS")
showSweepLabel = input.bool(true, "Hiện label Sweep")
bosLabelText = input.string("BOS", "Text BOS")
sweepLabelText = input.string("SWEEP", "Text Sweep")
labelSizeStr = input.string("tiny", "Kích thước label", options= )
// NEW: display toggles
showPivot = input.bool(true, "Hiện Pivot")
showBosSweep = input.bool(true, "Hiện BOS / Sweep")
// Convert styles / sizes
bosStyle = styleBosStr == "Dashed" ? line.style_dashed : styleBosStr == "Dotted" ? line.style_dotted : line.style_solid
sweepStyle = styleSweepStr == "Dashed" ? line.style_dashed : styleSweepStr == "Dotted" ? line.style_dotted : line.style_solid
lblSize = labelSizeStr == "small" ? size.small : labelSizeStr == "normal" ? size.normal : labelSizeStr == "large" ? size.large : size.tiny
// State vars
c = close
var int lastSignal = 0
var float sHigh = na
var int sHighBar = na
var float sLow = na
var int sLowBar = na
var float confHigh = na
var int confHighBar = na
var float confLow = na
var int confLowBar = na
var line highLine = na
var line lowLine = na
var label highLabel = na
var label lowLabel = na
// === Đánh dấu loại line: 0 = chưa có, 1 = Sweep, 2 = BOS ===
var int highLineType = 0
var int lowLineType = 0
// === Sweep tracking / pending ===
var bool pendingSweepUp = false
var bool pendingSweepDown = false
var int sweepDetectedBarUp = na
var float sweepTargetHighPrice = na
var int sweepTargetHighBar = na
var int sweepDetectedBarDown = na
var float sweepTargetLowPrice = na
var int sweepTargetLowBar = na
// === Track BOS pivots ===
var int lastBOSHighBar = na
var int lastBOSLowBar = na
// Track swing
if (lastSignal == -1) or (lastSignal == 0)
if na(sHigh) or high > sHigh
sHigh := high
sHighBar := bar_index
if (lastSignal == 1) or (lastSignal == 0)
if na(sLow) or low < sLow
sLow := low
sLowBar := bar_index
// Confirm pivot
condTop = c < low
condBot = c > high
isTop = condTop and (lastSignal != 1)
isBot = condBot and (lastSignal != -1)
// On pivot confirm
if isTop
confHigh := sHigh
confHighBar := sHighBar
highLine := na
highLabel := na
highLineType := 0
if showPivot
label.new(confHighBar, confHigh + syminfo.mintick * offTop, "●", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_none, textcolor=color.red, size=size.small)
lastSignal := 1
sHigh := na
sHighBar := na
sLow := low
sLowBar := bar_index
if isBot
confLow := sLow
confLowBar := sLowBar
lowLine := na
lowLabel := na
lowLineType := 0
if showPivot
label.new(confLowBar, confLow - syminfo.mintick * offBot, "●", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_none, textcolor=color.lime, size=size.small)
lastSignal := -1
sLow := na
sLowBar := na
sHigh := high
sHighBar := bar_index
// Raw sweep detection
rawSweepUp = not na(confHigh) and (na(lastBOSHighBar) or confHighBar != lastBOSHighBar) and high > confHigh and close <= confHigh
rawSweepDown = not na(confLow) and (na(lastBOSLowBar) or confLowBar != lastBOSLowBar) and low < confLow and close >= confLow
if rawSweepUp
pendingSweepUp := true
sweepDetectedBarUp := bar_index
sweepTargetHighPrice := confHigh
sweepTargetHighBar := confHighBar
if rawSweepDown
pendingSweepDown := true
sweepDetectedBarDown := bar_index
sweepTargetLowPrice := confLow
sweepTargetLowBar := confLowBar
// Check sweep validity
checkSweepValidUp() =>
isValid = true
if pendingSweepUp and not na(sweepDetectedBarUp)
maxOffset = bar_index - sweepDetectedBarUp
if maxOffset >= 0
for i = 0 to maxOffset
if close > sweepTargetHighPrice
isValid := false
isValid
checkSweepValidDown() =>
isValid = true
if pendingSweepDown and not na(sweepDetectedBarDown)
maxOffset = bar_index - sweepDetectedBarDown
if maxOffset >= 0
for i = 0 to maxOffset
if close < sweepTargetLowPrice
isValid := false
isValid
// BOS logic
bosUp = not na(confHigh) and c > confHigh
bosDown = not na(confLow) and c < confLow
if bosUp
pendingSweepUp := false
sweepDetectedBarUp := na
sweepTargetHighPrice := na
sweepTargetHighBar := na
lastBOSHighBar := confHighBar
if not na(highLine)
line.delete(highLine)
if not na(highLabel)
label.delete(highLabel)
highLineType := 2
if showBosSweep
highLine := line.new(confHighBar, confHigh, bar_index, confHigh, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=bosStyle)
if showBosLabel
midBar = math.floor((confHighBar + bar_index) / 2)
highLabel := label.new(midBar, confHigh, bosLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
if bosDown
pendingSweepDown := false
sweepDetectedBarDown := na
sweepTargetLowPrice := na
sweepTargetLowBar := na
lastBOSLowBar := confLowBar
if not na(lowLine)
line.delete(lowLine)
if not na(lowLabel)
label.delete(lowLabel)
lowLineType := 2
if showBosSweep
lowLine := line.new(confLowBar, confLow, bar_index, confLow, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=bosStyle)
if showBosLabel
midBar = math.floor((confLowBar + bar_index) / 2)
lowLabel := label.new(midBar, confLow, bosLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
// Sweep draw (pivot-in-between check)
sweepUpTriggered = false
sweepDownTriggered = false
if (isTop or isBot) and pendingSweepUp and not na(sweepTargetHighBar)
hasLowBetween = false
for i = sweepTargetHighBar to bar_index
if not na(confLowBar) and confLowBar == i
hasLowBetween := true
if checkSweepValidUp() and highLineType != 2 and hasLowBetween
if not na(highLine)
line.delete(highLine)
if not na(highLabel)
label.delete(highLabel)
highLineType := 1
if showBosSweep
highLine := line.new(sweepTargetHighBar, sweepTargetHighPrice, bar_index, sweepTargetHighPrice, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=sweepStyle)
if showSweepLabel
midBar = math.floor((sweepTargetHighBar + bar_index) / 2)
highLabel := label.new(midBar, sweepTargetHighPrice, sweepLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
pendingSweepUp := false
sweepDetectedBarUp := na
sweepTargetHighPrice := na
sweepTargetHighBar := na
sweepUpTriggered := true
if (isTop or isBot) and pendingSweepDown and not na(sweepTargetLowBar)
hasHighBetween = false
for i = sweepTargetLowBar to bar_index
if not na(confHighBar) and confHighBar == i
hasHighBetween := true
if checkSweepValidDown() and lowLineType != 2 and hasHighBetween
if not na(lowLine)
line.delete(lowLine)
if not na(lowLabel)
label.delete(lowLabel)
lowLineType := 1
if showBosSweep
lowLine := line.new(sweepTargetLowBar, sweepTargetLowPrice, bar_index, sweepTargetLowPrice, xloc=xloc.bar_index, extend=extend.none, color=color.black, width=w, style=sweepStyle)
if showSweepLabel
midBar = math.floor((sweepTargetLowBar + bar_index) / 2)
lowLabel := label.new(midBar, sweepTargetLowPrice, sweepLabelText, xloc=xloc.bar_index, yloc=yloc.price, textcolor=color.black, style=label.style_none, size=lblSize)
pendingSweepDown := false
sweepDetectedBarDown := na
sweepTargetLowPrice := na
sweepTargetLowBar := na
sweepDownTriggered := true
// Alerts
alertcondition(isTop, "Top", "Top confirmed")
alertcondition(isBot, "Bot", "Bottom confirmed")
alertcondition(bosUp, "BOS Up", "Break of structure up")
alertcondition(bosDown, "BOS Down", "Break of structure down")
alertcondition(sweepUpTriggered, "Sweep Up", "Sweep đỉnh xuất hiện")
alertcondition(sweepDownTriggered, "Sweep Down", "Sweep đáy xuất hiện")
plot(na) // tránh lỗi
Double-Numbered Hexagon Price and Time Chart ⬢️ Double-Numbered Hexagon Price and Time Chart ⬢️
Overview
The Double-Numbered Hexagon Price and Time Chart is an advanced overlay indicator for TradingView that fuses William D. Gann’s geometric principles with modern charting tools. Inspired by the work of Patrick Mikula in Gann’s Scientific Methods Unveiled (Volumes 1 & 2), this tool reimagines Gann’s hexagonal number spirals—where market price and time unfold within a structured 360° framework.
This indicator constructs a dynamic, double-numbered hexagonal grid expanding from a central seed. Users can anchor from a price high or low , or override with a manual seed to start the chart from any desired value. As prices progress or regress from this origin, the chart plots swing pivots directly onto the hexagonal grid , allowing users to assess whether historical highs and lows align with key angles. The grid displays 12 angular spokes (0° to 330° in 30° steps) by default, and users can highlight any single angle , which applies a color-coded emphasis to both the spoke and its corresponding horizontal levels—helping reveal potential support, resistance, and geometric symmetry .
It supports automatic detection of pivots, live tracking of current price within the grid, and detailed display customizations—making it ideal for Gann-style geometric analysis, pivot-based strategies, and time/price harmonic research.
---
Key Features
* Hexagonal Spiral Structure: Constructs a grid of expanding rings from a central price seed, with each cell aligned to a 360° angular framework (in 30° increments).
* Anchor Customization: Seed from a bar's high/low using a selected timestamp, or override with a manual starting value.
* Increment/Decrement Control: Define step size for upward progression (positive) or downward regression (negative).
* Angle Highlighting and Lines: Select from 12 angles (0° to 330°) to highlight hexagon spokes and project price lines from the anchor.
* Swing Pivot Detection: Automatically identifies post-anchor highs/lows using `ta.pivothigh/low` logic with user-defined left/right bars.
* Real-Time Close Highlight: Dynamically marks the cell closest to the current close (unconfirmed bars).
* Display Customization: Control cell size, text size, table position, colors, and label visibility.
* Pivot Label Options: Show/hide labels for swing highs/lows with full color control.
* Rounding Precision: Set decimal places for all displayed values.
---
How to Use
1. Add to Chart: Apply the indicator as an overlay on your preferred symbol and timeframe.
2. Set the Anchor:
* Select anchor date/time using the calendar icon.
* Choose price source (High or Low).
* Set rounding to match instrument precision.
3. Configure Hexagon:
* Set number of rings to expand the grid.
* Define increment (positive or negative).
* Enable time index values for time-based sequencing.
4. Manual Override (Optional):
* Enable manual mode and input custom seed value.
5. Customize Display:
* Adjust cell and text sizes, table position, and color themes.
6. Angle Settings:
* Choose any angle (e.g., 90°) to highlight spokes and draw horizontal lines from anchor price.
7. Swing Pivots:
* Configure pivot detection using left/right bar settings.
* Toggle pivot label visibility.
8. Interpretation:
* Center cell = anchor price.
* Rings = stepped price levels.
* Spokes = geometric angles for support/resistance.
* Highlighted pivots = potential alignment zones.
* Real-time cell = current price’s position in the grid.
---
Methodology
The indicator uses hexagonal math to plot a spiral of price levels outward from a seed, calculated with degree-based geometry and coordinates. Pivots are identified using built-in TradingView functions and color-coded based on user settings. Angle highlights represent key 30° divisions for price projection.
This tool reinterprets Gann’s spiral and double-numbered techniques without astrological overlays, offering a modern and interactive way to explore time/price relationships geometrically.
---
Limitations and Notes
* Real-Time Behavior: Close highlight updates on unconfirmed bars; locks on candle close.
* Not a Signal Generator: This is a Gann research and visualization tool. Past confluences do not guarantee future outcomes. Use with proper strategy and risk management.
* Future Updates: More features may be added pending feedback and TradingView approval.
MACD Split (Top/Bottom)📘 Script Explanation – MACD Split (Top/Bottom)
Purpose
Splits MACD into two separate panels for better visibility:
Top panel → MACD line (orange) & Signal line (black)
Bottom panel → Histogram (colored line) & Histogram EMA (black)
Color Rules for Histogram
Above 0 & Rising → Light Green
Above 0 & Falling → Dark Green
Below 0 & Falling → Dark Red
Below 0 & Rising → Light Red
Histogram EMA → Black
Zero Line
A gray dashed baseline is drawn at 0 for reference.
How to Use
Add the indicator twice.
Set the first one’s Mode = Top.
Set the second one’s Mode = Bottom.
Save as a template → next time, both panels load together.
Option Chain with DiscountOption Chain used to find the premiums available at a discount. Option Chain used to find the premiums available at a discount. Option Chain used to find the premiums available at a discount.
MACD Split (Top/Bottom)MACD Split Indicator Explanation
This script separates the MACD into two clean panels:
Top Panel (Mode = Top)
Plots the MACD line and the Signal line.
Used to analyze crossovers and trend direction.
Bottom Panel (Mode = Bottom)
Plots the Histogram (MACD – Signal) and its EMA smoothing.
Used to analyze momentum strength and early shifts.
You can load the same indicator twice:
Set one to Top mode → shows only MACD & Signal lines.
Set the other to Bottom mode → shows only Histogram & EMA.
This way, you get a clear split view without overlapping everything in one chart.
DEV (%)Deviation from MMA5 (%)
- MMA = (High + Low) / 2
- Calculates 5-day SMA of MMA (MMA5)
- Plots deviation (%) of current Mid Price from MMA5
- Above 0% → price above MMA5
- Below 0% → price below MMA5
Pattern Scanner — RealTime By joshทำอะไรบ้าง
Double Top / Double Bottom — ตรวจ “ยอด/ฐานคู่” + เงื่อนไข “เบรกคอ” และ เลือกบังคับให้มีรีเทสท์ ได้
Head & Shoulders / Inverse — ตรวจหัว-ไหล่พร้อมวาด neckline แบบ dynamic
Wedge / Symmetrical Triangle — ใช้ pivot ล่าสุด 2 จุดบน/ล่าง สร้างเส้นลู่เข้าปัจจุบัน
Flag (Channel) — ตรวจกรอบ平行 (bull/bear) จากสโลปบน-ล่างที่ เกือบขนาน
Range (Consolidation) — เส้น High/Low ช่วงสะสมล่าสุด
โหมด Overlay: ทุกอย่างวาดบนราคาโดยตรง, ไม่สร้างข้อความ/สัญญาณลูกศรให้รกตา
What it does
Double Top / Double Bottom — Detects twin peaks/bases with a neckline-break condition, with an option to require a retest.
Head & Shoulders / Inverse — Detects H&S (and inverse) and draws a dynamic neckline.
Wedge / Symmetrical Triangle — Uses the two most recent high/low pivots to draw converging lines to the current bar.
Flag (Channel) — Detects bull/bear parallel channels from nearly parallel top/bottom slopes.
Range (Consolidation) — Plots recent consolidation High/Low levels.
Overlay mode — Everything is drawn directly on price; no text/arrows, keeping the chart clean.
macd color bar cryptosmartDescription
The MACD Color Bar CryptoSmart indicator is a visual trading tool designed to help traders quickly identify trend changes by coloring the chart's price bars based on MACD (Moving Average Convergence Divergence) signals.
Instead of looking down at the MACD panel, you can see the trend's momentum directly on your price chart, making it easier to spot potential entries and exits.
How It Works
The indicator monitors the MACD line and its signal line in the background.
Bullish Trend (Green Bars): When the MACD line crosses above the signal line, the price bars will turn green. This color persists, signaling that the momentum is currently bullish.
Bearish Trend (Red Bars): When the MACD line crosses below the signal line, the price bars will turn red. This color persists, indicating that the momentum has shifted to bearish.
This immediate visual feedback helps you stay aligned with the current trend as defined by the MACD.
How to Use
Trend Identification: Use the bar colors for a quick "at-a-glance" understanding of the prevailing trend. Green bars suggest an uptrend, while red bars suggest a downtrend.
Entry Signals: A color change from red to green can be seen as a potential bullish entry signal. Conversely, a change from green to red can suggest a potential bearish entry.
Confirmation: Use the bar colors to confirm signals from your primary trading strategy. For example, if you get a buy signal from another indicator, a green bar color adds confluence to your trade idea.
All MACD settings (Fast Length, Slow Length, Signal Length) and the bar colors are fully customizable in the indicator's settings menu.