Jnet-Random-IndexA trend indicator for frequency bands
Can present indications of long short trends and bands, supported by local resistance
Pine utilities
MÈGAS ALGO : MÈGAS Engine [STRATEGY]Overview
The MÈGAS Engine is an advanced algorithmic trading system that integrates a range of technical analysis tools to pinpoint high-probability opportunities in the market.
Key Features
Core Signal Generation:
-Structure Break Detection: Advanced breakout identification with adjustable
sensitivity controls
-Dual-Direction Analysis: Separate bullish and bearish signal parameters with customizable delta
thresholds and depth settings
-Dynamic Parameter Management: OverfitShield technology with pulsewave parameter cycling
to reduce overfitting risks
Filtering Alghoritm:
-Volatility Filter: Rogers-Satchell volatility estimation with RSI-based normalization to avoid
trading in unfavorable market conditions
-Volume Confirmation: Cumulative volume analysis ensuring adequate liquidity support for trade
entries
OverfitShield Method:
OverfitShield is a built-in function within the trading strategy designed to reduce overfitting bias by introducing parameter variability during execution. When the "variable" mode is activated, instead of relying on fixed values for key strategy parameters the system dynamically selects values from customizable ranges.
This approach mimics real-world market uncertainty and ensures that the strategy does not become overly dependent on a single optimal value found during backtesting — making it more robust across different market conditions and time periods.
Position Management
-Customizable Exit Set-up
The exit logic can be customized to 'CONTINUE', 'TAKE PROFIT', or 'TRAILING PROFIT' to suit
your trading approach and maximize performance.
-CONTINUE Mode:
This mode does not use predefined take profit levels. Instead, it remains in the market as long as the trend persists. By avoiding fixed exit points, this approach is often the most effective in backtesting, as it allows positions to run in favorable trends for longer periods.
-TAKE PROFIT Mode:
This mode allows you to set multiple grid-like take profit levels at different price points, effectively creating a multi-tier exit strategy. You can specify the number of profit levels you want, along with the percentage step between each level. This structured approach can be beneficial for capturing incremental profits in a trending market while allowing for more flexibility in trade management.
-TRAILING PROFIT Mode:
Similar to the Take Profit mode, this option allows you to set the trailing stop levels. The trailing stop moves with the market, ensuring that you lock in profits as the price continues to move in your favor. Once a profit level is hit, the trailing stop "follows" the price movement, adjusting dynamically to safeguard profits as the trade progresses.
3. Customizable Insight Alerts
Traders can configure personalized alert messages for every strategy action, including entries, exits, and profit targets. These alerts are fully compatible with TradingView's webhook system.
Advantages
Customization: Fully customizable exit set-up and alerts allow traders to tailor the strategy to their personal trading objectives.
How It Works — Step by Step
Step 1: Apply the Strategy
Open the chart for your selected symbol and timeframe. Add the MÈGAS Engine to the chart.
Step 2:Backtesting and Optimization
Run a full backtest and optimize the strategy parameters across the chosen trading pairs to:
Identify robust settings that perform consistently well
Avoid overfitting through validation techniques
Select the most profitable and stable configuration for live or forward testing.
Step 3: Review Results and Alerts
Check the backtest results on the chart and confirm that the custom alert messages are displaying as expected. This helps verify that everything is functioning correctly before moving forward.
Step 4: Configure Portfolio Management
Set up the exit logic based on your specific requirements. Tailor the exit strategy to match your trading approach, whether you prefer predefined take profit levels, trailing stops, or a trend-following method. This flexibility ensures the exit logic aligns with your overall strategy for optimal performance.
Open the strategy settings window. In the dedicated portfolio management section, choose your preferred capital allocation method based on your trading style and risk preferences. Once set, save the configuration as the default.
Step 5: Set Up Alerts
Click "Add Alert" on the strategy
-In the message field, use: {{strategy.order.comment}}
Under the Notifications tab:
-Enable Webhook URL
-Enter your external webhook address
-Click 'Create' to activate alerts for your strategy
Please Note:
The results and visualizations presented are derived from optimized backtesting iterations using historical and paid real-time market data sourced via TradingView. While these results are intended to demonstrate potential performance, they do not guarantee future outcomes or accuracy. Past performance is not indicative of future results, and all trading involves risk.
We strongly recommend that users review and adjust the Properties within the script settings to align with their specific account configurations and preferred trading platforms. This ensures that the strategy outputs are reflective of real-world conditions and enhances the reliability of the results obtained. Use this tool responsibly and at your own risk.
Golden Crossover Momentum Check📊 Golden Cross Momentum Screener — Summary
🔍 What It Does
This indicator identifies Golden Cross events — where the 50 EMA crosses above the 200 EMA, signaling a potential long-term trend reversal — and evaluates the momentum strength to help determine whether price is likely to:
Surge immediately (Group B), or
Retrace first (Group A)
It uses 5 momentum-confirming conditions to score the quality of the breakout and display a single label on the chart with a classification.
✅ Momentum Conditions Validated
RSI > 60 and rising – Indicates bullish buying pressure
MACD Histogram > 0 and rising – Confirms increasing momentum
Volume > 2× 20-day average – Validates participation on the breakout
ADX > 25 – Measures trend strength
Price is >5% above 200 EMA – Confirms price extension above long-term trend
Each passing condition adds 1 point to the momentum score (0–5).
📈 How to Use
Watch for a Golden Cross signal (triangle appears below candle)
If momentum score ≥ 4, the script labels the setup as:
"🚀 Surge Likely (Group B)" — consider immediate breakout entries
If score is 2–3, labeled:
"🔄 Pullback Likely (Group A)" — expect retest/consolidation before continuation
If score < 2, labeled:
"❌ No Momentum Confirmed" — avoid or wait for confirmation
Events assistantThis script gives an ability to manually add events to your charts. There is no option to define events for different pairs. I trade only 2-3 pairs and it helps me a lot. It also draws vertical lines that separate trading period of your selection: daily, weekly and monthly. It is also possible to strictly define trading period. I use trading period every time during backtesting so it is easy to know when to start and when to finish. It also helps to remember that I already written down trading news during selected period.
No Gaps - JizzanyNo Gaps – Jizzany
Fill the blanks. Own the patterns.
Don’t let thin futures feeds or blazing-fast 1 s bars break your flow—this overlay stitches every missing pixel back into your chart so you can:
🔍 Analyze low-liquidity markets (futures, exotic FX, crypto alt-pairs) without awkward jumps
⏱️ Trade ultra-low timeframes (1 s, tick charts) with full confidence in every wick
📈 Spot price patterns seamlessly, even when your broker’s feed skips a beat
How it works: Auto-detects gaps between sessions or feeds, then draws miniature candles from the prior close to the current open—using real intrabar highs/lows—so nothing ever goes unseen.
Perfect for scalpers, day traders, and anyone who demands continuity in every bar. Try it on your next chart and rediscover the story in every candle.
Turn This
Into This
This
Into
NY opennew york open.
new york open hours of the past two weeks up until two days ahead are shown as vertical lines which is great for both analyzing past data and seeing where would future new york open align with compared to your own future analysis.
Perfect Entry VisualizerPerfect Entry Visualizer is a Pine Script v6 study designed purely as a historical analysis tool, not for live trading. It plots the theoretical “perfect” long and short entries on your chart based on a user-defined minimum price move. By alternately tracking swing lows for longs and swing highs for shorts, it shows exactly where a trade would have captured every move of at least X points, with X set by the “Minimum Move (Points)” input.
How it works
After each labeled entry it switches direction (long→short or short→long), so signals never overlap.
It never uses future data to predict; it simply waits for price to move far enough from the last extreme and then plots.
Adjusting the “Minimum Move (Points)” input controls how big a swing must be before an entry is marked: smaller values give more frequent signals, larger values highlight only the biggest moves.
Primary uses
Algo system benchmarking: compare your live strategy’s entries against the theoretical best to measure entry efficiency.
Manual trader review: visualize ideal swing entry timing to refine your own setups and fine-tune stop-and-profit targets.
Educational tool: teach price action concepts by showing exact points where a pure price-move strategy would have worked.
Performance analysis: overlay on any time frame or market to see which instruments and sessions offer the most clean, swing-based opportunities.
Alternative pivot point analysis: use it as a dynamic pivot high/low tool based on movement thresholds rather than fixed lookback bars.
Because it simply visualizes past price moves, you can paste it into any chart to instantly see the theoretical maximum trade capture for your chosen swing size. It’s a flexible comparison and learning aid, not a live signal generator.
Sticky Notes📌 Sticky Notes - On-Chart Memo Tool
A convenient indicator that lets you display trading ideas and important notes directly on your charts!
✨ Key Features:
📝 Create memos with custom text input
📍 Place anywhere on chart (top/middle/bottom)
🖥️ Screen-fixed display mode (corner positions)
🎨 Fully customizable text and background colors
📏 5 text size options (tiny to huge)
⏰ Time-based display functionality
📐 Text alignment options (left/center/right)
💡 Use Cases:
Trading strategy reminders
Important price level notes
Economic event schedules
Entry/exit point memos
Simple and user-friendly design to enhance your trading analysis!
Wavelet Filter with Adaptive Upsampling [BackQuant]Wavelet Filter with Adaptive Upsampling
The Wavelet Filter with Adaptive Upsampling is an advanced filtering and signal reconstruction tool designed to enhance the analysis of financial time series data. It combines wavelet transforms with adaptive upsampling techniques to filter and reconstruct price data, making it ideal for capturing subtle market movements and enhancing trend detection. This system uses high-pass and low-pass filters to decompose the price series into different frequency components, applying adaptive thresholding to eliminate noise and preserve relevant signal information.
Shout out to Loxx for the Least Squares fitting of trigonometric series and Quinn and Fernandes algorithm for finding frequency
www.tradingview.com
Key Features
1. Frequency Decomposition with High-Pass and Low-Pass Filters:
The indicator decomposes the input time series using high-pass and low-pass filters to separate the high-frequency (detail) and low-frequency (trend) components of the data. This decomposition allows for a more accurate analysis of underlying trends, while mitigating the impact of noise.
2. Soft Thresholding for Noise Reduction:
A soft thresholding function is applied to the high-frequency component, allowing for the reduction of noise while retaining significant market signals. This function adjusts the coefficients of the high-frequency data, removing small fluctuations and leaving only the essential price movements.
3. Adaptive Upsampling Process:
The upsampling process in this script can be customized using different methods: sinusoidal upsampling, advanced upsampling, and simple upsampling. Each method serves a unique purpose:
Sinusoidal Upsample uses a sine wave to interpolate between data points, providing a smooth transition.
Advanced Upsample utilizes a Quinn-Fernandes algorithm to estimate frequency and apply more sophisticated interpolation techniques, adapting to the market’s cyclical behavior.
Simple Upsample linearly interpolates between data points, providing a basic upsampling technique for less complex analysis.
4. Reconstruction of Filtered Signal:
The indicator reconstructs the filtered signal by summing the high and low-frequency components after upsampling. This allows for a detailed yet smooth representation of the original time series, which can be used for analyzing underlying trends in the market.
5. Visualization of Reconstructed Data:
The reconstructed series is plotted, showing how the upsampling and filtering process enhances the clarity of the price movements. Additionally, the script provides the option to visualize the log returns of the reconstructed series as a histogram, with positive returns shown in green and negative returns in red.
6. Cumulative Series and Trend Detection:
A cumulative series is plotted to visualize the compounded effect of the filtered and reconstructed data. This feature helps traders track the overall performance of the asset over time, identifying whether the asset is following a sustained upward or downward trend.
7. Adaptive Thresholding and Noise Estimation:
The system estimates the noise level in the high-frequency component and applies an adaptive thresholding process based on the standard deviation of the downsampled data. This ensures that only significant price movements are retained, further refining the trend analysis.
8. Customizable Parameters for Flexibility:
Users can customize the following parameters to adjust the behavior of the indicator:
Frequency and Phase Shift: Control the periodicity of the wavelet transformation and the phase of the upsampling function.
Upsample Factor: Adjust the level of interpolation applied during the upsampling process.
Smoothing Period: Determine the length of time used to smooth the signal, helping to filter out short-term fluctuations.
References
Enhancing Cross-Sectional Currency Strategies with Context-Aware Learning to Rank
arxiv.org
Daubechies Wavelet - Wikipedia
en.wikipedia.org
Quinn Fernandes Fourier Transform of Filtered Price by Loxx
Note on Usage for Mean-Reversion Strategy
This indicator is primarily designed for trend-following strategies. However, by taking the inverse of the signals, it can be adapted for mean-reversion strategies. This involves buying underperforming assets and selling outperforming ones. Caution: This method may not work effectively with highly correlated assets, as the price movements between correlated assets tend to mirror each other, limiting the effectiveness of mean-reversion strategies.
Final Thoughts
The Wavelet Filter with Adaptive Upsampling is a powerful tool for traders seeking to improve their understanding of market trends and noise. By using advanced wavelet decomposition and adaptive upsampling, this system offers a clearer, more refined picture of price movements, enhancing trend-following strategies. It’s particularly useful for detecting subtle shifts in market momentum and reconstructing price data in a way that removes noise, providing more accurate insights into market conditions.
40 Ticker Cross-Sectional Z-Scores [BackQuant]40 Ticker Cross-Sectional Z-Scores
BackQuant’s 40 Ticker Cross-Sectional Z-Scores is a powerful portfolio management strategy that analyzes the relative performance of up to 40 different assets, comparing them on a cross-sectional basis to identify the top and bottom performers. This indicator computes Z-scores for each asset based on their log returns and evaluates them relative to the mean and standard deviation over a rolling window. The Z-scores represent how far an asset's return deviates from the average, and these values are used to rank the assets, allowing for dynamic asset allocation based on performance.
By focusing on the strongest-performing assets and avoiding the weakest, this strategy aims to enhance returns while managing risk. Additionally, by adjusting for standard deviations, the system offers a risk-adjusted method of ranking assets, making it suitable for traders who want to dynamically allocate capital based on performance metrics rather than just price movements.
Key Features
1. Cross-Sectional Z-Score Calculation:
The system calculates Z-scores for 40 different assets, evaluating their log returns against the mean and standard deviation over a rolling window. This enables users to assess the relative performance of each asset dynamically, highlighting which assets are performing better or worse compared to their historical norms. The Z-score is a useful statistical tool for identifying outliers in asset performance.
2. Asset Ranking and Allocation:
The system ranks assets based on their Z-scores and allocates capital to the top performers. It identifies the top and bottom assets, and traders can allocate capital to the top-performing assets, ensuring that their portfolio is aligned with the best performers. Conversely, the bottom assets are removed from the portfolio, reducing exposure to underperforming assets.
3. Rolling Window for Mean and Standard Deviation Calculations:
The Z-scores are calculated based on rolling means and standard deviations, making the system adaptive to changing market conditions. This rolling calculation window allows the strategy to adjust to recent performance trends and minimize the impact of outdated data.
4. Mean and Standard Deviation Visualization:
The script provides real-time visualizations of the mean (x̄) and standard deviation (σ) of asset returns, helping traders quickly identify trends and volatility in their portfolio. These visual indicators are useful for understanding the current market environment and making more informed allocation decisions.
5. Top & Bottom Performer Tables:
The system generates tables that display the top and bottom performers, ranked by their Z-scores. Traders can quickly see which assets are outperforming and underperforming. These tables provide clear and actionable insights, helping traders make informed decisions about which assets to include in their portfolio.
6. Customizable Parameters:
The strategy allows traders to customize several key parameters, including:
Rolling Calculation Window: Set the window size for the rolling mean and standard deviation calculations.
Top & Bottom Tickers: Choose how many of the top and bottom assets to display and allocate capital to.
Table Orientation: Select between vertical or horizontal table formats to suit the user’s preference.
7. Forward Test & Out-of-Sample Testing:
The system includes out-of-sample forward tests, ensuring that the strategy is evaluated based on real-time performance, not just historical data. This forward testing approach helps validate the robustness of the strategy in dynamic market conditions.
8. Visual Feedback and Alerts:
The system provides visual feedback on the current asset rankings and allocations, with dynamic labels and plots on the chart. Additionally, users receive alerts when allocations change, keeping them informed of important adjustments.
9. Risk Management via Z-Scores and Std Dev:
The system’s approach to asset selection is based on Z-scores, which normalize performance relative to the historical mean. By incorporating standard deviation, it accounts for the volatility and risk associated with each asset. This allows for more precise risk management and portfolio construction.
10. Note on Mean Reversion Strategy:
If you take the inverse of the signals provided by this indicator, the strategy can be used for mean-reversion rather than trend-following. This would involve buying the underperforming assets and selling the outperforming ones. However, it's important to note that this approach does not work well with highly correlated assets, as the relationship between the assets could result in the same directional movement, undermining the effectiveness of the mean-reversion strategy.
References
www.uts.edu.au
onlinelibrary.wiley.com
www.cmegroup.com
Final Thoughts
The 40 Ticker Cross-Sectional Z-Scores strategy offers a data-driven approach to portfolio management, dynamically allocating capital based on the relative performance of assets. By using Z-scores and standard deviations, this strategy ensures that capital is directed to the strongest performers while avoiding weaker assets, ultimately improving the risk-adjusted returns of the portfolio. Whether you’re focused on trend-following or looking to explore mean-reversion strategies, this flexible system can be tailored to suit your investment goals.
Performance Metrics With Bracketed Rebalacing [BackQuant]Performance Metrics With Bracketed Rebalancing
The Performance Metrics With Bracketed Rebalancing script offers a robust method for assessing portfolio performance, integrating advanced portfolio metrics with different rebalancing strategies. With a focus on adaptability, the script allows traders to monitor and adjust portfolio weights, equity, and other key financial metrics dynamically. This script provides a versatile approach for evaluating different trading strategies, considering factors like risk-adjusted returns, volatility, and the impact of portfolio rebalancing.
Please take the time to read the following:
Key Features and Benefits of Portfolio Methods
Bracketed Rebalancing:
Bracketed Rebalancing is an advanced strategy designed to trigger portfolio adjustments when an asset's weight surpasses a predefined threshold. This approach minimizes overexposure to any single asset while maintaining flexibility in response to market changes. The strategy is particularly beneficial for mitigating risks that arise from significant asset weight fluctuations. The following image illustrates how this method reacts when asset weights cross the threshold:
Daily Rebalancing:
Unlike the bracketed method, Daily Rebalancing adjusts portfolio weights every trading day, ensuring consistent asset allocation. This method aims for a more even distribution of portfolio weights, making it a suitable option for traders who prefer less sensitivity to individual asset volatility. Here's an example of Daily Rebalancing in action:
No Rebalancing:
For traders who prefer a passive approach, the "No Rebalancing" option allows the portfolio to remain static, without any adjustments to asset weights. This method may appeal to long-term investors or those who believe in the inherent stability of their selected assets. Here’s how the portfolio looks when no rebalancing is applied:
Portfolio Weights Visualization:
One of the standout features of this script is the visual representation of portfolio weights. With adjustable settings, users can track the current allocation of assets in real-time, making it easier to analyze shifts and trends. The following image shows the real-time weight distribution across three assets:
Rolling Drawdown Plot:
Managing drawdown risk is a critical aspect of portfolio management. The Rolling Drawdown Plot visually tracks the drawdown over time, helping traders monitor the risk exposure and performance relative to the peak equity levels. This feature is essential for assessing the portfolio's resilience during market downturns:
Daily Portfolio Returns:
Tracking daily returns is crucial for evaluating the short-term performance of the portfolio. The script allows users to plot daily portfolio returns to gain insights into daily profit or loss, helping traders stay updated on their portfolio’s progress:
Performance Metrics
Net Profit (%):
This metric represents the total return on investment as a percentage of the initial capital. A positive net profit indicates that the portfolio has gained value over the evaluation period, while a negative value suggests a loss. It's a fundamental indicator of overall portfolio performance.
Maximum Drawdown (Max DD):
Maximum Drawdown measures the largest peak-to-trough decline in portfolio value during a specified period. It quantifies the most significant loss an investor would have experienced if they had invested at the highest point and sold at the lowest point within the timeframe. A smaller Max DD indicates better risk management and less exposure to significant losses.
Annual Mean Returns (% p/y):
This metric calculates the average annual return of the portfolio over the evaluation period. It provides insight into the portfolio's ability to generate returns on an annual basis, aiding in performance comparison with other investment opportunities.
Annual Standard Deviation of Returns (% p/y):
This measure indicates the volatility of the portfolio's returns on an annual basis. A higher standard deviation signifies greater variability in returns, implying higher risk, while a lower value suggests more stable returns.
Variance:
Variance is the square of the standard deviation and provides a measure of the dispersion of returns. It helps in understanding the degree of risk associated with the portfolio's returns.
Sortino Ratio:
The Sortino Ratio is a variation of the Sharpe Ratio that only considers downside risk, focusing on negative volatility. It is calculated as the difference between the portfolio's return and the minimum acceptable return (MAR), divided by the downside deviation. A higher Sortino Ratio indicates better risk-adjusted performance, emphasizing the importance of avoiding negative returns.
Sharpe Ratio:
The Sharpe Ratio measures the portfolio's excess return per unit of total risk, as represented by standard deviation. It is calculated by subtracting the risk-free rate from the portfolio's return and dividing by the standard deviation of the portfolio's excess return. A higher Sharpe Ratio indicates more favorable risk-adjusted returns.
Omega Ratio:
The Omega Ratio evaluates the probability of achieving returns above a certain threshold relative to the probability of experiencing returns below that threshold. It is calculated by dividing the cumulative probability of positive returns by the cumulative probability of negative returns. An Omega Ratio greater than 1 indicates a higher likelihood of achieving favorable returns.
Gain-to-Pain Ratio:
The Gain-to-Pain Ratio measures the return per unit of risk, focusing on the magnitude of gains relative to the severity of losses. It is calculated by dividing the total gains by the total losses experienced during the evaluation period. A higher ratio suggests a more favorable balance between reward and risk.
www.linkedin.com
Compound Annual Growth Rate (CAGR) (% p/y):
CAGR represents the mean annual growth rate of the portfolio over a specified period, assuming the investment has been compounding over that time. It provides a smoothed annual rate of growth, eliminating the effects of volatility and offering a clearer picture of long-term performance.
Portfolio Alpha (% p/y):
Portfolio Alpha measures the portfolio's performance relative to a benchmark index, adjusting for risk. It is calculated using the Capital Asset Pricing Model (CAPM) and represents the excess return of the portfolio over the expected return based on its beta and the benchmark's performance. A positive alpha indicates outperformance, while a negative alpha suggests underperformance.
Portfolio Beta:
Portfolio Beta assesses the portfolio's sensitivity to market movements, indicating its exposure to systematic risk. A beta greater than 1 suggests the portfolio is more volatile than the market, while a beta less than 1 indicates lower volatility. Beta is used to understand the portfolio's potential for gains or losses in relation to market fluctuations.
Skewness of Returns:
Skewness measures the asymmetry of the return distribution. A positive skew indicates a distribution with a long right tail, suggesting more frequent small losses and fewer large gains. A negative skew indicates a long left tail, implying more frequent small gains and fewer large losses. Understanding skewness helps in assessing the likelihood of extreme outcomes.
Value at Risk (VaR) 95th Percentile:
VaR at the 95th percentile estimates the maximum potential loss over a specified period, given a 95% confidence level. It provides a threshold value such that there is a 95% probability that the portfolio will not experience a loss greater than this amount.
Conditional Value at Risk (CVaR):
CVaR, also known as Expected Shortfall, measures the average loss exceeding the VaR threshold. It provides insight into the tail risk of the portfolio, indicating the expected loss in the worst-case scenarios beyond the VaR level.
These metrics collectively offer a comprehensive view of the portfolio's performance, risk exposure, and efficiency. By analyzing these indicators, investors can make informed decisions, balancing potential returns with acceptable levels of risk.
Conclusion
The Performance Metrics With Bracketed Rebalancing script provides a comprehensive framework for evaluating and optimizing portfolio performance. By integrating advanced metrics, adaptive rebalancing strategies, and visual analytics, it empowers traders to make informed decisions in managing their investment portfolios. However, it's crucial to consider the implications of rebalancing strategies, as academic research indicates that predictable rebalancing can lead to market impact costs. Therefore, adopting flexible and less predictable rebalancing approaches may enhance portfolio performance and reduce associated costs.
Watchlist AlertThis “Watchlist Alert” indicator is to help traders monitor multiple symbols and notify them whenever a specified target price is reached. Upon loading the script, you can define up to ten ticker symbols along with their individual price targets. The script stores these pairs in a persistent map so that, on each new bar, it retrieves the previous and current close prices for every symbol in your watchlist. If a symbol’s price crosses above or below its target, the script sends an alert (using your chosen alert frequency) and records the timestamp of that event.
Visually, the indicator displays a small table at the top center of your chart. For each watched symbol, it shows four columns: the symbol name, its latest close price (in the chart’s timeframe), the target price you set, and the last time an alert was emitted (formatted as MM.dd HH:mm:ss). By comparing the previous close to the current close and checking against the stored “lastAlertTime,” the script ensures that you receive exactly one alert per crossing event per bar.
In short, the key features are:
Input up to ten symbols with their corresponding float price targets.
Automatically check each symbol’s previous and current close values every bar.
Trigger a single alert when price crosses a target—either upward or downward.
Maintain a map of last alert timestamps to prevent duplicate notifications.
Display a real-time table listing each symbol’s current price, target, and last alert time.
Whenever you need to keep tabs on multiple instruments across different timeframes without manually tracking price levels, simply add this indicator to your chart. It runs in the background and pushes alerts as soon as any watched symbol touches its defined threshold.
NY ORB + Fakeout Detector🗽 NY ORB + Fakeout Detector
This indicator automatically plots the New York Opening Range (ORB) based on the first 15 minutes of the NY session (15:30–15:45 CEST / 13:30–13:45 UTC) and detects potential fakeouts (false breakouts).
🔍 Key Features:
✅ Plots ORB high and low based on the 15-minute NY open range
✅ Automatically detects fake breakouts (price wicks beyond the box but closes back inside)
✅ Visual markers:
🔺 "Fake ↑" if a fake breakout occurs above the range
🔻 "Fake ↓" if a fake breakout occurs below the range
✅ Gray background highlights the ORB session window
✅ Designed for scalping and short-term breakout strategies
🧠 Best For:
Intraday traders looking for NY volatility setups
Scalpers using ORB-based entries
Traders seeking early-session fakeout traps to avoid false signals
Those combining with EMA 12/21, volume, or other confluence tools
Position Size Calculator ProPosition Size Calculator Pro is a professional risk management tool that helps traders calculate optimal position sizes based on their account size, risk tolerance, and trade setup. The indicator provides real-time calculations with interactive price lines and a comprehensive horizontal table display for quick decision-making.
✨ Key Features
Multiple Entry Modes: Current price, manual price, or interactive buy line
Flexible Stop Loss Options: LOD (Low of Day), manual price, percentage-based, or interactive stop line
Advanced Risk Calculations: Includes brokerage impact and adjusted risk metrics
Interactive Price Lines: Visual buy and stop loss lines with real-time updates
Horizontal Table Display: Compact 2-row table showing all critical metrics
Smart Color Coding: Visual feedback based on risk and allocation levels
Professional UI: Clean, modern interface with intuitive controls
Indian Market Ready: Optimized for Indian trading with ₹ currency display
🔧 Input Parameters
💰 Risk Management
Account Size (₹): Total trading capital (default: 10,00,000)
Risk per Trade (%): Maximum risk percentage per trade (default: 0.25%, range: 0.01-5%)
Brokerage (%): Combined buy and sell brokerage (default: 0.12%, range: 0-2%)
📊 Entry & Stop Loss
Entry Mode: Choose between Current Price, Manual Price, or Buy Line
Manual Entry Price: Custom entry price (when Manual Price selected)
Stop Loss Mode: LOD SL, Manual SL, Manual SL %, or SL Line
Manual Stop Loss: Custom stop loss price
SL Percentage (%): Percentage below entry for stop loss (default: 2%, range: 0.1-20%)
📈 Interactive Lines
Buy Line Price: Interactive buy line (click on chart to set)
Stop Loss Line: Interactive stop loss line (click on chart to set)
Show Lines: Toggle line visibility
🎨 Display Options
Show Table: Toggle calculation table visibility
Table Size: Adjustable from tiny to huge
Position: Top, middle, or bottom placement
Alignment: Left, center, or right alignment
Update Frequency: Real-time or bar close
📊 Calculation Methodology
Position Size Formula
Position Size = (Account Size × Risk %) ÷ (Adjusted Risk per Share)
Risk Calculations
Base Risk: |(Entry Price - Stop Loss)| ÷ Entry Price × 100
Adjusted Risk: Includes brokerage impact on both entry and exit
Risk Amount: Position Size × Base Risk per Share
Brokerage Impact
Entry with Brokerage: Entry Price × (1 + Brokerage% ÷ 200)
Exit with Brokerage: Stop Loss × (1 - Brokerage% ÷ 200)
🎮 How to Use
Basic Setup
Set your account size and risk percentage
Configure brokerage percentage according to your broker
Choose entry and stop loss modes
The calculator automatically updates position size
Interactive Lines Setup
⚠️ IMPORTANT: After selecting line modes, refresh the chart to ensure lines are visible
For Buy Line:
Select Entry Mode: "Buy Line"
Set "Buy Line Price" or leave 0 for current price
Refresh chart to see the green buy line
Adjust price by clicking on chart or changing input value
For Stop Loss Line:
Select Stop Loss Mode: "SL Line"
Set "Stop Loss Line" or leave 0 for current low
Refresh chart to see the red stop loss line
Adjust price by clicking on chart or changing input value
Table Information
The horizontal calculation table displays:
SL: Stop Loss price
Entry: Entry price level
Risk%: Adjusted risk percentage (with brokerage)
SL%: Base stop loss risk percentage
Cap%: Account risk percentage setting
Qty: Recommended quantity to buy
Investment: Total investment amount required
Alloc%: Portfolio allocation percentage
Risk ₹: Total risk amount in Rupees
Color Coding Guide
Green Values: Positive/profitable metrics
Red Values: Risk/loss related metrics
Orange Values: Warning levels (high risk/allocation)
Blue Headers: Table headers
Bright Green Line: Buy line with target icon
Bright Red Line: Stop loss line with shield icon
🚨 Alert Conditions
Built-in Alerts
High Allocation Warning: Triggers when position exceeds 20% of account
High Risk Warning: Triggers when stop loss risk exceeds 5%
Invalid Position: Triggers when calculation parameters are invalid
Setting Up Alerts
Click "Add Alert" on the chart
Select "Position Size Calculator Pro"
Choose desired alert condition
Configure notification settings
⚠️ Important Notes & Troubleshooting
Interactive Lines
Lines not visible? Refresh the chart after selecting line modes
Lines moving together? Each line operates independently - check you're adjusting the correct price input
Default behavior: Buy line starts at current price, Stop line starts at current low
Price = 0: Uses automatic defaults (current price/low)
Risk Disclaimers
This tool is for educational purposes only
Always verify calculations independently
Consider market conditions, gaps, and liquidity
Past performance doesn't guarantee future results
Technical Limitations
Interactive lines require chart refresh for initial visibility
Calculations update based on selected frequency
Maximum 10 lines and 10 labels on chart simultaneously
Best Practices
Always set realistic account size
Never risk more than you can afford to lose
Consider slippage and market gaps in volatile conditions
Review calculations before placing actual trades
Use appropriate position sizing for your trading strategy
Refresh chart when switching between line modes
🛠️ Technical Requirements
TradingView account (any tier)
Pine Script v6 compatibility
Modern browser for interactive features
Real-time or delayed data feed
📈 Performance Features
The script includes several optimizations:
Efficient calculation updates based on frequency setting
Smart memory management for line drawings
Conditional table updates to reduce resource usage
Optimized number formatting for better readability
🎯 Use Cases
Day Trading
Quick position sizing for intraday setups
Real-time risk assessment
Interactive line placement for entry/exit planning
Swing Trading
Portfolio allocation management
Multi-timeframe risk analysis
Position size optimization for longer holds
Investment Planning
Capital allocation for stock purchases
Risk-based position sizing
Long-term portfolio management
Disclaimer: This tool is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Always conduct your own research and consider seeking advice from qualified financial professionals.
FX Fix with Adjustable TimezoneFX Fix Time Highlighter
This indicator visually highlights candlesticks at a user-defined time and timezone to help traders easily identify when the FX fix occurs. Simply set your preferred timezone and the exact time you want to mark on the chart, and the indicator will automatically highlight the corresponding candlesticks.
Ideal for forex traders who want a clear visual reference of the FX fix window, aiding in analysis of price behavior during this key market event.
Features:
Customizable timezone selection
Adjustable highlight time (hour and minute)
Automatic candlestick highlighting at the chosen time
Supports all timeframes
Use this tool to better understand market dynamics around the FX fix and improve your trading decisions.
The LEAP Contest - Symbol & Max Position Table TrackerDescription:
This indicator tracks the maximum contracts allowed to be traded for TradingView’s *"The Leap"* Contest. It displays a horizontal table at the bottom right of your chart showing up to 20 symbols along with their maximum allowable open contract positions.
Use case:
Designed specifically for traders participating in *The Leap* Contest on TradingView.
Users need to enter the symbol and the maximum contracts allowed for that symbol in the settings menu for each new contest.
It provides a quick reference to ensure compliance with contest rules on maximum position sizes.
How it works:
The table shows two rows: the top row displays the symbol name, and the bottom row shows the max contract limit.
If the currently loaded chart symbol matches any symbol in the list, its text color changes to yellow .
Customization:
Symbols and limits must be updated in the indicator’s settings before each contest to reflect the current rules.
[Top] Simple Position + SL CalculatorThis indicator is a user-friendly tool designed to help traders easily calculate optimal position sizing, determine suitable stop-loss levels, and quantify maximum potential losses in dollar terms based on their personalized trading parameters.
Key Features:
Position Size Calculation: Automatically computes the number of shares to purchase based on the trader’s total account size and specified percentage of the account allocated per trade.
Stop-Loss Level: Suggests an appropriate stop-loss price point calculated based on the trader’s defined risk percentage per trade.
Max Loss Visualization: Clearly displays the maximum potential loss (in dollars) should the stop-loss be triggered.
Customizable Interface: Provides the flexibility to place the calculation table in different chart positions (Top Left, Top Right, Bottom Left, Bottom Right) according to user preference.
How to Use:
Enter your total Account Size.
Set the desired Position Size as a percentage of your account. (Typically, 1%–5% per trade is recommended for cash accounts.)
Define the Risk per Trade percentage (commonly between 0.05%–0.5%).
Choose your preferred Table Position to comfortably integrate with your trading chart.
Note:
If you identify a technical support level below the suggested stop-loss point, consider reducing your position size to manage the increased risk effectively.
Keep in mind that the calculations provided by this indicator are based solely on standard industry best practices and the specific inputs entered by you. They do not account for market volatility, news events, or any other factors outside the provided parameters. Always complement this indicator with sound technical and fundamental analysis.
ARX Sniper Checklist🔹 ARX Sniper Checklist 🔹
This script is a **manual visual checklist**, not a signal based or automated indicator.
It helps traders stay disciplined and follow step-by-step confirmation rules used in the ARX Sniper strategy.
🧠 What It Does:
- Displays a visual table on the chart
- Lets traders **manually tick boxes** to confirm their trade setup criteria
- Does **not calculate signals, alerts, or automation**
✅ Manual Checklist Items:
1. HTF Bias Confirmed
2. Key Level Marked
3. Rejection or Entry Zone Hit
4. Liquidity Sweep
5. Displacement + Rejection Block
6. Inducement / Trap Detection
7. Entry Taken Without Fear
⚠️ **Closed-source** to preserve layout. This script is purely for discipline and process not for predictive signals.
No alerts, automation, or trading signals are included.
7:30 AM ET Bar HighlighterHow it works
Step Explanation
1️⃣ hour(time, targetTZ) and minute(time, targetTZ) convert each bar’s opening time to America/New_York and check for 7 : 25.
2️⃣ When both match, isTargetBar becomes true.
3️⃣ bgcolor() paints that candle red, and plotshape() draws the white dot just above it.
Zen Lab Checklist - FNSThe Zen Lab Checklist - FNS is a simple yet powerful visual trading assistant designed to help traders maintain discipline and consistency in their trading routines. This provides a customizable on-screen checklist. This indicator allows traders to verify key conditions before entering a trade which will help identify trade quality and promote structured trading habits. This indicator is ideal for discretionary traders who follow a consistent set of entry rules.
✅ Key Features
Customizable Checklist Items:
Define up to 6 checklist labels with on/off toggle switches to track your trade criteria.
Visual Feedback:
Each checklist item displays a ✅ checkmark when conditions are met or a ❌ cross when not. Colors are visually distinct — green for confirmed, red for not confirmed.
Progress Tracker:
A "Trade Score" footer calculates a "trade score" percentage, helping you quickly assess the trade idea quality and readiness.
Table Position Control:
Easily adjust the table’s position on your chart (e.g., top-right, middle-center, bottom-left) using a dropdown menu.
Custom Styling Options:
- Change background and font color of checklist rows.
- Set font size (tiny to huge).
- Set the header and footer colors separately for visual contrast. (default is green background with white font)
📌 How to Use
- Open the indicator settings.
- Label your checklist items to match your personal or strategy-specific rules.
- Toggle the corresponding switches based on your trade setup conditions.
- Review the on-chart checklist and "Trade Score" to confirm your trade decision.
🎯 Why Use This?
- Discipline: Keeps you aligned with your trading plan.
- Clarity: Clear visual indicator of trade readiness.
- Efficiency: Saves time by centralizing your checklist visually on your chart.
- Custom Fit: Adapt the labels and styling to match your strategy or preferences.
⚠️ Notes
This is a manual checklist, meaning you control the toggle switches based on your judgment.
Ideal for discretionary traders who follow a consistent set of entry rules.
TICK Extreme Levels & AlertsAutomatically draws horizontal lines at +1000 and -1000 TICK levels
Sends alerts when TICK crosses those levels (for potential scalping/reversal setups)
Strategy: How to Use TICK in Real-Time Trading
1. Confirm Market Breadth
Use TICK to confirm broad participation in the move:
• Long S&P futures or SPY? Only buy breakouts if TICK is above +600 to +1000
• Shorting? Confirm with TICK below –600 to –1000
2. Fade Extremes for Scalps
Look for reversals at extreme levels:
• Fade +1200+: market likely overbought short term → scalp short
• Fade –1200–: market likely oversold → scalp long
Use in combo with other signals (like price exhaustion, candlestick reversal, or VWAP touches)
3. Avoid Trading in the Choppy Zone
If TICK remains between –400 and +400, institutions are not committed. This is where fakeouts are common.
4. Time Entries with TICK Swings
For example:
• TICK moves from –800 to +600 = momentum shift → look for long entries
• TICK stalling around +1000 = momentum climax → partial profit or fade play
Macro TimerPlease note these session macros are according to ICT and this is ONLY the AM macro.
This indicator provides a visual countdown timer for daily macro session opens and closes. It displays a UI panel on the right side of the chart with three stacked boxes:
The top box labels the indicator as "Macro Indicator".
The middle box shows a live countdown timer.
The bottom box indicates whether the countdown is for the macro session open (9:50 AM) or close (10:10 AM), based on the current time.
The tool helps traders stay aware of key macro timing windows without manually tracking the clock, improving time-based strategy execution and session awareness.
Visible BarsThis utility script displays the number of visible bars currently on your chart and helps you monitor your zoom level in real time.
Shows a table in the top-right corner with the visible bar count
Highlights in green if the bar count is within your preferred range
Highlights in red if you're too zoomed in or out
Includes easy-to-adjust settings for min and max acceptable bar counts
Useful for traders using strategies that depend on consistent zoom/perspective
Ideal for manual traders who want consistent chart context or developers testing visual scripts that depend on screen real estate.
1A Monthly P&L Table - Using Library1A Monthly P&L Table: Track Your Performance Month-by-Month
Overview:
The 1A Monthly P&L Table is a straightforward yet powerful indicator designed to give you an immediate overview of your asset's (or strategy's) percentage performance on a monthly basis. Displayed conveniently in the bottom-right corner of your chart, this tool helps you quickly assess historical gains and losses, making it easier to analyze trends in performance over time.
Key Features:
Monthly Performance at a Glance: Clearly see the percentage change for each past month.
Cumulative P&L: A running total of the displayed monthly P&L is provided, giving you a quick sum of performance over the selected period.
Customizable Display:
Months to Display: Choose how many past months you want to see in the table (from 1 to 60 months).
Text Size: Adjust the text size (Tiny, Small, Normal, Large, Huge) to fit your viewing preferences.
Text Color: Customize the color of the text for better visibility against your chart background.
Intraday & Daily Compatibility: The table is optimized to display on daily and intraday timeframes, ensuring it's relevant for various trading styles. (Note: For very long-term analysis on weekly/monthly charts, you might consider other tools, as this focuses on granular monthly P&L.)
How It Works:
The indicator calculates the percentage change from the close of the previous month to the close of the current month. For the very first month displayed, it calculates the P&L from the opening price of the chart's first bar to the close of that month. This data is then neatly organized into a table, updated on the last bar of the day or session.
Ideal For:
Traders and investors who want a quick, visual summary of monthly performance.
Analyzing seasonal trends or consistent periods of profitability/drawdown.
Supplementing backtesting results with a clear month-by-month breakdown.
Settings:
Text Color: Changes the color of all text within the table.
Text Size: Controls the font size of the table content.
Months to Display: Determines the number of recent months included in the table.