PROTECTED SOURCE SCRIPT
Same Date Last Year Pattern

This tool is designed to help you analyze past price patterns from the same date last year to gain insights into potential market behavior today. It’s perfect for traders who want to spot recurring trends or directional cues (buy or sell signals) based on historical candle formations, rather than focusing on exact price levels. Here’s how it works and how to use it:
How It Works
Historical Lookback: The script examines the price action from the same calendar date last year (e.g., May 26, 2024, for today, May 26, 2025). Since markets may be closed on weekends or holidays (like Memorial Day), it automatically finds the nearest trading day with available data.
Pattern Detection: Instead of showing raw prices (which may not match today’s higher or lower price range), it analyzes the candle’s shape and direction. It tells you if the past candle was bullish (closing higher, suggesting a potential buy) or bearish (closing lower, suggesting a potential sell), along with details like wick size and the trend leading up to it.
Contextual Insight: It checks the trend from the previous few days (uptrend, downtrend, or sideways) to give you a sense of the market’s mood back then. This helps you decide if the pattern might repeat.
Prediction Suggestion: Based on last year’s candle direction, it offers a simple guess for the next candle’s potential move (e.g., bullish or bearish), though this is for reference only and not a guaranteed signal.
Key Features
Customizable Asset Type: You can set it for "Traditional" markets (e.g., stocks, forex) or "Crypto" (e.g., Bitcoin), adjusting how it searches for data based on whether the market runs 24/7.
Visual Cues: Labels appear on your chart showing the pattern and prediction, with colors (green for bullish, red for bearish, blue for prediction) to make it easy to read.
Range Consideration: This tool works best when the chart’s price range is around 1000 (e.g., stocks trading near $1000 or crypto pairs with similar values). Outside this range, the label positioning might not align perfectly due to scaling differences.
How to Use
Add to Chart: Load this script into TradeLocker’s indicator section on a daily chart for best results.
Select Asset Type: In the settings, choose "Traditional" for stocks or forex, or "Crypto" for 24/7 markets like Bitcoin.
Check Data: On the same date each year (e.g., May 26), it will display the pattern from last year’s nearest trading day. Ensure your chart has at least 455 days of historical data loaded to cover the search range.
Interpret Results: Look at the label to see the pattern (e.g., "Bullish Candle, Potential Buy"), trend context, and prediction. Use this to inform your trading decisions, but combine it with other tools for confirmation.
Important Notes
Limitations: It may show "No Data Found" if historical data isn’t available within its search window (up to 90 days around the target date for traditional markets). This is more likely for weekends or holidays. For best results, test it on assets trading around the 1000 price range.
Not a Guarantee: The prediction is based solely on last year’s candle and trend, not a definitive signal. Use it as a guide alongside your strategy and market analysis.
Customization: If you need it to work outside the 1000 range or add more pattern details (e.g., specific candlestick types), let the community know, and we can refine it!
This tool was crafted to help traders explore historical patterns in a user-friendly way. Share your feedback or suggestions in the TradeLocker community to make it even better!
How It Works
Historical Lookback: The script examines the price action from the same calendar date last year (e.g., May 26, 2024, for today, May 26, 2025). Since markets may be closed on weekends or holidays (like Memorial Day), it automatically finds the nearest trading day with available data.
Pattern Detection: Instead of showing raw prices (which may not match today’s higher or lower price range), it analyzes the candle’s shape and direction. It tells you if the past candle was bullish (closing higher, suggesting a potential buy) or bearish (closing lower, suggesting a potential sell), along with details like wick size and the trend leading up to it.
Contextual Insight: It checks the trend from the previous few days (uptrend, downtrend, or sideways) to give you a sense of the market’s mood back then. This helps you decide if the pattern might repeat.
Prediction Suggestion: Based on last year’s candle direction, it offers a simple guess for the next candle’s potential move (e.g., bullish or bearish), though this is for reference only and not a guaranteed signal.
Key Features
Customizable Asset Type: You can set it for "Traditional" markets (e.g., stocks, forex) or "Crypto" (e.g., Bitcoin), adjusting how it searches for data based on whether the market runs 24/7.
Visual Cues: Labels appear on your chart showing the pattern and prediction, with colors (green for bullish, red for bearish, blue for prediction) to make it easy to read.
Range Consideration: This tool works best when the chart’s price range is around 1000 (e.g., stocks trading near $1000 or crypto pairs with similar values). Outside this range, the label positioning might not align perfectly due to scaling differences.
How to Use
Add to Chart: Load this script into TradeLocker’s indicator section on a daily chart for best results.
Select Asset Type: In the settings, choose "Traditional" for stocks or forex, or "Crypto" for 24/7 markets like Bitcoin.
Check Data: On the same date each year (e.g., May 26), it will display the pattern from last year’s nearest trading day. Ensure your chart has at least 455 days of historical data loaded to cover the search range.
Interpret Results: Look at the label to see the pattern (e.g., "Bullish Candle, Potential Buy"), trend context, and prediction. Use this to inform your trading decisions, but combine it with other tools for confirmation.
Important Notes
Limitations: It may show "No Data Found" if historical data isn’t available within its search window (up to 90 days around the target date for traditional markets). This is more likely for weekends or holidays. For best results, test it on assets trading around the 1000 price range.
Not a Guarantee: The prediction is based solely on last year’s candle and trend, not a definitive signal. Use it as a guide alongside your strategy and market analysis.
Customization: If you need it to work outside the 1000 range or add more pattern details (e.g., specific candlestick types), let the community know, and we can refine it!
This tool was crafted to help traders explore historical patterns in a user-friendly way. Share your feedback or suggestions in the TradeLocker community to make it even better!
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.