GOLDEN Trading System by @thejamiulThe Golden Trading System is a powerful trading indicator designed to help traders easily identify market conditions and potential breakout opportunities.
Source of this indicator :
This indicator is built on TradingView original pivot indicator but focuses exclusively on Camarilla pivots, utilising H3-H4 and L3-L4 as breakout zones.
Timeframe Selection:
Before start using it we should choose Pivot Resolution time-frame accordingly.
If you use 5min candle - use D
If you use 15min candle - use W
If you use 1H candle - use M
If you use 1D candle - use 12M
How It Works:
Sideways Market: If the price remains inside the H3-H4 as Green Band and L3-L4 as Red band, the market is considered range-bound.
Trending Market: If the price moves outside Green Band, it indicates a potential up-trend formation. If the price moves outside Red Band, it indicates a potential down-trend formation.
Additional Features:
Displays Daily, Weekly, Monthly, and Yearly Highs and Lows to help traders identify key support and resistance levels also helps spot potential trend reversal points based on historical price action. Suitable for both intraday and swing trading strategies.
This indicator is a trend-following and breakout confirmation tool, making it ideal for traders looking to improve their decision-making with clear, objective levels.
🔹 Note: This script is intended for educational purposes only and should not be considered financial advice. Always conduct your own research before making trading decisions.
Indicators and strategies
SUP & RECIdentifying Support and Resistance: An indicator (likely visual) highlights areas on a price chart where the asset's price has historically struggled to break through. These are crucial levels to watch for potential price reversals.
Smart Market Bias [PhenLabs]📊 Smart Market Bias Indicator (SMBI)
Version: PineScript™ v6
Description
The Smart Market Bias Indicator (SMBI) is an advanced technical analysis tool that combines multiple statistical approaches to determine market direction and strength. It utilizes complexity analysis, information theory (Kullback Leibler divergence), and traditional technical indicators to provide a comprehensive market bias assessment. The indicator features adaptive parameters based on timeframe and trading style, with real-time visualization through a sophisticated dashboard.
🔧 Components
Complexity Analysis: Measures price movement patterns and trend strength
KL Divergence: Statistical comparison of price distributions
Technical Overlays: RSI and Bollinger Bands integration
Filter System: Volume and trend validation
Visual Dashboard: Dynamic color-coded display of all components
Simultaneous current timeframe + higher time frame analysis
🚨Important Explanation Feature🚨
By hovering over each individual cell in this comprehensive dashboard, you will get a thorough and in depth explanation of what each cells is showing you
Visualization
HTF Visualization
📌 Usage Guidelines
Based on your own trading style you should alter the timeframe length that you would like to be analyzing with your dashboard
The longer the term of the position you are planning on entering the higher timeframe you should have your dashboard set to
Bias Interpretation:
Values > 50% indicate bullish bias
Values < 50% indicate bearish bias
Neutral zone: 45-55% suggests consolidation
✅ Best Practices:
Use appropriate timeframe preset for your trading style
Monitor all components for convergence/divergence
Consider filter strength for signal validation
Use color intensity as confidence indicator
⚠️ Limitations
Requires sufficient historical data for accurate calculations
Higher computational complexity on lower timeframes
May lag during extremely volatile conditions
Best performance during regular market hours
What Makes This Unique
Multi-Component Analysis: Combines complexity theory, statistical analysis, and traditional technical indicators
Adaptive Parameters: Automatically optimizes settings based on timeframe
Triple-Layer Filtering: Uses trend, volume, and minimum strength thresholds
Visual Confidence System: Color intensity indicates signal strength
Multi-Timeframe Capabilities: Allowing the trader to analyze not only their current time frame but also the higher timeframe bias
🔧 How It Works
The indicator processes market data through four main components:
Complexity Score (40% weight): Analyzes price returns and pattern complexity
Kullback Leibler Divergence (30% weight): Compares current and historical price distributions
RSI Analysis (20% weight): Momentum and oversold/overbought conditions
Bollinger Band Position (10% weight): Price position relative to volatility
Underlying Method
Maintains rolling windows of price data for multiple calculations
Applies custom normalization using hyperbolic tangent function
Weights component scores based on reliability and importance
Generates final bias percentage with confidence visualization
💡 Note: For optimal results, use in conjunction with price action analysis and consider multiple timeframe confirmation. The indicator performs best when all components show alignment.
O'Neil Earnings StabilityO'Neil Earnings Stability Indicator
This indicator implements William O'Neil's earnings stability analysis, a key factor in identifying high-quality growth stocks. It measures both earnings stability (1-99 scale) and growth rate.
Scale Interpretation:
• 1-25: Highly stable earnings (ideal)
• 26-30: Moderately stable
• >30: More cyclical/less dependable
The stability score is calculated by measuring deviations from the earnings trend line, with lower scores indicating more consistent growth. Combined with the annual growth rate (target ≥25%), this helps identify stocks with both steady and strong earnings growth.
Optimal Criteria:
✓ Stability Score < 25
✓ Annual Growth > 25%
This tool helps filter out stocks with erratic earnings patterns and identify those with proven, sustainable growth records. Green label indicates both criteria are met; red indicates one or both criteria failed."
Would you like me to modify any part of this description or add more details about specific aspects of the calculation?
The key concepts in these calculations:
Stability Score (1-99 scale):
Lower score = more stable
Takes average deviation from mean earnings
Uses logarithmic scaling to emphasize smaller deviations
Multiplies by 20 to get into 1-99 range
Score ≤ 25 meets O'Neil's criteria
Growth Rate:
Year-over-year comparison (current quarter vs same quarter last year)
Calculated as percentage change
Growth ≥ 25% meets O'Neil's criteria
O'Neil's Combined Criteria:
Stability Score should be ≤ 25 (indicating stable earnings)
Growth Rate should be ≥ 25% (indicating strong growth)
Both must be met for ideal conditions
TrendMasterPro_FekonomiTrend Change and Start Signals with Weighted Conditions
The Trend Change and Start Signals with Weighted Conditions indicator leverages various technical analysis tools to generate reliable buy and sell signals. This indicator helps investors more accurately identify trend changes and start signals in the market.
Features:
Utilizes popular technical analysis tools such as MACD, RSI, EMA, and Ichimoku Cloud.
Enhances signal accuracy with additional indicators like ADX and Volume Increase.
Allows users to adjust the weights of each condition to set their importance.
The Confidence Level parameter lets you adjust the accuracy rate of the signals.
Visual Signals make it easy to track buy and sell points directly on the chart.
How It Works:
Condition Weights: Users assign weights to indicators like MACD, RSI, EMA, and Ichimoku Cloud. If you have no idea, use default settings.
Condition Fulfillment: Checks if the conditions for each indicator are met.
Confidence Level: The total weight of the fulfilled conditions must exceed the user-defined confidence level.
Signal Generation: When these conditions are met, a buy or sell signal is generated and visually displayed on the chart.
Customization:
Personalize Signals: By adjusting the weights of the indicators used, you can personalize the signals to match your trading strategy and preferences.
Use Cases:
Short-Term Investments: Identify quick trend changes for short-term trading decisions.
Long-Term Investments: Detect long-term trend starts and changes for strategic investment decisions.
Technical Analysis: Combine different technical analysis tools for more comprehensive and reliable analyses.
With this indicator, you can better understand market movements and make more informed investment decisions. Try it now and enhance your trading strategy!
by Fekonomi
Last Candle OHLCThis simple yet powerful TradingView indicator displays the Open, High, Low, and Close (OHLC) values of the last completed candle directly on your chart. Whether you're trading stocks, forex, or crypto, having quick access to the most recent candle's price levels can be crucial for decision-making.
✨ Features:
✅ Shows the Open, High, Low, and Close of the last completed candle
✅ Works on any timeframe and asset
✅ Helps traders spot key price levels for entry, stop-loss, or take-profit decisions
Perfect for price action traders, scalpers, and swing traders! 🚀
Tutorial - Adding sessions to strategiesA simple script to illustrate how to add sessions to trading strategies.
In this interactive tutorial, you'll learn how to add trading sessions to your strategies using Pine Script. By the end of this session (pun intended!), you'll be able to create custom trading windows that adapt to changing market conditions.
What You'll Learn:
Defining Trading Sessions: Understand how to set up specific time frames for buying and selling, tailored to your unique trading style.
RSI-Based Entry Signals: Discover how to use the Relative Strength Index (RSI) as a trigger for buy and sell signals, helping you capitalize on market trends.
Combining Session Logic with Trading Decisions: Learn how to integrate session-based logic into your strategy, ensuring that trades are executed only during designated times.
By combining these elements, we create an interactive strategy that:
1. Generates buy and sell signals based on RSI levels.
2. Checks if the market is open during a specific trading session (e.g., 1300-1700).
3. Executes trades only when both conditions are met.
**Tips & Variations:**
* Experiment with different RSI periods, thresholds, and sessions to optimize your strategy for various markets and time frames.
* Consider adding more advanced logic, such as stop-losses or position sizing, to further refine your trading approach.
Get ready to take your Pine Script skills to the next level!
~Description partially generated with Llama3_8B
Real-Time Data Error Check _byMDKTests back if there was missing data/bar with respect to selected timeframe and source.
Experienced red data (no-real time data is available) so i come up with the idea.
Regards.
i.redd.it
Candle Close NotificationCandle Close Notification Indicator - Specification
1. 概要 (Overview)
本インジケーターは、TradingView 上でローソク足が確定した際に、そのローソク足が陰線(Bearish)または陽線(Bullish)であった場合に通知を送信するものです。
また、該当するローソク足の上または下にマークを表示し、視覚的にも識別しやすくなっています。
This indicator for TradingView sends notifications when a candlestick closes as either a bearish (red) or bullish (green) candle. It also marks the corresponding candles on the chart for visual reference.
2. 機能 (Features)
2.1 通知機能 (Notification Function)
ローソク足の確定時に、以下の条件に基づき アラート(通知) を送信します。
「Both」(両方): 陰線・陽線のどちらでも通知
「Bearish」(陰線のみ): 陰線の時のみ通知
「Bullish」(陽線のみ): 陽線の時のみ通知
When a candlestick closes, an alert notification is sent based on the selected option:
"Both" (Default): Notifies for both bearish and bullish candles.
"Bearish": Notifies only bearish candles.
"Bullish": Notifies only bullish candles.
2.2 チャートマーク表示機能 (Chart Marking Function)
ローソク足が確定した際、以下のルールでマークを表示します。
陰線(Bearish) の場合、赤色の「下向きマーク」を表示(ローソク足の上)
陽線(Bullish) の場合、緑色の「上向きマーク」を表示(ローソク足の下)
When a candlestick closes, a marker appears according to the following rules:
Bearish candle → A red downward marker appears above the candle.
Bullish candle → A green upward marker appears below the candle.
3. 通知オプションの設定 (Setting Notification Options)
スクリプト内の notify_option の値を変更することで、通知の種類を設定できます。
Both(デフォルト) → 陰線・陽線両方通知
Bearish → 陰線のみ通知
Bullish → 陽線のみ通知
Modify the notify_option value in the script to customize notifications:
Both (Default) → Notifies for both bearish and bullish candles.
Bearish → Notifies only bearish candles.
Bullish → Notifies only bullish candles.
TradingView の アラート機能 を有効にすることで、通知を受け取ることができます。
Enable TradingView’s Alert function to receive notifications.
Institutional Moves DetectorIndicator Name: Institutional Pattern Detector
What It Does:
Trend Following: It uses a Moving Average (MA) to understand the general direction of the price. The MA is like a smoothed-out line of the price over time, showing if the price trend is going up or down.
Volatility Measurement: The script employs Bollinger Bands (BB) to see how much the price is fluctuating. Bollinger Bands create an upper and lower "channel" around the price, which gets wider or narrower based on how volatile the price is.
Volume Check: It looks at trading volume to find times when there's unusually high activity, which could mean big players (institutions like banks or funds) are trading. It flags this when the volume is 1.5 times more than the average volume of the last 100 bars.
Pattern Detection for Trading Signals:
Entry Signal ("IN"): When there's high volume and the price is above the upper Bollinger Band, it suggests there might be strong buying from big institutions. This could mean the price might keep going up.
EXIT Signal ("OUT"): If there's high volume and the price falls below the lower Bollinger Band, it indicates possible strong selling pressure from institutions, suggesting the price might go down.
Visual Cues:
An orange label "IN" appears below the price bar for entry signals.
A red label "OUT" appears above the price bar for exit signals.
The moving average line is plotted on the chart in orange to help you see the trend.
Alerts: The script can alert you when these entry or exit signals occur, so you can get notifications without needing to stare at the chart all day.
For New Traders:
This indicator helps you spot when big traders might be influencing the market, potentially giving you a clue about when to enter or exit.
Remember, this is one tool among many. You should not base your trading solely on this; combine it with other analysis methods.
It's always wise to practice with a demo account before using real money to get a feel for how these signals work in actual market conditions.
BybitPerpsArrayLibrary "BybitPerpsArray"
f_getSymbolsForGroup(groupName)
Parameters:
groupName (string)
Contains all of the BYBIT Perp charts- use function to call them in groups
Price in BTC (x1000)I'm not a coder. I just knocked this together with AI
Shows how the current asset performed relative to BTC (COINBASE:BTCUSD) on the current timeframe
Works with assets priced in USD, USDT and USDC but you can easily add more
Had to multiply the price by 1000 to mitigate leading zeros and improve compatibility with low-denomination assets (e.g. PEPE)
MAs and crossovers included
Feel free to use it however you want
Quad Rotation - 4 Stochastics Overlay with ABCD Detection"Quad Rotation - 4 Stochastics Overlay with ABCD Detection" is a momentum indicator combining four separate Stochastics and an ABCD pattern detection system.
Each Stochastic uses different parameter settings to capture potential rotation points in market momentum.
When three or more (this number is user customizable) of these Stochastics simultaneously slope downward above the 80 level (or slope upward below the 20 level), the chart background highlights in red (bearish) or green (bullish), indicating a multi-Stochastic momentum signal.
Additionally, the script tracks Stochastic #4 to detect an ABCD pattern:
Long Pattern (A-B) triggers if Stochastic #4 remains above 90 for a specified number of bars (abBars).
Short Pattern (C-D) triggers if Stochastic #4 remains below 10 for a specified number of bars (cdBars).
Visual markers (green X for long setups, red X for short setups) appear on the chart once these conditions are met. Users can enable alerts to receive real-time notifications whenever momentum signals or ABCD patterns occur.
This combination of multi-Stochastic momentum and ABCD detection helps traders gauge potential trend exhaustion and reversal points with greater confidence.
Advanced Order Blocks with VolumeAdvanced Order Blocks with Volume Indicator
This professional-grade indicator combines order block detection with sophisticated volume analysis to identify high-probability trading opportunities. It automatically detects and displays bullish and bearish order blocks formed during consolidation periods, enhanced by three distinct volume calculation methods (Simple, Relative, and Weighted).
Key Features:
- Smart consolidation detection with customizable thresholds
- Volume-filtered order blocks to avoid false signals
- Automatic order block mitigation tracking
- Clear visual presentation with volume metrics
- Flexible customization options for colors and parameters
Settings:
Core Parameters:
- Consolidation Threshold %: Sets the maximum price range (0.1-1.0%) for detecting consolidation zones
- Lookback Period: Number of bars (2-10) to analyze for consolidation patterns
Volume Analysis:
- Volume Calculation Method: Choose between Simple (basic average), Relative (compared to average), or Weighted (prioritized recent volume)
- Volume Lookback Period: Historical bars (5-100) used for volume analysis
- Volume Threshold Multiplier: Minimum volume requirement (1.0-5.0x) for valid order blocks
Visual Settings:
- Bullish/Bearish OB Color: Background colors for order blocks
- Bullish/Bearish OB Text Color: Colors for volume information display
Perfect for traders focusing on institutional price levels and volume-based trading strategies. The indicator helps identify potential reversal zones with strong institutional interest, validated by significant volume conditions.
SMA + RSI + Volume + ATR StrategySMA + RSI + Volume + ATR Strategy
1. Indicators Used:
SMA (Simple Moving Average): This is a trend-following indicator that calculates the average price of a security over a specified period (50 periods in this case). It's used to identify the overall trend of the market.
RSI (Relative Strength Index): This measures the speed and change of price movements. It tells us if the market is overbought (too high) or oversold (too low). Overbought is above 70 and oversold is below 30.
Volume: This is the amount of trading activity. A higher volume often indicates strong interest in a particular price move.
ATR (Average True Range): This measures volatility, or how much the price is moving in a given period. It helps us adjust stop losses and take profits based on market volatility.
2. Conditions for Entering Trades:
Buy Signal (Green Up Arrow):
Price is above the 50-period SMA (indicating an uptrend).
RSI is below 30 (indicating the market might be oversold or undervalued, signaling a potential reversal).
Current volume is higher than average volume (indicating strong interest in the move).
ATR is increasing (indicating higher volatility, suggesting that the market might be ready for a move).
Sell Signal (Red Down Arrow):
Price is below the 50-period SMA (indicating a downtrend).
RSI is above 70 (indicating the market might be overbought or overvalued, signaling a potential reversal).
Current volume is higher than average volume (indicating strong interest in the move).
ATR is increasing (indicating higher volatility, suggesting that the market might be ready for a move).
3. Take Profit & Stop Loss:
Take Profit: When a trade is made, the strategy will set a target price at a certain percentage above or below the entry price (1.5% in this case) to automatically exit the trade once that target is hit.
Stop Loss: If the price goes against the position, a stop loss is set at a percentage below or above the entry price (0.5% in this case) to limit losses.
4. Execution of Trades:
When the buy condition is met, the strategy will enter a long position (buying).
When the sell condition is met, the strategy will enter a short position (selling).
5. Visual Representation:
Green Up Arrow: Appears on the chart when the buy condition is met.
Red Down Arrow: Appears on the chart when the sell condition is met.
These arrows help you see at a glance when the strategy suggests you should buy or sell.
In Summary:
This strategy uses a combination of trend-following (SMA), momentum (RSI), volume, and volatility (ATR) to decide when to buy or sell a stock. It looks for opportunities when the market is either oversold (buy signal) or overbought (sell signal) and makes sure there’s enough volume and volatility to back up the move. It also includes take-profit and stop-loss levels to manage risk.
Auto-Adjusting Kalman Filter by TenozenNew year, new indicator! Auto-Adjusting Kalman Filter is an indicator designed to provide an adaptive approach to trend analysis. Using the Kalman Filter (a recursive algorithm used in signal processing), this algo dynamically adjusts to market conditions, offering traders a reliable way to identify trends and manage risk! In other words, it's a remaster of my previous indicator, Kalman Filter by Tenozen.
What's the difference with the previous indicator (Kalman Filter by Tenozen)?
The indicator adjusts its parameters (Q and R) in real-time using the Average True Range (ATR) as a measure of market volatility. This ensures the filter remains responsive during high-volatility periods and smooth during low-volatility conditions, optimizing its performance across different market environments.
The filter resets on a user-defined timeframe, aligning its calculations with dominant trends and reducing sensitivity to short-term noise. This helps maintain consistency with the broader market structure.
A confidence metric, derived from the deviation of price from the Kalman filter line (measured in ATR multiples), is visualized as a heatmap:
Green : Bullish confidence (higher values indicate stronger trends).
Red : Bearish confidence (higher values indicate stronger trends).
Gray : Neutral zone (low confidence, suggesting caution).
This provides a clear, objective measure of trend strength.
How it works?
The Kalman Filter estimates the "true" price by filtering out market noise. It operates in two steps, that is, prediction and update. Prediction is about projection the current state (price) forward. Update is about adjusting the prediction based on the latest price data. The filter's parameters (Q and R) are scaled using normalized ATR, ensuring adaptibility to changing market conditions. So it means that, Q (Process Noise) increases during high volatility, making the filter more responsive to price changes and R (Measurement Noise) increases during low volatility, smoothing out the filter to avoid overreacting to minor fluctuations. Also, the trend confidence is calculated based on the deviation of price from the Kalman filter line, measured in ATR multiples, this provides a quantifiable measure of trend strength, helping traders assess market conditions objectively.
How to use?
Use the Kalman Filter line to identify the prevailing trend direction. Trade in alignment with the filter's slope for higher-probability setups.
Look for pullbacks toward the Kalman Filter line during strong trends (high confidence zones)
Utilize the dynamic stop-loss and take-profit levels to manage risk and lock in profits
Confidence Heatmap provides an objective measure of market sentiment, helping traders avoid low-confidence (neutral) zones and focus on high-probability opportunities
Guess that's it! I hope this indicator helps! Let me know if you guys got some feedback! Ciao!
Multi-Timeframe RSI Grid Strategy with ArrowsKey Features of the Strategy
Multi-Timeframe RSI Analysis:
The strategy calculates RSI values for three different timeframes:
The current chart's timeframe.
Two higher timeframes (configurable via higher_tf1 and higher_tf2 inputs).
It uses these RSI values to identify overbought (sell) and oversold (buy) conditions.
Grid Trading System:
The strategy uses a grid-based approach to scale into trades. It adds positions at predefined intervals (grid_space) based on the ATR (Average True Range) and a grid multiplication factor (grid_factor).
The grid system allows for pyramiding (adding to positions) up to a maximum number of grid levels (max_grid).
Daily Profit Target:
The strategy has a daily profit target (daily_target). Once the target is reached, it closes all open positions and stops trading for the day.
Drawdown Protection:
If the open drawdown exceeds 2% of the account equity, the strategy closes all positions to limit losses.
Reverse Signals:
If the RSI conditions reverse (e.g., from buy to sell or vice versa), the strategy closes all open positions and resets the grid.
Visualization:
The script plots buy and sell signals as arrows on the chart.
It also plots the RSI values for the current and higher timeframes, along with overbought and oversold levels.
How It Works
Inputs:
The user can configure parameters like RSI length, overbought/oversold levels, higher timeframes, grid spacing, lot size multiplier, maximum grid levels, daily profit target, and ATR length.
RSI Calculation:
The RSI is calculated for the current timeframe and the two higher timeframes using ta.rsi().
Grid System:
The grid system uses the ATR to determine the spacing between grid levels (grid_space).
When the price moves in the desired direction, the strategy adds positions at intervals of grid_space, increasing the lot size by a multiplier (lot_multiplier) for each new grid level.
Entry Conditions:
A buy signal is generated when the RSI is below the oversold level on all three timeframes.
A sell signal is generated when the RSI is above the overbought level on all three timeframes.
Position Management:
The strategy scales into positions using the grid system.
It closes all positions if the daily profit target is reached or if a reverse signal is detected.
Visualization:
Buy and sell signals are plotted as arrows on the chart.
RSI values for all timeframes are plotted, along with overbought and oversold levels.
Example Scenario
Suppose the current RSI is below 30 (oversold), and the RSI on the 60-minute and 240-minute charts is also below 30. This triggers a buy signal.
The strategy enters a long position with a base lot size.
If the price moves against the position by grid_space, the strategy adds another long position with a larger lot size (scaled by lot_multiplier).
This process continues until the maximum grid level (max_grid) is reached or the daily profit target is achieved.
Key Variables
grid_level: Tracks the current grid level (number of positions added).
last_entry_price: Tracks the price of the last entry.
base_size: The base lot size for the initial position.
daily_profit_target: The daily profit target in percentage terms.
target_reached: A flag to indicate whether the daily profit target has been achieved.
Potential Use Cases
This strategy is suitable for traders who want to combine RSI-based signals with a grid trading approach to capitalize on mean-reverting price movements.
It can be used in trending or ranging markets, depending on the RSI settings and grid parameters.
Limitations
The grid trading system can lead to significant drawdowns if the market moves strongly against the initial position.
The strategy relies heavily on RSI, which may produce false signals in strongly trending markets.
The daily profit target may limit potential gains in highly volatile markets.
Customization
You can adjust the input parameters (e.g., RSI length, overbought/oversold levels, grid spacing, lot multiplier) to suit your trading style and market conditions.
You can also modify the drawdown protection threshold or add additional filters (e.g., volume, moving averages) to improve the strategy's performance.
In summary, this script is a sophisticated trading strategy that combines RSI-based signals with a grid trading system to manage entries, exits, and position sizing. It includes features like daily profit targets, drawdown protection, and multi-timeframe analysis to enhance its robustnes
EMA Crossover with 50 EMA Filter50-period EMA: We added the 50-period EMA as the filterEMA variable.
Buy and Sell Conditions: The buy signal is generated only if the 8-period and 16-period EMAs both cross above each other and are above the 50-period EMA. Similarly, the sell signal is generated when the 8-period and 16-period EMAs cross below each other and are below the 50-period EMA.
Plotting: The 50-period EMA is also plotted on the chart (in orange).
This strategy will ensure that the buy signals are only triggered when the trend is considered "bullish" (both EMAs above the 50 EMA) and sell signals when the trend is "bearish" (both EMAs below the 50 EMA).
You can set up alerts for both buy and sell conditions using the alertcondition() function.
Let me know if you need further adjustments!
NOTE :- Applicable only for banknifty
Volume Weighted Average Price - CoinruleVWAP with additional Anchor Periods as supported on Coinrule.
Market Pressure Index [AlgoAlpha]The Market Pressure Index is a cutting-edge trading tool designed to measure and visualize bullish and bearish momentum through a unique blend of volatility analysis and dynamic smoothing techniques. This indicator provides traders with an intuitive understanding of market pressure, making it easier to identify trend shifts, breakout opportunities, and key moments to take profit. Perfect for scalpers and swing traders looking for a strategic edge in volatile markets.
Key Features:
🔎 Bullish and Bearish Volatility Separation : Dynamically calculates and displays bullish and bearish momentum separately, helping traders assess market direction with precision.
🎨 Customizable Appearance: Set your preferred colors for bullish and bearish signals to match your chart's theme.
📊 Deviation-Based Upper Band : Tracks extreme volatility levels using a configurable deviation multiplier, highlighting potential breakout points.
📈 Real-Time Signal Alerts : Provides alerts for bullish and bearish crossovers, as well as take-profit signals, ensuring you never miss key market movements.
⚡ Gradient-Based Visualization : Uses color gradients to depict the intensity of market pressure, making it easy to spot changes in momentum at a glance.
How to Use:
Add the Indicator : Add the Market Pressure Index to your TradingView chart by clicking the star icon. Customize inputs like the pressure lookback period, deviation settings, and colors to fit your trading style.
Interpret the Signals : Monitor the bullish and bearish momentum columns to gauge market direction. Look for crossovers to signal potential trend changes.
Take Action : Use alerts for breakouts above the upper band or for take-profit levels to enhance your trade execution.
How It Works:
The Market Pressure Index separates bullish and bearish momentum by analyzing price movement (close vs. open) and volatility. These values are smoothed using Hull Moving Averages (HMA) to highlight trends while minimizing noise. A deviation-based upper band dynamically tracks market extremes, signaling breakout zones. Color gradients depict the intensity of momentum, offering a clear, visually intuitive representation of market pressure. Alerts are triggered when significant crossovers or take-profit conditions occur, giving traders actionable insights without constant chart monitoring.
Candle Emotion Index (CEI) StrategyThe Candle Emotion Index (CEI) Strategy is an innovative sentiment-based trading approach designed to help traders identify and capitalize on market psychology. By analyzing candlestick patterns and combining them into a unified metric, the CEI Strategy provides clear entry and exit signals while dynamically managing risk. This strategy is ideal for traders looking to leverage market sentiment to identify high-probability trading opportunities.
How It Works
The CEI Strategy is built around three core oscillators that reflect key emotional states in the market:
Indecision Oscillator . Measures market uncertainty using patterns like Doji and Spinning Tops. High values indicate hesitation, signaling potential turning points.
Fear Oscillator . Tracks bearish sentiment through patterns like Shooting Star, Hanging Man, and Bearish Engulfing. Helps identify moments of intense selling pressure.
Greed Oscillator . Detects bullish sentiment using patterns like Marubozu, Hammer, Bullish Engulfing, and Three White Soldiers. Highlights periods of strong buying interest.
These oscillators are averaged into the Candle Emotion Index (CEI):
CEI = (Indecision + Fear + Greed) / 3
This single value quantifies overall market sentiment and drives the strategy’s trading decisions.
Key Features
Sentiment-Based Trading Signals . Long Entry: Triggered when the CEI crosses above a lower threshold (e.g., 0.1), indicating increasing bullish sentiment. Short Entry: Triggered when the CEI crosses above a higher threshold (e.g., 0.2), signaling rising bearish sentiment.
Volume Confirmation . Trades are validated only if volume exceeds a user-defined multiplier of the average volume over the lookback period. This ensures entries are backed by significant market activity.
Break-Even Recovery Mechanism . If a trade moves into a loss, the strategy attempts to recover to break-even instead of immediately exiting at a loss. This feature provides flexibility, allowing the market to recover while maintaining disciplined risk management.
Dynamic Risk Management . Maximum Holding Period: Trades are closed after a user-defined number of candles to avoid overexposure to prolonged uncertainty. Profit-Taking Conditions: Positions are exited when favorable price moves are confirmed by increased volume, locking in gains. Loss Threshold: Trades are exited early if the price moves unfavorably beyond a set percentage of the entry price, limiting potential losses.
Cooldown Period . After a trade is closed, a cooldown period prevents immediate re-entry, reducing overtrading and improving signal quality.
Why Use This Strategy?
The CEI Strategy combines advanced sentiment analysis with robust trade management, making it a powerful tool for traders seeking to understand market psychology and identify high-probability setups. Its unique features, such as the break-even recovery mechanism and volume confirmation, add an extra layer of discipline and reliability to trading decisions.
Best Practices
Combine with Other Indicators . Use trend-following tools (e.g., moving averages, ADX) and momentum oscillators (e.g., RSI, MACD) to confirm signals.
Align with Key Levels . Incorporate support and resistance levels for refined entries and exits.
Multi-Market Compatibility . Apply this strategy to forex, crypto, stocks, or any asset class with strong volume and price action.
D-LEVELS **FUTURECODE**The D-LEVELS indicator helps traders identify key price levels based on high-volume nodes and their relative positions to the current price. It visually displays these dynamic levels on the chart, offering insights into potential support, resistance, or zones of interest for trading decisions.
Key Features for Traders:
Dynamic Volume Nodes: Highlights high-volume price levels across different lookback periods, which can act as support or resistance.
Custom Alerts: Warns traders when price is within a specified percentage range of these levels.
Visual Cues: Uses labels and lines with customizable colors and widths for better chart clarity.
Table Display: Summarizes volume node price levels and their relative percentages for quick reference.
Customization: Flexible input options for text size, colors, and display settings to adapt to individual trading styles.
Use Case:
Traders can incorporate this indicator into their strategy to identify high-probability zones for entries, exits, or trade management by observing the interaction of price with these volume-based levels.
VFV Correction Levels
This Pine Script, "VFV Correction Levels," identifies significant daily price corrections and calculates corresponding investments based on fixed thresholds (paliers). Key features include:
Six predefined correction levels trigger investments between $150 and $600 based on the percentage drop.
Larger corrections correspond to higher investment amounts.
Graphical Indicators:
Visual labels mark correction levels and display investment amounts directly on the chart.
Investment Tracking:
Calculates total invested and tracks performance (yield percentage) relative to the initial correction price.