MomentumBreak AI SwiftEdgeMomentumbreak AI SwiftEdge
Overview
This indicator combines two powerful concepts: Pivot Trendlines by HoanGhetti and the Squeeze Momentum Oscillator by AlgoAlpha. The goal of this mashup is to provide traders with a tool that identifies key trendline breakouts while simultaneously gauging market momentum through a dynamic gradient overlay. By integrating these two elements, the indicator offers a unique perspective on price action, helping traders spot high-probability breakout opportunities that align with momentum shifts.
How It Works
Pivot Trendlines:
The indicator uses HoanGhetti's Pivot Trendlines to identify pivot highs and lows based on user-defined settings (Pivot Length and Pivot Type).
Trendlines are drawn between these pivots, and breakouts are detected when the price crosses above (bullish) or below (bearish) the trendline.
Breakouts are visually highlighted with gradient boxes and an "AI: BREAK ⚡" label for clarity.
Squeeze Momentum Oscillator:
The Squeeze Momentum Oscillator calculates market momentum using a combination of volatility and price movement.
A dynamic midline (price_mid) is plotted, with its color indicating squeeze conditions (yellow for hypersqueeze, orange for normal squeeze, gray otherwise).
A gradient overlay is added above or below the midline to reflect momentum:
Green gradient for bullish momentum (vf > 0), placed below candles in an uptrend (close > price_mid) or above in a downtrend (close < price_mid).
Red gradient for bearish momentum (vf < 0), placed above candles in an uptrend or below in a downtrend.
The gradient's intensity increases as the price moves further from the midline, visually emphasizing momentum strength.
Breakout Confirmation:
Breakout signals are only generated when the momentum aligns with the breakout direction:
Bullish breakouts require bullish momentum (vf > 0).
Bearish breakouts require bearish momentum (vf < 0).
This alignment ensures that breakouts are more reliable and reduces false signals.
Default Settings
Pivot Length: 20 (determines the lookback period for identifying pivot points)
Pivot Type: Normal (can be set to "Fast" for more frequent pivots)
Repainting: True (trendlines may repaint as new pivots form; can be disabled)
Target Levels: False (optional horizontal levels at pivot points; can be enabled)
Extend: None (trendline extension; options: none, right, left, both)
Trendline Style: Dotted (options: dotted, dashed, solid)
Underlying Momentum Oscillator Length: 10
Swing Momentum Oscillator Length: 20
Squeeze Calculation Period: 14
Squeeze Smoothing Length: 7
Squeeze Detection Length: 14
Hyper Squeeze Detection Length: 5
Usage
This indicator is ideal for traders who want to combine trendline breakouts with momentum analysis:
Trendline Breakouts: Look for gradient boxes and "AI: BREAK ⚡" labels to identify confirmed breakouts. Bullish breakouts are marked with green boxes, and bearish breakouts with red boxes.
Momentum Confirmation: The gradient overlay (green for bullish, red for bearish) helps confirm the strength of the trend. Stronger gradients (less transparent) indicate stronger momentum.
Midline Crosses: Small triangles below (bullish) or above (bearish) candles indicate when the price crosses the dynamic midline, providing additional entry/exit signals.
Why This Combination?
The integration of Pivot Trendlines and Squeeze Momentum Oscillator creates a synergy that enhances trade decision-making:
Pivot Trendlines identify key structural levels in the market, making breakouts significant events.
The Squeeze Momentum Oscillator adds a momentum filter, ensuring that breakouts are supported by underlying market strength.
Together, they provide a more holistic view of price action, filtering out low-probability breakouts and highlighting opportunities where trendline breaks align with strong momentum.
Notes
This indicator does not use request.security() or barmerge.lookahead_on, so there is no risk of lookahead bias.
The script is designed to provide clear visual cues without making unrealistic claims about performance. It is intended as a tool for analysis, not a guaranteed trading system.
Cerca negli script per "ai"
1-AI Volume Supertrend - Strategy🤖 AI Volume Indicator — Description for Publishing
Description:
The AI Volume Indicator leverages enhanced logic to analyze market volume with a focus on uncovering hidden accumulation, distribution, and momentum shifts. Unlike basic volume bars, this indicator applies adaptive algorithms or pattern recognition (AI-inspired) to highlight significant volume events that may precede price movements.
SuperTrend AI Oscillator StrategySuperTrend AI Oscillator Strategy
Overview
This strategy is a trend-following approach that combines the SuperTrend indicator with oscillator-based filtering.
By identifying market trends while utilizing oscillator-based momentum analysis, it aims to improve entry precision.
Additionally, it incorporates a trailing stop to strengthen risk management while maximizing profits.
This strategy can be applied to various markets, including Forex, Crypto, and Stocks, as well as different timeframes. However, its effectiveness varies depending on market conditions, so thorough testing is required.
Features
1️⃣ Trend Identification Using SuperTrend
The SuperTrend indicator (a volatility-adjusted trend indicator based on ATR) is used to determine trend direction.
A long entry is considered when SuperTrend turns bullish.
A short entry is considered when SuperTrend turns bearish.
The goal is to capture clear trend reversals and avoid unnecessary trades in ranging markets.
2️⃣ Entry Filtering with an Oscillator
The Super Oscillator is used to filter entry signals.
If the oscillator exceeds 50, it strengthens long entries (indicating strong bullish momentum).
If the oscillator drops below 50, it strengthens short entries (indicating strong bearish momentum).
This filter helps reduce trades in uncertain market conditions and improves entry accuracy.
3️⃣ Risk Management with a Trailing Stop
Instead of a fixed stop loss, a SuperTrend-based trailing stop is implemented.
The stop level adjusts automatically based on market volatility.
This allows profits to run while managing downside risk effectively.
4️⃣ Adjustable Risk-Reward Ratio
The default risk-reward ratio is set at 1:2.
Example: A 1% stop loss corresponds to a 2% take profit target.
The ratio can be customized according to the trader’s risk tolerance.
5️⃣ Clear Trade Signals & Visual Support
Green "BUY" labels indicate long entry signals.
Red "SELL" labels indicate short entry signals.
The Super Oscillator is plotted in a separate subwindow to visually assess trend strength.
A real-time trailing stop is displayed to support exit strategies.
These visual aids make it easier to identify entry and exit points.
Trading Parameters & Considerations
Initial Account Balance: Default is $7,000 (adjustable).
Base Currency: USD
Order Size: 10,000 USD
Pyramiding: 1
Trading Fees: $0.94 per trade
Long Position Margin: 50%
Short Position Margin: 50%
Total Trades (M5 Timeframe): 1,032
Visual Aids for Clarity
This strategy includes clear visual trade signals to enhance decision-making:
Green "BUY" labels for long entries
Red "SELL" labels for short entries
Super Oscillator plotted in a subwindow with a 50 midline
Dynamic trailing stop displayed for real-time trend tracking
These visual aids allow traders to quickly identify trade setups and manage positions with greater confidence.
Summary
The SuperTrend AI Oscillator Strategy is developed based on indicators from Black Cat and LuxAlgo.
By integrating high-precision trend analysis with AI-based oscillator filtering, it provides a strong risk-managed trading approach.
Important Notes
This strategy does not guarantee profits—performance varies based on market conditions.
Past performance does not guarantee future results. Markets are constantly changing.
Always test extensively with backtesting and demo trading before using it in live markets.
Risk management, position sizing, and market conditions should always be considered when trading.
Conclusion
This strategy combines trend analysis with momentum filtering, enhancing risk management in trading.
By following market trends carefully, making precise entries, and using trailing stops, it seeks to reduce risk while maximizing potential profits.
Before using this strategy, be sure to test it thoroughly via backtesting and demo trading, and adjust the settings to match your trading style.
MAHA Luxmi AI Candles [Overlay]The MAHA Luxmi AI Candles trading indicator is a sophisticated tool designed to assist traders in identifying potential trading opportunities by utilizing a combination of Moving Average (MA) and Heikin-Ashi (HA) techniques, further enhanced with a custom formula. Here’s a detailed breakdown of its functionalities:
1. Integration of MA and HA Techniques
MAHA stands for Moving Average and Heikin-Ashi. This indicator modifies these traditional techniques with a unique custom formula, aiming to provide more accurate and reliable signals for traders. The combination enhances the smoothing effect of Moving Averages with the trend indication of Heikin-Ashi candles.
2. Four-Colored Candles for Trend Indication
The indicator uses a color-coded system to denote different market conditions and potential trading opportunities:
- Green Candles: These candles indicate a potential long opportunity. The appearance of a green candle suggests that the market is showing bullish tendencies, prompting traders to consider entering a long position.
- Blue Candles: These candles signify an active pullback within a bullish trend. The blue candle warns traders of a possible temporary reversal within the overall bullish trend, suggesting caution and the need for confirmation before continuing with a long position or preparing for a potential reversal.
- Red Candles: These candles represent a potential short opportunity. A red candle indicates bearish market conditions, signaling traders to consider entering a short position.
- Yellow Candles: These candles denote an active pullback within a bearish trend. The presence of a yellow candle indicates a temporary reversal within the bearish trend, urging traders to be cautious with short positions and look for signs of continuation or reversal.
3. MAHA Bars for Distance and Area of Interest
In addition to the colored candles, the MAHA Luxmi AI Candles indicator also plots MAHA bars. These bars share the same color coding and usage as the candles, providing a consistent visual representation of market conditions:
- Green Bars: Indicate a potential long opportunity, aligning with green candles.
- Blue Bars: Show an active pullback in a bullish trend, aligning with blue candles.
- Red Bars: Represent a potential short opportunity, aligning with red candles.
- Yellow Bars: Indicate an active pullback in a bearish trend, aligning with yellow candles.
The MAHA bars help traders gauge the distance between the current price and the area of interest, enhancing their understanding of how close or far the price is from key levels identified by the MAHA formula. This aids in making better decisions regarding entry and exit points.
4. Trailing Stop Loss Feature
The base of the MAHA Bars can also be used as a trailing stop loss. This feature provides a dynamic stop loss level that adjusts with the market, helping traders lock in profits and limit losses by following the trend. When the price moves favorably, the trailing stop loss adjusts accordingly, ensuring that traders can capitalize on market movements while minimizing risk.
Usage and Benefits
- Trend Identification: The color-coded system simplifies the identification of market trends and potential reversals, making it easier for traders to understand market dynamics at a glance.
- Pullback and Reversal Alerts: The blue and yellow candles/bars alert traders to potential pullbacks and reversals, providing crucial information for managing trades and avoiding false signals.
- Distance Measurement: The MAHA bars help traders measure the distance between the current price and the areas of interest, enhancing their ability to assess the risk and potential reward of trades.
- Trailing Stop Loss: The base of the MAHA Bars can be used as a trailing stop loss, providing a dynamic risk management tool that adapts to market conditions.
Overall, the MAHA Luxmi AI Candles trading indicator is a powerful tool for traders looking to leverage the combined strengths of Moving Averages and Heikin-Ashi techniques. The intuitive color-coded system, additional MAHA bars, and the trailing stop loss feature make it an essential component of a trader’s toolkit for identifying trends, managing risk, and identifying trading opportunities.
Intelligent Exponential Moving Average (AI)Introduction
This indicator uses machine learning (Artificial Intelligence) to solve a real human problem.
The Exponential Moving Average (EMA) is one of the most used indicators on the planet, yet no one really knows what pair of exponential moving average lengths works best in combination with each other.
A reason for this is because no two EMA lengths are always going to be the best on every instrument, time-frame, and at any given point in time.
The "Intelligent Exponential Moving Average" solves the moving average problem by adapting the period length to match the most profitable combination of exponential moving averages in real time.
How does the Intelligent Exponential Moving Average work?
The artificial intelligence that operates these moving average lengths was created by an algorithm that tests every single combination across the entire chart history of an instrument for maximum profitability in real-time.
No matter what happens, the combination of these exponential moving averages will be the most profitable.
Can we learn from the Intelligent Moving Average?
There are many lessons to be learned from the Intelligent EMA. Most will come with time as it is still a new concept. Adopting the usefulness of this AI will change how we perceive moving averages to work.
Limitations
Ultimately, there are no limiting factors within the range of combinations that has been programmed. The exponential moving averages will operate normally, but may change lengths in unexpected ways - maybe it knows something we don't?
Thresholds
The range of exponential moving average lengths is between 5 to 40.
Additional coverage resulted in TradingView server errors.
Future Updates!
Soon, I will be publishing tools to test the AI and visualise what moving average combination the AI is currently using.
Intelligent Moving Average (AI)
Introduction
This indicator uses machine learning (Artificial Intelligence) to solve a real human problem.
The Moving Average is the most used indicator on the planet, yet no one really knows what pair of moving average lengths works best in combination with each other.
A reason for this is because no two moving averages are always going to be the best on every instrument, time-frame, and at any given point in time.
The " Intelligent Moving Average " solves the moving average problem by adapting the period length to match the most profitable combination of moving averages in real time.
How does the Intelligent Moving Average work?
The artificial intelligence that operates these moving average lengths was created by an algorithm that tests every single combination across the entire chart history of an instrument for maximum profitability in real-time.
No matter what happens, the combination of these moving averages will be the most profitable.
Can we learn from the Intelligent Moving Average?
There are many lessons to be learned from the Intelligent Moving Average. Most will come with time as it is still a new concept.
Adopting the usefulness of this AI will change how we perceive moving averages to work.
Limitations
Ultimately, there are no limiting factors within the range of combinations that has been programmed. The moving averages will operate normally, but may change lengths in unexpected ways - maybe it knows something we don't?
Thresholds
The range of moving average lengths is between 5 to 40.
Additional coverage resulted in TradingView server errors.
Future Updates!
Soon, I will be publishing tools to test the AI and visualise what moving average combination the AI is currently using.
XT AI Trading System for XBTUSD (BitMEX)- Features:
+ XT-AI-TRADE System with special built-in XT-AI Trend line, trend cloud indicator for XBTUSD (BitMEX) with the best performance.
+ Full backtesting from April 2018 with results as below:
Time frame / Net profit / Percent profitable / Profit factor
H1: 450% / 80% / 74.187
H2: 445% / 100% / Max
H3: 778% / 80% / 17.264
H4: 624% / 85.71% / 119.905
D1: 169% / 100% / Max
+ Separately optimized AI trading algorithm for different time frames: H1/H2/H3/H4/D1 (including Margin and Exchange Trading).
+ Trustworthy backtesting accuracy result with 100% non-repainting, no difference between backtesting and live trading.
+ Real-time push notification system: Email / Telegram... to your PC and Smartphone => Enjoy trading life.
+ 24/7 business operation.
*** Sign up for a trial here : goo.gl
Mingo Supreme Master AI vFinal 🌟 + Double Signal StatsMingo Supreme Master AI vFinal 🌟 + Double Signal Stats + Profit €
Overview:
Mingo Supreme Master AI vFinal is a next-generation smart trading toolkit for price action traders. It automatically detects high-probability Buy/Sell zones, tracks early reversal patterns, and provides visual entries, SL/TP levels, dashboard statistics, and backtestable alerts. Built for scalping, day trading, and swing strategies across Forex, Indices, Crypto, and Commodities.
🧠 Core Features
HTF Smart Zone Detection:
Automatically plots High Timeframe (HTF) demand and supply zones based on structure breaks.
Early Reversal Signal Detection:
Identifies powerful candle patterns with wick/body ratios, volume, and momentum filters. Scores each setup (1–10).
Double Signal Pattern Recognition (New):
Detects repeating entry patterns with a gap in between — a common professional strategy confirmation.
TP/SL Auto Projection:
Dynamically draws Take Profit and Stop Loss lines with labels, customizable in pips.
Bias Filter with EMA:
Avoid false signals using a 50 EMA-based directional bias.
Full Backtest Support:
Select any range ("Today", "Last 2 Weeks", "1 Month Ago", etc.) and the system will only calculate signals within that period.
Live Dashboard (Optional):
Shows win/loss stats
Total profit (€)
Double Buy/Sell counts
Win percentages
Configurable lot size to simulate realistic trade outcomes
📈 Alerts Included
🟢 Early Buy Signal
🔴 Early Sell Signal
✅ Confirmed Buy Zone Created
❌ Confirmed Sell Zone Created
🎯 TP/SL Levels Set
🛑 SL Triggered (Buy/Sell)
🔁 Double Signal Pattern Alerts
📊 All alerts are backtestable and customizable
⚙️ Settings & Customization
Sensitivity Controls: Adjust BOS/HTF pivots
Zone Display Options: Show/hide boxes, labels, only recent zones
Scoring Threshold: Minimum signal score filter (1–10)
Lot Size Input: Simulate earnings (e.g. €10/pip = lot size 1.0)
Dashboard On/Off Toggle
Date Range Filter: Choose Today or up to 6 months back
✅ Best For
Price Action Traders
Smart Money & Supply/Demand Traders
Scalpers, Intraday Traders, and Swing Traders
Anyone who wants auto-zones, TP/SL, and high-probability signal stats
SpectraTrader Ai v4 – PnL Dashboard + Pre-Open RadarSpectraTrader AI v4 – PnL Dashboard + Pre-Open Radar
This script provides a powerful, multi-layered options trading assistant designed to help traders project option profitability, identify high-confidence trade setups, and anticipate market direction before and during the session.
Core Features:
• Multi-Timeframe Trend Sync (4H, 1H, 30m, 15m, 5m):
Confirms directional bias using SMA cross detection across five timeframes, with live counting of bullish confirmations.
• Spectral Geometry Payoff Zone:
Uses EMA and standard deviation (volatility) to calculate the dual-price ceiling, identifying when price is inside a favorable payoff zone for option trades.
• Real-Time Option PnL Estimator:
Calculates the estimated PnL (%) for your specific CALL or PUT option based on strike price, premium paid, and live price action.
• Confidence Scoring System:
A built-in confidence meter (0–100%) combining trend strength, momentum alignment, and payoff zone status.
• Automatic Virtual Trade Simulation:
Simulates CALL or PUT entries and exits based on strike levels and predefined take-profit / stop-loss rules (20% TP / -25% SL). Includes smart entry and exit labels directly on the chart.
• Bearish Breakdown Detection (Put Watch Mode):
Alerts for full bearish trend alignment, including deep negative delta, momentum weakness, and after-hours breakdown conditions.
• Session Awareness:
Adapts behavior across Premarket, Market Open, and After-Hours with a clear session dashboard. Includes a special 9:15 AM Radar Alert for early signal detection before the market opens.
• Live PnL Dashboard Table:
Displays real-time option metrics:
o Confidence %
o Option PnL % and ITM/OTM status
o Delta and Theta values
o Strike levels for both CALL and PUT
o Session time status (Premarket, Open, After Hours)
Why This Script Is Unique (vs. Standard EMA, VWAP, or RSI Systems):
SpectraTrader AI v4 goes beyond simple trend following by:
• Integrating option-specific PnL math directly into the strategy.
• Using multi-timeframe spectral alignment with momentum checks.
• Providing pre-open radar alerts to catch early setups before market open.
• Automating both entry detection and exit simulation with clear on-chart labeling.
This system is not just a moving average crossover — it provides real-time option profitability estimation and trend confidence analysis with session-based awareness.
How to Use:
1. Input your option strike price and premium paid in the settings panel.
2. Monitor the dashboard for entry signals, confidence score, and payoff zone alignment.
3. Use the smart labels and alerts for live trade guidance or virtual testing.
4. Adjust timeframe sync and session filters to match your strategy.
5. Disclaimer:
6. This script is for informational and educational purposes only. Trading involves risk. Please use proper risk management and consult a financial advisor if needed.
Machine Learning Moving Average [LuxAlgo]The Machine Learning Moving Average (MLMA) is a responsive moving average making use of the weighting function obtained Gaussian Process Regression method. Characteristic such as responsiveness and smoothness can be adjusted by the user from the settings.
The moving average also includes bands, used to highlight possible reversals.
🔶 USAGE
The Machine Learning Moving Average smooths out noisy variations from the price, directly estimating the underlying trend in the price.
A higher "Window" setting will return a longer-term moving average while increasing the "Forecast" setting will affect the responsiveness and smoothness of the moving average, with higher positive values returning a more responsive moving average and negative values returning a smoother but less responsive moving average.
Do note that an excessively high "Forecast" setting will result in overshoots, with the moving average having a poor fit with the price.
The moving average color is determined according to the estimated trend direction based on the bands described below, shifting to blue (default) in an uptrend and fushia (default) in downtrends.
The upper and lower extremities represent the range within which price movements likely fluctuate.
Signals are generated when the price crosses above or below the band extremities, with turning points being highlighted by colored circles on the chart.
🔶 SETTINGS
Window: Calculation period of the moving average. Higher values yield a smoother average, emphasizing long-term trends and filtering out short-term fluctuations.
Forecast: Sets the projection horizon for Gaussian Process Regression. Higher values create a more responsive moving average but will result in more overshoots, potentially worsening the fit with the price. Negative values will result in a smoother moving average.
Sigma: Controls the standard deviation of the Gaussian kernel, influencing weight distribution. Higher Sigma values return a longer-term moving average.
Multiplicative Factor: Adjusts the upper and lower extremity bounds, with higher values widening the bands and lowering the amount of returned turning points.
🔶 RELATED SCRIPTS
Machine-Learning-Gaussian-Process-Regression
SuperTrend-AI-Clustering
Ocs Ai TraderThis script perform predictive analytics from a virtual trader perspective!
It acts as an AI Trade Assistant that helps you decide the optimal times to buy or sell securities, providing you with precise target prices and stop-loss level to optimise your gains and manage risk effectively.
System Components
The trading system is built on 4 fundamental layers :
Time series Processing layer
Signal Processing layer
Machine Learning
Virtual Trade Emulator
Time series Processing layer
This is first component responsible for handling and processing real-time and historical time series data.
In this layer Signals are extracted from
averages such as : volume price mean, adaptive moving average
Estimates such as : relative strength stochastics estimates on supertrend
Signal Processing layer
This second layer processes signals from previous layer using sensitivity filter comprising of an Probability Distribution Confidence Filter
The main purpose here is to predict the trend of the underlying, by converging price, volume signals and deltas over a dominant cycle as dimensions and generate signals of action.
Key terms
Dominant cycle is a time cycle that has a greater influence on the overall behaviour of a system than other cycles.
The system uses Ehlers method to calculate Dominant Cycle/ Period.
Dominant cycle is used to determine the influencing period for the underlying.
Once the dominant cycle/ period is identified, it is treated as a dynamic length for considering further calculations
Predictive Adaptive Filter to generate Signals and define Targets and Stops
An adaptive filter is a system with a linear filter that has a transfer function controlled by variable parameters and a means to adjust those parameters according to an optimisation algorithm. Because of the complexity of the optimisation algorithms, almost all adaptive filters are digital filters. Thus Helping us classify our intent either long side or short side
The indicator use Adaptive Least mean square algorithm, for convergence of the filtered signals into a category of intents, (either buy or sell)
Machine Learning
The third layer of the System performs classifications using KNN K-Nearest Neighbour is one of the simplest Machine Learning algorithms based on Supervised Learning technique.
K-NN algorithm assumes the similarity between the new case/data and available cases and put the new case into the category that is most similar to the available categories.
K-NN algorithm stores all the available data and classifies a new data point based on the similarity. This means when new data appears then it can be easily classified into a well suite category by using K- NN algorithm. K-NN algorithm can be used for Regression as well as for Classification but mostly it is used for the Classification problems.
Virtual Trade Emulator
In this last and fourth layer a trade assistant is coded using trade emulation techniques and the Lines and Labels for Buy / Sell Signals, Targets and Stop are forecasted!
How to use
The system generates Buy and Sell alerts and plots it on charts
Buy signal
Buy signal constitutes of three targets {namely T1, T2, T3} and one stop level
Sell signal
Sell signal constitutes of three targets {namely T1, T2, T3} and one stop level
What Securities will it work upon ?
Volume Informations must be present for the applied security
The indicator works on every liquid security : stocks, future, forex, crypto, options, commodities
What TimeFrames To Use ?
You can use any Timeframe, The indicator is Adaptive in Nature,
I personally use timeframes such as : 1m, 5m 10m, 15m, ..... 1D, 1W
This Script Uses Tradingview Premium features for working on lower timeframes
In case if you are not a Tradingview premium subscriber you should tell the script that after applying on chart, this can be done by going to settings and unchecking "Is your Tradingview Subscription Premium or Above " Option
How To Get Access ?
You will need to privately message me for access mentioning you want access to "Ocs Ai Trader" Use comment box only for constructive comments. Thanks !
IsAlgo - AI Trend Strategy► Overview:
The AI Trend Strategy employs a combination of technical indicators to guide trading decisions across various markets and timeframes. It uses a custom Super Trend indicator and an Exponential Moving Average (EMA) to analyze market trends and executes trades based on specific candlestick patterns. This strategy includes options for setting stop losses, take profit levels, and features an alert system for trade notifications.
► Description:
This strategy focuses on identifying the optimal "entry candle," which signals either a potential correction within the ongoing trend or the emergence of a new trend. The entry criteria for this candle are highly customizable, allowing traders to specify dimensions such as the candle's minimum and maximum size and body ratio. Additional settings include whether this candle should be the highest or lowest compared to recent candles and if a confirmation candle is necessary to validate the entry.
The Super Trend indicator is central to the strategy’s operation, dictating the direction of trades by identifying bullish or bearish trends. Traders have the option to configure trades to align with the direction of the trend identified by this indicator, or alternatively, to take positions counter to the trend for potential reversal strategies. This flexibility can be crucial during varying market conditions.
Additionally, the strategy incorporates an EMA alongside the Super Trend indicator to further analyze trend directions. This combined approach aims to reduce the occurrence of false signals and improve the strategy's overall trend analysis.
The learning algorithm is a standout feature of the AI Trend Strategy. After accumulating data from a predefined number of trades (e.g., after the first 100 trades), the algorithm begins to analyze past performances to identify patterns in wins and losses. It considers variables such as the distance from the current price to the trend line, the range between the highest and lowest prices during the trend, and the duration of the trend. This data informs the algorithm's predictions for future trades, aiming to improve accuracy and reduce losses by adapting to the evolving market conditions.
► Examples of Trade Execution:
1. In an Uptrend: The strategy might detect a suitable entry candle during a correction phase, which aligns with the continuing uptrend for a potential long trade.
2. In a Downtrend: Alternatively, the strategy might identify an entry candle at the end of a downtrend, suggesting a potential reversal or correction where a long trade could be initiated.
3. In an Uptrend: The strategy may also spot an entry candle at the end of an uptrend and execute a short trade, anticipating a reversal or significant pullback.
4. In a Downtrend: The strategy might find a suitable entry candle during a correction phase, indicating a continuation of the downtrend for a potential short trade.
These examples illustrate how the strategy identifies potential trading opportunities based on trend behavior and candlestick patterns.
► Features and Settings:
⚙︎ Trend: Utilizes a custom Super Trend indicator to identify the direction of the market trend. Users can configure the strategy to execute trades in alignment with this trend, take positions contrary to the trend, or completely ignore the trend information for their trading decisions.
⚙︎ Moving average: Employs an Exponential Moving Average (EMA) to further confirm the trend direction indicated by the Super Trend indicator. This setting can be used in conjunction with the Super Trend or disabled if preferred.
⚙︎ Entry candle: Defines the criteria for the candle that triggers a trade. Users can customize aspects such as the candle's size, body, and its relative position to previous candles to ensure it meets specific trading requirements before initiating a trade.
⚙︎ Learning algorithm: This component uses historical trade data to refine the strategy. It assesses various aspects of past trades, such as price trends and market conditions, to make more informed trading decisions in the future.
⚙︎ Trading session: Users can define specific trading hours during which the strategy should operate, allowing trades to be executed only during preferred market periods.
⚙︎ Trading days: This option enables users to specify which days the strategy should be active, providing the flexibility to avoid trading on certain days of the week if desired.
⚙︎ Backtesting: Enables a period during which the strategy can be tested over a selected start and end date, with an option to deactivate this feature if not needed.
⚙︎ Trades: Detailed configuration options include the direction of trades (long, short, or both), position sizing (fixed or percentage-based), the maximum number of open trades, and limitations on the number of trades per day or based on trend changes.
⚙︎ Trades Exit: Offers various strategies for exiting trades, such as setting limits on profits or losses, specifying the duration a trade should remain open, or closing trades based on trend reversal signals.
⚙︎ Stop loss: Various methods for setting stop losses are available, including fixed pips, based on Average True Range (ATR), or utilizing the highest or lowest price points within a designated number of previous candles. Another option allows for closing the trade after a specific number of candles moving in the opposite direction.
⚙︎ Break even: This feature adjusts the stop loss to a break-even point under certain conditions, such as reaching predefined profit levels, to protect gains.
⚙︎ Trailing stop: The trailing stop feature adjusts the stop loss as the trade moves into profit, aiming to secure gains while potentially capturing further upside.
⚙︎ Take profit: Up to three take profit levels can be established using various methods, such as a fixed amount of pips, risk-to-reward ratios based on the stop loss, ATR, or after a set number of candles that move in the direction of the trade.
⚙︎ Alerts: Includes a comprehensive alert system that informs the user of all significant actions taken by the strategy, such as trade openings and closings. It supports placeholders for dynamic values like take profit levels, stop loss prices, and more.
⚙︎ Dashboard: Provides a visual display of detailed information about ongoing and past trades on the chart, helping users monitor the strategy’s performance and make informed decisions.
► Backtesting Details:
Timeframe: 15-minute BTCUSD chart.
Initial Balance: $10,000.
Order Size: 4% of equity per trade.
Commission: 0.01%.
Slippage: 5 ticks.
Risk Management: Strategic stop loss settings are applied based on the most extreme price points within the last 18 candles.
Trend Sentinel BarrierEveryone in the market wants to take profits from the trend. It is easy to think but hard to execute. In fact, some callbacks or rebounds may cause you to close the position out of fear and let you miss bigger profits.
Indicator: Trend Sentinel Barri er solves this problem for you! It use AI algorithm to help you seize profits.
It is a trend indicator, using AI algorithm to calculate the cumulative trading volume of bulls and bears, identify trend direction and opportunities, and calculate short-term average cost in combination with changes of turnover ratio in multi-period trends, so as to grasp the profit from the trend more effectively without being cheated.
💠Usage:
Signal: "BUY" means bullish trend, "SELL" means bearish trend.
Support and resistance range: "red area" represents strong support or resistance for long-term fluctuation costs, and "blue area" represents moderate support of resistance for short-term fluctuation costs.
🎈Tip I:
When the BUY and SELL signal appear, it means that the direction of the trend will change, and the color of the candles will also change. Don't care about the color of the candles, let's just focus on the price, support and resistance.
🎈Tip II:
Take the BUY signal as an example. When the signal appears and you hold long position, you need to pay attention to the blue and red support range. If the price returns to this range but there is no SELL signal, you can consider holding the long position for a while.
If the price pump with long candles, and then pulls back to the range, you need to be vigilant. You can consider taking the profit when the price breakthrough the support range, or wait for the SELL signal.
🎈Advanced tip I:
In most cases, the trend market is not smooth, there will be a lot of callbacks or rebounds, but because of this, we have many opportunities to do swing trading.
Continuing to take the BUY signal as an example, when this signal appears, every time the price falls back to the blue or red support area, you can consider adding positions. There are two ways to deal with these newly added positions.
One is to do swing trading. You can consider taking profits near the previous high when the price rises. The advantage of this operation is that you can get more profits in the same trend market.
The second is to continue to hold it as the bottom position until the general trend is completely over, and then close the position after obtaining huge profits.
🎈Advanced tip II:
When using advanced tips I, you can consider adding some momentum indicators to assist you in judging whether pullbacks or rebounds have failed, so as to increase your position. Similarly, the momentum indicator can also help you find a take-profit point for newly added positions
For details, please refer to the momentum indicator: KD Momentum Matrix
*The signals in the indicators are for reference only and not intended as investment advice. Past performance of a strategy is not indicative of future earnings results.
Update-
Optimize the alarm function. If you need to monitor the "Buy" or "Sell" signal, when creating an alarm, set the condition bar to:
Trend Sentinel Barrier --> "Buy" or "Sell" --> Crossing Up --> value --> 1
Multi-TF AI SuperTrend with ADX - Strategy [PresentTrading]
## █ Introduction and How it is Different
The trading strategy in question is an enhanced version of the SuperTrend indicator, combined with AI elements and an ADX filter. It's a multi-timeframe strategy that incorporates two SuperTrends from different timeframes and utilizes a k-nearest neighbors (KNN) algorithm for trend prediction. It's different from traditional SuperTrend indicators because of its AI-based predictive capabilities and the addition of the ADX filter for trend strength.
BTC 8hr Performance
ETH 8hr Performance
## █ Strategy, How it Works: Detailed Explanation (Revised)
### Multi-Timeframe Approach
The strategy leverages the power of multiple timeframes by incorporating two SuperTrend indicators, each calculated on a different timeframe. This multi-timeframe approach provides a holistic view of the market's trend. For example, a 8-hour timeframe might capture the medium-term trend, while a daily timeframe could capture the longer-term trend. When both SuperTrends align, the strategy confirms a more robust trend.
### K-Nearest Neighbors (KNN)
The KNN algorithm is used to classify the direction of the trend based on historical SuperTrend values. It uses weighted voting of the 'k' nearest data points. For each point, it looks at its 'k' closest neighbors and takes a weighted average of their labels to predict the current label. The KNN algorithm is applied separately to each timeframe's SuperTrend data.
### SuperTrend Indicators
Two SuperTrend indicators are used, each from a different timeframe. They are calculated using different moving averages and ATR lengths as per user settings. The SuperTrend values are then smoothed to make them suitable for KNN-based prediction.
### ADX and DMI Filters
The ADX filter is used to eliminate weak trends. Only when the ADX is above 20 and the directional movement index (DMI) confirms the trend direction, does the strategy signal a buy or sell.
### Combining Elements
A trade signal is generated only when both SuperTrends and the ADX filter confirm the trend direction. This multi-timeframe, multi-indicator approach reduces false positives and increases the robustness of the strategy.
By considering multiple timeframes and using machine learning for trend classification, the strategy aims to provide more accurate and reliable trade signals.
BTC 8hr Performance (Zoom-in)
## █ Trade Direction
The strategy allows users to specify the trade direction as 'Long', 'Short', or 'Both'. This is useful for traders who have a specific market bias. For instance, in a bullish market, one might choose to only take 'Long' trades.
## █ Usage
Parameters: Adjust the number of neighbors, data points, and moving averages according to the asset and market conditions.
Trade Direction: Choose your preferred trading direction based on your market outlook.
ADX Filter: Optionally, enable the ADX filter to avoid trading in a sideways market.
Risk Management: Use the trailing stop-loss feature to manage risks.
## █ Default Settings
Neighbors (K): 3
Data points for KNN: 12
SuperTrend Length: 10 and 5 for the two different SuperTrends
ATR Multiplier: 3.0 for both
ADX Length: 21
ADX Time Frame: 240
Default trading direction: Both
By customizing these settings, traders can tailor the strategy to fit various trading styles and assets.
Double AI Super Trend Trading - Strategy [PresentTrading]█ Introduction and How It is Different
The Double AI Super Trend Trading Strategy is a cutting-edge approach that leverages the power of not one, but two AI algorithms, in tandem with the SuperTrend technical indicator. The strategy aims to provide traders with enhanced precision in market entry and exit points. It is designed to adapt to market conditions dynamically, offering the flexibility to trade in both bullish and bearish markets.
*The KNN part is mainly referred from @Zeiierman.
BTCUSD 8hr performance
ETHUSD 8hr performance
█ Strategy, How It Works: Detailed Explanation
1. SuperTrend Calculation
The SuperTrend is a popular indicator that captures market trends through a combination of the Volume-Weighted Moving Average (VWMA) and the Average True Range (ATR). This strategy utilizes two sets of SuperTrend calculations with varying lengths and factors to capture both short-term and long-term market trends.
2. KNN Algorithm
The strategy employs k-Nearest Neighbors (KNN) algorithms, which are supervised machine learning models. Two sets of KNN algorithms are used, each focused on different lengths of historical data and number of neighbors. The KNN algorithms classify the current SuperTrend data point as bullish or bearish based on the weighted sum of the labels of the k closest historical data points.
3. Signal Generation
Based on the KNN classifications and the SuperTrend indicator, the strategy generates signals for the start of a new trend and the continuation of an existing trend.
4. Trading Logic
The strategy uses these signals to enter long or short positions. It also incorporates dynamic trailing stops for exit conditions.
Local picture
█ Trade Direction
The strategy allows traders to specify their trading direction: long, short, or both. This enables the strategy to be versatile and adapt to various market conditions.
█ Usage
ToolTips: Comprehensive tooltips are provided for each parameter to guide the user through the customization process.
Inputs: Traders can customize numerous parameters including the number of neighbors in KNN, ATR multiplier, and types of moving averages.
Plotting: The strategy also provides visual cues on the chart to indicate bullish or bearish trends.
Order Execution: Based on the generated signals, the strategy will execute buy or sell orders automatically.
█ Default Settings
The default settings are configured to offer a balanced approach suitable for most scenarios:
Initial Capital: $10,000
Default Quantity Type: 10% of equity
Commission: 0.1%
Slippage: 1
Currency: USD
These settings can be modified to suit various trading styles and asset classes.
Broadview Algorithmic StudioWelcome! This is the writeup for the Broadview Algorithmic Studio.
There are many unique features in this script.
- Broadview Underpriced & Overpriced
- Broadview Blackout Bollinger Bands
- Trailing Take Profit Suite
- Algorithmic Weights
- VSA Score
- Pip Change Log
- Activation Panel
- Weight Scanner
There are 116 primary inputs that allow users to algorithmically output unique DCA signal-sets. There are 85 inputs that allow users to control individual lengths, levels, thresholds, and multiplicative weights of the script. You will not find any other script with this many inputs, properly strung together for you to produce unlimited strategies for any market. The entire premise for the Broadview Algorithmic Studio is for users to be able to have extensive-cutting-edge features that allow them to produce more strategies, having control over every element that outputs a signal set. The number of unique strategies you can output with this script is VAST, and each continues to follow a safe DCA methodology.
This script is ready for use with 3Commas, interactive brokers, and other means of automation. It provides detailed information on Base Orders and Safety Orders, giving the number, cumulative spending, position average, and remaining balance for each SO in the series. Using this script we will explore the depths of strategic volume scaling, and the algorithms we use to determine spending.
Let me first start by saying the number of safe DCA-friendly signal-sets this script can output is absolutely staggering.
Let's limit the scope just to the Broadview Underpriced & Overpriced and Broadview Dominance indicators.
Each band of the Dominance Suite can be controlled individually with unique lengths, levels, and weights. This means the Dominance Suite can establish Bearish or Bullish dominance, in any market condition, and give it a unique overloading weight. The Broadview Underpriced & Overpriced indicator finally gives us the ability to establish these "market conditions" first with cycles. Of all the cycles this indicator establishes, the two primary are Underpriced & Overpriced. We determine this using a composite Overbought & Oversold with an Exponential Moving Average. So the script can now know, what cycle it is in, who is dominant during that cycle, and exactly how much weight in volume scaling the order should have.
Brand new is the ability for indicators of this level to be able to talk together in a single script. The Broadview Underpriced & Overpriced indicator and the Broadview Dominance indicator can inform one another across multiple vectors, create a unique market snapshot, and give that snapshot a unique weight every bar. The unique weight is compiled in the volume scaling math, thus giving us an automated-strategic-safe and quite efficient volume scaling for every order. In our coming updates we will explore this synergy to its very deepest layers. These indicators can be laced together in many ways, called vectors.
Only in the Algorithmic Studio do we explore these depths and yield those findings, features, and inputs to the user.
Let me take a quick break to explain another area-of-opportunity for our research and development.
The VSA Score is something we've tried before, but until the creation of the Broadview Blackout Bollinger Bands Auto Indicator it was not possible. The concept we want to explore is "Positional Honing". Over time we want users and the script itself to be able to understand the difference between a script-config that produces a high number of Hits, from a configuration that produces a high number of "Misses". The Volume Scaling Accuracy Score uses the BBB Auto Indicator as a heavily reliable, non-repainting, method of determining what the very-best signals for increased volume-scaling are.
Increased volume scaling is denoted by the near-white highlighter line running vertically. This line will either fall inside the BBB Auto Indicator bands (which are hidden), or, they will fall below and outside the BBB Auto bands. If increased spending happens inside the bands it's a "Miss". If increased spending happens below and outside the bands, it's a Hit. Oftentimes misses are actually pretty good spots for extra spending, which helps lower your position average, but Hits are always better. The Hits that the BBB Auto Indicator provides are extremely good.
Let's talk about the Trailing Take Profit Suite. This suite allows us to set a trailing take profit which is a feature that lets one maximize their profits. If the trailing take profit is engaged, then when the regular take profit is hit, it will trigger, denoted in red vertical lines, and the trailing take profit will look for a specified rate of change before it actually takes profit. This usually helps traders in those times when their regular take profit was set too low, allowing them to maximize their profits with a Trailing Take Profit.
For the moment, let's think about our scores. In the dashboard you'll notice a score beginning the Pip Change Log, the VSA Score, and the Activation Panel.
These scores use a new kind of logistic correlation formula where 4 digits are given to activation, rather than 1. This is to allow room for a future concept in AI we call "Deadzones" or you can think of it as impedance. This is not a bias in logistic regression. It's an entirely different concept. A neuron, which a perceptron attempts to mimic, has a bias.. but it also has a sort of electrical resistance. This is because a neuron is individually-alive entity. So a perceptron, as it were, would need to have both a bias and a natural resistance, or deadzone.
It is a lot of fun to watch the scores and how they react during playback. They tend to smooth trends but are also quite quick to correct to accuracy. In the future we will add the deadzones and biases to the scores. This should help both users and the script produce better signal sets. The Pip Change Log is an indicator that measures Rate of Change in Pips. This is one that I am particularly excited to study, as I am a huge fan of ROC. The Activation Panel shows these scores for 4 primary indicators: On Balance Volume, Relative Strength Index, Average Directional Index, and Average True Range.
Having the Pip Change Log, VSA Score, and Activation Panel up on the dashboard with their logistic correlation scores allows traders to study markets and setups quite intimately. The weight scanner at the bottom allows users to track the cumulative applied multiplicative weights during playback. The massive number of inputs, connected vectors of indicators, input-weights, lengths, levels, and thresholds sets up all the algorithmic infrastructure for powerusers to explore every idea and strategy output they could imagine. Also with the connected vector infrastructure we can deepen our indicators in a way where, "How they talk to each other.", comes first in every development conversation.
The Algorithmic Studio is for the Power-user.
These are not basic equations coming together to determine spending. This is a massive multi-layered-perceptron with everything from Trailing-Take-Profits to strategic-automatic algorithmic downscaling. The Broadview Algorithmic Studio gives a home to the poweruser who wants access to everything in a trading and investing AI, right up until the backpropagation. The Broadview Algorithmic Studio, gives users the ability to sit in the chair of the would-be AI.
Thank you.
Intelligent Supertrend (AI) - Buy or Sell SignalIntroduction
This indicator uses machine learning (Artificial Intelligence) to solve a real human problem.
The artificial intelligence that operates this Supertrend was created by an algorithm that tests every single combination of input values across the entire chart history of an instrument for maximum profitability in real-time.
The Supertrend is one of the most popular indicators on the planet, yet no one really knows what input values work best in combination with each other. A reason for this is because not one set of input values is always going to be the best on every instrument, time-frame, and at any given point in time.
The "Intelligent Supertrend" solves this problem by constantly adapting the input values to match the most profitable combination so that no matter what happens, this Supertrend will be the most profitable.
Indicator Utility
The Intelligent Supertrend does not change what has already been plotted and does not repaint in any way which means that it is fully functional for trading in real-time.
Ultimately, there are no limiting factors within the range of combinations that have been programmed. The Supertrend will operate normally but will change input values according to what is currently the most profitable strategy.
Input Values
While a normal Supertrend would include two user-defined input values, the Intelligent Supertrend automates the input values according to what is currently the most profitable combination.
Additional Tools
The Optimised Supertrend is a tool that can be used to visual what input values the Supertrend AI is currently using. Additional tools to back-test this indicator will be added to this product soon.
For more information on how this indicator works, view the documentation here:
www.kenzing.com
For more information on the Supertrend view these fun facts:
www.marketcalls.in
Nyx-AI Market Intelligence DashboardNyx AI Market Intelligence Dashboard is a non-signal-based environmental analysis tool that provides real-time insight into short-term market behavior. It is designed to help traders understand the quality of current price action, volume dynamics, volatility conditions, and structural behavior. It informs the trader whether the current market environment is supportive or hostile to trading and whether any active signal (from other tools) should be trusted, filtered, or avoided altogether.
Nyx is composed of seven intelligent modules. Each module operates independently but is visually unified through a floating dashboard panel on the chart. This panel renders live diagnostics every few bars, maintaining a low visual footprint without drawing overlays or modifying price.
Market Posture Engine
This module reads individual candlesticks using real-time candle anatomy to interpret directional bias and sentiment. It examines body-to-range ratio, wick imbalances, and compares them to prior bars. If the current candle is a large momentum body with minimal wick, it is interpreted as a directional thrust. If it is a small body with equal wicks, it is considered indecision. Engulfing patterns are used to detect potential liquidity tests. The system outputs a plain-text posture signal such as Building Bullish Intent, Bearish Momentum, Indecision Zone, Testing Liquidity (Up or Down), or Neutral.
Flow Reversal Engine
This module monitors short-term structural shifts and volume contraction to detect early signs of reversal or exhaustion. It looks for lower highs or higher lows paired with weakening volume and closing behavior that implies loss of momentum. It also monitors divergence between price and volume, as well as bar-to-bar momentum stalls (where highs and lows stop expanding). When these conditions are met, it outputs one of several states including Top Forming, Bottom Forming, Flow Divergence, Momentum Stall, or Neutral. This is useful for detecting inflection points before they manifest on trend indicators.
Fractal Context Engine
This engine compares the current bar’s range to its surrounding structural context. It uses a dynamic lookback length based on volatility. It determines whether the market is in expansion (strong directional trend), compression (shrinking range), or a transitional phase. A special case called Flip In Progress is triggered when the current high and low exceed the entire recent range, which often precedes sharp reversals or volatility expansion. The result is one of the following: Trend Expansion, Trend Breakdown, Sideways or Coil, Flip In Progress, or Expansion to Coil.
Candle Behavior Analyzer
This module analyzes the last five candles as a set to detect behavioral traits that a single candle may not reveal. It calculates average body and wick size, and counts how many recent candles show thrust (large body dominance), trap behavior (price returns inside wicks), or weakness (small bodies with high wick ratios). The module outputs one of the following behaviors: Aggressive Buying, Aggressive Selling, Trap Pattern, Trap During Coil, Low Participation, Low Energy, or Fakeout Candle. This helps the trader assess sentiment quality and the reliability of price movement.
Volatility Forecast and Compression Memory
This module predicts whether a breakout is likely based on recent compression behavior. It tracks how many of the last 10 bars had significantly reduced range compared to average. If a certain threshold is met without any recent large expansion bar, the system forecasts that a volatility expansion is likely in the near future. It also records how many bars ago the last high volatility impulse occurred and classifies whether current conditions are compressing. The outputs are Expansion Likely, Active Compression, and Last Burst memory, which provide breakout timing and energy insights.
Entry Filter
This module scores the current bar based on four adaptive criteria: body size relative to range, volume strength relative to average, current volatility versus historical volatility, and price position relative to a 20-period moving average. Each factor is scored as either 1 or 2. The total score is adjusted by a behavioral modifier that adds or subtracts a point if recent candles show aggression or trap behavior. Final scores range from 4 to 8 and are classified into Optimal, Mixed, or Avoid categories. This module is not a trade signal. It is a confluence filter that evaluates whether conditions are favorable for entry. It is particularly effective when layered with other indicators to improve precision.
Liquidity Intent Engine
This engine checks for price behavior around recent swing highs and lows. It uses adaptive pivots based on volatility to determine if price has swept above a recent high or below a recent low. This behavior is often associated with institutional liquidity hunts. If a sweep is detected and price has moved away from the sweep level, the engine infers directional intent and compares current distance to the high and low to determine which liquidity pool is more dominant. The output is Magnet Above, Magnet Below, or Conflict Zone. This is useful for anticipating directional bias driven by smart money activity.
Sticky Memory Tracking
To avoid flickering between states on low volatility or noisy price action, Nyx includes a sticky memory system. Each module’s output is preserved until a meaningful change is detected. For example, if Market Posture is Neutral and remains so for several bars, the previous non-neutral value is retained. This makes the dashboard more stable and easier to interpret without misleading noise.
Dashboard Rendering
All module outputs are displayed in a clean two-column panel anchored to any corner of the chart. Text values are color-coded, tooltips are added for context, and the data refreshes every few bars to maintain speed. The dashboard avoids clutter and blends seamlessly with other chart tools.
This tool is intended for informational and educational purposes only. It does not provide financial advice or trading signals. Nyx analyzes price, volume, structure, and volatility to offer context about the current market environment. It is not designed to predict future price movements or guarantee profitable outcomes. Traders should always use independent judgment and risk management. Past performance of any analysis logic does not guarantee future results.
Optimized Inside Bar AI BTC Strategy with Alligator/EMAInstructions for using the "Optimized Inside Bar AI BTC Strategy with Alligator/EMA" indicator
This indicator combines the Inside Bar strategy with Alligator or EMA-based confirmations, and adds a dynamic position management system with Take Profit (TP) and Stop Loss (SL). You can choose between Alligator and EMA for trend direction confirmation and adjust the values to optimize the strategy.
🔥 What the indicator contains:
Inside Bar Detection:
The indicator looks for Inside Bar candles, which are candles with a trading range (High and Low) smaller than the range of the previous candle.
When a valid Inside Bar is formed, the indicator watches for a possible breakout (exit from its range).
Breakout Confirmation:
First confirmation: the price must close above or below the Inside Bar area.
Second confirmation: using Alligator or EMA, the price must be above the Lips line (for long) or below the Lips line (for short).
If you use EMA: the price must be above the EMA for long and below the EMA for short.
If you use Alligator: there must be a clearly defined trend, and the distance from the Alligator lines will confirm the trend.
Position Management (TP and SL):
TP and SL are dynamically adjusted using ATR (Average True Range), to adjust positions according to market volatility.
TP and SL are calculated based on the ATR multiplicity, and their value is determined by your risk and volatility settings.
TP is placed at a favorable level, and SL is placed to limit losses.
Risk-to-Reward Ratio: You can set a risk-to-reward ratio, for example 2:1, to adjust how much the strategy risks compared to the gain.
Chart View:
The Inside Bar is colored and marked on the chart to visually highlight it.
After the breakout is confirmed, the SL, TP (multiple levels) and entry lines are drawn on the chart.
You can view the EMA or Alligator lines on the chart to follow their evolution.
Switching between Alligator and EMA:
You can choose to use Alligator or EMA for trend confirmation in the indicator settings, by enabling the useEMA option.
If you enable EMA, you will also be able to adjust its length in the indicator settings (emaLength).
If you choose Alligator, you will use its specific widths (jawLength, teethLength, lipsLength).
Strategy Modes:
Trend Following: If you prefer to follow the trend, this mode will provide you with entry signals when the trend is clear.
Scalping: If you want to focus on trading on short intervals, this mode adjusts TP and SL to suit a scalping approach.
📋 How to use the indicator:
Add the indicator to TradingView:
Open the TradingView platform.
Add a Custom Indicator.
Copy the code and paste it into the Pine Script editor.
Click on “Add to Chart”.
General Settings:
EMA vs Alligator: In the indicator settings section, you will find the “Use EMA” option. If enabled, the indicator will use the EMA to confirm entries. If disabled, it will use the Alligator.
EMA Length: If you choose EMA, you can change its length using the “EMA Length” setting.
Alligator Settings: If you use Alligator, you will be able to adjust the lengths for Jaw (Max), Teeth (Middle), and Lips (Min), depending on your trading style.
ATR Settings: You can adjust the ATR Length, Multiplier SL, and Multiplier TP to change how wide your Stop Loss and Take Profit levels are.
Interact with the chart:
When an Inside Bar forms, you will see a visual marker on the chart.
If the breakout is confirmed, you will see the SL, TP and Entry lines drawn on the chart.
If the trade is open, the TP and SL positions will also be displayed. The entry line is marked to visualize where the trade was triggered.
Signal monitoring:
The indicator will mark entry zones and track the current position, adjusting TP and SL as market volatility changes.
Performance evaluation:
Test the indicator on multiple timeframes to check its adaptability.
Adjust the EMA or Alligator settings to see which one suits your trading style better.
📊 What you will get:
More accurate entry confirmations, taking into account both the Inside Bar and trend conditions.
Dynamic position management, using TP and SL based on market volatility.
Possibility to choose between Alligator and EMA, depending on your preferences.
Clear visualization of signals and entry levels on the chart.
By testing this indicator, you will get more flexibility in position management and better confirmation of trading signals.
KOLBASKA AIKOLBASKA AI VANGA
regression channel
Pivot Levels
FIBA
Price Movement Prediction
TNX DIONIS
Helacator Ai ThetaHelacator Ai Theta is a state-of-the-art advanced script. It helps the trader find the possibility of a trend reversal in the market. By finding that point at which the three black crows pattern combines with the three white soldiers pattern, it is the most cherished pattern in technical analysis for its signal of strong bullish or bearish momentum. Therefore, it is a very strong predictive tool in the ability of shifting markets.
Key Highlights: Three White Soldiers and Three Black Crows Patterns
The script identifies these candlestick formations that consist of three consecutive candles, either bullish (Three White Soldiers) or bearish (Three Black Crows). These patterns help the trader identify possible trend reversal points as they provide an early signal of a change in the market direction. It is with great care that the script is written to evaluate the position and relationship between the candlesticks for maintaining the accuracy of pattern recognition. Moving Averages for Trend Filtering:
Two important ones used are moving averages for filtering any signals not in accordance with the general trend. The length of these MAs is variable, allowing the traders to be in a position to adapt the script for use under different market conditions. The moving averages ensure that signals are only taken in the direction that supports the general market flow, so it leads to more reliability within the signals. The MAs are not plotted on the chart for the sake of clarity, but they still perform a crucial function in signal filtering and can be displayed optionally for a more detailed investigation. Cooldown filter to reduce over-trading
This is part of what is implemented in the script to prevent generation of consecutive signals too quickly. All this helps to reduce market noise and not overtrade—only when market conditions are at their best. The cooldown period can be set to be adjusted according to the trader's preference, making the script more versatile in its use. Practical Considerations: Educational Purpose: This script is for educational purposes only and should be part of a comprehensive trading approach. Proper risk management techniques should be observed while at the same time taking into consideration prevailing market conditions before making any trading decision.
No Guaranteed Results: The script is aimed at bringing signal accuracy into improvement to align with the broader market trend and reducing noise, but past performance cannot guarantee future success. Traders should use this script within their broad trading approach. Clean and Simple Chart Display: The primary goal of this script is to have a clear and simple display on the chart. The signals are prominently marked with "BUY" and "SELL," and the color of the bars has changed according to the last signal, thus traders can easily read the output. Community and Open Source Open Source Contribution: This script is open for contribution by the TradingView community. Any suggestions regarding improvements are highly welcomed. Candlestick patterns, moving averages, and the combination of the cooldown filter are presented in such a way as to give traders something special, and any modifications or extra touch by the community is appreciated. Attribution and Transparency: The script is based on standard technical analysis principles and for all parts inspired by or derivated from other available open-source scripts, credit is given where it is due. In this way, transparency ensures that the script adheres to TradingView's standards and promotes a collaborative community environment.
Edge AI Forecast [Edge Terminal]This indicator inputs the previous 150 closing prices in a simple two-layer neural network, normalizes the network inputs using a sigmoid function, uses a feedforward calculation to send it to the second layer, shows the MSE loss curve and uses both automatic and manual backpropagation (user input) to find the most likely forecast values and uses the analog forecasting algorithm to adjust and optimize the data furthermore to display potential prices on the chart.
Here's how it works:
The idea behind this script is to train a simple neural network to predict the future x values based on the sample data. For this, we use 2 types of data, Price and Volume.
The thinking behind this is that price alone can’t be used in this case because it doesn’t provide enough meaningful pattern data for the network but price and volume together can change the game. We’re planning to use more different data sets and expand on this in the future.
To avoid a bad mix of results, we technically have two neural networks, each processing a different data type, one for volume data and one for price data.
The actual prediction is decided by the way price and volume of the closing price relate to each other. Basically, the network passes the price and volume and finds the best relation between the two data set outputs and predicts where the price could be based on the upcoming volume of the latest candle.
The network adjusts the weights and biases using optimization algorithms like gradient descent to minimize the difference between the predicted and actual stock prices, typically measured by a loss function, (in this case, mean squared error) which you can see using the error rate bubble.
This is a good measure to see how well the network is performing and the idea is to adjust the settings inputs such as learning rate, epochs and data source to get the lowest possible error rate. That’s when you’re getting the most accurate prediction results.
For each data set, we use a multi-layer network. In a multi-layer neural network, the outputs of neurons in one layer serve as inputs to neurons in the next layer. Initially, the input layer of the neural network receives the historical data. Each input neuron represents a feature, such as previous stock prices and trading volumes over a specific period.
The hidden layers perform feature extraction and transformation through a series of weighted connections and activation functions. Each neuron in a hidden layer computes a weighted sum of the inputs from the previous layer, applies an activation function to the sum, and passes the result to the next layer using the feedforward (activation) function.
For extraction, we use a normalization function. This function takes a value or data (such as bar price) and divides it up by max scale which is the highest possible value of the bar. The idea is to take a normalized number, which is either below 1 or under 2 for simple use in the neural network layers.
For the activation, after computing the weighted sum, the neuron applies an activation function a(x). To introduce non-linearity into the model to pass it to the next layer. We use sigmoid activation functions in this case. The main reason we use sigmoid function is because the resulting number is between 0 to 1 and is better for models where we have to predict the probability as an output.
The final output of the network is passed as an input to the analog forecasting function. This is an algorithm commonly used in weather prediction systems. In this case, this is used to make predictions by comparing current values and assuming the patterns might repeat in the future.
There are many different ways to build an analog forecasting function but in our case, we’re used similarity measurement model:
X, as the current situation or set of current variables.
Y, as the outcome or variable of interest.
Si as the historical situations or patterns, where i ranges from 1 to n.
Vi as the vector of variables describing historical situation Si.
Oi as the outcome associated with historical situation Si.
First, we define a similarity measure sim(X,Vi) that quantifies the similarity between the current situation X and historical situation Si based on their respective variables Vi.
Then we select the K most similar historical situations (KNN Machine learning) based on the similarity measure sim(X,Vi). We denote the rest of the selected historical situations as {Si1, Si2,...Sik).
Then we examine the outcomes associated with the selected historical situations {Oi1, Oi2,...,Oik}.
Then we use the outcomes of the selected historical situations to forecast the future outcome Y^ using weighted averaging.
Finally, the output value of the analog forecasting is standardized using a standardization function which is the opposite of the normalization function. This function takes a normalized number and turns it back to its original value by multiplying it by the max scale (highest value of the bar). This function is used when the final number is produced by the network output at the end of the analog forecasting to turn the final value back into a price so it can be displayed on the chart with PineScript.
Settings:
Data source: Source of the neural network's input data.
Sample Bars: How many historical bars do you want to input into the neural network
Prediction Bars: How many bars you want the script to forecast
Show Training Rate: This shows the neural network's error rate for the optimization phase
Learning Rate: how many times you want the script to change the model in response to the estimated error (automatic)
Epochs: the network cycle or how many times you want to run the data through the network from the first layer to the last one.
Usage:
The sample bars input determines the number of historical bars to be used as a reference for the network. You need to change the Epochs and Learning Rate inputs for each asset and chart timeframe to get the lowest error rate.
On the surface, the highest possible epoch and learning rate should produce the most effective results but that's not always the case.
If the epochs rate is too high, there is a chance we face overfitting. Essentially, you might be over processing good data which can make it useless.
On the other hand, if the learning rate is too high, the network may overshoot the optimal solution and diverge. This is almost like the same issue I mentioned above with a high epoch rate.
Access:
It took over 4 months to develop this script and we’re constantly improving it so it took a lot of manpower to develop this script. Also when it comes to neural networks, Pine Script isn’t the most optimal language to build a neural network in, so we had to resort to a few proprietary mathematical formulas to ensure this runs smoothly without giving out an error for overprocessing, specially when you have multiple neural networks with many layers.
The optimization done to make this script run on Pine Script is basically state of the art and because of this, we would like to keep the code closed source at the moment.
On the other hand we don’t want to publish the code publicly as we want to keep the trading edge this script gives us in a closed loop, for our own small group of members so we have to keep the code closed. We only accept invites from expert traders who understand how this script and algo trading works and the type of edge it provides.
Additionally, at the moment we don’t want to share the code as some of the parts of this network, specifically the way we hand the data from neural network output into the analog method formula are proprietary code and we’d like to keep it that way.
You can contact us for access and if we believe this works for your trading case, we will provide you with access.
Optimal Moving Average (AI/ML) [wbburgin]Some traders swear by the 200-period moving average. Others, by the 100-period. Others, the 14-period. It depends on your asset, your timeframe, the trend…
The fact of the matter is that no moving average will ever be a consistent indicator for a serious trader - a fixed-length moving average will always need confirmation indicators and tests. When your instrument is trending, you need a faster moving average to better fit the data; when your instrument is ranging, you need a slower moving average that cleans the data. This just is not possible given the way the moving average is traditionally coded, which makes it a lagging indicator.
Thus we need a moving average that:
can project the next prices, and
can change its length depending on what best fits these future prices.
The Optimal Moving Average selects the optimal moving average length for a projected future price. The algorithm classifies moving averages by their effectiveness in predicting future price movement. If a moving average of length n has historically been accurate in predicting the next bar, the moving average will be tested compared to its peers ( n -1, n +5, n -100, etc.) and promoted or demoted depending on its effectiveness. This means that the indicator will not have a length input like other static moving averages or machine-learning moving averages on TradingView- it will select the ideal length for your chart from the average that has the least error and best prediction.
Advantages over other ML Moving Averages on TradingView
The vast majority of AI/ML moving average algorithms classify their moving averages only by if the average is above or below the current price.
This approach is inherently flawed because the model
Is not predictive of future prices (the structural lagging problem still exists),
Is not built on a variable-length MA (cannot select alternating lengths depending on the bar), and
does not classify the scale of difference between the MA and the price.
This indicator solves all those problems. It classifies moving averages by the scale of which their rate predicts the next price. Thus it is quick to catch trend changes but also acts as support or resistance, and models the projected price more accurately than a traditional moving average.