MOKI V1The "MOKI V1" script is a trading strategy on the TradingView platform that uses a combination of two key indicators to identify buy and sell signals:
EMA200 (Exponential Moving Average 200): Used to determine the overall market trend. This line helps ensure that trades are made in the direction of the primary market trend.
RSI (Relative Strength Index): Used to measure the strength or weakness of a trend. In this strategy, a reading above 50 for the RSI indicates stronger buy signals.
Engulfing Pattern: This candlestick pattern occurs when a green (bullish) candle completely engulfs the previous red (bearish) candle. It is used as a buy signal when combined with the other indicators.
المؤشرات والاستراتيجيات
BoqorreIndicator: Yesterday's High/Low Only
This custom TradingView indicator visually marks the high and low of the previous trading day on your chart, providing a clear reference for market conditions. It displays two key levels:
Yesterday's High (Green Line): Representing the highest price reached during the previous day, this level can often act as a resistance point.
Yesterday's Low (Red Line): Showing the lowest price of the previous day, this level may act as a support area.
Key Features:
Lines: The indicator draws dotted lines that extend to the right by 72 bars and infinitely to the left, making it easy to track these important levels.
Labels: Labels are placed directly at the high and low levels to give immediate clarity. The "Yesterday's High" label appears above the green line, while the "Yesterday's Low" label appears beneath the red line.
Previous Daily High/Low Labels: Additional labels are placed for both the previous daily high and low, positioned slightly above and below the respective lines for further clarity and context.
Benefits:
Helps traders identify key support and resistance zones based on the previous day's price action.
Improves technical analysis by visually marking significant price levels, making it easier to spot potential breakout or breakdown points.
The indicator is automatically updated daily, and the lines are drawn dynamically as soon as a new trading day begins.
Whether you're looking to track market movements, identify potential reversal points, or just need a reference for market structure, this indicator will add value to your charting setup
MACD Trend Direction BUY/SELLThis script shows buy/sell signals in the direction of the trend.
MACD over the mid-line is Bullish
MACD below the mid-line is Bearish
Buy when we have crosses of the MACD above the mid-line
Sell when we have crosses of the MACD below the mid-line
You can adjust the settings to suit your trading needs.
Enjoy this indicator, Hope it can help you with your Trading Journey.
Jts Up/Down VolumeColour variation of volume indicator. Uses Green and blue so as not to reinforce the symbolism of the colour combination. Volume highlighted, with average overlay in green.
Volatility Momentum Breakout StrategyDescription:
Overview:
The Volatility Momentum Breakout Strategy is designed to capture significant price moves by combining a volatility breakout approach with trend and momentum filters. This strategy dynamically calculates breakout levels based on market volatility and uses these levels along with trend and momentum conditions to identify trade opportunities.
How It Works:
1. Volatility Breakout:
• Methodology:
The strategy computes the highest high and lowest low over a defined lookback period (excluding the current bar to avoid look-ahead bias). A multiple of the Average True Range (ATR) is then added to (or subtracted from) these levels to form dynamic breakout thresholds.
• Purpose:
This method helps capture significant price movements (breakouts) while ensuring that only past data is used, thereby maintaining realistic signal generation.
2. Trend Filtering:
• Methodology:
A short-term Exponential Moving Average (EMA) is applied to determine the prevailing trend.
• Purpose:
Long trades are considered only when the current price is above the EMA, indicating an uptrend, while short trades are taken only when the price is below the EMA, indicating a downtrend.
3. Momentum Confirmation:
• Methodology:
The Relative Strength Index (RSI) is used to gauge market momentum.
• Purpose:
For long entries, the RSI must be above a mid-level (e.g., above 50) to confirm upward momentum, and for short entries, it must be below a similar threshold. This helps filter out signals during overextended conditions.
Entry Conditions:
• Long Entry:
A long position is triggered when the current closing price exceeds the calculated long breakout level, the price is above the short-term EMA, and the RSI confirms momentum (e.g., above 50).
• Short Entry:
A short position is triggered when the closing price falls below the calculated short breakout level, the price is below the EMA, and the RSI confirms momentum (e.g., below 50).
Risk Management:
• Position Sizing:
Trades are sized to risk a fixed percentage of account equity (set here to 5% per trade in the code, with each trade’s stop loss defined so that risk is limited to approximately 2% of the entry price).
• Stop Loss & Take Profit:
A stop loss is placed a fixed ATR multiple away from the entry price, and a take profit target is set to achieve a 1:2 risk-reward ratio.
• Realistic Backtesting:
The strategy is backtested using an initial capital of $10,000, with a commission of 0.1% per trade and slippage of 1 tick per bar—parameters chosen to reflect conditions faced by the average trader.
Important Disclaimers:
• No Look-Ahead Bias:
All breakout levels are calculated using only past data (excluding the current bar) to ensure that the strategy does not “peek” into future data.
• Educational Purpose:
This strategy is experimental and provided solely for educational purposes. Past performance is not indicative of future results.
• User Responsibility:
Traders should thoroughly backtest and paper trade the strategy under various market conditions and adjust parameters to fit their own risk tolerance and trading style before live deployment.
Conclusion:
By integrating volatility-based breakout signals with trend and momentum filters, the Volatility Momentum Breakout Strategy offers a unique method to capture significant price moves in a disciplined manner. This publication provides a transparent explanation of the strategy’s components and realistic backtesting parameters, making it a useful tool for educational purposes and further customization by the TradingView community.
Open Equals High/Low with Persistent LinesIt checks each candle to see if the open price is equal to either the high or the low of that candle, and if so, it colors the candle purple on the chart.
DynamicMovingAveragesLibrary "DynamicMovingAverages"
Custom Dynamic Moving Averages that allow a dynamic calculation beginning from the first bar
SMA(sourceData, maxLength)
Dynamic SMA
Parameters:
sourceData (float)
maxLength (int)
EMA(src, length)
Dynamic EMA
Parameters:
src (float)
length (int)
DEMA(src, length)
Dynamic DEMA
Parameters:
src (float)
length (int)
TEMA(src, length)
Dynamic TEMA
Parameters:
src (float)
length (int)
WMA(src, length)
Dynamic WMA
Parameters:
src (float)
length (int)
HMA(src, length)
Dynamic HMA
Parameters:
src (float)
length (int)
VWMA(src, volsrc, length)
Dynamic VWMA
Parameters:
src (float)
volsrc (float)
length (int)
SMMA(src, length)
Dynamic SMMA
Parameters:
src (float)
length (int)
LSMA(src, length, offset)
Dynamic LSMA
Parameters:
src (float)
length (int)
offset (int)
RMA(src, length)
Dynamic RMA
Parameters:
src (float)
length (int)
ALMA(src, length, offset_sigma, sigma)
Dynamic ALMA
Parameters:
src (float)
length (int)
offset_sigma (float)
sigma (float)
HyperMA(src, length)
Dynamic HyperbolicMA
Parameters:
src (float)
length (int)
Advanced Multi-Timeframe Trading System (Risk Managed)Description:
This strategy is an original approach that combines two main analytical components to identify potential trade opportunities while simulating realistic trading conditions:
1. Market Trend Analysis via an Approximate Hurst Exponent
• What It Does:
The strategy computes a rough measure of market trending using an approximate Hurst exponent. A value above 0.5 suggests persistent, trending behavior, while a value below 0.5 indicates a tendency toward mean-reversion.
• How It’s Used:
The Hurst exponent is calculated on both the chart’s current timeframe and a higher timeframe (default: Daily) to capture both local and broader market dynamics.
2. Fibonacci Retracement Levels
• What It Does:
Using daily high and low data from a selected timeframe (default: Daily), the script computes key Fibonacci retracement levels.
• How It’s Used:
• The 61.8% level (Golden Ratio) serves as a key threshold:
• A long entry is signaled when the price crosses above this level if the daily Hurst exponent confirms a trending market.
• The 38.2% level is used to identify short-entry opportunities when the price crosses below it and the daily Hurst indicates non-trending conditions.
Signal Logic:
• Long Entry:
When the price crosses above the 61.8% Fibonacci level (Golden Ratio) and the daily Hurst exponent is greater than 0.5, suggesting a trending market.
• Short Entry:
When the price crosses below the 38.2% Fibonacci level and the daily Hurst exponent is less than 0.5, indicating a less trending or potentially reversing market.
Risk Management & Trade Execution:
• Stop-Loss:
Each trade is risk-managed with a stop-loss set at 2% below (for longs) or above (for shorts) the entry price. This ensures that no single trade risks more than a small, sustainable portion of the account.
• Take Profit:
A take profit order targets a risk-reward ratio of 1:2 (i.e., the target profit is twice the amount risked).
• Position Sizing:
Trades are executed with a fixed position size equal to 10% of account equity.
• Trade Frequency Limits:
• Daily Limit: A maximum of 5 trades per day
• Overall Limit: No more than 510 trades during the backtesting period (e.g., since 2019)
These limits are imposed to simulate realistic trading frequency and to avoid overtrading in backtest results.
Backtesting Parameters:
• Initial Capital: $10,000
• Commission: 0.1% per trade
• Slippage: 1 tick per bar
These settings aim to reflect the conditions faced by the average trader and help ensure that the backtesting results are realistic and not misleading.
Chart Overlays & Visual Aids:
• Fibonacci Levels:
The key Fibonacci retracement levels are plotted on the chart, and the zone between the 61.8% and 38.2% levels is highlighted to show a key retracement area.
• Market Trend Background:
The chart background is tinted green when the daily Hurst exponent indicates a trending market (value > 0.5) and red otherwise.
• Information Table:
An on-chart table displays key parameters such as the current Hurst exponent, daily Hurst value, the number of trades executed today, and the global trade count.
Disclaimer:
Past performance is not indicative of future results. This strategy is experimental and provided solely for educational purposes. It is essential that you backtest and paper trade using your own settings before considering any live deployment. The Hurst exponent calculation is an approximation and should be interpreted as a rough gauge of market behavior. Adjust the parameters and risk management settings according to your personal risk tolerance and market conditions.
Additional Notes:
• Originality & Usefulness:
This script is an original mashup that combines trend analysis with Fibonacci retracement methods. The description above explains how these components work together to provide trading signals.
• Realistic Results:
The strategy uses realistic account sizes, commission rates, slippage, and risk management rules to generate backtesting results that are representative of real-world trading.
• Educational Purpose:
This script is intended to support the TradingView community by offering insights into combining multiple analysis techniques in one strategy. It is not a “get-rich-quick” system but rather an educational tool to help traders understand risk management and trade signal logic.
By using this script, you acknowledge that trading involves risk and that you are responsible for testing and adjusting the strategy to fit your own trading environment. This publication is fully open source, and any modifications should include proper attribution if significant portions of the code are reused.
Jt's Gold StandardCandle colour indicator, Black and Gold. This visual colour configuration will highlight possitive momentum only. All other colours are black.
MgboIntroduction:
Crafted with TTrades, the Fractal Model empowers traders with a refined approach to Algorithmic Price Delivery. Specifically designed for those aiming to capitalize on expansive moves, this model anticipates momentum shifts, swing formations, orderflow continuations, as well as helping analysts highlight key areas to anticipate price deliveries.
Description:
> The Fractal Model° is rooted in the cyclical nature of price movements, where price alternates between large and small ranges. Expansion occurs when price moves consistently in one direction with momentum. By combining higher Timeframe closures with the confirmation of the change in state of delivery (CISD) on the lower Timeframe, the model reveals moments when expansion is poised to occur.> Thanks to TTrades' extensive research and years of studying these price behaviours, the Fractal Model° is a powerful, adaptive tool that seamlessly adjusts to any asset, market condition, or Timeframe, translating complex price action insights into an intuitive and responsive system.
The TTrades Fractal Model remains stable and non-repainting, offering traders reliable, unchanged levels within the given Time period. This tool is meticulously designed to support analysts focus on price action and dynamically adapt with each new Time period.
Key Features:
Custom History: Control the depth of your historical view by selecting the number of previous setups you’d like to analyze on your chart, from the current setup only (0) to a history of up to 40 setups. This feature allows you to tailor the chart to your specific charting style, whether you prefer to see past setups or the current view only.>Fractal Timeframe Pairings: This indicator enables users to observe and analyze lower Timeframe (LTF) movements within the structure of a higher Timeframe (HTF) candle. By examining LTF price action inside each HTF candle, analysts can gain insight into micro trends, structure shifts, and key entry points that may not be visible on the higher Timeframe alone. This approach provides a layered perspective, allowing analysts to closely monitoring how the LTF movements unfold within the overarching HTF context.
For a more dynamic and hands-off user experience, the Automatic feature autonomously adjusts the higher Timeframe pairing based the current chart Timeframe, ensuring accurate alignment with the Fractal Model, according to TTrades and his studies
Bias Selection: This feature allows analysts complete control over bias and setup detection, allowing one to view bullish or bearish formations exclusively, or opt for a neutral bias to monitor both directions. Easily toggle the bias filter on Fractal Model to align with your higher Timeframe market draw.
Nifty OTM Option SellNSE Nifty 50, Options OTM 1, when the options premium 3 minutes candle close below the VWAP, options sell, stop loss same candle high, target 50 point in premium.
Median Deviation Bands | QuantumResearchIntroducing QuantumResearch’s Median Deviation Bands Indicator
The Median Deviation Bands indicator is an advanced volatility-based tool designed to help traders identify price trends, market reversals, and potential trading opportunities.
By using a percentile-based median baseline combined with standard deviation bands, this indicator provides a dynamic framework for analyzing price movements and assessing market volatility.
How It Works
Baseline Calculation:
The median price over a user-defined period (default: 50) is calculated using the 50th percentile of price data.
This serves as the central reference point for trend analysis.
Trend Identification:
Bullish Trend: Occurs when the price crosses above the baseline.
Bearish Trend: Occurs when the price crosses below the baseline.
Deviation Bands:
The indicator plots three sets of upper and lower bands, representing 1x, 2x, and 3x standard deviations from the median.
These bands act as dynamic support and resistance zones, helping traders identify overbought and oversold conditions.
Visual Representation
The Median Deviation Bands indicator offers a clear, customizable visual layout:
Color-Coded Baseline:
Green (Bullish): Price is above the median.
Red (Bearish): Price is below the median.
Deviation Bands:
First Band (Light Fill): Represents 1 standard deviation from the baseline.
Second Band (Medium Fill): Represents 2 standard deviations, highlighting stronger trends.
Third Band (Dark Fill): Represents 3 standard deviations, showing extreme price conditions.
Trend Markers:
Green Up Arrows: Indicate the start of a bullish trend when price crosses above the baseline.
Red Down Arrows: Indicate the start of a bearish trend when price crosses below the baseline.
Customization & Parameters
The Median Deviation Bands indicator includes multiple user-configurable settings to adapt to different trading strategies:
Baseline Length: Default set to 50, determines the lookback period for median calculation.
Source Price: Selectable input price for calculations (default: close).
Band Visibility: Traders can toggle individual deviation bands on or off to match their preferences.
Trend Markers: Option to enable or disable up/down trend arrows.
Color Modes: Choose from eight color schemes to customize the indicator’s appearance.
Trading Applications
This indicator is highly versatile and can be applied to multiple trading strategies, including:
Volatility-Based Trading: Price movement within and outside the bands helps traders gauge volatility and market conditions.
Trend Following: The baseline and deviation bands help confirm ongoing trends.
Mean Reversion Strategies: Traders can look for price reactions at extreme bands (±3 standard deviations).
Final Note
QuantumResearch’s Median Deviation Bands indicator provides a unique approach to market analysis by integrating percentile-based median price levels with standard deviation-based volatility bands.
This combination helps traders understand price behavior in relation to historical volatility, making it a valuable tool for both trend-following and mean-reversion strategies.
As always, backtesting and customization are recommended to optimize performance across different market conditions.
Binary Trading - Next Candle PredictionHow It Works:
Trend Filter:
Uses a 14-period EMA to determine the trend direction.
Buy signals only appear if the price is above the EMA (uptrend).
Sell signals only appear if the price is below the EMA (downtrend).
Momentum Confirmation:
RSI (14-period) ensures the market is not overextended:
Avoid buys if RSI is overbought (>70).
Avoid sells if RSI is oversold (<30).
RSI must be rising for buys or falling for sells over the last confirmCandles (default: 2).
Price Action:
Requires 2 consecutive bullish candles for buys or 2 consecutive bearish candles for sells.
Optimization Tips:
Timeframe: Works best on 1-minute to 5-minute charts (common for binary trading).
Adjust Parameters:
Reduce emaLength (e.g., 10) for faster signals.
Increase confirmCandles (e.g., 3) to reduce false signals.
Combine with News: Avoid trading during high-impact news events.
Usage Instructions:
Apply to Chart: Copy the script into TradingView’s Pine Editor.
Backtest: Check historical performance on your preferred asset (e.g., EUR/USD, BTCUSD).
Set Alerts: Use the built-in alerts to notify you of signals.
Why This Works Better:
Reduces False Signals: By combining trend, momentum, and price action.
Avoids Overfitting: Uses widely accepted indicators (RSI, EMA) instead of exotic strategies.
Adaptable: Parameters can be tweaked for volatility or asset type.
Important Notes:
No Guarantee: No strategy is 100% accurate. Always use risk management (e.g., stop-loss).
Market Context: Works best in trending markets. Avoid sideways/ranging conditions.
veeru S&R with Previous/Weekly/Important LevelsKey improvements and explanations:
Previous Day High/Low: The get_previous_day_hl() function now correctly retrieves the previous day's high and low using high and low .
Weekly High/Low: The get_weekly_hl() function provides a basic implementation. Important: It's not perfectly accurate for all timeframes because TradingView doesn't directly give you the beginning of the week. A better approach would involve more advanced date/time calculations (which can be complex in Pine Script). The current version resets the weekly high/low on every day change. This means that on the first day of the week, it will start tracking from that day's high/low.
Important High/Low: The get_important_hl() function uses ta.pivothigh and ta.pivotlow with a separate important_lookback input, allowing you to define a longer lookback for these levels.
Plotting: The plot() function is used to draw the levels on the chart with different colors and styles for clarity. The style=plot.style_linebr creates a broken line, which can be useful for these types of levels.
Alerts: Example alerts are included to demonstrate how you can trigger alerts when the price crosses above/below these levels. You can customize the alert conditions and messages as needed. I've added examples for the important levels and the previous day levels. You can easily add similar alerts for the weekly levels.
Clearer Variable Names and Comments: The code uses more descriptive variable names and includes comments to explain the logic.
Further Enhancements (For more advanced users):
Accurate Weekly Levels: For a truly accurate weekly high/low, you'll need to use the dayofweek() and weekofyear() functions, and potentially store the weekly high/low in a var variable that gets reset only at the start of the week. This requires careful handling of time and date changes.
Dynamic Lookback: You could make the lookback and important_lookback inputs more dynamic based on volatility or other factors.
Visualizations: Consider using line.new() or box.new() to draw more prominent lines or boxes for the important levels.
Breaks and Retests: If you want to integrate the break and retest logic from your original script, you can combine the level detection with your existing code. The key would be to use the prev_day_high, prev_day_low, weekly_high, weekly_low, important_high, and important_low variables in your break/retest conditions.
This improved script provides a solid foundation for tracking and alerting on key support and resistance levels. Remember to adjust the important_lookback and other parameters to suit your trading style and the specific market you're analyzing.
Combo Descomplica 1.0Este indicador contém 3 médias móveis e também um indicador para os níveis de Gamma do VIX
Auto-Length Moving Average + Trend Signals (Zeiierman)█ Overview
The Auto-Length Moving Average + Trend Signals (Zeiierman) is an easy-to-use indicator designed to help traders dynamically adjust their moving average length based on market conditions. This tool adapts in real-time, expanding and contracting the moving average based on trend strength and momentum shifts.
The indicator smooths out price fluctuations by modifying its length while ensuring responsiveness to new trends. In addition to its adaptive length algorithm, it incorporates trend confirmation signals, helping traders identify potential trend reversals and continuations with greater confidence.
This indicator suits scalpers, swing traders, and trend-following investors who want a self-adjusting moving average that adapts to volatility, momentum, and price action dynamics.
█ How It Works
⚪ Dynamic Moving Average Length
The core feature of this indicator is its ability to automatically adjust the length of the moving average based on trend persistence and market conditions:
Expands in strong trends to reduce noise.
Contracts in choppy or reversing markets for faster reaction.
This allows for a more accurate moving average that aligns with current price dynamics.
⚪ Trend Confirmation & Signals
The indicator includes built-in trend detection logic, classifying trends based on market structure. It evaluates trend strength based on consecutive bars and smooths out transitions between bullish, bearish, and neutral conditions.
Uptrend: Price is persistently above the adjusted moving average.
Downtrend: Price remains below the adjusted moving average.
Neutral: Price fluctuates around the moving average, indicating possible consolidation.
⚪ Adaptive Trend Smoothing
A smoothing factor is applied to enhance trend readability while minimizing excessive lag. This balances reactivity with stability, making it easier to follow longer-term trends while avoiding false signals.
█ How to Use
⚪ Trend Identification
Bullish Trend: The indicator confirms an uptrend when the price consistently stays above the dynamically adjusted moving average.
Bearish Trend: A downtrend is recognized when the price remains below the moving average.
⚪ Trade Entry & Exit
Enter long when the dynamic moving average is green and a trend signal occurs. Exit when the price crosses below the dynamic moving average.
Enter short when the dynamic moving average is red and a trend signal occurs. Exit when the price crosses above the dynamic moving average.
█ Slope-Based Reset
This mode resets the trend counter when the moving average slope changes direction.
⚪ Interpretation & Insights
Best for trend-following traders who want to filter out noise and only reset when a clear shift in momentum occurs.
Higher slope length (N): More stable trends, fewer resets.
Lower slope length (N): More reactive to small price swings, frequent resets.
Useful in swing trading to track significant trend reversals.
█ RSI-Based Reset
The counter resets when the Relative Strength Index (RSI) crosses predefined overbought or oversold levels.
⚪ Interpretation & Insights
Best for reversal traders who look for extreme overbought/oversold conditions.
High RSI threshold (e.g., 80/20): Fewer resets, only extreme conditions trigger adjustments.
Lower RSI threshold (e.g., 60/40): More frequent resets, detecting smaller corrections.
Great for detecting exhaustion in trends before potential reversals.
█ Volume-Based Reset
A reset occurs when current volume significantly exceeds its moving average, signaling a shift in market participation.
⚪ Interpretation & Insights
Best for traders who follow institutional activity (high volume often means large players are active).
Higher volume SMA length: More stable trends, only resets on massive volume spikes.
Lower volume SMA length: More reactive to short-term volume shifts.
Useful in identifying breakout conditions and trend acceleration points.
█ Bollinger Band-Based Reset
A reset occurs when price closes above the upper Bollinger Band or below the lower Bollinger Band, signaling potential overextension.
⚪ Interpretation & Insights
Best for traders looking for volatility-based trend shifts.
Higher Bollinger Band multiplier (k = 2.5+): Captures only major price extremes.
Lower Bollinger Band multiplier (k = 1.5): Resets on moderate volatility changes.
Useful for detecting overextensions in strong trends before potential retracements.
█ MACD-Based Reset
A reset occurs when the MACD line crosses the signal line, indicating a momentum shift.
⚪ Interpretation & Insights
Best for momentum traders looking for trend continuation vs. exhaustion signals.
Longer MACD lengths (260, 120, 90): Captures major trend shifts.
Shorter MACD lengths (10, 5, 3): Reacts quickly to momentum changes.
Useful for detecting strong divergences and market shifts.
█ Stochastic-Based Reset
A reset occurs when Stochastic %K crosses overbought or oversold levels.
⚪ Interpretation & Insights
Best for short-term traders looking for fast momentum shifts.
Longer Stochastic length: Filters out false signals.
Shorter Stochastic length: Captures quick intraday shifts.
█ CCI-Based Reset
A reset occurs when the Commodity Channel Index (CCI) crosses predefined overbought or oversold levels. The CCI measures the price deviation from its statistical mean, making it a useful tool for detecting overextensions in price action.
⚪ Interpretation & Insights
Best for cycle traders who aim to identify overextended price deviations in trending or ranging markets.
Higher CCI threshold (e.g., ±200): Detects extreme overbought/oversold conditions before reversals.
Lower CCI threshold (e.g., ±10): More sensitive to trend shifts, useful for early signal detection.
Ideal for detecting momentum shifts before price reverts to its mean or continues trending strongly.
█ Momentum-Based Reset
A reset occurs when Momentum (Rate of Change) crosses zero, indicating a potential shift in price direction.
⚪ Interpretation & Insights
Best for trend-following traders who want to track acceleration vs. deceleration.
Higher momentum length: Captures longer-term shifts.
Lower momentum length: More responsive to short-term trend changes.
█ How to Interpret the Trend Strength Table
The Trend Strength Table provides valuable insights into the current market conditions by tracking how the dynamic moving average is adjusting based on trend persistence. Each metric in the table plays a role in understanding the strength, longevity, and stability of a trend.
⚪ Counter Value
Represents the current length of trend persistence before a reset occurs.
The higher the counter, the longer the current trend has been in place without resetting.
When this value reaches the Counter Break Threshold, the moving average resets and contracts to become more reactive.
Example:
A low counter value (e.g., 10) suggests a recent trend reset, meaning the market might be changing directions frequently.
A high counter value (e.g., 495) means the trend has been ongoing for a long time, indicating strong trend persistence.
⚪ Trend Strength
Measures how strong the current trend is based on the trend confirmation logic.
Higher values indicate stronger trends, while lower values suggest weaker trends or consolidations.
This value is dynamic and updates based on price action.
Example:
Trend Strength of 760 → Indicates a high-confidence trend.
Trend Strength of 50 → Suggests weak price action, possibly a choppy market.
⚪ Highest Trend Score
Tracks the strongest trend score recorded during the session.
Helps traders identify the most dominant trend observed in the timeframe.
This metric is useful for analyzing historical trend strength and comparing it with current conditions.
Example:
Highest Trend Score = 760 → Suggests that at some point, there was a strong trend in play.
If the current trend strength is much lower than this value, it could indicate trend exhaustion.
⚪ Average Trend Score
This is a rolling average of trend strength across the session.
Provides a bigger picture of how the trend strength fluctuates over time.
If the average trend score is high, the market has had persistent trends.
If it's low, the market may have been choppy or sideways.
Example:
Average Trend Score of 147 vs. Current Trend Strength of 760 → Indicates that the current trend is significantly stronger than the historical average, meaning a breakout might be occurring.
Average Trend Score of 700+ → Suggests a strong trending market overall.
█ Settings
⚪ Dynamic MA Controls
Base MA Length – Sets the starting length of the moving average before dynamic adjustments.
Max Dynamic Length – Defines the upper limit for how much the moving average can expand.
Trend Confirmation Length – The number of bars required to validate an uptrend or downtrend.
⚪ Reset & Adaptive Conditions
Reset Condition Type – Choose what triggers the moving average reset (Slope, RSI, Volume, MACD, etc.).
Trend Smoothing Factor – Adjusts how smoothly the moving average responds to price changes.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
AI Volume Breakout for scalpingPurpose of the Indicator
This script is designed for trading, specifically for scalping, which involves making numerous trades within a very short time frame to take advantage of small price movements. The indicator looks for volume breakouts, which are moments when trading volume significantly increases, potentially signaling the start of a new price movement.
Key Components:
Parameters:
Volume Threshold (volumeThreshold): Determines how much volume must increase from one bar to the next for it to be considered significant. Set at 4.0, meaning volume must quadruplicate for a breakout signal.
Price Change Threshold (priceChangeThreshold): Defines the minimum price change required for a breakout signal. Here, it's 1.5% of the bar's opening price.
SMA Length (smaLength): The period for the Simple Moving Average, which helps confirm the trend direction. Here, it's set to 20.
Cooldown Period (cooldownPeriod): Prevents signals from being too close together, set to 10 bars.
ATR Period (atrPeriod): The period for calculating Average True Range (ATR), used to measure market volatility.
Volatility Threshold (volatilityThreshold): If ATR divided by the close price exceeds this, the market is considered too volatile for trading according to this strategy.
Calculations:
SMA (Simple Moving Average): Used for trend confirmation. A bullish signal is more likely if the price is above this average.
ATR (Average True Range): Measures market volatility. Lower volatility (below the threshold) is preferred for this strategy.
Signal Generation:
The indicator checks if:
Volume has increased significantly (volumeDelta > 0 and volume / volume >= volumeThreshold).
There's enough price change (math.abs(priceDelta / open) >= priceChangeThreshold).
The market isn't too volatile (lowVolatility).
The trend supports the direction of the price change (trendUp for bullish, trendDown for bearish).
If all these conditions are met, it predicts:
1 (Bullish) if conditions suggest buying.
0 (Bearish) if conditions suggest selling.
Cooldown Mechanism:
After a signal, the script waits for a number of bars (cooldownPeriod) before considering another signal to avoid over-trading.
Visual Feedback:
Labels are placed on the chart:
Green label for bullish breakouts below the low price.
Red label for bearish breakouts above the high price.
How to Use:
Entry Points: Look for the labels on your chart to decide when to enter trades.
Risk Management: Since this is for scalping, ensure each trade has tight stop-losses to manage risk due to the quick, small movements.
Market Conditions: This strategy might work best in markets with consistent volume and price changes but not extreme volatility.
Caveats:
This isn't real AI; it's a heuristic based on volume and price. Actual AI would involve machine learning algorithms trained on historical data.
Always backtest any strategy, and consider how it behaves in different market conditions, not just the ones it was designed for.
SMA 9, SMA 33 y HMA PersonalizablesUn indicador con SMA 9, SMA 33, y una HMA (Hull Moving Average) puede ser una herramienta útil para analizar tendencias, detectar cambios de dirección en el precio y tomar decisiones en el trading. Aquí te dejo algunas ideas de cómo podrías utilizarlo:
1. Detección de la Tendencia General
SMA 9 (corto plazo): Muestra la tendencia a corto plazo. Si el precio está por encima de esta línea, puede indicar un sesgo alcista a corto plazo.
SMA 33 (medio plazo): Muestra la tendencia a medio plazo. Es útil para confirmar la dirección de la tendencia principal.
HMA (Hull Moving Average): Es más rápida y suave que las SMAs, ideal para detectar giros de tendencia de manera temprana sin tanto ruido.
Estrategia básica:
Cuando las tres medias están alineadas (SMA 9 > SMA 33 > HMA apunta hacia arriba), se confirma una tendencia alcista.
Si el orden es el inverso (SMA 9 < SMA 33 y HMA apunta hacia abajo), se confirma una tendencia bajista.
2. Cruces entre las SMAs
Los cruces de medias móviles son señales comunes de compra o venta:
Señal de Compra: Cuando la SMA 9 cruza hacia arriba la SMA 33, puede ser una indicación de que la tendencia se está volviendo alcista.
Señal de Venta: Cuando la SMA 9 cruza hacia abajo la SMA 33, puede ser una señal de que la tendencia se está volviendo bajista.
Confirmación con la HMA: Antes de actuar, verifica si la HMA también está alineada con la dirección de la señal para reducir señales falsas.
3. Uso como Soporte y Resistencia Dinámicos
Las SMA 9 y 33 pueden actuar como niveles de soporte/resistencia dinámicos. Por ejemplo:
Si el precio está subiendo y retrocede hasta la SMA 9 o SMA 33, podría ser un buen punto para buscar entradas largas.
Lo mismo aplica en una tendencia bajista, pero a la inversa.
La HMA puede ayudarte a identificar si el retroceso es temporal o si es más probable que el precio cambie de tendencia.
4. Filtrado de Operaciones en Mercados Laterales
Si las SMA 9 y 33 están planas y el precio se mueve lateral
AAKASH 2025This powerful TradingView script, "AAKASH," offers traders an intuitive way to visualize market trends and easily spot key entry and exit signals. By dynamically changing candle colors, it provides a clear visual cue of market conditions.
Candles turn green when the price is trending upwards or when a buy signal occurs, and red when the price is trending downwards or a sell signal is triggered. This dynamic color change ensures that traders can instantly recognize shifts in market momentum, making it easier to time trades.
Buy and sell signals are clearly marked with labels, positioned below bars for buys and above bars for sells, making them easy to spot. This script seamlessly integrates trend-following analysis with price action, giving traders the confidence to make well-informed decisions. With its easy-to-read visual cues, "AAKASH" is the perfect tool for anyone looking to enhance their trading strategy and react faster to market movements.