OPEN-SOURCE SCRIPT
Güncellendi Market Trend Strength Indicator

1. The current stock price is above both the 150-day (30-week) and the 200- day (40- week) moving average price lines.
2. The 150-day moving average is above the 200-day moving average.
3. The 200-day moving average line is trending up for at least 1 month ( preferably 4–5 months minimum in most cases).
4. The 50-day (10-week) moving average is above both the 150-day and 200-day moving averages
5. The current stock price is trading above the 50-day moving average.
6. The current stock price is at least 30 percent above its 52-week low. (Many of the best selections will be 100 percent, 300 percent, or greater above their 52-week low before they emerge from a solid consolidation period and mount a large scale advance.)
7. The current stock price is within at least 25 percent of its 52-week high(the closer to a new high the better).
8. It also indicates if the volumes are decreasing during price consolidation or retracement.
This is based on Mark Minervini's strategy
2. The 150-day moving average is above the 200-day moving average.
3. The 200-day moving average line is trending up for at least 1 month ( preferably 4–5 months minimum in most cases).
4. The 50-day (10-week) moving average is above both the 150-day and 200-day moving averages
5. The current stock price is trading above the 50-day moving average.
6. The current stock price is at least 30 percent above its 52-week low. (Many of the best selections will be 100 percent, 300 percent, or greater above their 52-week low before they emerge from a solid consolidation period and mount a large scale advance.)
7. The current stock price is within at least 25 percent of its 52-week high(the closer to a new high the better).
8. It also indicates if the volumes are decreasing during price consolidation or retracement.
This is based on Mark Minervini's strategy
Sürüm Notları
Stop Loss Features:1. Optimal Stop Loss Calculation
The indicator automatically finds the best stop loss by checking multiple support levels:
10-day swing low (tightest, most aggressive)
Previous day's low
20-day swing low (medium-term support)
50-day moving average (dynamic support)
Fixed percentage (default 6%, if no support level is suitable)
2. Smart Selection Logic
Prioritizes the tightest stop that's still reasonable (between 2% and your max %)
This gives you the best risk-reward ratio
Avoids stops that are too tight (<2%) which could get stopped out on normal volatility
3. Visual Elements
Red crosses plot the stop loss level on the chart
Red shaded area between current price and stop loss
Label showing exact stop loss price and percentage distance
Red row in table displaying stop loss type and distance
4. Stop Loss Alert
Added alert when price hits the stop loss level
5. Adjustable Settings
You can change the max stop loss % in indicator settings (default: 6%)
Range: 1% to 10%
How It Works:
The indicator looks for the nearest support level within your max stop loss percentage. For example:
If 10-day low is 3.5% away → Uses that (tightest stop)
If 10-day low is 7% away → Checks other levels
If 50-day MA is 5.2% away → Uses that instead
If no support within 6% → Uses 6% fixed stop
This gives you the most optimal stop loss based on actual price structure rather than arbitrary percentages!
Sürüm Notları
Minor changes to the appearance of the table.Sürüm Notları
Gave option to choose between SMA and EMA to the user.Sürüm Notları
Condition 9: Breakout with Increasing VolumeHow it works:
Detects when price breaks above a 20-day consolidation range
Consolidation is identified when the price range is less than 15% (tight range)
Breakout occurs when price closes above the consolidation high
Volume must be at least 50% above the 50-day average volume
If already in an uptrend (above recent highs), condition passes automatically
Visual Indicators:
🔷 Blue diamond with "BO" text appears above bars when a breakout with volume is detected
Shows the volume ratio percentage in the table
What Makes a Valid Breakout:
Price was consolidating (tight range)
Price breaks above consolidation high
Volume surges (1.5x or more above average)
This is a powerful confirmation signal that institutional buyers are entering, often marking the beginning of a strong move!
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.