Trend Finder by aDiLHello traders, purpose of creating this indicator is simply trying to analyse the trend of any symbol.
A Trend Finder is a specialized indicator designed to analyze market trends by combining EMA and candlestick patterns.
Indicatori e strategie
XAUUSD STRATGEY BUY AND SELL SIGNALSThe XAUUSD buy and sell is designed to enhance trading strategies by pinpointing essential price levels and trends on an ATR and stochastic. It effectively charts the opening prices of moving average and 4-hour candles, visualizes retests, showcases average price lines, and integrates higher timeframe candlesticks. This system is ideal for traders who take advantage of short-term price fluctuations and volume trends.
Understanding the XAUUSD BUY SELL
This indicator marks crucial price levels derived from the opening prices of stochastic and 4-hour candles. It detects retests of these levels, computes average prices, and highlights the high and low points for each hour. Additionally, it incorporates higher-timeframe candlesticks to offer a well-rounded perspective on price movements.
Essential Features:
Stochastic and 4-Hour Opens: Clear indicators for important price levels.
Retest Detection: Emphasizes price retests at hourly open levels.
Average Price Lines: Provides average prices for enhanced trend evaluation.
High and Low Indicators: Identifies hourly high and low points.
How to Utilize the XAUUSD BUY AND SELL
Trend Evaluation: leverage moving average and 4-hour levels to pinpoint potential support and resistance zones, aiding traders in making informed entry and exit decisions.
Retest Approach: Monitor retests at hourly opens to identify possible reversals or continuations of trends.
Liquidity Sweep Approach: Spot key levels where liquidity is expected to gather, such as previous hour highs and lows, to seize rapid price movements.
Equal Highs and Lows Approach: Analyze repeated highs or lows to determine robust support or resistance levels and predict significant price shifts.
Benefits of the XAUUSD BUY and sell
Adjustable Zone Width: Modify the width around the 1-Hour Open to customize the zone.
Retest Indicators: Toggle markers that indicate price retests on or off.
Volume Filter: Emphasize retests accompanied by substantial volume to minimize distractions.
1-Hour Average Line: Present the average price from the last hour for trend assessment.
Hourly High & Low Indicators: Mark the highest and lowest prices within each hour for quick reference.
Conclusion
The XAUUSD buy and sell is an invaluable tool for intraday traders. By providing a detailed and dynamic view of price levels, trends, and retests, it enhances decision-making and helps capture short-term trading opportunities.
Perfect Sell Signal//@version=5
indicator("Perfect Sell Signal", overlay=true)
// Define parameters
shortTermEMA = input.int(9, title="Short Term EMA")
longTermEMA = input.int(21, title="Long Term EMA")
rsiPeriod = input.int(14, title="RSI Period")
rsiOverboughtLevel = input.int(70, title="RSI Overbought Level")
rsiOversoldLevel = input.int(30, title="RSI Oversold Level")
// Calculate the EMAs
shortEMA = ta.ema(close, shortTermEMA)
longEMA = ta.ema(close, longTermEMA)
// Calculate the RSI
rsi = ta.rsi(close, rsiPeriod)
// Define conditions for a sell signal
emaCrossover = ta.crossover(shortEMA, longEMA) // Short-term EMA crossing below long-term EMA
rsiOverboughtCondition = rsi > rsiOverboughtLevel // RSI in overbought region
// Sell condition (stronger signal when both EMA crossover and RSI indicate overbought)
sellSignal = emaCrossover and rsiOverboughtCondition
// Plot the signals on the chart
plotshape(sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
// Plot the EMAs on the chart for reference
plot(shortEMA, color=color.blue, title="Short-term EMA")
plot(longEMA, color=color.orange, title="Long-term EMA")
Hybrid Moving Average - Market TrendHybrid Moving Average Market Trend System - , designed to visualize market trends using a combination of three moving averages: FRAMA (Fractal Adaptive Moving Average), VIDYA (Variable Index Dynamic Average), and a Hamming windowed Volume-Weighted Moving Average (VWMA).
Key Features:
FRAMA Calculation:
FRAMA adapts to market volatility by dynamically adjusting its smoothing factor based on the fractal dimension of price movement. This allows it to be more responsive during trending periods while filtering out noise in sideways markets. The FRAMA is calculated for both short and long periods
VIDYA with CMO:
The VIDYA (Variable Index Dynamic Average) is based on a Chande Momentum Oscillator (CMO), which adjusts the smoothing factor dynamically depending on the momentum of the market. Higher momentum periods result in more responsive averages, while low momentum periods lead to smoother averages. Like FRAMA, VIDYA is calculated for both short and long periods.
Hamming Windowed VWMA:
This VWMA variation applies a Hamming window to smooth the weighting of volume across the calculation period. This method emphasizes central data points and reduces noise, making the VWMA more adaptive to volume fluctuations. The Hamming VWMA is calculated for short and long periods, offering another layer of adaptability to the hybrid moving average.
Hybrid Moving Averages:
Dynamic Coloring and Filling:
The script uses dynamic color transitions to visually distinguish between bullish and bearish conditions:
Moneyball EMA-MACD indicator [VinnieTheFish]Summary of the Moneyball EMA-MACD Indicator Script
Author: VinnieTheFish
Purpose:
This indicator helps traders identify trend direction, momentum shifts, and potential trade signals based on EMA and MACD crossovers.
This Pine Script is a custom indicator that combines Exponential Moving Averages (EMAs) and MACD (Moving Average Convergence Divergence) to analyze price trends and momentum. The script uses a custom 9/50 MACD with a 16 smoothing period. The script is written in a way that you can create your own custom MACD settings and create alerts based on those parameters. The chart bars are color coded based on the relative position of the MACD and Signal line primarily for bullish long trade setups.
Key Features:
User Inputs:
Configurable fast and slow lengths for MACD calculation.
Choice between SMA and EMA for oscillator and signal line smoothing.
Customizable signal smoothing length.
EMA Calculation:
Computes 3 EMA, 9 EMA, 20 EMA, and 50 EMA to track short-term and long-term trends.
MACD Calculation:
Computes MACD using either SMA or EMA based on user selection.
Generates the MACD signal line for comparison.
Crossover Conditions:
Detects MACD and Signal line crossovers above and below the zero line.
Identifies price momentum shifts.
Bar Coloring Logic:
Green: MACD is above 0 and above the signal line.
White: MACD is below the signal line.
Orange: MACD is below 0 but above the signal line.
Fuchsia: Bullish EMA 3/9 cross but price is still below the 20/50 EMA.
Alerts for Key Trading Signals:
MACD crossing above/below the zero line.
Signal line crossing above/below the zero line.
MACD reaching new highs/lows.
Alerts for colored bar conditions.
Smart RSI & Volume Surge How to Use Signals
🔵 Buy Signal (Blue): When RSI is below 12 and volume surges significantly at the same time.
🔴 Sell Signal (Red): When RSI is above 85, but volume decreases.
🟡 Trend Continuation Alert (Yellow): When RSI is above 85 and volume remains high.
Entry and Exit Strategy
✅ Entering a Buy Trade:
Enter a long position (Buy) when a buy signal (blue) appears.
Set the Stop Loss at 1.5 times the ATR below the entry price.
❌ Exiting a Trade:
Close the position when a sell signal (red) appears.
If a yellow alert appears, you can confirm the trend continuation or adjust the Stop Loss.
Customization Settings
Adjust the RSI Overbought/Oversold level to fine-tune signal sensitivity.
Modify the Volume Surge Multiplier to set the sensitivity to volume increase.
Ultimate T3 Fibonacci for BTC Scalping. Look at backtest report!Hey Everyone!
I created another script to add to my growing library of strategies and indicators that I use for automated crypto trading! This strategy is for BITCOIN on the 30 minute chart since I designed it to be a scalping strategy. I calculated for trading fees, and use a small amount of capital in the backtest report. But feel free to modify the capital and how much per order to see how it changes the results:)
It is called the "Ultimate T3 Fibonacci Indicator by NHBprod" that computes and displays two T3-based moving averages derived from price data. The t3_function calculates the Tilson T3 indicator by applying a series of exponential moving averages to a combined price metric and then blending these results with specific coefficients derived from an input factor.
The script accepts several user inputs that toggle the use of the T3 filter, select the buy signal method, and set parameters like lengths and volume factors for two variations of the T3 calculation. Two T3 lines, T3 and T32, are computed with different parameters, and their colors change dynamically (green/red for T3 and blue/purple for T32) based on whether the lines are trending upward or downward. Depending on the selected signal method, the script generates buy signals either when T32 crosses over T3 or when the closing price is above T3, and similarly, sell signals are generated on the respective conditions for crossing under or closing below. Finally, the indicator plots the T3 lines on the chart, adds visual buy/sell markers, and sets alert conditions to notify users when the respective trading signals occur.
The user has the ability to tune the parameters using TP/SL, date timerames for analyses, and the actual parameters of the T3 function including the buy/sell signal! Lastly, the user has the option of trading this long, short, or both!
Let me know your thoughts and check out the backtest report!
Time-based Alerts for Trading Windows🌟 Time-based Alerts for Trading Windows 🌐📈
This Time-based Alerts for Trading Windows script is a highly customizable and reliable tool designed to assist traders in managing automated strategies or manually monitoring specific market conditions. Inspired by CrossTrade's Time-based Alert, this script is tailored for those who rely on precise time windows to trigger actions, such as sending webhook signals or managing Expert Advisors (EAs).
Whether you are a scalper, day trader, or algorithmic trader, this script empowers you to stay on top of your trades with fully customizable time-based alerts.
🛠️ Customizable Time Alerts
This indicator allows you to create up to 12 unique time windows by specifying the exact hour and minute for each alert. Each time window corresponds to an individual alert condition, making it perfect for managing trades during specific market sessions or key time periods.
For example:
Alert 1 can be set at 9:30 AM (market open).
Alert 2 can be set at 3:55 PM (just before market close).
Each alert can be toggled on or off in the indicator settings, allowing you to manage alerts without having to reconfigure your script.
You can adjust the colours to fit any colour scheme you like!
🕒 Odd and Even Time Alerts
The script comes with three built-in alert type categories:
Odd Alerts (marked with a green triangle on the chart): These correspond to odd-numbered inputs like Alert 1, Alert 3, Alert 5, and so on.
Even Alerts (marked with a red triangle on the chart): These correspond to even-numbered inputs like Alert 2, Alert 4, Alert 6, and so on.
You can also customize all 12 alerts individually to include a custom alert message
These alerts serve as a convenient way to differentiate between multiple trading strategies or market conditions. You can customize alert messages for odd and even alerts directly from TradingView’s alert panel.
🔗 Webhook Integration for Automation
This script is fully compatible with webhook-based automation. By configuring your alerts in TradingView, you can send signals to trading bots, EAs, or any third-party system. For example, you can:
Turn off an EA at a specific time (e.g., 3:55 PM EST).
Send buy/sell signals to your bot during predefined trading windows.
Simply use TradingView’s alert message editor to format webhook payloads for your automation system.
🌐 Timezone Flexibility
Trading happens across multiple time zones, and this script accounts for that. You can toggle between:
Eastern Time (New York): Ideal for most US-based markets.
Central Time (Exchange): Useful for futures and commodities traders.
This ensures your alerts are always in sync with your preferred time zone, eliminating confusion.
🎨 Visual Indicators
The script plots visual markers directly on your chart to indicate active alerts:
Up Facing Triangles: Represent odd-numbered alerts, providing a quick reference for these time windows.
Down Facing Triangles: Represent even-numbered alerts, helping you track different strategies or conditions.
These visual markers make it easy to see when alerts are triggered, even at a glance.
In our chart example above, the blue triangles indicate the odd-numbered alerts and the yellow triangles the even-numbered alerts. You can set them to the colours of green and red if you prefer that!
📈 Practical Use Case
Let’s say you’re trading the USTEC index on a 1-minute chart. You want to:
Turn off your trading bot at 16:55 EST to avoid after-market volatility.
Trigger a re-entry signal at 17:30 EST to capture moves during the Asian session.
Visually monitor these actions on your chart for easy reference.
This script makes it possible with precision alerts and webhook integration. Simply configure the time windows in the settings and set up your alerts in TradingView.
🚨 How to Set Up Alerts
Enable or Disable Alerts: Use the script’s settings to toggle specific alerts on or off as needed.
Set Custom Time Windows: Define the hour and minute for each alert in the settings panel.
Create Alerts in TradingView:
Go to the TradingView alert panel.
Select the condition (e.g., "Odd Time-based Alert (Green)" or "Even Time-based Alert (Red)").
Customize the alert message for webhook integration or personal notification.
Choose the trigger type: Once Per Bar or Once Per Bar Close to keep the alert active.
Integrate with Webhooks: Use the alert message field to format payloads for automation systems like MT4, MT5, or third-party bots.
📋 Key Notes
Alerts can trigger indefinitely if set to "Once Per Bar" or "Once Per Bar Close".
Always ensure the expiration date is set far in the future to avoid unexpected alert deactivation.
Test webhook messages and alert configurations thoroughly before using them in live trading.
This script is a powerful addition to your trading toolbox, offering precision, flexibility, and automation capabilities. Whether you’re turning off an EA, managing trades during market sessions, or automating strategies via webhooks, this script is here to support you.
Start using the Time-based Alerts for Trading Windows today and trade with confidence! 🚀✨
Acknowledgment
This indicator was created using the foundation code provided by CrossTrade.io . Huge thanks to their work for inspiring this customizable solution! Follow them here: @CrossTradeTeam
Bull and Bear V3 origiNal code source indicateur de tendance
signaux achat et vente
idealement en renko
utliser filtre tendance sma 35
bon trade a tous
Bougie FU La Bougie FU : Un Signal de Puissance et de Réaction du Marché 🔥
La bougie FU est un signal de force extrême qui reflète une forte réaction du marché à un niveau clé. Elle se distingue par une mèche dominante et un corps plus grand que la bougie précédente, indiquant une prise de contrôle brutale des acheteurs ou des vendeurs.
📌 Pourquoi est-elle si puissante ?
✅ Rejet massif d’un prix : Elle apparaît souvent sur des zones de liquidité ou des niveaux techniques majeurs.
✅ Rupture nette d’un mouvement : Elle signale un potentiel retournement ou une accélération dans la tendance.
✅ Valable sur toutes les unités de temps : Du M1 au H4, voire plus, son efficacité est prouvée.
📌 Comment l’interpréter ?
📍 FU Verte (Achat) :
Une bougie verte avec une mèche basse plus grande que celle de la bougie précédente.
Indique un rejet violent des vendeurs, montrant une forte pression acheteuse.
📍 FU Rouge (Vente) :
Une bougie rouge avec une mèche haute plus grande que celle de la bougie précédente.
Signale un rejet agressif des acheteurs, montrant une pression vendeuse dominante.
📌 Stratégie d’entrée et gestion du risque 📊
🎯 Stop Loss (SL) :
Toujours placé juste sous la mèche d’une BUY FU ou juste au-dessus de la mèche d’une SELL FU pour protéger la position.
🎯 Take Profit (TP) :
Objectif minimal : 2R (2 fois le risque).
Objectif optimisé : 3R (3 fois le risque), selon la volatilité du marché.
📌 Pourquoi fonctionne-t-elle si bien ?
💥 Elle capte les pièges du marché, en absorbant les positions faibles avant de partir fortement dans une direction.
💥 Elle représente un déséquilibre fort entre l’offre et la demande.
💥 Les institutions et les traders professionnels utilisent ces bougies comme point clé pour initier des positions.
🚀 Peu importe l’unité de temps, une bougie FU bien exploitée peut être un signal redoutable pour anticiper un retournement ou confirmer une cassure violente. 📈📉
The Final CountdownA script that shows countdown timers for multiple time frames all in the same place. I edited the original by SamRecio, called Final Countdown so that it only shows 4 time frames.
Combined SmartComment & Dynamic S/R LevelsDescription:
The Combined SmartComment & Dynamic S/R Levels script is designed to provide valuable insights for traders using TradingView. It integrates dynamic support and resistance levels with a powerful Intelligent Comment system to enhance decision-making. The Intelligent Comment feature generates market commentary based on key technical indicators, delivering real-time actionable feedback that helps optimize trading strategies.
Intelligent Comment Feature:
The Intelligent Comment function continuously analyzes market conditions and offers relevant insights based on combinations of various technical indicators such as RSI, ATR, MACD, WMA, and others. These comments help traders identify potential price movements, highlighting opportunities to buy, sell, or wait.
Examples of the insights provided by the system include:
RSI in overbought/oversold and price near resistance/support: Indicates potential price reversal points.
Price above VAH and volume increasing: Suggests a strengthening uptrend.
Price near dynamic support/resistance: Alerts when price approaches critical support or resistance zones.
MACD crossovers and RSI movements: Provide signals for potential trend shifts or continuations.
Indicators Used:
RSI (Relative Strength Index)
ATR (Average True Range)
MACD (Moving Average Convergence Divergence)
WMA (Weighted Moving Average)
POC (Point of Control)
Bollinger Bands
SuperSignal
Volume
EMA (Exponential Moving Average)
Dynamic Support/Resistance Levels
How It Works:
The script performs real-time market analysis, assessing multiple technical indicators to generate Intelligent Comments. These comments provide traders with timely guidance on potential market movements, assisting with decision-making in a dynamic market environment. The script also integrates dynamic support and resistance levels to further enhance trading accuracy.
sandip StrategySandip Strategy for TradingView
1. Setup on TradingView
Open TradingView and choose your trading pair (e.g., BTC/USD, NIFTY, etc.).
Use a Candlestick Chart with at least 1-hour or daily timeframes for better accuracy.
Add Gann Tools from TradingView:
Gann Fan
Gann Square
Gann Box
2. Identify Key Levels
Use Gann Fan from a major swing low or high.
The 1x1 (45-degree) line is crucial; price above it is bullish, below it is bearish.
Watch how price interacts with 2x1, 3x1, 4x1 and 1x2, 1x3 angles.
3. Time & Price Cycles
Identify Gann Time Cycles (e.g., 30, 45, 90, 180, 360 days).
Use Fibonacci time zones along with Gann time cycles.
Look for reversals at significant time cycles.
4. Entry & Exit Strategy
Bullish Setup
Price bouncing off the 1x1 line or 2x1 angle (Support).
Entry: Buy when price holds above the 1x1 line.
Stop-Loss: Below the 1x2 angle.
Target: Next resistance level (Gann angle).
Bearish Setup
Price failing at the 1x1 or 1x2 line (Resistance).
Entry: Sell when price stays below the 1x1 angle.
Stop-Loss: Above the 2x1 line.
Target: Next support level (Gann angle).
5. Confirmation Indicators
Combine with RSI (Relative Strength Index) & MACD.
Use Volume Analysis to confirm breakout/breakdown.
Check for candlestick patterns (e.g., Doji, Engulfing).
Order Block Detectorit gives all sale and buy zones where 0rders have been punched. It gives good signals in the form of circles, only thing is that we have to mark zones where more number of circles have been formed.
Sree Bot Intraday - Enhanced (v6)Key Features
Configurable Inputs:
a: Sensitivity key value (default 1).
c: ATR period (default 10).
h: Option to use Heikin Ashi candles instead of standard candles.
ATR-Based Trailing Stop Calculation:
Uses Average True Range (ATR) to determine dynamic trailing stops.
Stops adjust based on market movements, ensuring trailing flexibility.
Buy/Sell Signal Logic:
Buy: When the price crosses above the trailing stop.
Sell: When the price crosses below the trailing stop.
Uses EMA (Exponential Moving Average) for confirmation.
Visual Indicators:
Green/Red arrows appear on the chart to indicate Buy/Sell signals.
Bar colors turn green for bullish and red for bearish trends.
Alerts Integration:
Alerts trigger for buy (UT Long) and sell (UT Short) signals.
Elite Trading Academy VolumeWithin any trading strategy you are looking for confluence.
This indicator will show you when trading volumes correspond with price action. If you see divergence then you act accordingly
Look for the lows and the highs of the indicator, and follow the strategy.
Valid H-L(Ichimoku Version)[Indicator-Chef]Live Movement form tenkan-sen and pasive form of other components before this signal!
This code is MTF and Multi Chart with Alarn!
Stratégie E.M.S (M1)Stratégie E.M.S (M15-M1) - L'arme ultime pour le XAU/USD 🔥
( A combiner avec : Stratégie E.M.S (M15) sinon ça ne fonctionne pas)
La Stratégie E.M.S (East - Money - Stratégie) est une méthode de trading avancée conçue pour capturer les retournements puissants sur le marché, en particulier sur le XAU/USD (Or). Elle combine le timeframe M15 et M1 pour une précision chirurgicale, permettant d'exploiter les meilleurs points d'entrée tout en minimisant les faux signaux.
📌 Pourquoi la Stratégie E.M.S est ultra-efficace ?
✅ Double Confirmation (M15 + M1) → On attend une structure claire en M15 avant d'entrer en M1, garantissant une meilleure validation du signal.
✅ Repérage des Retournements Puissants → Attente de deux bougies consécutives dans une direction, suivie d’une bougie de retournement pour confirmer le changement de tendance.
✅ Entrée sur Retracement Optimal → L’entrée ne se fait pas immédiatement, mais après la validation complète d’une bougie englobante ou semi-englobante. Cela permet de réduire les faux signaux et d’optimiser les points d’entrée.
✅ Stop Loss & Take Profit Stratégiques → SL placé 5 pips sous la mèche de la bougie de signal et TP en ratio 1:3 pour maximiser le rendement.
✅ Une efficacité redoutable sur le XAU/USD → Cette stratégie a montré des performances exceptionnelles sur l’Or grâce à sa volatilité et ses retracements bien définis.
🎯 Comment ça fonctionne en 3 étapes ?
1️⃣ Repérer une tendance avec deux bougies successives de la même couleur sur le timeframe M15.
2️⃣ Attendre une bougie de retournement M15 (rouge après deux vertes ou verte après deux rouges).
3️⃣ Passer en M1 et entrer sur une bougie englobante ou semi-englobante dans la bonne direction.
🎯 Un SELL se déclenche si la dernière bougie M15 était rouge et une bougie englobante baissière apparaît en M1.
🎯 Un BUY se déclenche si la dernière bougie M15 était verte et une bougie englobante haussière apparaît en M1.
📈 Résumé des avantages :
✅ Stratégie simple et adapté aux débutants.
✅ Identification rapide des retournements les plus puissants.
✅ Ratio risque/récompense optimal (SL court, TP large).
✅ Filtrage intelligent des faux signaux avec les bougies englobantes.
✅ Parfaitement adaptée au scalping agressif en M1.
🔥 La Stratégie E.M.S n’est pas une simple méthode… C’est une approche redoutable qui exploite la dynamique des marchés avec une précision absolue et sans analyse.
📌 Prêt à l’essayer sur le XAU/USD ? 🚀💰
Naive Bayes Candlestick Pattern Classifier v1.1 BETAAn intermezzo on why i made this script publication..
A : Candlestick Pattern took hours to backtest, why not using Machine Learning techniques?
B : Machine Learning, no that's gonna be really heavy bro!
A : Not really, because we use Naive Bayes.
B : The simplest, yet powerful machine learning algorithm to separate (a.k.a classify) multivariate data.
----------------------------------------------------------------------------------------------------------------------
Hello, everyone!
After deep research in extracting meaningful information from the market, I ended up building this powerful machine learning indicator based on the evolution of Bayesian Statistics. This indicator not only leverages the simplicity of Naive Bayes but also extends its application to candlestick pattern analysis, making it an invaluable tool for traders who are looking to enhance their technical analysis without spending countless hours manually backtesting each pattern on each market!.
What most interesting part is actually after learning all of likely useless methods like fibonacci, supply and demand, volume profile, etc. We always ended up back to basic like support and resistance and candlestick patterns, but with a slight twist on strategy algorithm design and statistical approach. Thus, the only reason why i made this, because i exactly know that you guys will ended up in this position as time goes by.
The essence of this indicator lies in its ability to automate the recognition and statistical evaluation of various candlestick patterns. Traditionally, traders have relied on visual inspection and manual backtesting to determine the effectiveness of patterns like Bullish Engulfing, Bearish Engulfing, Harami variations, Hammer formations, and even more complex multi-candle patterns such as Three White Soldiers, Three Black Crows, Dark Cloud Cover, and Piercing Pattern. However, these conventional methods are both time-consuming and prone to subjective bias.
To address these challenges, I employed Naive Bayes—a probabilistic classifier that, despite its simplicity, offers robust performance in various domains. Naive Bayes assumes that each feature is independent of the others given the class label, which, although a strong assumption, works remarkably well in practice, especially when the dataset is large like market data and the feature space is high-dimensional. In our case, each candlestick pattern acts as a feature that can be statistically evaluated based on its historical performance. The indicator calculates a probability that a given pattern will lead to a price reversal, by comparing the pattern’s close price to the highest or lowest price achieved in a lookahead window.
One of the standout features of this script is its flexibility. Each candlestick pattern is not only coded into the system but also comes with individual toggles to enable or disable them based on your trading strategy. This means you can choose to focus on single-candle patterns like Bullish Engulfing or more complex multi-candle formations such as Three White Soldiers, without modifying the core code. The built-in customization options allow you to adjust colors and labels for each pattern, giving you the freedom to tailor the visual output to your preference. This level of customization ensures that the indicator integrates seamlessly into your existing TradingView setup.
Moreover, the indicator isn’t just about pattern recognition—it also incorporates outcome-based learning. Every time a pattern is detected, it looks ahead a predefined number of bars to evaluate if the expected reversal actually materialized. This outcome is then stored in arrays, and over time, the script dynamically calculates the probability of success for each pattern. These probabilities are presented in a real-time updating table on your chart, which shows not only the percentage probability but also the count of historical occurrences. With this information at your fingertips, you can quickly gauge the reliability of each pattern in your chosen market and timeframe.
Another significant advantage of this approach is its speed and efficiency. While more complex machine learning models like neural networks might require heavy computational resources and longer training times, the Naive Bayes classifier in this script is lightweight, instantaneous and can be updated on the fly with each new bar. This real-time capability is essential for modern traders who need to make quick decisions in fast-paced markets.
Furthermore, by automating the process of backtesting, the indicator frees up your time to focus on other aspects of trading strategy development. Instead of manually analyzing hundreds or even thousands of candles, you can rely on the statistical power of Naive Bayes to provide you with insights on which patterns are most likely to result in profitable moves. This not only enhances your efficiency but also helps to eliminate the cognitive biases that often plague manual analysis.
In summary, this indicator represents a fusion of traditional candlestick analysis with modern machine learning techniques. It harnesses the simplicity and effectiveness of Naive Bayes to deliver a dynamic, real-time evaluation of various candlestick patterns. Whether you are a seasoned trader looking to refine your technical analysis or a beginner eager to understand market dynamics, this tool offers a powerful, customizable, and efficient solution. Welcome to a new era where advanced statistical methods meet practical trading insights—happy trading and may your patterns always be in your favor!
Note : On this current released beta version, you must manually adjust reversal percentage move based on each market. Further updates may include automated best range detection and probability.
Slim Fib 1.0 Customized script based on the script from KivancOzbilgic, thx for that. My script is kind of messy, since 'm not a programmer. Approch was to make it slim, because its for a bigger indicator i'm working on and i want it as clean as possible.
Changes: - calculation on Pivots, automatic change when a new pivot appears
- Global Pivot Settings for every Timeframe, looks fresh on every Timeframe
- Scalable Ote Box for Goldenzone and more extreme 0.71 level ( if you know you know;))
- Minimalized visualization
that's all i need
Cheers
NTS Forex (NewStrategy) //@version=5
indicator('NTS Forex (NewStrategy) ',overlay = true)
//---------------------- Engulfing ------------------------------
//barcolor(open > close ? close > open ? close >= open ? close >= open ? close - open > open - close ? color.yellow :na :na : na : na : na)
//-----------------------------------------------------------------
var timeF = timeframe.period
getResolution(tf) =>
switch tf
'1' => '3'
'3' => '5'
'5' => '15'
'15'=> '15'
'30'=> '45'
'45'=> '60'
'60'=> '120'
'120'=> '180'
'180'=> '240'
'240'=> 'D'
'D'=> 'W'
'W'=> 'M'
var atrP = 10
var atrF = 5
res = getResolution(timeF)
trailType = input.string('modified', 'Trailtype', options= )
var int ATRPer = 0
var int ATRFac = 0
if timeF == '45'
ATRPer := 12
ATRFac := 12
else if timeF == '15'
ATRPer := 9
ATRFac := 9
else
ATRPer := 7
ATRFac := 7
manualFts = input.bool(false, title = 'use manual FTS')
ATRPeriod = manualFts ? input.int(15, title = 'ATRPeriod') : ATRPer
ATRFactor = manualFts ? input.int(15, title = 'ATRFactor') : ATRFac
var testTable = table.new(position=position.bottom_left, columns=2, rows=4, bgcolor=color.new(color.gray,50), border_width=2, border_color=color.black)
if barstate.islast
table.cell(testTable, 0, 0, 'Chart Time',text_color = color.red,text_size = size.small)
table.cell(testTable, 1, 0, timeF,text_color = color.green,text_size = size.small)
table.cell(testTable, 0, 1, 'NTS Time',text_color = color.red,text_size = size.small)
table.cell(testTable, 1, 1, res,text_color = color.green,text_size = size.small)
table.cell(testTable, 0, 2, 'ATRPeriod',text_color = color.red,text_size = size.small)
table.cell(testTable, 1, 2, str.tostring(ATRPeriod),text_color = color.green,text_size = size.small)
table.cell(testTable, 0, 3, 'ATRFactor',text_color = color.red,text_size = size.small)
table.cell(testTable, 1, 3, str.tostring(ATRFactor),text_color = color.green,text_size = size.small)
norm_o = request.security(ticker.new(syminfo.prefix, syminfo.ticker), res, open)
norm_h = request.security(ticker.new(syminfo.prefix, syminfo.ticker), res, high)
norm_l = request.security(ticker.new(syminfo.prefix, syminfo.ticker), res, low)
norm_c = request.security(ticker.new(syminfo.prefix, syminfo.ticker), res, close)
Wild_ma(_src, _malength) =>
_wild = 0.0
_wild := nz(_wild ) + (_src - nz(_wild )) / _malength
_wild
/////////// TRUE RANGE CALCULATIONS /////////////////
HiLo = math.min(norm_h - norm_l, 1.5 * nz(ta.sma(norm_h - norm_l, ATRPeriod)))
HRef = norm_l <= norm_h ? norm_h - norm_c : norm_h - norm_c - 0.5 * (norm_l - norm_h )
LRef = norm_h >= norm_l ? norm_c - norm_l : norm_c - norm_l - 0.5 * (norm_l - norm_h)
trueRange = trailType == 'modified' ? math.max(HiLo, HRef, LRef) : math.max(norm_h - norm_l, math.abs(norm_h - norm_c ), math.abs(norm_l - norm_c ))
loss = ATRFactor * Wild_ma(trueRange, ATRPeriod)
Up = norm_c - loss
Dn = norm_c + loss
TrendUp = Up
TrendDown = Dn
Trend = 1
TrendUp := norm_c > TrendUp ? math.max(Up, TrendUp ) : Up
TrendDown := norm_c < TrendDown ? math.min(Dn, TrendDown ) : Dn
Trend := norm_c > TrendDown ? 1 : norm_c < TrendUp ? -1 : nz(Trend , 1)
trail = Trend == 1 ? TrendUp : TrendDown
ex = 0.0
ex := ta.crossover(Trend, 0) ? norm_h : ta.crossunder(Trend, 0) ? norm_l : Trend == 1 ? math.max(ex , norm_h) : Trend == -1 ? math.min(ex , norm_l) : ex
state = Trend == 1 ? 'long' : 'short'
fib1Level = 61.8
fib2Level = 78.6
fib3Level = 88.6
f1 = ex + (trail - ex) * fib1Level / 100
f2 = ex + (trail - ex) * fib2Level / 100
f3 = ex + (trail - ex) * fib3Level / 100
l100 = trail + 0
Fib1 = plot(f1, 'Fib 1', style=plot.style_line, color=color.new(#ff7811, 0))
Fib2 = plot(f2, 'Fib 2', style=plot.style_line, color=color.new(color.gray, 0))
Fib3 = plot(f3, 'Fib 3', style=plot.style_line, color=color.new(#00ff3c, 0))
L100 = plot(l100, 'l100', style=plot.style_line, color=color.rgb(120, 123, 134))
fill(Fib3, L100, color=state == 'long' ? color.new(#00eaff, 12) : state == 'short' ? #ff5280e9 : na)
changcDir = ta.cross(f3,l100)
alertcondition(changcDir, title="Alert: FTS Direction Change", message="FTS has changed direction!")
l1 = state == "long" and ta.crossunder(norm_c, f1 )
l2 = state == "long" and ta.crossunder(norm_c, f2 )
l3 = state == "long" and ta.crossunder(norm_c, f3 )
s1 = state == "short" and ta.crossover(norm_c, f1 )
s2 = state == "short" and ta.crossover(norm_c, f2 )
s3 = state == "short" and ta.crossover(norm_c, f3 )
atr = ta.sma(trueRange, 14)
//////////// FIB ALERTS /////////////////////
alertcondition(l1, title = "cross over Fib1", message = "Price crossed below Fib1 level in long trend")
alertcondition(l2, title = "cross over Fib2", message = "Price crossed below Fib2 level in long trend")
alertcondition(l3, title = "cross over Fib3", message = "Price crossed below Fib3 level in long trend")
alertcondition(s1, title = "cross under Fib1", message = "Price crossed above Fib1 level in short trend")
alertcondition(s2, title = "cross under Fib2", message = "Price crossed above Fib2 level in short trend")
alertcondition(s3, title = "cross under Fib3", message = "Price crossed above Fib3 level in short trend")
alertcondition(fixnan(f1)!=fixnan(f1 ), title = "Stop Line Change", message = "Stop Line Change")