OPEN-SOURCE SCRIPT
Telah dikemas kini

Moving Averages with ADR%/ATR/52W Table

142
Option to select Moving Averages as per different time frames.
ADR%: It should be above 5% as it is a sign of strength and stop loss should be lower than the ADR%. It should be calculated for last 20 Days.
ATR%: It is calculated as per the previous 14 Candles.

Minervini’s 52-Week High and Low Principles:
52-Week High:
Key Principle: Minervini prefers stocks trading near or at their 52-week highs, as this indicates strong bullish momentum and institutional buying interest. A stock at or close to its 52-week high is often breaking out of consolidation or resistance, signaling potential for further upside.

Criteria:
The stock should ideally be within 25% of its 52-week high (i.e., no more than 25% below the high). This is considered the “pivot point” or “buy zone” where the stock is still in a strong uptrend.

A breakout above the 52-week high, especially on high volume, is a bullish signal, often marking the start of a new uptrend.

Rationale: Stocks near their 52-week highs are less likely to face overhead resistance (supply from previous buyers at higher prices) and are attractive to momentum traders and institutions.

52-Week Low:
Key Principle: Minervini advises avoiding stocks trading close to their 52-week lows, as they often indicate weakness, lack of demand, or bearish sentiment. Instead, he looks for stocks that are significantly above their 52-week lows, demonstrating strength and recovery.

Criteria:
The stock should be at least 30% above its 52-week low to confirm it has moved away from a downtrend and is showing relative strength.

Stocks too close to their 52-week lows are considered risky, as they may be in a prolonged downtrend or lack institutional support.

Rationale: A stock well above its 52-week low has likely absorbed selling pressure and is attracting buyers, indicating a healthier trend and potential for further gains.

Application in Trading:
Stock Selection: Minervini uses these criteria as part of his SEPA (Specific Entry Point Analysis) methodology to filter stocks. Stocks meeting the 52-week high/low criteria are more likely to be in a “Stage 2” uptrend (per his adaptation of Stan Weinstein’s stage analysis).

Breakout Strategy: He focuses on buying stocks breaking out from consolidation patterns (e.g., volatility contractions, cup-and-handle) near their 52-week highs, ideally with strong volume and tight price action.

Risk Management: Stocks too far from their 52-week highs or too close to their 52-week lows may have higher risk, either due to overextension or lack of momentum.

Dynamic Color Logic in Your Script:
Based on our previous discussions, your Pine Script incorporates Minervini’s criteria for dynamic coloring in the ADR%/ATR/52W Table:
Below 52-Week High: Text turns green if the stock is within -25% to 0% of the 52-week high (i.e., high_52w_dist >= -25 and high_52w_dist <= 0), highlighting stocks in the bullish “buy zone.”

Above 52-Week Low: Text turns green if the stock is ≥30% above the 52-week low (i.e., low_52w_dist >= 30), indicating strength and distance from weakness.

These thresholds align with Minervini’s principles to visually flag stocks meeting his momentum criteria.

Integration with Your Pine Script:
Your script already implements Minervini’s 52-week high/low principles in the table’s dynamic color logic. Here’s how it reflects his strategy:
Below 52-Week High (high_52w_dist): The condition high_52w_dist >= -25 and high_52w_dist <= 0 ensures the stock is within 25% of its 52-week high, marking it as a potential candidate for a breakout or continuation trade.

Above 52-Week Low (low_52w_dist): The condition low_52w_dist >= 30 confirms the stock is at least 30% above its 52-week low, filtering out weak stocks and highlighting those with bullish strength.

The table displays these metrics on intraday and daily charts, using daily data via request.security for accurate calculations, which supports Minervini’s focus on daily price action for entry points.
Nota Keluaran
Added Volume Surge
Nota Keluaran
Volume Surge: it is corrected and now show as per the chart time frame.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.