Macro Return ForecastWhen the macro environment was similar, what annualized return did the market usually deliver next?
Before using the indicator, make sure your chart is set to any US-market symbol (SPX, QQQ, DIA, etc.).
This requirement is simple: the indicator pulls macro series from US data (yields, TIPS, credit spreads, breadth of US indices).
Because these series are independent from the chart’s price series, the chart symbol itself does not affect the internal calculations.
Any US symbol works, and the output of the model will be identical as long as you are on a US asset with daily, weekly or monthly timeframe.
The plotted price does not matter: the macro engine is fully exogenous to the chart symbol.
1. What the indicator does relative to selected assets
In the settings you choose which market you want to analyze:
- S&P500
- Nasdaq or NQ100
- Dow Jones
- Russell 2000
- US-wide (VTI)
- S&P500 sectors (XLF, XLY, XLP, etc.)
For each one, the indicator loads:
- Its internal breadth series (percentage of constituents above MA200)
- Its price history to compute forward log-returns at multiple horizons
- Its regime position relative to its own MA200 (for bull/bear filtering)
This means the tool is not tied to the chart symbol you display.
If your chart is SPX but the indicator setting is “S&P500 Technology”, the expected return projection is computed for the Technology sector using its own data, not the chart’s data.
You can therefore:
- Visualize macro-driven expected returns for any major US index or sector.
- Compare how different parts of the market historically reacted to similar macro states.
- Switch assets instantly to see which segment historically behaved better in comparable macro conditions.
The indicator becomes an analyzer of macro sensitivity, not a chart-dependent indicator.
2. Method overview
The model answers a statistical question:
“When macro conditions looked like they do today, what forward annualized return did this asset usually deliver?”
To do this it combines four macro pillars:
- Market breadth of the selected asset
- Yield curve slope (US 10Y minus 2Y)
- US credit spread (high yield minus gov)
- US real rate (TIPS 10Y)
It normalizes each metric into a 0–100 score, groups similar historical states into bins, and examines what the asset did next across six horizons (from ~9 months to ~5 years).
This produces a historical map connecting macro states to realized forward returns.
It is not a forecast model.
It is a conditional-distribution estimator: it tells you what has historically happened from similar setups.
3. Why this produces useful insights on assets
For any chosen asset (SPX, Nasdaq, sectors…), the indicator computes:
- Its forward return distribution in similar macro states.
- How often these states occurred (n).
- Whether the macro environment that preceded positive returns in the past resembles today’s.
- Whether the asset tends to be more sensitive or more resilient than the broad index under given macro configurations.
- Whether a given sector historically benefited from specific yield-curve, credit or real-rate environments.
This lets you answer questions such as:
- Does this sector usually outperform in an inverted yield curve environment?
- Does the Nasdaq historically recover strongly after breadth collapses?
- How did the S&P500 behave historically when real rates were this high?
- Is today’s credit-spread environment typically associated with positive or negative forward returns for this index?
These insights are not predictions but statistical context backed by past market behavior.
4. Why the technique is robust (and why it matters)
The engine uses strict, non-optimistic data processing:
- Winsorization of returns to neutralize extreme outliers without deleting information.
- Shrinkage estimators to avoid overfitting when bins contain few occurrences.
- Adaptive or static bounds for scaling macro indicators, ensuring comparability across cycles.
- Inverse-variance weighting of horizons with penalties for horizon redundancy.
- HAC-style adjustments to reduce autocorrelation bias in return estimation.
Each method aims to prevent artificial inflation of expected-return values and to keep the estimator stable even in unusual macro states.
This produces a result that is not “optimistic”, not curve-fit, not dependent on chart tricks, and not sensitive to isolated historical anomalies.
5. What you get as a user
A single clean line:
Expected Annual Return (%)
This line reflects how the chosen asset historically performed after macro environments similar to today’s.
The color gradient and confidence indicator (n) show the density of comparable episodes in history.
This makes the output extremely simple to read:
- High, stable expectation: historically supportive macro environment.
- Low or negative expectation: historically weaker environments.
- Low confidence: the macro state is rare and historical comparisons are limited.
The tool therefore adds context, not signals.
It helps you understand the environment the asset is currently in, based on how markets behaved in similar conditions across US market history.
Indikator dan strategi
Mizan v5 - L-Score (Minimal)DESCRIPTION:
The Architecture of Market Probability
Mizan v5 is not just another technical indicator; it is a quantitative implementation of the "Ontological Probability" philosophy. It is designed to decipher the market's hidden intent by analyzing the relationship between Balance, Order, and Harmony (DDU Principles).
Unlike standard oscillators that blindly follow price action, Mizan v5 operates on a multi-dimensional logic structure to separate "Market Noise" from "True Momentum."
CORE LOGIC & FEATURES
1. The L-Score Engine (Composite Momentum)
The heart of this algorithm is the "L-Score," a weighted composite index that answers the question: "Is the move supported by energy and mass?"
It fuses three distinct market dimensions into a single actionable score (0-100):
Volume Flow (45% Weight): Uses customized Chaikin Money Flow (CMF) logic to detect "Smart Money" accumulation before price reacts.
Velocity (35% Weight): Uses CCI to measure the speed of the breakout.
Saturation (20% Weight): Uses RSI as a limiter to identify overextended conditions.
2. Adaptive Regime Detection (The Histogram Logic)
Markets are not linear; they switch between "Global" and "Local" realities. Mizan v5 calculates statistical Price Density Zones (similar to Market Profile logic) to find the "Fair Value."
Global Mode: Analyzes the long-term balance (70 bars).
Local Mode: Automatically switches focus to short-term volatility (20 bars) when a "Regime Change" (high deviation) is detected.
HOW TO USE
1. The L-Score Line (Signal):
🟢 GREEN Line (> 65): Bullish Phase. Volume and Momentum are aligned. High probability of continuation.
🔴 RED Line (< 45): Bearish/Neutral Phase. Lack of energy. Avoid long positions ("Don't catch a falling knife").
🟠 ORANGE Line: Indecision/Transition zone.
2. Background Zones (Valuation):
🟩 Green Background: "Statistical Cheap Zone." Price is below the density band. Potential for Mean Reversion (Dip Buying).
🟥 Red Background: "Statistical Expensive Zone." Price is extended above the density band. High risk of Distribution (Selling).
PHILOSOPHY
"Chaos is merely order waiting to be deciphered." This tool is the visual manifestation of the "Cosmic Architect" project, aiming to bridge the gap between abstract philosophy and algorithmic trading.
Disclaimer: This tool is for educational and analytical purposes only. It is not financial advice.
© MuratKavak | Idea Architect
Z-Score IndicatorThis script calculates the Z-Score to measure how many standard deviations the current price is from its mean (SMA). It is a classic tool for identifying statistical extremes and mean reversion opportunities.
Formula Z = (Close - Mean) / Standard Deviation
Visual Guide
Blue Line: The Z-Score value.
Red Dotted Lines (+/- 2): Statistical extremes.
> 2: Potentially Overbought.
< -2: Potentially Oversold.
Grey Dotted Line (0): The mean (fair value).
Settings
Lookback Period: Default is 30. Adjust to change sensitivity.
3 EMA Crossover (Text Color Customizable) - Fixed3 Ema crossover 9/15/21
it will generate buy and sell signal on crossover.
EMA CloudSimple EMA cloud using a fast, a slow and an optinal middle EMA.
It has EMA, EMA cloud and candle coloring depending on whether it's a downtrend or an uptrend.
It has a dashboard also with 4 customizable time frames that tells you if they are bullish or bearish and tells you the strength of the trend for the timeframe you are viewing.
QuantMotions - FVG with Volume TrackingFair Value Gap Detector with Dynamic Shrinking & Volume Analysis
Overview
Advanced Fair Value Gap (FVG) detection indicator with real-time box shrinking and volume delta analysis. Automatically identifies price inefficiencies and tracks institutional volume flow within each gap.
What are Fair Value Gaps?
Fair Value Gaps occur when price moves so rapidly that a "gap" is left between three consecutive candles, creating an inefficiency where no trading occurred. These gaps often act as support/resistance zones that price tends to revisit.
Detection:
- Bullish FVG: When low > high (upward price inefficiency)
- Bearish FVG: When high < low (downward price inefficiency)
Key Features
Dynamic Box Shrinking
FVG boxes automatically shrink as price enters them:
- Bullish FVGs shrink from top as price moves down into the gap
- Bearish FVGs shrink from bottom as price moves up into the gap
- Provides precise visualization of remaining unfilled gap area
Volume Delta Analysis
Tracks volume characteristics for the 3-candle FVG formation:
- Total Volume: Sum of volume from all three FVG candles
- Up/Down Split: Separates buying vs selling pressure
- Delta %: Shows directional bias of volume flow
- Color Coding: Green/Red when volume confirms direction, Orange when it doesn't
Smart Filtering
- ATR-based minimum gap size - Filters out insignificant noise gaps
- Auto-cleanup - Removes fully filled FVGs automatically
- Maximum display limit - Keeps charts clean by limiting visible FVGs
Live Statistics
Real-time stats table showing:
- Active bullish/bearish FVG count
- Average volume delta for each direction
- Fill progress tracking
Settings
Min Gap Size (ATR): Minimum gap size as multiple of ATR(14). Default: 0.3
- Lower values (0.1-0.3): More sensitive, shows smaller gaps
- Higher values (0.5-1.0): More selective, only significant gaps
Max FVGs: Maximum number of FVG boxes to display (5-100)
Remove Fully Filled: Automatically remove FVGs when price completely fills them
Shrink on Partial Fill: Enable dynamic box shrinking as price enters gaps
Show Volume Info: Display volume delta labels at box edges
How to Use
1. Confluence Trading: Look for FVGs that align with your support/resistance levels
2. Volume Confirmation: Check volume delta - strong directional volume increases probability
3. Partial Fills: Watch for price reactions at shrinking FVG boundaries
4. Multiple Timeframes: Use on higher timeframes (4H+) for swing trading, lower timeframes for scalping
Best Practices
- Combine with trend analysis - FVGs in trend direction have higher fill rates
- Pay attention to volume delta - gaps with confirming volume are more reliable
- Use on liquid markets for accurate volume data
- Higher timeframe FVGs typically carry more significance
Notes
- Works on all timeframes and instruments
- Volume data accuracy depends on your data provider
- FVGs are not guaranteed support/resistance - use proper risk management
- This indicator shows historical inefficiencies, not future predictions
Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always use proper risk management.
Tap n Barrel
This indicator implements the Tap n Barrel model.
The model is fully mechanical and follows a defined sequence of steps, removing discretionary ambiguity for the trader.
Instead of reacting to events after they occur, the model identifies a future price level where an entry may be placed. Its logic is based on the 5-minute and 15-minute timeframes and incorporates liquidity concepts, fakeouts, market structure, and Fibonacci OTE levels.
Both the directional bias and the entry criteria are rule-based, and the model targets a fixed 1:3 risk-to-reward ratio. Each element of the framework is informed by data collected across multiple currency pairs, representing over 40 years of combined historical testing.
Indicator features
Automatic market bias detection, or you can input your own
Customise your entry level and RR
Alerts for each stage of the model
Customisable entry and take out alerts for users looking to automate placing trades
US & EU Banking Basket Analysis (Dual Sentiment + Forecast) betaThis is “THE BANKING DECISION ENGINE”.
Some say "'Banks lead the way'"
(As always use in combination with other trading instruments and market awareness information).
US & EU Banking Basket Analysis (Dual Sentiment + Forecast)
One indicator for the big banking sector! – both sides of the Atlantic
– just add to your chart.
WHAT IT DOES
• Pulls live data from 14 major US and EU banks (JPM, BAC, GS, HSBC, Santander, Deutsche Bank, ING, Barclays etc.)
• Instantly compares strength/weakness between American and European banking sectors
• Shows you TWO separate real-time sentiment lines on your chart: • Blue/Purple line = US banking sentiment • Green/Red line = European banking sentiment
• Combines moving-average momentum, volume + RSI confirmation, major indices (DJI, SPX, NASDAQ, DAX), DXY direction, and ultra-fast 1-second “Volatility Pulse” technology
• Gives you forward-looking tools so you’re not just reacting:
→ Statistical price prediction cloud (looks back 200 bars for similar sentiment situations and shows the average outcome) → Purple prediction bar + exact target price (shows where price is expected to be N bars ahead) → 15-minute “Pulse Forecast” dotted line (second-beat momentum projection) → Optional EUR/USD forecast line when on EUR/USD chart (because currency moves the banks hard)
──────────────────────── VISUAL ENHANCEMENTS YOU GET
• Clean split sentiment lines that never overlap (zoom-proof)
• Glowing fill + permanent “US” / “EU” tags
• Tiny bar labels (EUs / USm etc.) showing exactly how many banks are firing buy/sell right now
• Full banking watchlist table (top-right) with live prices, % change and instant signals
• Major index ticker (DJI, SPX, NASDAQ, DAX) with exploding alerts
• Supply/demand zones, previous daily range, high-volume “V” signals and more
──────────────────────── PERFECT FOR
• Trading any bank stock (US or EU)
• Trading XLF, KBE, EUFN or banking ETFs
• Trading EUR/USD while watching how the banking sector reacts
• Scalping, intraday, swing – works from 1-minute up to daily
One indicator. Both continents. Zero clutter. Maximum edge.
(Works on any chart: apply it to JPM, SAN, EURUSD, SPX… it auto-detects the region and adjusts)
Ready when you are. Let’s go banking. 🚀 “Carefully and responsibly of course”.
Quick Guide to What You’re Seeing on the Chart
Dual Sentiment Lines (the two thick glowing lines in the middle of the screen)
• Upper line (Blue → Purple → Orange) → US banking sector sentiment
• Bright purple = strong US bullish
• Light blue-purple = moderate/mild US bullish
• Orange = bearish US sentiment
• Lower line (Green → Lime → Red) → European banking sector sentiment
• Lime/green = strong EU bullish
• Darker green = moderate EU bullish
• Red = bearish EU sentiment
These two lines are deliberately split vertically so they never cross or confuse each other, no matter how much you zoom.
Tiny labels on the candles (EUs, USm, EUw, etc.)
• Show exactly how many banks in each region are flashing buy or sell right now
• “7 EUs” = all 7 European banks are strong buy
• “4 USm” = 4 US banks are medium-strength buy
• Appear only when the “Show Bar/Plot Labels” toggle is on
Purple vertical bar on the far right + label
• Your statistical price target (default 5 bars ahead)
• Box height = expected price move
• Label shows exact target price + % average historical move (or “Fallback” if using sentiment-based projection)
Faint cloud in front of the current price
• Prediction cloud showing the probable price zone in the next few bars
• Green cloud = historically price went up from similar sentiment
• Red cloud = historically price went down
Dotted horizontal line + target label
• Daily barometer – shows the exact same statistical target as the purple bar, just drawn as a line for cleaner view
White dotted line (15-minute Pulse Forecast)
• Ultra-short-term momentum projection (usually 10-30 min ahead) based on 1-second “pulse” data from all major indices
• Appears only when the pulse is strong enough
Top-right table
• Live watchlist of all 14 banks + instant signal summary
• Green/red dot = volume+RSI confirmation
• S Buy / M Buy / W Buy etc. = MA-based signal strength
Bottom-center index ticker
• Real-time % change of DJI, S&P 500, NASDAQ, DAX
• !!! / !! / ! = explosion alerts (bigger move = more exclamation marks)
Other helpful layers (toggle on/off in settings)
• Previous day’s high/low range (teal shaded area)
• Supply/demand zones (green/red boxes)
• High-volume “V” markers
• DXY (USD strength) arrows
Like a masterpiece. Not just another isolated chart indicator.
Final note: Trading instruments such as this consist of historical data behind the current seconds and minutes, therefore do not guarantee prediction, forecast profit results or guarantee protection from financial losses such as in whipsaw downturns in long positions or whipsaw market swings in short positions. This decision engine is intended for use in combination with user discretion.
6 EMA - 6 SMA This indicator will allow you to place on the chart at the same time 6 EMAs and 6 SMAs if you want — a total of 12 EMAs/SMAs!
Momentum Grid 2.1 + Top Stocks📊 MOMENTUM GRID 2.1 + TOP STOCKS
Overview
A multi-timeframe confirmation system specifically designed for NIFTY 50 and BANK NIFTY index options trading. This script combines 8 independent technical indicators into a weighted scoring model to generate high-probability CE (Call) and PE (Put) signals, while simultaneously tracking the top 5 constituent stocks for sector-wide momentum validation.
________________________________________
🎯 Core Methodology
1. 8-Factor Confirmation System
Unlike traditional single-indicator approaches, this script requires multiple confirmations before generating signals. Each factor votes independently:
Trend Alignment (3 votes):
• C1: Price above/below EMA 9 (immediate trend)
• C2: EMA 9 above/below EMA 20 (short-term momentum)
• C3: EMA 20 above/below EMA 50 (intermediate trend)
Oscillator Confirmation (3 votes):
• C4: RSI above/below 50 (momentum strength)
• C5: Stochastic K above/below D (entry timing)
• C6: MACD Histogram positive/negative (momentum direction)
Advanced Momentum (2 votes):
• C7: Parabolic SAR position (trend continuation)
• C8: Squeeze Momentum direction (volatility expansion)
Mathematical Logic:
Bullish Score = C1 + C2 + C3 + C4 + C5 + C6 + C7 + C8
Signal Triggered when Score ≥ Threshold (default: 5/8)
Why This Works: By requiring 5+ confirmations, the script filters out false signals that occur when only 1-2 indicators align by chance. This dramatically reduces whipsaws in choppy markets.
________________________________________
📈 Constituent Stock Analysis System
Real-Time Top 5 Stocks Tracking
The script fetches live data from the most heavily-weighted stocks in the selected index:
NIFTY 50 Constituents:
• Reliance Industries
• HDFC Bank
• Infosys
• ICICI Bank
• TCS
BANK NIFTY Constituents:
• HDFC Bank
• ICICI Bank
• Kotak Mahindra Bank
• State Bank of India
• Axis Bank
Stock Scoring Algorithm (0-6 Scale):
For each stock, the script calculates a momentum score based on:
1. Price vs EMA 9 position
2. EMA 9 vs EMA 20 relationship
3. EMA 20 vs EMA 50 hierarchy
4. RSI above/below 50
5. MACD histogram direction
6. Intraday price change direction
Signal Interpretation:
• 🚀🔥 Strong Bullish: Score ≥5 + Day Change >0.5%
• ⚠️❄️ Strong Bearish: Score ≤1 + Day Change <-0.5%
• 📈 Moderate Bullish: Score ≥3 + Positive change
• 📉 Moderate Bearish: Score ≤3 + Negative change
Why Track Constituents?
Index options are a weighted average of their components. When 4 out of 5 top stocks show strong bullish signals but the index signal is neutral, it indicates:
• Sector rotation is happening
• Underlying strength not yet reflected in index
• Early warning for potential index breakout
________________________________________
🎨 Visual Dashboard System
1. Main Momentum Grid (Middle Right)
Real-time status of all 8 confirmation factors:
• Individual indicator values
• Bullish/Bearish status per indicator
• Cumulative Bull Score and Bear Score
• Visual color coding (Green = Bullish, Red = Bearish)
2. Top Stocks Status Panel (Top Right)
Live tracking table showing:
• LTP (Last Traded Price): Current stock price
• Day Change %: Intraday movement from open
• Status: Overall bullish/bearish trend
• EMA Status: Position relative to EMA 9
• Signal Emoji: Visual strength indicator
3. Scenario Guide (Bottom Right)
Auto-calculates trade parameters based on current signal:
• Side: CE (Call) or PE (Put) recommendation
• Strike Reference: Current index price
• Trigger Level: Entry confirmation level (high/low of signal bar)
• Risk Limit: Stop loss using 1.5x ATR
• Price Objective: Target using 2.5x ATR
ATR-Based Risk Management: Average True Range (14-period) adapts stop-loss and targets to current volatility, ensuring consistent risk-reward ratios across different market conditions.
________________________________________
🚨 Signal Generation Logic
CE (Call) Signal Triggers When:
1. Bullish Score ≥ Threshold (5/8 default)
2. Previous bar Bullish Score < Threshold
3. Confirmation candle closes above EMA 9
4. Background turns light green
PE (Put) Signal Triggers When:
1. Bearish Score ≥ Threshold (5/8 default)
2. Previous bar Bearish Score < Threshold
3. Confirmation candle closes below EMA 9
4. Background turns light red
Signal Validation: Labels appear only when a new qualifying bar completes, preventing repainting. The tooltip shows the exact score and entry price for record-keeping.
________________________________________
🔧 Customization Options
Parameter Purpose Recommendation
Index Selection Choose NIFTY 50 or BANK NIFTY Match to your trading instrument
EMA Periods Adjust trend sensitivity Default (9/20/50/100) suits 5-15 min
Signal Threshold Min confirmations required 5/8 (balanced), 6/8 (conservative)
RSI Length Momentum calculation period 14 (standard), 21 (smoother)
MACD Settings Fast/Slow/Signal periods 12/26/9 (industry standard)
________________________________________
📊 Technical Indicator Details
Exponential Moving Averages (EMA)
• Why EMA vs SMA: Exponential weighting gives more importance to recent price action, making it more responsive to trend changes in fast-moving index options.
Relative Strength Index (RSI)
• Measures momentum on 0-100 scale
• 50 level acts as bull/bear dividing line
• Used for confirmation, not overbought/oversold
Stochastic Oscillator
• Compares closing price to recent range
• K line crossing above D line = bullish momentum shift
• Sensitive to short-term reversals
MACD (Moving Average Convergence Divergence)
• Histogram shows momentum acceleration/deceleration
• Positive histogram = increasing bullish momentum
• Used as tiebreaker when other signals conflict
Parabolic SAR
• Tracks stop-and-reverse points
• Dots below price = uptrend, above = downtrend
• Adds trend-following confirmation
Squeeze Momentum
• Identifies periods of low volatility (consolidation)
• Bollinger Bands inside Keltner Channels = "squeeze"
• Positive momentum during squeeze = bullish breakout setup
________________________________________
💡 What Makes This Script Unique
1. Index-Specific Design: Unlike generic multi-timeframe indicators, this is purpose-built for NIFTY/BANKNIFTY options with constituent stock correlation analysis.
2. Multi-Layer Validation: Combines price action (EMAs), momentum (RSI/Stoch/MACD), and volatility (Squeeze) for comprehensive market assessment.
3. Smart Constituent Tracking: Automatically switches stock universe based on selected index, providing sector-level context that single-chart indicators miss.
4. Adaptive Risk Management: ATR-based stop-loss and targets adjust to market volatility automatically, unlike fixed-point systems.
5. No Repainting: All calculations use confirmed bars with lookahead=barmerge.lookahead_off parameter, ensuring historical backtesting accuracy.
________________________________________
📚 Best Practices
Timeframe Selection:
• 5 min: Scalping (high frequency, tight stops)
• 15 min: Intraday swing trades (balanced)
• 1 hour: Positional option trades (overnight holds)
Trade Execution:
1. Wait for CE/PE label to appear
2. Check Top Stocks Status - look for 3+ stocks confirming index direction
3. Verify Scenario Guide shows acceptable risk-reward (min 1:1.5)
4. Enter on next candle open or use trigger level for limit orders
5. Place stop-loss at "Risk Limit" level
6. Scale out at "Price Objective" or trail with Parabolic SAR
False Signal Filters:
• Avoid signals during first 15 minutes of market open (high volatility)
• Skip signals when Top Stocks show conflicting directions (3 bull, 2 bear)
• Increase threshold to 6/8 during major news events
• Disable trading 30 minutes before important announcements
________________________________________
⚠️ Limitations & Considerations
• Index Options Specific: Optimized for NIFTY/BANKNIFTY - may need recalibration for other instruments
• Not Suitable for Trending Markets: Works best in swing/range conditions; reduce threshold in strong trends
• Constituent Data Dependency: Relies on accurate real-time stock data; verify broker data quality
• Options Greeks Ignored: Script doesn't account for theta decay, IV changes - user must manage option selection
________________________________________
🔔 Built-In Alerts
Set alerts for:
• CE Signal Generated: Bullish score crosses threshold
• PE Signal Generated: Bearish score crosses threshold
Alert messages include ticker symbol and entry price for quick execution.
________________________________________
📈 Performance Optimization Tips
1. Score Correlation Check: If Bull Score and Bear Score are both high (6+/8), market is conflicted - wait for resolution.
2. Stock Divergence Strategy: When 4/5 stocks are bullish but index shows PE signal, it often indicates a false breakdown - counter-trend opportunity.
3. Squeeze Breakout Combo: Strongest signals occur when Squeeze changes from "ON" to "OFF" simultaneously with CE/PE trigger.
4. EMA Stacking: Maximum confidence signals have all three EMAs in proper order (9>20>50 for bull, reverse for bear).
________________________________________
🎓 Educational Context
This methodology synthesizes:
• Multi-Timeframe Analysis: EMAs represent different trend horizons
• Oscillator Convergence: Multiple momentum tools reduce false positives
• Index Arbitrage Concepts: Constituent tracking exploits pricing inefficiencies
• Adaptive Volatility: ATR-based risk scales with market conditions
The 8-factor system mirrors institutional decision frameworks where analysts require consensus across multiple models before position changes.
________________________________________
📋 Quick Reference
Bullish Setup Checklist: ✅ Bull Score ≥ 5/8
✅ Green background color
✅ 3+ top stocks showing 📈 or 🚀
✅ Price above EMA 9
✅ MACD Histogram positive
Bearish Setup Checklist: ✅ Bear Score ≥ 5/8
✅ Red background color
✅ 3+ top stocks showing 📉 or ⚠️
✅ Price below EMA 9
✅ MACD Histogram negative
________________________________________
⚖️ Disclaimer
This indicator is a decision support tool, not an automated trading system. Index options involve substantial risk and can result in total loss of premium paid. The constituent stock analysis provides context but does not guarantee index price movement. Users must:
• Understand options Greeks (delta, theta, vega)
• Use proper position sizing (max 2-3% capital per trade)
• Never trade based on signals alone without market context
• Comply with SEBI regulations and broker policies
Past performance of signals does not guarantee future results.
________________________________________
Version: Pine Script v6
Supported Indices: NIFTY 50, BANK NIFTY
Resource Usage: Moderate (Multi-security data requests)
Update Frequency: Real-time on current timeframe
________________________________________
For support or suggestions, please comment below. If this script helps your trading, please like and follow for updates! 🚀📊
Highlight TimeHighlight Time shades the chart background during user‑defined hours. Choose start/end times and a time zone to visually mark key trading windows like the spread hour.
ActivTrades Metals Market Pulse – Ion JaureguiThe ActivTrades Metals Market Pulse Indicator is a market analysis tool designed to assess overall risk sentiment in the metals market. Rather than generating trade signals, it provides a snapshot of the prevailing environment, helping traders and analysts understand whether conditions favor risk-taking or caution.
How it Works:
The indicator combines two key metal market metrics:
Metals Performance:
Compares the performance of industrial metals with precious metals relative to their 50-day moving averages.
Stronger industrial metal performance indicates higher market risk tolerance (Risk-On), while stronger precious metal performance suggests increased risk aversion (Risk-Off).
Trend Momentum:
Uses a Bloomberg-style scoring system based on the relative position of each metal to its 50-day SMA.
Scores range visually from -5 to +5 to indicate overall market sentiment.
Risk Sentiment Index:
Each metal contributes to the total score, creating an index that oscillates between Risk-On (high risk appetite) and Risk-Off (heightened caution), with a neutral zone for mixed conditions.
Visual Output:
Results are displayed as a colored histogram for easy interpretation of metals market sentiment.
Labeled zones include:
Extreme Risk-On: Industrial metals strongly outperform precious metals.
Extreme Risk-Off: Precious metals strongly outperform industrial metals.
Neutral Zone / Mixed: No clear dominance; the market is balanced or sideways.
Purpose and Use:
Helps traders, analysts, and investors gauge prevailing risk appetite in the metals market.
Provides context for strategic positioning and risk management without offering direct trade recommendations.
*******************************************************************************************
The information provided does not constitute investment research. The material has not been prepared in accordance with the legal requirements designed to promote the independence of investment research and such should be considered a marketing communication.
All information has been prepared by ActivTrades ("AT"). The information does not contain a record of AT's prices, or an offer of or solicitation for a transaction in any financial instrument. No representation or warranty is given as to the accuracy or completeness of this information.
Any material provided does not have regard to the specific investment objective and financial situation of any person who may receive it. Past performance and forecasting are not a synonym of a reliable indicator of future performance. AT provides an execution-only service. Consequently, any person acting on the information provided does so at their own risk. Political risk is unpredictable. Central bank actions can vary. Platform tools do not guarantee success.
INDICATORS:
RISK ADVICE: The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by ActivTrades. This script intends to help follow the trend and filter out market noise. This script is meant for the use of international users. This script is not meant for the use of Spain users.
Gold Thai CompassGold Thai Compass Indicator
Calculates Thai Gold Price (96.5%) by converting XAU/USD with the USD/THB exchange rate in real time
Displays the calculated gold_price_thb directly on the chart with a clean right-aligned label for easy price reading
Includes customizable reference lines — add, remove, rename, recolor, and adjust each line independently
Supports multiple editable lines (e.g., 4 levels) with price labels displayed beside each line
Provides user-friendly input settings (e.g., custom price sources, spread/adjustment options)
Updates dynamically with live market data — suitable for trading, analysis, and Thai gold price tracking
Designed for TradingView (Pine Script) and optimized for clarity and usability
Optional visibility controls to show/hide labels and reference lines for a cleaner chart layout
MTF Levels (Gerchik Style v6)This indicator highlights key multi-timeframe levels that traders typically monitor to understand market structure and potential price behavior. It displays daily, weekly, and monthly high/low ranges, helping you quickly see where price is positioned relative to major levels. The visualization makes it easier to track important zones, observe how price interacts with them, and evaluate possible scenarios based on market reactions such as breakouts, retests, or consolidations. This tool is designed to support decision-making by providing a clear context of significant levels across different timeframes.
GEETS Custom LevelsINTRADAY SUPPORT AND RESISTANCE LEVELS DERIVED FROM PREVIOUS CANDLES PRICE ACTION. : A Price Action indicator is designed to study market behavior by analyzing candlestick patterns, highs/lows, and support/resistance zones.
Instead of using moving averages or oscillators, it emphasizes price itself as the most reliable signa
ULTIMATE ORDER FLOW SYSTEM🔥 ULTIMATE ORDER FLOW SYSTEM
Overview
This comprehensive order flow analysis tool combines **Volume Profile**, **Cumulative Delta**, and **Large Order Detection** to identify high-probability trading setups. The script analyzes institutional order flow patterns and volume distribution to pinpoint key levels where price is likely to react.
📊 Core Components & Methodology
🔥 ULTIMATE ORDER FLOW SYSTEM
Overview
This comprehensive order flow analysis tool combines Volume Profile, Cumulative Delta, and Large Order Detection to identify high-probability trading setups. The script analyzes institutional order flow patterns and volume distribution to pinpoint key levels where price is likely to react.
________________________________________
📊 Core Components & Methodology
1. Volume Profile Analysis
The script constructs a horizontal volume profile by:
• Dividing the price range into configurable rows (default: 20)
• Accumulating volume at each price level over a lookback period (default: 50 bars)
• Separating buy volume (green bars close > open) from sell volume (red bars)
• Identifying three critical levels:
o POC (Point of Control): Price level with highest traded volume - acts as a strong magnet
o VAH/VAL (Value Area High/Low): Contains 70% of total volume - defines fair value zone
o HVN (High Volume Nodes): Resistance zones where institutions accumulated positions
o LVN (Low Volume Nodes): Thin zones that price moves through quickly - ideal targets
Why This Matters: Institutional traders leave footprints through volume. HVN zones show where large players defended levels, making them reliable support/resistance.
________________________________________
2. Cumulative Delta (Order Flow)
Tracks the running total of buying vs selling pressure:
• Bar Delta: Difference between buy and sell volume per candle
• Cumulative Delta: Sum of all bar deltas - shows net directional pressure
• Delta Moving Average: Smoothed delta (20-period) to identify trend
• Delta Divergences:
o Bullish: Price makes lower low, but delta makes higher low (absorption at bottom)
o Bearish: Price makes higher high, but delta makes lower high (exhaustion at top)
How It Works: When cumulative delta trends up while price consolidates, it signals accumulation. Delta divergences reveal when smart money is positioned opposite to retail expectations.
________________________________________
3. Large Order Detection
Identifies institutional-sized orders in real-time:
• Compares current bar volume to 20-period moving average
• Flags orders exceeding 2.5x average volume (configurable multiplier)
• Distinguishes bullish (green circles below) vs bearish (red circles above) large orders
Rationale: Sudden volume spikes at key levels indicate institutional participation - the "fuel" needed for breakouts or reversals.
________________________________________
🎯 Trading Signal Logic
Combined Setup Criteria
The script generates SHORT and LONG signals when multiple conditions align:
SHORT Signal Requirements:
1. Price reaches an HVN resistance zone (within 0.2%)
2. Large sell order detected (volume spike + red candle)
3. Cumulative delta is bearish OR bearish divergence present
4. 10-bar cooldown between signals (prevents overtrading)
LONG Signal Requirements:
1. Price reaches an HVN support zone
2. Large buy order detected (volume spike + green candle)
3. Cumulative delta is bullish OR bullish divergence present
4. 10-bar cooldown enforced
________________________________________
🔧 Customization Options
Setting - Purpose - Recommendation
Volume Profile Rows - Granularity of level detection - 20 (balanced)
Lookback Period - Historical data analyzed - 50 bars (intraday), 200 (swing)
Large Order Multiplier - Sensitivity to volume spikes - 2.5x (standard), 3.5x (conservative)
HVN Threshold - Resistance zone detection - 1.3 (default)
LVN Threshold - Target zone identification - 0.6 (default)
Divergence Lookback - Pivot detection period - 5 bars (responsive)
________________________________________
📈 Dashboard Indicators
The real-time panel displays:
• POC: Current Point of Control price
• Location: Whether price is at HVN resistance
• Orders: Current large buy/sell activity
• Cumulative Δ: Net order flow value + trend direction
• Divergence: Active bullish/bearish divergences
• Bar Strength: % of candle volume that's directional (>65% = strong)
• SETUP: Current trade signal (LONG/SHORT/WAIT)
________________________________________
🎨 Visual System
• Yellow POC Line: Highest volume level - primary pivot
• Blue Value Area Box: Fair value zone (VAH to VAL)
• Red HVN Zones: Resistance/support from institutional accumulation
• Green LVN Zones: Low-liquidity targets for quick moves
• Volume Bars: Green (buy pressure) vs Red (sell pressure) distribution
• Triangles: LONG (green up) and SHORT (red down) entry signals
• Diamonds: Divergence warnings (cyan=bullish, fuchsia=bearish)
________________________________________
💡 How This Script Is Unique
Unlike standalone volume profile or delta indicators, this script:
1. Synthesizes three complementary methods - volume structure, order flow momentum, and liquidity detection
2. Requires multi-factor confirmation - signals only trigger when price, volume, and delta align at key zones
3. Adapts to market regime - delta filters ensure you're trading with the dominant order flow direction
4. Provides context, not just signals - the dashboard helps you understand why a setup is forming
________________________________________
⚙️ Best Practices
Timeframes:
• 5-15 min: Scalping (use 30-50 bar lookback)
• 1-4 hour: Swing trading (use 100-200 bar lookback)
Risk Management:
• Enter on signal candle close
• Stop loss: Beyond nearest HVN/LVN zone
• Target 1: Next LVN level
• Target 2: Opposite value area boundary
Filters:
• Avoid signals during major news events
• Require bar delta strength >65% for aggressive entries
• Wait for delta MA cross confirmation in ranging markets
________________________________________
🚨 Alerts Available
• Long Setup Trigger
• Short Setup Trigger
• Bullish/Bearish Divergence Detection
• Large Buy/Sell Order Execution
________________________________________
📚 Educational Context
This methodology is based on principles used by professional order flow traders:
• Market Profile Theory: Volume distribution reveals fair value
• Tape Reading: Large orders show institutional intent
• Auction Theory: Price seeks areas of liquidity imbalance (LVN zones)
The script automates pattern recognition that discretionary traders spend years learning to identify manually.
________________________________________
⚠️ Disclaimer
This indicator is a trading tool, not a trading system. It identifies high-probability setups based on order flow analysis but requires proper risk management, market context, and trader discretion. Past performance does not guarantee future results.
________________________________________
Version: 6 (Pine Script)
Type: Overlay + Separate Pane (Delta Panel)
Resource Usage: Moderate (500 bars history, 500 lines/boxes)
________________________________________
For questions or support, please comment below. If you find this script valuable, please boost and favorite! 🚀
1. Volume Profile Analysis
The script constructs a horizontal volume profile by:
- Dividing the price range into configurable rows (default: 20)
- Accumulating volume at each price level over a lookback period (default: 50 bars)
- Separating buy volume (green bars close > open) from sell volume (red bars)
- Identifying three critical levels:
- POC (Point of Control): Price level with highest traded volume - acts as a strong magnet
- VAH/VAL (Value Area High/Low): Contains 70% of total volume - defines fair value zone
- HVN (High Volume Nodes): Resistance zones where institutions accumulated positions
- LVN (Low Volume Nodes): Thin zones that price moves through quickly - ideal targets
Why This Matters: Institutional traders leave footprints through volume. HVN zones show where large players defended levels, making them reliable support/resistance.
---
2. Cumulative Delta (Order Flow)
Tracks the running total of buying vs selling pressure:
- **Bar Delta**: Difference between buy and sell volume per candle
- **Cumulative Delta**: Sum of all bar deltas - shows net directional pressure
- **Delta Moving Average**: Smoothed delta (20-period) to identify trend
- **Delta Divergences**:
- **Bullish**: Price makes lower low, but delta makes higher low (absorption at bottom)
- **Bearish**: Price makes higher high, but delta makes lower high (exhaustion at top)
**How It Works**: When cumulative delta trends up while price consolidates, it signals accumulation. Delta divergences reveal when smart money is positioned opposite to retail expectations.
---
### 3. **Large Order Detection**
Identifies **institutional-sized orders** in real-time:
- Compares current bar volume to 20-period moving average
- Flags orders exceeding 2.5x average volume (configurable multiplier)
- Distinguishes bullish (green circles below) vs bearish (red circles above) large orders
**Rationale**: Sudden volume spikes at key levels indicate institutional participation - the "fuel" needed for breakouts or reversals.
---
## 🎯 Trading Signal Logic
### Combined Setup Criteria
The script generates **SHORT** and **LONG** signals when multiple conditions align:
**SHORT Signal Requirements:**
1. Price reaches an HVN resistance zone (within 0.2%)
2. Large sell order detected (volume spike + red candle)
3. Cumulative delta is bearish OR bearish divergence present
4. 10-bar cooldown between signals (prevents overtrading)
**LONG Signal Requirements:**
1. Price reaches an HVN support zone
2. Large buy order detected (volume spike + green candle)
3. Cumulative delta is bullish OR bullish divergence present
4. 10-bar cooldown enforced
---
## 🔧 Customization Options
| Setting | Purpose | Recommendation |
|---------|---------|----------------|
| **Volume Profile Rows** | Granularity of level detection | 20 (balanced) |
| **Lookback Period** | Historical data analyzed | 50 bars (intraday), 200 (swing) |
| **Large Order Multiplier** | Sensitivity to volume spikes | 2.5x (standard), 3.5x (conservative) |
| **HVN Threshold** | Resistance zone detection | 1.3 (default) |
| **LVN Threshold** | Target zone identification | 0.6 (default) |
| **Divergence Lookback** | Pivot detection period | 5 bars (responsive) |
---
## 📈 Dashboard Indicators
The real-time panel displays:
- **POC**: Current Point of Control price
- **Location**: Whether price is at HVN resistance
- **Orders**: Current large buy/sell activity
- **Cumulative Δ**: Net order flow value + trend direction
- **Divergence**: Active bullish/bearish divergences
- **Bar Strength**: % of candle volume that's directional (>65% = strong)
- **SETUP**: Current trade signal (LONG/SHORT/WAIT)
---
## 🎨 Visual System
- **Yellow POC Line**: Highest volume level - primary pivot
- **Blue Value Area Box**: Fair value zone (VAH to VAL)
- **Red HVN Zones**: Resistance/support from institutional accumulation
- **Green LVN Zones**: Low-liquidity targets for quick moves
- **Volume Bars**: Green (buy pressure) vs Red (sell pressure) distribution
- **Triangles**: LONG (green up) and SHORT (red down) entry signals
- **Diamonds**: Divergence warnings (cyan=bullish, fuchsia=bearish)
---
## 💡 How This Script Is Unique
Unlike standalone volume profile or delta indicators, this script:
1. **Synthesizes three complementary methods** - volume structure, order flow momentum, and liquidity detection
2. **Requires multi-factor confirmation** - signals only trigger when price, volume, and delta align at key zones
3. **Adapts to market regime** - delta filters ensure you're trading with the dominant order flow direction
4. **Provides context, not just signals** - the dashboard helps you understand *why* a setup is forming
---
## ⚙️ Best Practices
**Timeframes:**
- 5-15 min: Scalping (use 30-50 bar lookback)
- 1-4 hour: Swing trading (use 100-200 bar lookback)
**Risk Management:**
- Enter on signal candle close
- Stop loss: Beyond nearest HVN/LVN zone
- Target 1: Next LVN level
- Target 2: Opposite value area boundary
**Filters:**
- Avoid signals during major news events
- Require bar delta strength >65% for aggressive entries
- Wait for delta MA cross confirmation in ranging markets
---
## 🚨 Alerts Available
- Long Setup Trigger
- Short Setup Trigger
- Bullish/Bearish Divergence Detection
- Large Buy/Sell Order Execution
---
## 📚 Educational Context
This methodology is based on principles used by professional order flow traders:
- **Market Profile Theory**: Volume distribution reveals fair value
- **Tape Reading**: Large orders show institutional intent
- **Auction Theory**: Price seeks areas of liquidity imbalance (LVN zones)
The script automates pattern recognition that discretionary traders spend years learning to identify manually.
---
## ⚠️ Disclaimer
This indicator is a **trading tool, not a trading system**. It identifies high-probability setups based on order flow analysis but requires proper risk management, market context, and trader discretion. Past performance does not guarantee future results.
---
**Version**: 6 (Pine Script)
**Type**: Overlay + Separate Pane (Delta Panel)
**Resource Usage**: Moderate (500 bars history, 500 lines/boxes)
---
*For questions or support, please comment below. If you find this script valuable, please boost and favorite!* 🚀
Dimagi72 Trend Suite (EMA/SMA + 52W + Cross Signals)Dimagi72 Trend Suite is an advanced trend analysis tool designed to give traders a clear picture of market direction, momentum, and major structural turning points.
It combines the most reliable long-term and short-term signals into one clean, easy-to-read indicator.
Features
• EMA9 & EMA21 for short-term momentum
• SMA50, SMA100, SMA200 for medium & long-term trend structure
• 52-Week High & Low levels for institutional support/resistance
• Golden Cross / Death Cross signals (SMA50 vs SMA200)
• Trend Strength Meter, shown directly on the chart
• Clean labels without clutter
• Designed for crypto, stocks, and forex on all timeframes (best on Daily)
How it works
The indicator measures alignment between EMAs and SMAs, tracks long-term institutional levels, and highlights major trend reversals through cross signals.
The Trend Strength Meter calculates a score from -4 to +4, making trend direction instantly visible.
Why use this indicator
This suite brings together the most widely used trend-following tools into one unified system.
It helps traders quickly determine when the market is bullish, bearish, or neutral — and when major reversals may be forming.
Best for:
Swing traders, long-term trend followers, crypto traders, and anyone who wants a clean visual overview of the trend without using multiple separate indicators.
Tags (use these to show up in search)
trend
ema
sma
trend-following
golden cross
death cross
momentum
trend strength
52 week high
crypto
stocks
market structure
The 'Qualified' POI Scorer [PhenLabs]📊 The “Qualified” POI Scorer (Q-POI)
Version: PineScript™ v6
📌 Description
The “Qualified” POI Scorer helps intermediate traders overcome "analysis paralysis" by filtering Smart Money Concepts (SMC) structures based on their probability. Instead of flooding your chart with every possible Order Block, this script assigns a proprietary “Quality Score” (0-100) to each zone. It analyzes the strength of the displacement, the presence of imbalances (FVG), and liquidity mechanics to determine which zones are worth your attention. It is designed to clean up your charts and enforce discipline by visually fading out low-quality setups.
🚀 Points of Innovation
Dynamic “Glass UI” Transparency that automatically fades weak zones based on their score.
Proprietary Scoring Algorithm (0-100) based on three distinct institutional factors.
Visual Icon System that prints analytical context (💧— 🚀/🐌—🧱) directly on the chart.
Automated Mitigation Tracking that changes the visual state of zones after they are tested.
Displacement Velocity calculation using ATR to verify institutional intent.
🔧 Core Components
Liquidity Sweep Engine: Detects if a pivot point grabbed liquidity from the previous X bars before reversing.
FVG Validator: Checks if the move away from the zone created a valid Fair Value Gap.
Momentum Scorer: Calculates the size of the displacement candle relative to the Average True Range (ATR).
🔥 Key Features
Quality Filtering: Automatically hides or dims zones that score below 50 (user configurable).
State Management: Zones turn grey when mitigated and delete themselves when invalidated.
Visual Scorecard: Displays the exact numeric score on the zone for quick decision-making.
Time-Decay Logic: Keeps the chart clean by managing the lifespan of old zones.
🎨 Visualization
High Score Zones (80-100): Display as bright, semi-solid boxes indicating high probability.
Medium Score Zones (50-79): Display as translucent “glass” boxes.
Low Score Zones (<50): Display as faint “ghost” boxes or are completely hidden.
Rocket Icon (🚀): Indicates high momentum displacement.
Snail Icon (🐌): Indicates low momentum displacement.
Drop Icon (💧): Indicates the zone swept liquidity.
Brick Icon (🧱): Indicates the zone is supported by an FVG.
📖 Usage Guidelines
Swing Structure Length (Default: 5): Controls the sensitivity of the pivot detection; lower numbers create more zones, higher numbers find major swing points.
ATR Length (Default: 14): Determines the lookback period for calculating relative momentum.
Minimum Quality Score (Default: 50): The threshold for which zones are considered “valid” enough to be fully visible.
Bullish/Bearish Colors: Fully customizable colors that adapt their own transparency based on the score.
Show Weak Zones (Default: False): Toggles the visibility of zones that failed the quality check.
✅ Best Use Cases
Filtering noise during high-volatility sessions by focusing only on Score 80+ zones.
Confirming trend continuation entries by looking for the Rocket (🚀) momentum icon.
Avoiding “stale” zones by ignoring any box that has turned grey (Mitigated).
⚠️ Limitations
The indicator is reactive to closed candles and cannot predict news-driven spikes.
Scoring is based on technical structure and does not account for fundamental drivers.
In extremely choppy markets, the ATR filter may produce lower scores due to lack of displacement.
💡 What Makes This Unique
It transforms subjective SMC analysis into an objective, quantifiable score.
The visual hierarchy allows traders to assess chart quality in milliseconds without reading data.
It integrates three separate SMC concepts (Liquidity, Imbalance, Structure) into a single tool.
🔬 How It Works
Step 1: The script identifies a Swing High or Low based on your length input.
Step 2: It looks backward to see if that swing swept liquidity, and looks forward to check for an FVG and displacement.
Step 3: It calculates a weighted score (30pts for Sweep, 30pts for FVG, 40pts for Momentum).
Step 4: It draws the zone with a transparency level designated by the score and appends the relevant icons.
💡 Note:
For the best results, use this indicator on the timeframe you execute trades on (e.g., 15m or 1h). Do not use it to find entries on the 1m chart if your analysis is based on the 4h chart.
Smart Money COTThis indicator implements the method of analysing COT data as defined by Michael Huddleston (I.E. The Inner Circle Trader). It removes all superfluous information contained in the standard COT reports and focusses only on Commercial speculators using the overall Long-Short positions.
Features
The unique feature of this indicator is its ability to look back over time and provide the following information:
Calculation of the range high and low of the specified lookback range.
Calculation of equilibrium of that range.
Automatic colour coding of net long and net short positions when the Long-Short COT calculation is above or below equilibrium of the lookback range.
Instructions
Use the Daily Timeframe only. You may get unexpected results on other timeframes.
Ensure the asset has COT data available. Script is mainly focused on commodity futures, such as ES, NQ, YM. It has not been tested against Forex.
You will need to define the "Lookback" setting in the script settings. Use the total number of trading days required for your analysis. E.g. if you want a 6 month COT analysis, use the measurement tool to count the quantity of daily candles between now and 6 months ago - use this as your Lookback setting. Adjust as needed for other lookback periods, e.g. 3 months, 12 months etc.
Other Info
The script provides the ability to customise colours in its settings.
Range High and Range Low plots can be disabled in settings.
Weekend Spacesthe indicator is not new. created by some ones else. i just separate the trading days and the weekend. the indicator started on Monday
Supply and Demand MANOJ PATEl//@version=6
indicator("ISIN demo")
// Define inputs for two symbols to compare.
string symbol1Input = input.symbol("NASDAQ:AAPL", "Symbol 1")
string symbol2Input = input.symbol("GETTEX:APC", "Symbol 2")
if barstate.islastconfirmedhistory
// Retrieve ISIN strings for `symbol1Input` and `symbol2Input`.
var string isin1 = request.security(symbol1Input, "", syminfo.isin)
var string isin2 = request.security(symbol2Input, "", syminfo.isin)
// Log the retrieved ISIN codes.
log.info("Symbol 1 ISIN: " + isin1)
log.info("Symbol 2 ISIN: " + isin2)
// Log an error message if one of the symbols does not have ISIN information.
if isin1 == "" or isin2 == ""
log.error("ISIN information is not available for both symbols.")
// If both symbols do have ISIN information, log a message to confirm whether both refer to the same security.
else if isin1 == isin2
log.info("Both symbols refer to the same security.")
else
log.info("The two symbols refer to different securities.")
Marcaj Ore 07:00 și 18:00 (Stabil v2)For backtesting and remember times that you can be active in the market.






















