Süper Trend Tarzı AL-SATVadeli işlemler ve normal spot işlemler için hata payı çok düşük olan indikatörüm.
Süper trend'i örnek alarak geliştirilmiştir.
İz süren stoplar mevcuttur alımlar buna göre stop-loss eklenerek karlı alım satımlar yapılabilir.
Indikator dan strategi
Midpoint Crossing StrategyMidpoint Crossing Strategy with SMA & Limit Orders
This trading indicator is designed to help you identify precise entry points for long and short trades based on price movements within a specified range. It looks back over the past X number of candles (configurable by the user) to calculate the high, low, and midpoint of the range. The key features are:
Best settings:
timeframe: 5min
Tickers: MNQ, MGC
Settings: 17
TimeframeUtilsLibrary "TimeframeUtils"
Timeframe Utilities Library – Provides functions to convert timeframe resolutions to minutes and generate human‐readable timeframe text.
tfResInMinutes(_res)
tfResInMinutes
Parameters:
_res (string)
Returns: float - The specified timeframe's resolution in minutes.
getTimeFrameText(_tf)
getTimeFrameText
Parameters:
_tf (string)
Returns: string - A human-readable representation of the specified timeframe.
[COW] Day Percent LevelsThis indicator plots on your chart 2 levels, the daily percentage changes required to know by most prop firms and other exchanges. 5% is often a cutoff point for prop firm day traders and can get you banned if you trade past these levels. This indicator allows you to adjust the percentage as well as the lines and labels to your liking.
This is key when using prop firms as it is a level you must be aware of when trading. This can help you avoid being banned, your account being closed, or other disciplinary action based on trading past these levels.
Enjoy!
Moving Average with Multiplier_AshuMoving Average with Multiplier_Ashu. this script takes into account lower and upper extremes and moving average multipliers
Harsha All IndicatorsHarsha All-In-One Indicator – 17 Indicator Signal Table
This All-In-One Indicator combines 17 powerful indicators into a single tabular display, providing clear Buy/Sell/Neutral signals for better decision-making. It is designed for traders who want a quick and efficient way to analyze multiple technical indicators in one place.
📌 Key Features:
✅ 17 Technical Indicators in One Table – Includes Supertrend, MACD, RSI, ADX, Stochastic, VWAP, Bollinger Bands, and more!
✅ Customizable Parameters – Easily adjust settings for each indicator to suit your strategy.
✅ Clear Buy/Sell Signals – The table uses green (Buy), red (Sell), and gray (Neutral) color codes for easy interpretation.
✅ No Chart Clutter – Instead of plotting multiple indicators, all signals are neatly displayed in a table.
✅ Works on All Timeframes – Suitable for scalping, intraday, and swing trading.
🛠️ Included Indicators:
1️⃣ Supertrend – Trend-following indicator for buy/sell signals
2️⃣ ADX (Average Directional Index) – Measures trend strength
3️⃣ HMA (Hull Moving Average) – Smooth moving average crossover signals
4️⃣ MACD (Moving Average Convergence Divergence) – Momentum-based trend analysis
5️⃣ RSI (Relative Strength Index) – Identifies overbought/oversold conditions
6️⃣ Divergence Detector – Highlights trend reversal signals
7️⃣ No Trade Zone (ADX Filter) – Filters weak market conditions
8️⃣ EMA (Exponential Moving Average) – 50-period trend crossover
9️⃣ WMA (Weighted Moving Average) – Smoothed price trend detection
🔟 SMA (Simple Moving Average) – Classic 50-period moving average crossover
1️⃣1️⃣ Bollinger Bands – Identifies volatility breakout opportunities
1️⃣2️⃣ HarPAI – Custom proprietary trend-following indicator
1️⃣3️⃣ VWAP (Volume Weighted Average Price) – Institutional price levels
1️⃣4️⃣ ATR (Average True Range) – Measures volatility levels
1️⃣5️⃣ Stochastic Oscillator – Confirms overbought/oversold conditions
1️⃣6️⃣ HARMACD (Hybrid RSI + MACD) – Combines RSI & Stochastic for refined signals
1️⃣7️⃣ TMMS-MACD (Custom MACD & Stochastic Filter) – Enhances MACD signals for stronger confirmations
🔧 Customizat Harsha All-In-One Indicator – 17 Indicator Signal Table
This All-In-One Indicator combines 17 powerful indicators into a single tabular display, providing clear Buy/Sell/Neutral signals for better decision-making. It is designed for traders who want a quick and efficient way to analyze multiple technical indicators in one place.
📌 Key Features:
✅ 17 Technical Indicators in One Table – Includes Supertrend, MACD, RSI, ADX, Stochastic, VWAP, Bollinger Bands, and more!
✅ Customizable Parameters – Easily adjust settings for each indicator to suit your strategy.
✅ Clear Buy/Sell Signals – The table uses green (Buy), red (Sell), and gray (Neutral) color codes for easy interpretation.
✅ No Chart Clutter – Instead of plotting multiple indicators, all signals are neatly displayed in a table.
✅ Works on All Timeframes – Suitable for scalping, intraday, and swing trading.
🛠️ Included Indicators:
1️⃣ Supertrend – Trend-following indicator for buy/sell signals
2️⃣ ADX (Average Directional Index) – Measures trend strength
3️⃣ HMA (Hull Moving Average) – Smooth moving average crossover signals
4️⃣ MACD (Moving Average Convergence Divergence) – Momentum-based trend analysis
5️⃣ RSI (Relative Strength Index) – Identifies overbought/oversold conditions
6️⃣ Divergence Detector – Highlights trend reversal signals
7️⃣ No Trade Zone (ADX Filter) – Filters weak market conditions
8️⃣ EMA (Exponential Moving Average) – 50-period trend crossover
9️⃣ WMA (Weighted Moving Average) – Smoothed price trend detection
🔟 SMA (Simple Moving Average) – Classic 50-period moving average crossover
1️⃣1️⃣ Bollinger Bands – Identifies volatility breakout opportunities
1️⃣2️⃣ HarPAI – Custom proprietary trend-following indicator
1️⃣3️⃣ VWAP (Volume Weighted Average Price) – Institutional price levels
1️⃣4️⃣ ATR (Average True Range) – Measures volatility levels
1️⃣5️⃣ Stochastic Oscillator – Confirms overbought/oversold conditions
1️⃣6️⃣ HARMACD (Hybrid RSI + MACD) – Combines RSI & Stochastic for refined signals
1️⃣7️⃣ TMMS-MACD (Custom MACD & Stochastic Filter) – Enhances MACD signals for stronger confirmations
🔧 Customization & Settings:
Each indicator comes with adjustable settings, allowing traders to fine-tune their strategy based on market conditions. Users can modify:
✅ MACD Lengths & Signal Smoothing
✅ RSI Overbought/Oversold Levels
✅ Supertrend Multiplier & ATR Period
✅ Moving Average Periods
✅ Bollinger Bands Standard Deviations
✅ ADX Sensitivity
... and more!
📈 How to Use:
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Customize the settings in the input panel as per your strategy.
3️⃣ Refer to the table for real-time Buy (🟢), Sell (🔴), or Neutral (⚫) signals.
4️⃣ Use this tool for trend confirmation, entry/exit signals, and market condition analysis.
📢 Disclaimer:
This indicator is for educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always backtest and use proper risk management.
🚀 Optimize your trades with the power of 17 indicators in one table! 🚀ion & Settings:
Each indicator comes with adjustable settings, allowing traders to fine-tune their strategy based on market conditions. Users can modify:
✅ MACD Lengths & Signal Smoothing
✅ RSI Overbought/Oversold Levels
✅ Supertrend Multiplier & ATR Period
✅ Moving Average Periods
✅ Bollinger Bands Standard Deviations
✅ ADX Sensitivity
... and more!
📈 How to Use:
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Customize the settings in the input panel as per your strategy.
3️⃣ Refer to the table for real-time Buy (🟢), Sell (🔴), or Neutral (⚫) signals.
4️⃣ Use this tool for trend confirmation, entry/exit signals, and market condition analysis.
📢 Disclaimer:
This indicator is for educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always backtest and use proper risk management.
🚀 Optimize your trades with the power of 17 indicators in one table! 🚀
Distance % from MAs + plotsPlots the distance, expressed as percentage, from MAs in a pane, as well as the MAs themselves in the price chart pane.
Pivot Points [FSL]Pivot Points Indicator Description
This indicator provides a comprehensive suite of pivot point calculations and moving average overlays, designed to assist traders in identifying potential support and resistance levels.
Key Features:
Pivot Point Calculations:
Offers six pivot point calculation methods: Traditional, Fibonacci, Woodie, Classic, DM, and Camarilla.
Allows flexible pivot timeframe selection, including Auto (adapts to chart timeframe), Daily, Weekly, Monthly, Quarterly, Yearly, Biyearly, Triyearly, Quinquennially, and Decennially.
Provides the option to use daily-based values for pivot calculations, even on intraday charts.
Displays a user-defined number of historical pivot point levels.
Allows customization of the colors and display of each pivot level (P, S1-S5, R1-R5).
Allows to show labels and prices of each pivot level, and to change the labels position (Left or Right).
Allow
s to change the line width of the pivot levels.
Moving Average Overlays:
In
cludes Exponential Moving Averages (EMA) for 25, 50, and 100 periods.
Displays Volume Weighted Average Price (VWAP).
Allows individual toggling of each EMA and VWAP display.
Allows to ch
ange the line width of the moving averages.
Customization:
Extensi
ve input options for tailoring the indicator to individual trading preferences.
Clear and organized settings groups for easy adjustment.
Error management, that shows clear messages when there is not enough data to calculate the pivot poin
ts.
How to Use:
Select Pivot Type: Choose the desired pivot point calculation method.
Set P
ivot Timeframe: Select the timeframe for pivot calculations. Auto mode dynamically adjusts to the chart.
Adjust Historical Pivots: Specify the number of historical pivot levels to display.
Configure Moving Averages: Toggle and customize the EMA and VWAP overlays.
Customize Pivot Levels: Adjust colors, visibility, and labels for each pivot level.
Analyze and Trade: Use the displayed pivot levels and moving averages to identify potential support, re
sistance, and trend direction.
Benefits:
Provides a versatile tool for identifying potential trading opportunities.
Offers a wide range of customization options to suit various trading styles.
Combines pivot points and moving averages for enhanced analysis.
Helps traders to have a clear view of the support and resistance levels, and the trend direction.
Helps to avoid errors by showing clear messages.
Pure Price Action StrategyTest Price Action Strategy from Lux Pure Price Action Indicator
How This Strategy Works:
Recognizing Trends & Reversals:
Break of Structure (BOS): A bullish signal indicating a trend continuation.
Market Structure Shift (MSS): A bearish signal indicating a potential reversal.
Analyzing Market Momentum:
It uses recent highs and lows to confirm whether the price is making higher highs (bullish) or lower lows (bearish).
Customizing Visualization Styles:
Buy signals (BUY Signal) are plotted as green upward arrows.
Sell signals (SELL Signal) are plotted as red downward arrows.
Stop-Loss (SL) & Take-Profit (TP): Configurable via percentage input.
Air Gap MTFThis scripts automatically locate the EMA values on 30min/1hr/4hr for user specified EMA values.
On chart it will draw a line for each of the EMA, also labelling which MTF and timeframe, along with the current price.
The lines and price tag will update automatically in real-time so you don't have to keep adjusting the line!
AZZAM KHALID 1H Comprehensive Trading StrategyEMA (Exponential Moving Average) for trend detection.
RSI (Relative Strength Index) to identify overbought and oversold areas.
ATR (Average True Range) to calculate dynamic stop loss and take profit. Reversal candlestick patterns such as:
Hammer and Hanging Man
Morning & Evening Star
Shooting Star Clear buy and sell orders with:
Clear entry and exit signals
Dynamic stop loss and take profit by ATR Works on all timeframes.
Landry Proper OrderLandry Proper Order Indicator
The Landry Proper Order indicator visualizes the positioning of three moving averages (MAs) to indicate the current trend. The indicator is highly customizable, allowing users to select different types of MAs (Simple Moving Average or Exponential Moving Average) and adjust their lengths. The indicator works on the principle that when the MAs are in a specific order, it indicates a strong trend in the market.
Key Features:
Customizable Moving Averages: Users can select the type of moving averages (SMA or EMA) and set custom lengths for each of the three MAs:
MA1 (default: 10)
MA2 (default: 20)
MA3 (default: 30)
Landry Proper Order Conditions:
Uptrend (Landry Up): When the MAs are ordered in an ascending manner: MA1 > MA2 > MA3.
Downtrend (Landry Down): When the MAs are ordered in a descending manner: MA3 > MA2 > MA1.
Visual Representation:
Background Color: The background color changes based on the trend:
Green when the MAs are in an uptrend.
Red when the MAs are in a downtrend.
Yellow when there is no clear order.
MA Colors: The moving averages are color-coded based on the trend:
Fuchsia for MA1 (when in trend).
Lime for MA2 (when in trend).
Red for MA3 (when in trend).
Gray for neutral or no trend.
Cumulative Trend Counters:
Displays the cumulative number of days the trend has been active in either an uptrend or downtrend.
Shows the percentage change from the start price in either trend.
Screener Functionality:
Alerts for the new formation of uptrends or downtrends, signaling a shift in the market's structure.
Users can receive an alert when the "Landry Proper Order" is active in either direction.
Alerts:
Alerts for the detection of a new "Landry Proper Order Up" or "Landry Proper Order Down" condition.
Alerts when the "Landry Proper Order" is active in either an up or downtrend.
AI Adaptive Oscillator [PhenLabs]📊 Algorithmic Adaptive Oscillator
Version: PineScript™ v6
📌 Description
The AI Adaptive Oscillator is a sophisticated technical indicator that employs ensemble learning and adaptive weighting techniques to analyze market conditions. This innovative oscillator combines multiple traditional technical indicators through an AI-driven approach that continuously evaluates and adjusts component weights based on historical performance. By integrating statistical modeling with machine learning principles, the indicator adapts to changing market dynamics, providing traders with a responsive and reliable tool for market analysis.
🚀 Points of Innovation:
Ensemble learning framework with adaptive component weighting
Performance-based scoring system using directional accuracy
Dynamic volatility-adjusted smoothing mechanism
Intelligent signal filtering with cooldown and magnitude requirements
Signal confidence levels based on multi-factor analysis
🔧 Core Components
Ensemble Framework : Combines up to five technical indicators with performance-weighted integration
Adaptive Weighting : Continuous performance evaluation with automated weight adjustment
Volatility-Based Smoothing : Adapts sensitivity based on current market volatility
Pattern Recognition : Identifies potential reversal patterns with signal qualification criteria
Dynamic Visualization : Professional color schemes with gradient intensity representation
Signal Confidence : Three-tiered confidence assessment for trading signals
🔥 Key Features
The indicator provides comprehensive market analysis through:
Multi-Component Ensemble : Integrates RSI, CCI, Stochastic, MACD, and Volume-weighted momentum
Performance Scoring : Evaluates each component based on directional prediction accuracy
Adaptive Smoothing : Automatically adjusts based on market volatility
Pattern Detection : Identifies potential reversal patterns in overbought/oversold conditions
Signal Filtering : Prevents excessive signals through cooldown periods and minimum change requirements
Confidence Assessment : Displays signal strength through intuitive confidence indicators (average, above average, excellent)
🎨 Visualization
Gradient-Filled Oscillator : Color intensity reflects strength of market movement
Clear Signal Markers : Distinct bullish and bearish pattern signals with confidence indicators
Range Visualization : Clean representation of oscillator values from -6 to 6
Zero Line : Clear demarcation between bullish and bearish territory
Customizable Colors : Color schemes that can be adjusted to match your chart style
Confidence Symbols : Intuitive display of signal confidence (no symbol, +, or ++) alongside direction markers
📖 Usage Guidelines
⚙️ Settings Guide
Color Settings
Bullish Color
Default: #2b62fa (Blue)
This setting controls the color representation for bullish movements in the oscillator. The color appears when the oscillator value is positive (above zero), with intensity indicating the strength of the bullish momentum. A brighter shade indicates stronger bullish pressure.
Bearish Color
Default: #ce9851 (Amber)
This setting determines the color representation for bearish movements in the oscillator. The color appears when the oscillator value is negative (below zero), with intensity reflecting the strength of the bearish momentum. A more saturated shade indicates stronger bearish pressure.
Signal Settings
Signal Cooldown (bars)
Default: 10
Range: 1-50
This parameter sets the minimum number of bars that must pass before a new signal of the same type can be generated. Higher values reduce signal frequency and help prevent overtrading during choppy market conditions. Lower values increase signal sensitivity but may generate more false positives.
Min Change For New Signal
Default: 1.5
Range: 0.5-3.0
This setting defines the minimum required change in oscillator value between consecutive signals of the same type. It ensures that new signals represent meaningful changes in market conditions rather than minor fluctuations. Higher values produce fewer but potentially higher-quality signals, while lower values increase signal frequency.
AI Core Settings
Base Length
Default: 14
Minimum: 2
This fundamental setting determines the primary calculation period for all technical components in the ensemble (RSI, CCI, Stochastic, etc.). It represents the lookback window for each component’s base calculation. Shorter periods create a more responsive but potentially noisier oscillator, while longer periods produce smoother signals with potential lag.
Adaptive Speed
Default: 0.1
Range: 0.01-0.3
Controls how quickly the oscillator adapts to new market conditions through its volatility-adjusted smoothing mechanism. Higher values make the oscillator more responsive to recent price action but potentially more erratic. Lower values create smoother transitions but may lag during rapid market changes. This parameter directly influences the indicator’s adaptiveness to market volatility.
Learning Lookback Period
Default: 150
Minimum: 10
Determines the historical data range used to evaluate each ensemble component’s performance and calculate adaptive weights. This setting controls how far back the AI “learns” from past performance to optimize current signals. Longer periods provide more stable weight distribution but may be slower to adapt to regime changes. Shorter periods adapt more quickly but may overreact to recent anomalies.
Ensemble Size
Default: 5
Range: 2-5
Specifies how many technical components to include in the ensemble calculation.
Understanding The Interaction Between Settings
Base Length and Learning Lookback : The base length determines the reactivity of individual components, while the lookback period determines how their weights are adjusted. These should be balanced according to your timeframe - shorter timeframes benefit from shorter base lengths, while the lookback should generally be 10-15 times the base length for optimal learning.
Adaptive Speed and Signal Cooldown : These settings control sensitivity from different angles. Increasing adaptive speed makes the oscillator more responsive, while reducing signal cooldown increases signal frequency. For conservative trading, keep adaptive speed low and cooldown high; for aggressive trading, do the opposite.
Ensemble Size and Min Change : Larger ensembles provide more stable signals, allowing for a lower minimum change threshold. Smaller ensembles might benefit from a higher threshold to filter out noise.
Understanding Signal Confidence Levels
The indicator provides three distinct confidence levels for both bullish and bearish signals:
Average Confidence (▲ or ▼) : Basic signal that meets the minimum pattern and filtering criteria. These signals indicate potential reversals but with moderate confidence in the prediction. Consider using these as initial alerts that may require additional confirmation.
Above Average Confidence (▲+ or ▼+) : Higher reliability signal with stronger underlying metrics. These signals demonstrate greater consensus among the ensemble components and/or stronger historical performance. They offer increased probability of successful reversals and can be traded with less additional confirmation.
Excellent Confidence (▲++ or ▼++) : Highest quality signals with exceptional underlying metrics. These signals show strong agreement across oscillator components, excellent historical performance, and optimal signal strength. These represent the indicator’s highest conviction trade opportunities and can be prioritized in your trading decisions.
Confidence assessment is calculated through a multi-factor analysis including:
Historical performance of ensemble components
Degree of agreement between different oscillator components
Relative strength of the signal compared to historical thresholds
✅ Best Use Cases:
Identify potential market reversals through oscillator extremes
Filter trade signals based on AI-evaluated component weights
Monitor changing market conditions through oscillator direction and intensity
Confirm trade signals from other indicators with adaptive ensemble validation
Detect early momentum shifts through pattern recognition
Prioritize trading opportunities based on signal confidence levels
Adjust position sizing according to signal confidence (larger for ++ signals, smaller for standard signals)
⚠️ Limitations
Requires sufficient historical data for accurate performance scoring
Ensemble weights may lag during dramatic market condition changes
Higher ensemble sizes require more computational resources
Performance evaluation quality depends on the learning lookback period length
Even high confidence signals should be considered within broader market context
💡 What Makes This Unique
Adaptive Intelligence : Continuously adjusts component weights based on actual performance
Ensemble Methodology : Combines strength of multiple indicators while minimizing individual weaknesses
Volatility-Adjusted Smoothing : Provides appropriate sensitivity across different market conditions
Performance-Based Learning : Utilizes historical accuracy to improve future predictions
Intelligent Signal Filtering : Reduces noise and false signals through sophisticated filtering criteria
Multi-Level Confidence Assessment : Delivers nuanced signal quality information for optimized trading decisions
🔬 How It Works
The indicator processes market data through five main components:
Ensemble Component Calculation :
Normalizes traditional indicators to consistent scale
Includes RSI, CCI, Stochastic, MACD, and volume components
Adapts based on the selected ensemble size
Performance Evaluation :
Analyzes directional accuracy of each component
Calculates continuous performance scores
Determines adaptive component weights
Oscillator Integration :
Combines weighted components into unified oscillator
Applies volatility-based adaptive smoothing
Scales final values to -6 to 6 range
Signal Generation :
Detects potential reversal patterns
Applies cooldown and magnitude filters
Generates clear visual markers for qualified signals
Confidence Assessment :
Evaluates component agreement, historical accuracy, and signal strength
Classifies signals into three confidence tiers (average, above average, excellent)
Displays intuitive confidence indicators (no symbol, +, ++) alongside direction markers
💡 Note:
The AI Adaptive Oscillator performs optimally when used with appropriate timeframe selection and complementary indicators. Its adaptive nature makes it particularly valuable during changing market conditions, where traditional fixed-weight indicators often lose effectiveness. The ensemble approach provides a more robust analysis by leveraging the collective intelligence of multiple technical methodologies. Pay special attention to the signal confidence indicators to optimize your trading decisions - excellent (++) signals often represent the most reliable trade opportunities.
Combined BB & New SuperTrend StrategyExplanation
Bollinger Bands Section:
A customizable moving average (with multiple options) calculates the basis, upper, and lower bands. These are plotted on the chart with a filled area between them.
New SuperTrend Section:
The new SuperTrend code is integrated after renaming its variables (prefixed with st_) to avoid conflicts. This section calculates ATR-based stop levels, determines the trend direction, and generates buy/sell signals when the trend reverses. Optional labels and visual fills are also provided.
Trading Logic:
When a bullish SuperTrend signal occurs (transition from bearish to bullish), the script closes any short position and enters a long position. Conversely, when a bearish signal occurs, it closes the long position and enters a short. Additionally, if the price touches the Bollinger Bands (upper for longs, lower for shorts), the respective positions are exited.
This combined script should now compile without errors and use your new SuperTrend indicator for trade signals while retaining the Bollinger Bands exit conditions. Let me know if you need further modifications or explanations!
Cryptogenik's Inflation-Adjusted Candles v2025Inflation-Adjusted Price Indicator by Cryptogenik
This indicator adjusts price data for inflation, allowing you to visualize how stock/asset prices would look with constant purchasing power. By using Consumer Price Index (CPI) data from FRED, it transforms nominal prices into inflation-adjusted values that reflect real-world purchasing power.
What This Indicator Does
The Inflation-Adjusted Price indicator converts traditional price charts to show what prices would be if the purchasing power of currency remained constant. This is essential for long-term analysis, as it removes the distortion caused by inflation when comparing prices across different time periods.
Key Features
Displays inflation-adjusted price candles alongside original prices
Uses official CPI data from the Federal Reserve (FRED:CPIAUCSL)
Allows easy comparison between nominal and real prices
Helps identify true price movements by filtering out the effects of inflation
Perfect for long-term investors and macroeconomic analysis
How To Use It
Apply the indicator to any chart
Green/red candles show the inflation-adjusted prices
Gray line shows the original unadjusted price
The information label displays the current CPI value
This indicator is particularly valuable for analyzing stocks, commodities, and other assets over periods of 5+ years, where inflation effects become significant. It helps answer the question: "Has this asset truly increased in value, or is the price increase just reflecting inflation?"
Technical Details
The indicator calculates adjusted prices using the formula: (price / CPI) * 100, which effectively shows prices as a percentage of current purchasing power. This approach normalizes all prices to a consistent standard, making historical comparisons more meaningful.
Cryptogenik's Inflation-Adjusted Candles v2025
Binance BTC Backwardation / ContangoThis indicator calculates difference between price of Binance BTCUSDT, and Binance BTCUSDT.P.
If the difference is negative, then it is backwardation.
If the difference is positive, then it is contango.
Spot - Fut spread v2"Spot - Fut Spread v2"
indicator is designed to track the difference between spot and futures prices on various exchanges. It automatically identifies the corresponding instrument (spot or futures) based on the current symbol and calculates the spread between the prices. This tool is useful for analyzing the delta between spot and futures markets, helping traders assess arbitrage opportunities and market sentiment.
Key Features:
- Automatic detection of spot and futures assets based on the current chart symbol.
- Supports multiple exchanges, including Binance, Bybit, OKX, MEXC, BingX, Bitget, BitMEX, Deribit, Whitebit, Gate.io, and HTX.
- Flexible asset selection: the ability to manually choose the second asset if automatic selection is disabled.
- Spread calculation between futures and spot prices.
- Moving average of the spread for smoothing data and trend analysis.
Flexible visualization:
- Color indication of positive and negative spread.
- Adjustable background transparency.
- Text label displaying the current spread and moving average values.
- Error alerts in case of invalid data.
How the Indicator Works:
- Determines whether the current symbol is a futures contract.
- Based on this, selects the corresponding spot or futures symbol.
- Retrieves price data and calculates the spread between them.
- Displays the spread value and its moving average.
- The chart background color changes based on the spread value (positive or negative).
- In case of an error, the indicator provides an alert with an explanation.
Customization Parameters:
-Exchange selection: the ability to specify a particular exchange from the list.
- Automatic pair selection: enable or disable automatic selection of the second asset.
- Moving average period: user-defined.
- Colors for positive and negative spread values.
- Moving average color.
- Background transparency.
- Background coloring source (based on spread or its moving average).
Application:
The indicator is suitable for traders who analyze the difference between spot and futures prices, look for arbitrage opportunities, and assess the premium or discount of futures relative to the spot market.
----------------------------------------------------------------------------------------------------
**"Spot - Fut Spread v2"** предназначен для отслеживания разницы между ценами на спотовом и фьючерсном рынках на различных биржах. Он автоматически определяет соответствующий инструмент (спот или фьючерс) на основе текущего символа и рассчитывает спред между ценами. Этот инструмент полезен для анализа дельты между спотовым и фьючерсным рынками, помогая трейдерам оценивать арбитражные возможности и рыночные настроения.
### **Основные функции:**
- Автоматическое определение спотовых и фьючерсных активов на основе текущего символа графика.
- Поддержка нескольких бирж, включая **Binance, Bybit, OKX, MEXC, BingX, Bitget, BitMEX, Deribit, Whitebit, Gate.io и HTX**.
- Гибкий выбор активов: возможность вручную выбрать второй актив, если автоматический выбор отключен.
- Расчет спреда между фьючерсными и спотовыми ценами.
- Скользящая средняя спреда для сглаживания данных и анализа трендов.
### **Гибкая визуализация:**
- Цветовая индикация положительного и отрицательного спреда.
- Регулируемая прозрачность фона.
- Текстовая метка с отображением текущего значения спреда и его скользящей средней.
- Оповещения об ошибках при наличии некорректных данных.
### **Как работает индикатор:**
1. Определяет, является ли текущий символ фьючерсным контрактом.
2. На основе этого выбирает соответствующий спотовый или фьючерсный актив.
3. Получает ценовые данные и рассчитывает разницу между ними.
4. Отображает значение спреда и его скользящую среднюю.
5. Фон графика меняет цвет в зависимости от значения спреда (положительный или отрицательный).
6. В случае ошибки индикатор выдает предупреждение с объяснением.
### **Настройки:**
- Выбор биржи: возможность указать конкретную биржу из списка.
- Автоматический выбор пары: включение или отключение автоматического выбора второго актива.
- Период скользящей средней: задается пользователем.
- Цвета для положительных и отрицательных значений спреда.
- Цвет скользящей средней.
- Прозрачность фона.
- Источник окраски фона (на основе спреда или его скользящей средней).
### **Применение:**
Этот индикатор подходит для трейдеров, анализирующих разницу между спотовыми и фьючерсными ценами, ищущих арбитражные возможности, а также оценивающих премию или дисконт фьючерсов относительно спотового рынка.
Opening Lines (M15, H1 & H4) with Wickless Candle DetectorTailored for day traders, this technical analysis indicator serves as a multi-timeframe opening price visualization tool, displaying real-time and historical opening price levels across three distinct time intervals to enhance pattern identification and strategic decision-making. Additionally, the tool incorporates a ‘Wickless Candle Detector’ feature, which annotates candles that open without upper or lower wicks. Empirical observations suggest these wickless candles often act as future price magnets, particularly in index futures such as the Nasdaq and S&P500, making them critical reference points for market analysis.
Key Features:
1) Multi-Timeframe Opening Price Visualization:
◦ Plots horizontal reference lines for opening prices across:
✓ 15-minute (M15)
✓ 1-hour (H1)
✓ 4-hour (H4) timeframes
◦ Lines dynamically extend throughout their respective periods or can be configured to a fixed bar offset
2) Wickless Candle Detection:
◦ Automatically marks wickless candles with a discrete symbol at their opening price level
◦ Symbols are removed upon either:
✓ Price breaching the opening level by ≥1 tick
✓ A 24-hour expiration period (whichever occurs first)
3) Customization and Flexibility:
◦ Toggle visibility for individual timeframes, historical opening lines, and the Wickless Candle Detector
◦ Full customization of visual elements (colors, line styles, symbols) to align with user preferences or trading platform themes
utilsLibrary "utils"
Few essentials captured together (subset of arrayutils)
timer(timeStart, timeEnd)
finds difference between two timestamps
Parameters:
timeStart (int) : start timestamp
timeEnd (int)
Returns:
check_overflow(pivots, barArray, dir)
finds difference between two timestamps
Parameters:
pivots (array) : pivots array
barArray (array) : pivot bar array
dir (int) : direction for which overflow need to be checked
Returns: bool overflow
get_trend_series(pivots, length, highLow, trend)
finds series of pivots in particular trend
Parameters:
pivots (array) : pivots array
length (int) : length for which trend series need to be checked
highLow (int) : filter pivot high or low
trend (int) : Uptrend or Downtrend
Returns: int trendIndexes
get_trend_series(pivots, firstIndex, lastIndex)
finds series of pivots in particular trend
Parameters:
pivots (array) : pivots array
firstIndex (int) : First index of the series
lastIndex (int) : Last index of the series
Returns: int trendIndexes
getConsolidatedLabel(include, labels, separator)
Consolidates labels into single string by concatenating it with given separator
Parameters:
include (array) : array of conditions to include label or not
labels (array) : string array of labels
separator (simple string) : Separator for concatenating labels
Returns: string labelText
getColors(theme)
gets array of colors based on theme
Parameters:
theme (simple string) : dark or light theme
Returns: color themeColors
Opening Lines (M15, H1 & H4) with Wickless Candle DetectorTailored for day traders, this technical analysis indicator serves as a multi-timeframe opening price visualization tool, displaying real-time and historical opening price levels across three distinct time intervals to enhance pattern identification and strategic decision-making. Additionally, the tool incorporates a ‘Wickless Candle Detector’ feature, which annotates candles that open without upper or lower wicks. Empirical observations suggest these wickless candles often act as future price magnets, particularly in index futures such as the Nasdaq and S&P500, making them critical reference points for market analysis.
Key Features:
1) Multi-Timeframe Opening Price Visualization:
◦ Plots horizontal reference lines for opening prices across:
▪ 15-minute (M15)
▪ 1-hour (H1)
▪ 4-hour (H4) timeframes
◦ Lines dynamically extend throughout their respective periods or can be configured to a fixed bar offset
2) Wickless Candle Detection System:
◦ Automatically marks wickless candles with a discrete symbol at their opening price level
◦ Symbols are removed upon either:
▪ Price breaching the opening level by ≥1 tick
▪ A 24-hour expiration period (whichever occurs first)
3) Customization and Flexibility:
◦ Toggle visibility for individual timeframes, historical opening lines, and the Wickless Candle Detector
◦ Full customization of visual elements (colors, line styles, symbols) to align with user preferences or trading platform themes
Broad Market MOEX### **Broad Market for Russia**
The **Broad Market for Russia** indicator provides a comparative analysis of the price deviation of major Russian stocks relative to their average closing price over a customizable lookback period. This tool helps traders identify market trends and detect relative strength or weakness among different assets.
### **How It Works:**
- The indicator calculates the **percentage deviation** of each stock’s current price from its **simple moving average (SMA)** over the defined **lookback period (in hours).**
- The **default lookback period is 24 hours**, but it can be adjusted based on the trader’s needs.
- It tracks major Russian assets, including **Gazprom, Sberbank, Lukoil, Rosneft, Norilsk Nickel, Yandex, and others**, alongside the currently selected instrument.
- Each stock’s deviation is plotted on a separate panel, allowing for quick visual comparison.
- **Positive deviation** indicates that the price is trading above its average, signaling potential **bullish momentum**.
- **Negative deviation** suggests the price is below its average, possibly indicating **bearish conditions**.
This indicator is particularly useful for traders in the Russian stock market who want to gauge broader market strength and detect divergence patterns across multiple assets.
---
### **Broad Market for Russia**
Индикатор **Broad Market for Russia** предоставляет сравнительный анализ отклонения цены крупнейших российских акций относительно их среднего значения за настраиваемый период. Этот инструмент помогает трейдерам выявлять рыночные тренды и определять относительную силу или слабость активов.
### **Как это работает:**
- Индикатор рассчитывает **процентное отклонение** текущей цены каждой акции от её **простого скользящего среднего (SMA)** за заданный **период анализа (в часах).**
- **Период анализа по умолчанию — 24 часа**, но его можно изменять в зависимости от предпочтений трейдера.
- В индикаторе отслеживаются **крупнейшие российские активы**, такие как **Газпром, Сбербанк, Лукойл, Роснефть, Норникель, Яндекс и другие**, а также текущий выбранный инструмент.
- Отклонение каждой акции отображается на отдельной панели, что позволяет быстро проводить визуальное сравнение.
- **Положительное отклонение** означает, что цена торгуется выше своего среднего значения, что может сигнализировать о **бычьем тренде**.
- **Отрицательное отклонение** указывает, что цена ниже своего среднего значения, что может свидетельствовать о **медвежьей тенденции**.
Этот индикатор особенно полезен для трейдеров российского фондового рынка, которые хотят оценить силу всего рынка и выявлять расхождения между различными активами.
Broad Market for Crypto**Broad Market for Crypto** indicator provides a comparative analysis of the price deviation of multiple major cryptocurrencies relative to their average closing price over a customizable lookback period. This tool helps traders identify market trends and spot relative strength or weakness among different assets.
### **How It Works:**
- The indicator calculates the percentage deviation of each cryptocurrency’s current price from its simple moving average (SMA) over the defined **lookback period (in hours).**
- The **default lookback period is 24 hours**, but it can be adjusted according to the trader's preference.
- It tracks major crypto assets, including **BTC, ETH, BNB, SOL, XRP, ADA, AVAX, LINK, DOGE, and TRX**, alongside the currently selected instrument.
- Each cryptocurrency’s deviation is plotted on a separate panel, allowing for quick visual comparison.
- Positive deviation indicates that the price is trading above its average, signaling potential bullish momentum.
- Negative deviation suggests the price is below its average, possibly indicating bearish conditions.
This indicator is particularly useful for crypto traders who want to gauge the broader market’s strength and detect divergence patterns across multiple assets.
---------------------------------------------------------------------------------
**Broad Market for Crypto - Описание индикатора**
Индикатор **Broad Market for Crypto** предоставляет сравнительный анализ отклонения цены различных крупных криптовалют относительно их среднего значения за настраиваемый период. Этот инструмент помогает трейдерам выявлять рыночные тренды и определять относительную силу или слабость активов.
### **Как это работает:**
- Индикатор рассчитывает **процентное отклонение** текущей цены каждой криптовалюты от её **простого скользящего среднего (SMA)** за заданный **период анализа (в часах)**.
- **Период анализа по умолчанию — 24 часа**, но его можно изменять в зависимости от предпочтений трейдера.
- В индикаторе отслеживаются основные криптоактивы: **BTC, ETH, BNB, SOL, XRP, ADA, AVAX, LINK, DOGE и TRX**, а также текущий выбранный инструмент.
- Отклонение каждой криптовалюты отображается на отдельной панели, что позволяет быстро проводить визуальное сравнение.
- **Положительное отклонение** означает, что цена торгуется выше своего среднего значения, что может сигнализировать о **бычьем тренде**.
- **Отрицательное отклонение** указывает, что цена ниже своего среднего значения, что может свидетельствовать о **медвежьей тенденции**.
Этот индикатор особенно полезен для криптотрейдеров, желающих оценить силу всего рынка и выявлять расхождения между различными активами.
TestMA-STATEOverview:
This Pine Script (version 6) is designed to generate trading events based on moving average (MA) behavior and dynamically calculated percentiles. It leverages a custom state machine library (version 7) from decrypt_capital to track and manage state transitions related to MA conditions, and it triggers alerts (and optionally, chart labels) when specific state transitions occur.
Key Components:
License & Metadata:
The script is distributed under the Mozilla Public License 2.0.
It carries copyright by decrypt_capital.
The title ("TestMA-STATE") and short title ("MA-STATE") are defined, and the script runs on an overlay with extended backtracking and drawing limits.
State Machine Integration:
The script imports the lib_statemachine_modified library (version 7) using the alias modSM.
A persistent state machine instance (MovingAverageDirection_SM) is created to manage various MA-related states.
Several state constants are defined to represent different market conditions, such as:
MA_SHORT_ABOVE_OVERBOUGHT: When the short MA low is above the overbought threshold.
MA_SHORT_CROSSUNDER_MID & MA_SHORT_CROSSUNDER_BIG: Conditions for bearish crossunders.
MA_SHORT_BELOW_OVERSOLD: When the short MA high is below the oversold threshold.
MA_SHORT_CROSSOVER_MID & MA_SHORT_CROSSOVER_BIG: Conditions for bullish crossovers.
Inputs & MA Calculation:
Users can choose the type of moving average (EMA, SMA, WMA, VWMA) and adjust lengths for short, mid, and big MAs.
Additional inputs include lookback length for percentile calculations and percentile thresholds for determining overbought and oversold boundaries.
The script computes:
Short MA Low and High: Based on the low and high series.
Mid MA and Big MA: Based on the average price (ohlc4).
Dynamic Percentile Boundaries:
Two functions (f_getPercentile() and f_getPercentileArr()) calculate dynamic percentile values from the MA data.
These functions determine the oversold and overbought boundaries used in the state transition conditions.
Timestamp & Alert Header Formatting:
A helper function (f_formatTimestamp()) formats timestamps into a human-readable form (e.g., "Tue 12 Mar 16:30").
This formatted time, along with ticker information and other details, is used to build an alert header.
State Transitions & Alerts:
The script calls the state machine’s step() method multiple times with conditions based on the relationship between MA values and the percentile boundaries.
For example:
A bullish condition is triggered when the short MA low moves above the overbought threshold.
A bearish condition is triggered when the short MA high falls below the oversold boundary.
Transitions are further refined by checking if the MA is rising or falling.
When specific state transitions occur (e.g., MA_SHORT_CROSSOVER_MID after MA_SHORT_BELOW_OVERSOLD), the script:
Checks that the transition is recent (using the barsSinceState() method).
Optionally creates a label on the chart.
Triggers an alert with a descriptive message.
Chart Plotting:
The script plots the calculated moving averages (short, mid, and optionally big) on the chart.
It also plots the dynamic percentile boundaries for visual reference.
Purpose & Usage:
Trading Signal Generation:
The primary goal is to monitor key MA conditions and trigger alerts when significant crossovers or crossunders occur. These events—such as bullish crossovers when the market recovers from oversold conditions or bearish crossunders when the market retracts from overbought conditions—can be used as trading signals.
Visualization:
Users have options to display the various moving averages and percentile boundaries directly on the chart, as well as optional labels that mark when an alert is generated.
Alerting:
When specific state transitions are detected, the script constructs and sends an alert message with a timestamp, ticker, and descriptive text, aiding traders in making timely decisions.