fork_libsmc
Library "fork_libsmc"
this is fork of robbatt's lib_smc
description:
This is an adaptation of LuxAlgo's Smart Money Concepts indicator with numerous changes.
Main changes include integration of object based plotting, plenty of performance improvements, live tracking of Order Blocks, integration of volume profiles to refine Order Blocks, and many more.This is a library for developers,
////////////////////////////////////////////////////////////
fork_libsmc
v1 - support show price level: swing point, market structure, broken OrderBlock ( using profile.show_price_levels )
Indicadores e estratégias
SMART TRADE TREND FINDERBUY - When price close above the indicator line and take entry when the price moves above the high of the closing candle.
SELL - When price close below the indicator line and take entry when the price moves below the low of the closing candle.
Trading BotIt trades off of pivot levels which are created from 8:30am to 9:44am and it trades based off of those levels and sees how price reacts.
Premarket High/Low Breakout Alert (SMA8 Filter)premarket high low breakout alert.premarket high low breakout alert.premarket high low breakout alert.
Quad Rotation Divergence – diag v4‑fixquad rotation divergence strategy theorised by george lane and popularised by day trading radio, this is my own little indictor to help me with spotting reversals with 4 stochastic oscilators in one indictor mimicing higher time frames
EMA Golden crossoverThis indicator highlights Exponential Moving Average (EMA) crossovers between multiple key periods:
5, 13, 26, 50, 100, and 200 EMAs.
✅ What It Does:
Marks bullish crossovers (shorter EMA crossing above longer EMA) with colored upward labels below the candle.
Marks bearish crossunders (shorter EMA crossing below longer EMA) with colored downward labels above the candle.
Helps identify trend shifts, potential entry/exit points, and confirmations for swing or positional trades.
📊 Crossovers Highlighted:
5 > 13
13 > 26
26 > 50
50 > 100
100 > 200
📉 Crossunders Highlighted:
5 < 13
13 < 26
26 < 50
50 < 100
100 < 200
Straddle Plot with VWAP and Daily 20 EMA📄 Description
The Straddle Plot with VWAP and Daily 20 EMA is a powerful visualization tool designed for options traders using straddle strategies on instruments like NIFTY, BANKNIFTY, and others.
This indicator dynamically fetches and displays the combined price action of Call (CE) and Put (PE) option premiums for up to three strike prices of the same expiry. It helps traders monitor premium trends, premium imbalance, and market bias in real time.
✅ Features
Plots Combined Option Premium Candles (Straddle OHLC)
Plots Individual CE, PE & Straddle Lines
Dynamic Symbol Construction based on expiry date and selected strike prices
VWAP Line calculated on combined straddle premiums
Daily 20 EMA for trend filtering
Real-Time Table showing:
Strike Prices used
VWAP
Call/Put/Straddle values
20 EMA
CE/PE dominance ("Call Up", "Put Up", or "Same")
📌 How to Use
Select the desired underlying (e.g., NIFTY, BANKNIFTY).
Enter the expiry date and strike prices of interest.
The script will auto-fetch and combine the OHLC data for each Call and Put option.
Observe the plotted candles and table to:
Spot changes in combined premium behavior.
Analyze VWAP/EMA deviations.
Identify if Calls or Puts are leading in premium movement.
📊 How to Interpret Trends
This indicator includes logic to compare Call (CE) and Put (PE) premiums to determine short-term market bias:
"Call Up" (🟢): Call premium is greater than Put
→ Indicates a possible bullish sentiment.
"Put Up" (🔴): Put premium is greater than Call
→ Indicates a possible bearish sentiment.
"CE/PE Same" (⚪): Both premiums are roughly equal
→ Indicates a sideways or uncertain market.
These are shown in the table under the label "CE/PE Up", helping traders act faster without analyzing price alone.
💡 Best For
Intraday and positional options traders
Users executing straddle or strangle strategies
Those looking to monitor premium buildups and breakouts
⚠️ Important Notes
Ensure the selected strike prices are liquid and available on TradingView (NSE symbols).
The script works best during market hours.
This indicator uses request.security(), which may be subject to data delay or availability issues based on your subscription plan and symbol permissions.
📢 Disclaimer
This indicator is intended for educational and informational purposes only . It does not constitute financial advice or a recommendation to buy or sell any securities. Trading in financial markets involves risk, and you should consult with a qualified financial advisor before making any investment decisions. The author is not responsible for any losses incurred from the use of this script.
Candle vs 8 SMA - Red & Green📈 Script Name: Candle vs 8 SMA – Red & Green
This TradingView Pine Script visually compares each candle's close price to the 8-period Simple Moving Average (SMA) and highlights the chart accordingly:
🔍 What It Does:
Calculates the 8-period SMA
sma8 = ta.sma(close, 8)
This line computes the average of the last 8 closing prices to smooth out short-term fluctuations.
Plots the SMA Line
Orange line shown on the chart.
Helps you visually track the short-term trend.
Identifies Candle Position
candleAbove: true if the candle’s close is above the SMA
candleBelow: true if the candle’s close is below the SMA
Highlights Background
If the close is above the 8 SMA → Green background (indicating bullish behavior)
If the close is below the 8 SMA → Red background (indicating bearish behavior)
Plots Triangle Shapes
Green triangle below candle when above the SMA
Red triangle above candle when below the SMA
Helps quickly identify conditions at a glance
🧠 Why Use It?
This script is useful for:
Intraday trend confirmation
Spotting momentum shifts
Visual clarity on how price reacts to a dynamic support/resistance (SMA)
Aiding quick decisions for scalping or intraday trades
ULTIMATE Trading System [CHARLES + CLAUDE AI]The ULTIMATE Trading System
Combines three powerful technical indicators into one comprehensive, visually intuitive trading solution. Created through a collaboration between CHARLES and CLAUDE AI 3.7, this system offers clear entry/exit signals without the clutter of multiple indicators.
## Key Features:
• **Stochastic RSI Signals (3,3,10,10)**: Generates high-probability buy/sell signals with triangular markers that blink on the most recent signal for instant visibility
• **MACD Trend Highlighter**: Colors the entire price section green during bullish MACD trends and red during bearish trends, making the overall market direction immediately apparent
• **SuperTrend Implementation (ATR 2, Multiplier 2)**: Provides dynamic support/resistance levels and additional confirmation signals, optimized for effective Swing Trading
• **Fully Customizable Settings**: Toggle components on/off to create your ideal setup:
- Use MACD filter for stricter signal generation
- Enable/disable MACD zero-cross labels
- Show/hide SuperTrend lines and signals
- Customize SuperTrend parameters
## Trading Strategies:
1. **Scalping**: Use the Stochastic RSI signals (Triangle signals) alone for quick trades in ranging markets
2. **Swing Trading**: Combine Stochastic RSI signals with SuperTrend confirmation for higher probability entries / Swing trading
3. **Trend Following**: Use the MACD highlighter to stay on the right side of the trend
## Alert Options:
• Thai Obvious BUY/SELL: Triangle signals from Stochastic RSI crossovers
• SuperTrend Buy/Sell: Swing trading opportunities on trend changes
• SuperTrend Direction Change: Major market structure shifts
Perfect for traders of all levels who want actionable signals without the complexity of managing multiple indicators.
Daily Borders with Weekday Labels[fitfatq]Indicator Overview
This indicator displays daily vertical border lines and the previous day’s weekday label on intraday charts (i.e., charts with a timeframe lower than Daily). It draws a vertical line at the start of each new trading day and places a label displaying the previous day’s weekday (e.g., Monday) at the horizontal midpoint between the previous and the current day. Users can customize various visual aspects such as the separator line style and width, label style, text color, and text size. Additionally, the indicator offers an option to fix the label’s Y coordinate at a specified price level to prevent it from being overlapped by candlesticks.
Parameter Details
Use Fixed Weekday Label Y Coordinate
Type: Boolean
Default: false
Description: When enabled, the weekday label’s vertical position will be fixed at a specified price level (see next parameter). Otherwise, the label’s Y position is determined dynamically (typically based on the current bar’s low minus 3 ticks).
Fixed Weekday Label Y Coordinate (price)
Type: Float
Default: 130.0
Description:
This parameter sets the fixed price level at which the weekday label will be displayed if the "Use Fixed Weekday Label Y Coordinate" option is enabled. Please input a value that corresponds to your chart’s price scale (e.g., 130.50). Note: In charts with high price levels (for example, stocks trading at 3000 or above), it is recommended to set this value to 3000 or above. The higher the value, the closer the label will appear to the candlesticks.
Separator Line Style
Type: String (Options: "Solid", "Dotted", "Dashed")
Default: "Dotted"
Description: Specifies the style of the vertical separator line drawn at the start of each new day. "Solid" displays a continuous line, "Dotted" shows a dotted line, and "Dashed" provides a dashed line.
Separator Line Width
Type: Integer
Default: 1
Description: Determines the thickness of the separator line. A higher number results in a thicker line; the minimum value is 1.
Label Style
Type: String (Options: "None", "Label Up", "Label Down", "Label Left", "Label Right", "Label Center")
Default: "None"
Description: Sets the built-in style for the weekday label. "None" means no background or border (plain text only), while other options apply predefined visual effects.
Text Color
Type: Color
Default: Black
Description: Determines the text color of the weekday label.
Label Text Size
Type: String (Options: "Tiny", "Small", "Normal", "Large", "Huge")
Default: "Normal"
Description: Specifies the text size of the weekday label. Adjust according to preference to ensure the label is readable.
Usage Summary
How It Works:
The indicator detects the start of a new trading day using a change in the daily timeframe (via ta.change(time("D"))). When a new day begins, it draws a vertical separator line at the first bar of that day. If previous day data is available, the indicator calculates the horizontal midpoint between the start of the previous day and the current day and displays the previous day’s weekday label at that position. If the fixed Y coordinate option is enabled, the label is drawn at the specified price level; otherwise, it is positioned relative to the current bar’s low.
Customization:
Users can adjust all visual aspects, including the line style and width as well as the label style, text color, and text size. The fixed Y coordinate option allows the label’s vertical position to remain constant, which helps prevent overlapping with price bars.
Chart Requirement:
This indicator only operates on intraday charts (timeframes lower than Daily) and will not display on Daily or higher timeframe charts.
License
This indicator is released under the Mozilla Public License 2.0. Please credit the original author (fitfatq) when using or sharing this script.
Phoenix AIPhoenix with a taste of AI. Witness the power of Phoenix's Recurrent Neural Network and Auto Adaptive functions.
Scalper's Fractal Cloud with RSI + VWAP + MACD (Fixed)Scalper’s Fractal Confluence Dashboard
1. Purpose of the Indicator
This TradingView indicator script provides a high-confluence setup for scalping and day trading. It blends momentum indicators (RSI, MACD), trend bias tools (EMA Cloud, VWAP), and structure (fractal swings, gap zones) to help confirm precise entries and exits.
2. Components of the Indicator
- EMA Cloud (50 & 200 EMA): Trend bias – green means bullish, red means bearish. Avoid longs under red cloud.
- VWAP: Institutional volume anchor. Ideal entries are pullbacks to VWAP in direction of trend.
- Gap Zones: Shows open-air zones (white space) where price can move fast. Used to anticipate momentum moves.
- ZigZag Swings: Marks structural pivots (highs/lows) – useful for stop placement and range anticipation.
- MACD Histogram: Shows bullish or bearish momentum via background color.
- RSI: Overbought (>70) or oversold (<30) warnings. Good for exits or countertrend reversion plays.
- EMA Spread Label: Quick view of momentum strength. Wide spread = strong trend.
3. Scalping Entry Checklist
Before entering a trade, confirm these conditions:
• • Bias: EMA cloud color supports trade direction
• • Price is above/below VWAP (confirming institutional flow)
• • MACD histogram matches direction (green for long, red for short)
• • RSI not at extreme (unless you’re fading trend)
• • If entering gap zone, expect fast move
• • Recent swing high/low nearby for target or stop
4. Risk & Sizing Guidelines
Risk 1–2% of account per trade. Place stop below recent swing low (for longs) or high (for shorts). Use fractional sizing near VWAP or white space zones for scalping reversals.
5. Daily Trade Journal Template
- Date:
- Ticker:
- Setup Type (VWAP pullback, Gap Break, EMA reversion):
- Entry Time:
- Bias (Green/Red Cloud):
- RSI Level / MACD Reading:
- Stop Loss:
- Target:
- Result (P/L):
- What I Did Well:
- What Needs Work:
financial_history_utilsLibrary "financial_history_utils"
get_fq_value_n_quarters_ago(symbol, financial_id, n)
Parameters:
symbol (string)
financial_id (string)
n (int)
20 EMA and 50 EMA with Dynamic Coloringthis is my indictor to do swing trend when price is above 20 ema and 50ema then i looking for only long.
Green*DiamondGreen*Diamond (GD1)
Unleash Dynamic Trading Signals with Volatility and Momentum
Overview
GreenDiamond is a versatile overlay indicator designed for traders seeking actionable buy and sell signals across various markets and timeframes. Combining Volatility Bands (VB) bands, Consolidation Detection, MACD, RSI, and a unique Ribbon Wave, it highlights high-probability setups while filtering out noise. With customizable signals like Green-Yellow Buy, Pullback Sell, and Inverse Pullback Buy, plus vibrant candle and volume visuals, GreenDiamond adapts to your trading style—whether you’re scalping, day trading, or swing trading.
Key Features
Volatility Bands (VB): Plots dynamic upper and lower bands to identify breakouts or reversals, with toggleable buy/sell signals outside consolidation zones.
Consolidation Detection: Marks low-range periods to avoid choppy markets, ensuring signals fire during trending conditions.
MACD Signals: Offers flexible buy/sell conditions (e.g., cross above signal, above zero, histogram up) with RSI divergence integration for precision.
RSI Filter: Enhances signals with customizable levels (midline, oversold/overbought) and bullish divergence detection.
Ribbon Wave: Visualizes trend strength using three EMAs, colored by MACD and RSI for intuitive momentum cues.
Custom Signals: Includes Green-Yellow Buy, Pullback Sell, and Inverse Pullback Buy, with limits on consecutive signals to prevent overtrading.
Candle & Volume Styling: Blends MACD/RSI colors on candles and scales volume bars to highlight momentum spikes.
Alerts: Set up alerts for VB signals, MACD crosses, Green*Diamond signals, and custom conditions to stay on top of opportunities.
How It Works
Green*Diamond integrates multiple indicators to generate signals:
Volatility Bands: Calculates bands using a pivot SMA and standard deviation. Buy signals trigger on crossovers above the lower band, sell signals on crossunders below the upper band (if enabled).
Consolidation Filter: Suppresses signals when candle ranges are below a threshold, keeping you out of flat markets.
MACD & RSI: Combines MACD conditions (e.g., cross above signal) with RSI filters (e.g., above midline) and optional volume spikes for robust signals.
Custom Logic: Green-Yellow Buy uses MACD bullishness, Pullback Sell targets retracements, and Inverse Pullback Buy catches reversals after downmoves—all filtered to avoid consolidation.
Visuals: Ribbon Wave shows trend direction, candles blend momentum colors, and volume bars scale dynamically to confirm signals.
Settings
Volatility Bands Settings:
VB Lookback Period (20): Adjust to 10–15 for faster markets (e.g., 1-minute scalping) or 25–30 for daily charts.
Upper/Lower Band Multiplier (1.0): Increase to 1.5–2.0 for wider bands in volatile stocks like AEHL; decrease to 0.5 for calmer markets.
Show Volatility Bands: Toggle off to reduce chart clutter.
Use VB Signals: Enable for breakout-focused trades; disable to focus on Green*Diamond signals.
Consolidation Settings:
Consolidation Lookback (14): Set to 5–10 for small caps (e.g., AEHL) to catch quick consolidations; 20 for higher timeframes.
Range Threshold (0.5): Lower to 0.3 for stricter filtering in choppy markets; raise to 0.7 for looser signals.
MACD Settings:
Fast/Slow Length (12/26): Shorten to 8/21 for scalping; extend to 15/34 for swing trading.
Signal Smoothing (9): Reduce to 5 for faster signals; increase to 12 for smoother trends.
Buy/Sell Signal Options: Choose “Cross Above Signal” for classic MACD; “Histogram Up” for momentum plays.
Use RSI Div + MACD Cross: Enable for high-probability reversal signals.
RSI Settings:
RSI Period (14): Drop to 10 for 1-minute charts; raise to 20 for daily.
Filter Level (50): Set to 55 for stricter buys; 45 for sells.
Overbought/Oversold (70/30): Tighten to 65/35 for small caps; widen to 75/25 for indices.
RSI Buy/Sell Options: Select “Bullish Divergence” for reversals; “Cross Above Oversold” for momentum.
Color Settings:
Adjust bullish/bearish colors for visibility (e.g., brighter green/red for dark themes).
Border Thickness (1): Increase to 2–3 for clearer candle outlines.
Volume Settings:
Volume Average Length (20): Shorten to 10 for scalping; extend to 30 for swing trades.
Volume Multiplier (2.0): Raise to 3.0 for AEHL’s volume surges; lower to 1.5 for steady stocks.
Bar Height (10%): Increase to 15% for prominent bars; decrease to 5% to reduce clutter.
Ribbon Settings:
EMA Periods (10/20/30): Tighten to 5/10/15 for scalping; widen to 20/40/60 for trends.
Color by MACD/RSI: Disable for simpler visuals; enable for dynamic momentum cues.
Gradient Fill: Toggle on for trend clarity; off for minimalism.
Custom Signals:
Enable Green-Yellow Buy: Use for momentum confirmation; limit to 1–2 signals to avoid spam.
Pullback/Inverse Pullback % (50): Set to 30–40% for small caps; 60–70% for indices.
Max Buy Signals (1): Increase to 2–3 for active markets; keep at 1 for discipline.
Tips and Tricks
Scalping Small Caps (e.g., AEHL):
Use 1-minute charts with VB Lookback = 10, Consolidation Lookback = 5, and Volume Multiplier = 3.0 to catch $0.10–$0.20 moves.
Enable Green-Yellow Buy and Inverse Pullback Buy for quick entries; disable VB Signals to focus on Green*Diamond logic.
Pair with SMC+ green boxes (if you use them) for reversal confirmation.
Day Trading:
Try 5-minute charts with MACD Fast/Slow = 8/21 and RSI Period = 10.
Enable RSI Divergence + MACD Cross for high-probability setups; set Max Buy Signals = 2.
Watch for volume bars turning yellow to confirm entries.
Swing Trading:
Use daily charts with VB Lookback = 30, Ribbon EMAs = 20/40/60.
Enable Pullback Sell (60%) to exit after rallies; disable RSI Color for cleaner candles.
Check Ribbon Wave gradient for trend strength—bright green signals strong bulls.
Avoiding Noise:
Increase Consolidation Threshold to 0.7 on volatile days to skip false breakouts.
Disable Ribbon Wave or Volume Bars if the chart feels crowded.
Limit Max Buy Signals to 1 for disciplined trading.
Alert Setup:
In TradingView’s Alerts panel, select:
“GD Buy Signal” for standard entries.
“RSI Div + MACD Cross Buy” for reversals.
“VB Buy Signal” for breakout plays.
Set to “Once Per Bar Close” for confirmed signals; “Once Per Bar” for scalping.
Backtesting:
Replay on small caps ( Float < 5M, Price $0.50–$5) to test signals.
Focus on “GD Buy Signal” with yellow volume bars and green Ribbon Wave.
Avoid signals during gray consolidation squares unless paired with RSI Divergence.
Usage Notes
Markets: Works on stocks, forex, crypto, and indices. Best for volatile assets (e.g., small-cap stocks, BTCUSD).
Timeframes: Scalping (1–5 minutes), day trading (15–60 minutes), or swing trading (daily). Adjust settings per timeframe.
Risk Management: Combine with stop-losses (e.g., 1% risk, $0.05 below AEHL entry) and take-profits (3–5%).
Customization: Tweak inputs to match your strategy—experiment in replay to find your sweet spot.
Disclaimer
Green*Diamond is a technical tool to assist with trade identification, not a guarantee of profits. Trading involves risks, and past performance doesn’t predict future results. Always conduct your own analysis, manage risk, and test settings before live trading.
Feedback
Love Green*Diamond? Found a killer setup? Drop a comment or DM—I’d love to hear how you’re using it!
Supertrend X2 + CalcSize Calculator:
Size Calculator is a risk management tool that helps traders position themselves intelligently by calculating optimal position size, stop loss, and take profit levels based on account capital, ATR volatility, and personal risk tolerance. It takes the guesswork out of sizing so you can focus on execution.
Features:
✅ Risk-based position sizing
✅ ATR-based stop loss & take profit levels
✅ Dynamic leverage estimation
✅ Support for long and short positions
✅ Visual display of key levels and metrics via table
✅ Works across any timeframe with locked timeframe support
How It Works:
This tool computes the ideal position size as a % of account capital based on how much you're willing to risk per trade and how far your stop loss is (in ATR units). It calculates corresponding stop loss and take profit prices, and visually plots them along with a floating table of metrics. You can lock the timeframe used for ATR and price, keeping your risk logic stable even when changing chart views.
Customizable Inputs:
Account capital and risk tolerance
ATR-based stop loss & take profit multiples
Trade direction (Long or Short)
ATR period and locked timeframe
Optional detailed metrics display
Dual SuperTrend:
The Dual Supertrend indicator enhances the classic Supertrend strategy by layering two customizable Supertrend signals with independent ATR settings. This setup gives you a deeper, more nuanced read on trend strength and potential entry zones.
Features:
✅ Two Supertrend lines (each with adjustable ATR periods and multipliers)
✅ Optional Heikin Ashi candle smoothing for noise reduction
✅ Color-coded trend background for fast visual analysis
✅ Multi-timeframe trend table overlay (customizable)
✅ Built-in signal logic to identify "Long", "Short", or "N/A" zones
How It Works:
The script calculates two Supertrend levels using separate ATR settings. Trend direction is derived from the relationship between price and each band. When the larger (slower) Supertrend flips and the smaller (faster) confirms, it signals a potential entry. The multi-timeframe table helps you align trades across different timeframes.
Customizable Inputs:
ATR Periods & Multipliers for both Supertrends
Timeframes for entry zone detection (up to 4)
Enable/disable Heikin Ashi candles for smoother trend detection
Z-Score IndicatorThis is just a basic Z score indicator with some settings I find useful.
Z-score is a statistical measure that tells you how many standard deviations a data point is from the mean. It’s a way of understanding how unusual or extreme a current value is compared to a typical baseline.
This can be useful for:
1. Mean Reversion
Traders look for values with high or low Z-scores (e.g. > +2 or < –2) to identify when a price is far from the mean and might revert.
Example: A stock trading at a +2.5 Z-score relative to its moving average may be considered "overbought".
2. Pairs Trading
Z-scores help detect divergences between correlated instruments.
Example: If Stock A and Stock B usually trade in sync, and their spread has a Z-score of –2, that may signal a long A / short B setup.
3. Risk Management / Anomaly Detection
A high Z-score on volume, volatility, or other indicators can alert you to outlier conditions or potential breakouts.
4. Standardization
Z-scores allow different instruments or timeframes to be compared on the same scale, by normalizing the data.
In general:
0 At the mean
±1 Within 1 std dev (68% of data) — normal range
±2 Outside 95% of data — getting extreme
±3+ Very rare — possible reversion or breakout point
First FVG Custom Time RangeThis script detects and highlights the first Fair Value Gap (FVG) that forms within a custom time range (e.g., 9:30 AM to 4:00 PM EST). It is useful for identifying early imbalances in price action that may serve as entry points, support/resistance zones, or targets for liquidity grabs.
🔍 What It Does
Detects Bullish FVGs (when low > high )
Detects Bearish FVGs (when high < low )
Optionally checks for Order Block Confluence (stronger signal)
Draws a single box for the first valid FVG after your specified time window begins
Includes an alert when price retests the FVG zone
⚙️ Customizable Settings
Start Hour/Minute (ET): Choose the exact time you want FVG detection to begin (e.g., 9:30 AM)
End Hour/Minute (ET): Stop detecting FVGs after a specific time (e.g., 4:00 PM)
FVG Box Duration: Controls how many bars the FVG box should extend into the future
Toggle FVG Labels: Show or hide FVG box labels
Enable Retest Alerts: Get an alert when price re-enters the first FVG
💡 Use Cases
Identify early imbalances after NYSE open (9:30 AM)
Track potential liquidity zones
Filter entries based on a specific session window (e.g., NY Kill Zone)
Combine with ICT or SMC concepts for confluence
cc ULTIMATE CANDLE FINDERThis indicator does just what the title says it is. FINDS specific numbers based on TIME calculations.
For example, lets say the 29th minute of every hour is something of interest.
Set the number to 29, adjust the box (rectangle) length of time (it is set to 59 minutes in this example) choose a color, adjust how dark or light the background is of that respective box.
The fun part is that the number 29 (in this example) can be found from looking for just the minute portion of time (UTC+2 Zurich) or it can be found from the addition of the hour plus the minute (HH:MM) or from the Subtraction of the hour from the minute (HH:MM)
There can be up to 5 different numbers enabled to be searched for at a time, plus the 3 methods used to find each different number.
Phantom Trigger Phantom Trigger – Precision Trend Execution with TP1/TP2 and Weak Trend Exits
Phantom Trigger is a professional-grade trend-following strategy designed for crypto and high-volatility assets. It combines advanced trend detection with precise risk-managed exits using a multi-level take-profit system.
🔍 What It Does
Identifies strong directional moves using a multi-stage smoothed trend model
Confirms entries using structure-based logic and volume pressure
Filters trades using bias zones, confirmation levels, and trend acceleration
Automatically manages trades with two-stage take-profits (TP1 and TP2)
Exits early on trend weakness before reversal
Includes a styled real-time dashboard and bar coloring for visual guidance
Sends bot-compatible alerts for multi-exchange automation
⚙️ Core Components
Trend Engine: A smoothed dynamic filter detects real-time trend direction and momentum shifts
Bias Structure: Mid-high/low range-based logic determines if price is favoring bullish or bearish structure
Confirmation Levels: Short- and long-term zone crossovers confirm directional alignment
Volume Filter: Detects volume expansion spikes to validate strong breakout potential
TP1/TP2 Logic: Dynamically sets two profit targets and executes partial and full exits automatically
Weak Trend Exit: Closes positions one bar before reversal using directional filters
🧠 How to Use
Works best on crypto (1H, 4H) and high-volume instruments
Use dashboard stats to monitor position status, PnL, and TP1/TP2 progression
Alerts are pre-labeled and compatible with bots like 3Commas, Wunderbit, etc.
Can be adapted for both scalping and swing trading
📊 Dashboard
The built-in real-time dashboard displays current trade status, entry price, TP1/TP2 progress, win rate, profit factor, and bars since entry. It updates live with every candle and provides a quick-glance overview to support your decision-making during active trades.
🧠 How to Use
Works best on crypto (1H, 4H) and high-volume instruments
Use dashboard stats to monitor position status, PnL, and TP1/TP2 progression
Alerts are pre-labeled and compatible with bots like 3Commas, Wunderbit, etc.
Can be adapted for both scalping and swing trading
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always test strategies thoroughly using demo or backtesting environments before applying to live markets. Past performance is not indicative of future results.
Lesson LineImitates the "Larsson Line" indicator. Uses ema34 and ema55 (both Fibonacci numbers) for the moving averages. No clue if that is what CTO Larsson uses, but this seems to replicate it pretty well.
Gold is a bullish trend and blue is a bearish trend. For entertainment purposes only.
Market OracleMarket Oracle Indicator: User Guide
Market Oracle is a powerful, all-in-one trading indicator for TradingView that combines multiple technical signals into a clear, actionable dashboard. Built for traders seeking a reliable edge, it analyzes trend, momentum, volatility, volume, and more to generate high-confidence buy and sell signals. With features like dynamic position sizing, market regime performance tracking, and customizable settings, it’s perfect for stocks, forex, crypto, or any market on any timeframe.
What It Does
Market Oracle evaluates market conditions using a blend of proven indicators (RSI, Stochastic RSI, EMAs, SuperTrend, MACD, Ichimoku Cloud, Bollinger Bands, ATR, ADX, and candlestick patterns) to produce a Composite Score (0-100) that reflects bullish or bearish strength. It generates:
Buy/Sell Signals: Triggered when the score crosses user-defined thresholds, filtered by volume, ADX, and trading hours.
Dynamic Position Sizing: Adjusts trade size based on volatility (ATR), reducing risk in choppy markets.
Market Regime Insights: Tracks performance in trending vs. ranging markets to highlight strategy strengths.
Comprehensive Dashboard: Displays real-time metrics like signal confidence, stop/take-profit levels, win rates, and more.
Whether you’re a day trader, swing trader, or long-term investor, Market Oracle simplifies decision-making with clear insights and robust backtesting.
Key Features
Composite Score:
Combines trend (EMAs, SuperTrend, MACD), momentum (RSI, Stochastic RSI), volatility (Bollinger Bands, ATR), volume (OBV, MA), Ichimoku Cloud, divergences, multi-timeframe trends, and candlestick patterns.
Score > 50 indicates bullishness; < 50 indicates bearishness. Extreme values (>90 or <10) flag overbought/oversold conditions.
Smart Signals:
Buy signals trigger when the score exceeds a threshold (default 70), with filters for volume, ADX strength, and Ichimoku/pattern confirmation.
Sell signals trigger below 100-threshold (default 30), with similar filters.
Signals include confidence levels (0-100%) based on indicator alignment.
Dynamic Position Sizing:
Scales trade size using ATR to limit risk in volatile markets (e.g., smaller positions when ATR is high).
Caps volatility adjustments (default 3x ATR) to maintain reasonable sizing.
Bases risk on a user-defined percentage (default 1% per trade).
Market Regime Performance:
Identifies trending (high ADX or wide Bollinger Bands) vs. ranging markets.
Tracks win rates separately for each regime, helping you optimize strategies for specific conditions.
Backtesting Metrics:
Shows buy/sell win rates, recent win rate, trending/ranging win rates, profit factor, max drawdown, and equity trend.
Helps evaluate strategy performance over time.
Customizable Dashboard:
Displays key metrics: Composite Score, Trend, Momentum, Volatility, Ichimoku, ADX, Divergences, Signal Status, Confidence, Stop/Take-Profit, Position Size, and more.
Toggles to show/hide backtest stats, Ichimoku Cloud, or multi-timeframe trends.
Clean layout with no clutter (e.g., no unnecessary “!” markers).
Alerts:
Set alerts for Buy/Sell Signals, Signal Exits, High Scores, or Overbought/Oversold conditions.
Messages include score and confidence (e.g., “Oracle+: Buy signal (Score: 75.2, Confidence: 80%)”).
Flexible Settings:
Adjust thresholds, indicator lengths, weights, risk parameters, and more.
Enable/disable features like trailing stops, market regime filters, or trading hour restrictions.
How to Use It
1. Add to TradingView
Copy the Market Oracle script into TradingView’s Pine Editor.
Click “Add to Chart” to apply it to your chosen market (e.g., BTC/USD, EUR/USD, SPY).
The dashboard appears in the bottom-right corner, showing real-time data.
2. Read the Dashboard
The dashboard is split into three sections:
Market State:
Composite Score: Current score and confidence (e.g., “75.2 (50.4%)”). “(OB)” or “(OS)” flags overbought/oversold.
Adjusted Threshold: Signal trigger level, adjusted for market regime.
Trend/MTF Trend: Bullish, Bearish, or Neutral (based on EMAs, SuperTrend, higher timeframe).
Momentum: Bullish, Bearish, or Neutral (RSI, Stochastic RSI).
Volatility: High or Low (Bollinger Bands, ATR).
Ichimoku Cloud: Bullish, Bearish, or Neutral (if enabled).
ADX Strength: Strong or Weak.
Divergence: Bullish, Bearish, or None (RSI, MACD).
Signals:
Signal Status: “Buy”, “Sell”, or “None”.
Signal Confidence: Percentage (e.g., “80%”) based on indicator agreement.
Stop Level/Take-Profit: Price levels for risk management.
Position Size: Units to trade, adjusted for volatility.
Avg Trade Duration: Average bars per trade.
Signal History: Recent signals/exits (e.g., “Buy | Buy Win”).
Backtest (optional):
Buy/Sell Win Rate: Percentage of winning trades.
Recent Win Rate: Win rate for recent trades.
Trending/Ranging Win Rate: Performance by market condition.
Profit Factor: Profit-to-loss ratio.
Max Drawdown: Largest equity drop.
Equity Trend: Up, Down, or Flat.
3. Customize Settings
Access the indicator’s settings by clicking the gear icon:
Signal Sensitivity:
Base Signal Threshold (default 70): Higher = stricter signals.
Min Confidence for Alerts (default 60%): Filters weaker alerts.
Risk Management:
Risk % per Trade (default 1%): Sets base risk.
Max ATR Multiplier (default 3.0): Caps position size reduction.
Take-Profit Ratio (default 2.0): Sets reward-to-risk ratio.
Use Trailing Stop (default false): Enable for dynamic stops.
Filters:
Use Volume Filter (default true): Requires above-average volume.
Use ADX Filter (default true): Requires strong trend (ADX > 25).
Use Market Regime Filter (default true): Adjusts thresholds for trending/ranging markets.
Avoid Specific Hours (default false): Skip signals during set hours (e.g., 0-6 UTC).
Indicators:
Adjust lengths for RSI (14), EMAs (20/50), MACD (12/26/9), etc.
Enable/disable Use Candlestick Patterns (default true) and choose type (Hammer, Engulfing, etc.).
Display:
Show Backtest Metrics (default true): Show win rates and stats.
Show Ichimoku Cloud (default true): Include cloud signals.
Show MTF Trend (default true): Include higher timeframe trend.
4. Set Alerts
In TradingView, click the alarm icon and select Market Oracle conditions:
Buy/Sell Signal: Triggers on new signals with sufficient confidence.
Signal Exit: Triggers when a trade closes (stop or take-profit hit).
High Score Alert: Triggers when score exceeds a threshold (default 80).
Overbought/Oversold: Warns of extreme conditions (if enabled).
Alerts include details for easy tracking (e.g., score, confidence).
5. Test and Trade
Test Markets: Try on forex (EUR/USD 1H), crypto (BTC/USD 4H), or stocks (AAPL daily).
Check Volatility: Monitor Position Size in volatile markets (e.g., XAU/USD); it shrinks to reduce risk.
Evaluate Regimes: Use “Trending Win Rate” and “Ranging Win Rate” to see where the strategy shines.
Backtest: Review Profit Factor and Max Drawdown to assess performance.
Start Small: Use a demo account to test signals before trading live.
Tips for Success
Match Your Style: Adjust scoreThreshold and timeframe to suit day trading (e.g., 15m, stricter threshold) or swing trading (e.g., 4H, looser threshold).
Monitor Regimes: If “Trending Win Rate” is higher, focus signals during strong trends (high ADX).
Manage Risk: Keep riskPerTrade low (e.g., 0.5-2%) and review Position Size for sanity.
Combine with Analysis: Use signals alongside support/resistance or news events for confirmation.
Tune Parameters: Experiment with atrVolatilityCap (e.g., 2.0 for tighter sizing) or adxThreshold (e.g., 30 for stronger trends).
Avoid Overtrading: Filter signals with minConfidenceForAlert (e.g., 70%) to focus on high-probability setups.
Example Scenarios
Crypto Breakout (BTC/USD 4H):
Composite Score jumps to 82, Signal Status shows “Buy” with 80% confidence.
Position Size is moderate due to high ATR during a rally.
“Trending Win Rate” is 65%, suggesting strength in directional moves.
Set an alert and enter with a 2:1 take-profit (e.g., stop at 60,000, target at 62,000).
Forex Range (EUR/USD 1H):
Score hovers near 45, no signal (Neutral).
“Ranging Win Rate” is 55%, indicating decent performance in consolidation.
Wait for a score above 70 or use a higher timeframe (e.g., Daily MTF Trend).
Stock Swing (AAPL daily):
Score hits 75, “Buy” signal with a small Position Size (low ATR).
Dashboard shows Bullish Ichimoku and MTF Trend.
Trade with a trailing stop to capture a multi-day move.
Why Choose Market Oracle?
All-in-One: Combines multiple indicators into one easy-to-read dashboard, saving you time.
Adaptive: Adjusts signals and sizing for market conditions (trending, ranging, volatile).
Transparent: Shows confidence, win rates, and risk levels to build trust in trades.
Customizable: Tailor to any market, timeframe, or trading style with dozens of settings.
No Clutter: Clean interface with no distracting visuals, just actionable data.
Getting Started
Add Market Oracle to your chart and explore the dashboard.
Test on a market you trade (e.g., ETH/USD 1H) with default settings.
Adjust scoreThreshold or riskPerTrade to match your risk tolerance.
Set alerts for Buy/Sell Signals and monitor performance via “Trending Win Rate” and “Profit Factor”.
Join TradingView communities to share setups and tips!
For questions or tweaks (e.g., adding VWAP, changing alert conditions), consult your indicator’s developer or TradingView’s Pine Script resources. Happy trading!
Super Arma Institucional PRO v6.3v6.3
Based on EMA 20 and 200 and SMA 50.
RSI, MACD and ADX built-in with supports and resistances.
Built-in volume, AI reviews the opening and closing of the previous candle and as the price moves it draws the supports and resistances that accompany the price on the chart in real time.
It works perfectly on all time frames, it was designed primarily for trading cryptocurrencies.
Premarket High/Low Breakout Alert (SMA8 Filter)Premarket High/Low Breakout Alert (SMA8 FilterPremarket High/Low Breakout Alert (SMA8 FilterPremarket High/Low Breakout Alert (SMA8 Filter