Trend Strength Gauge sam//@version=6
indicator("Trend Strength Gauge", overlay=true)
// Input for indicators
lengthMA = input.int(50, title="Moving Average Length")
lengthATR = input.int(14, title="ATR Length")
lengthRSI = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
// Calculating Moving Averages
maShort = ta.sma(close, lengthMA)
maLong = ta.sma(close, lengthMA * 2) // Using a longer period for trend confirmation
// Calculating ATR for volatility
atrValue = ta.atr(lengthATR)
// Calculating RSI for momentum
rsiValue = ta.rsi(close, lengthRSI)
// Trend Strength Calculation
trendDirection = maShort > maLong ? 1 : -1
volatilityFactor = atrValue / close
momentumFactor = rsiValue > rsiOverbought ? -1 : (rsiValue < rsiOversold ? 1 : 0)
// Trend Strength Formula (0 to 100)
strength = (trendDirection * 50 + volatilityFactor * 50 + momentumFactor * 50)
// Normalize strength to be between 0 and 100
strength := math.min(math.max(strength, 0), 100)
// Plot the Trend Strength Gauge as a histogram
plot(strength, title="Trend Strength", color=color.new(color.blue, 0), linewidth=2, style=plot.style_histogram)
// Color the background based on trend strength
bgcolor(strength > 70 ? color.new(color.green, 90) : (strength < 30 ? color.new(color.red, 90) : na))
// Plot the moving averages on the chart for reference
plot(maShort, title="Short MA", color=color.green, linewidth=2)
plot(maLong, title="Long MA", color=color.red, linewidth=2)
المؤشرات والاستراتيجيات
Ocean's RSIOverview
The Ocean's RSI+ is a custom implementation of the Relative Strength Index (RSI) designed to provide traders with additional insight into market conditions. It builds upon the traditional RSI by introducing custom thresholds, visual bands, and annotations, making it easier to interpret overbought and oversold conditions, potential reversals, and periods of market neutrality.
This indicator is intended to help traders identify optimal entry and exit points by analyzing price momentum and strength across predefined levels.
How to Use the Indicator
1. Identifying Market Momentum
Observe the RSI line:
When it trends above 62, the market is likely in a strong uptrend or overbought condition.
When it trends below 24, the market is likely in a downtrend or oversold condition.
2. Trading Decisions Based on Zones
Strong Buy Zone (RSI < 16):
Indicates extreme oversold conditions.
Look for reversal patterns and consider entering a long position.
Possible Reversal Zone (RSI 24-38):
Market may reverse upward soon.
Watch for confirmation of bullish momentum.
Neutral Zone (RSI 38-50):
Market is consolidating; avoid entering large positions.
Prepare for potential trend continuation or reversal.
Possible Retrace Zone (RSI 50-62):
Indicates potential for a slight retracement.
Observe price action for continuation or reversal signals.
Strong Sell Zone (RSI > 62):
Indicates high momentum; market may be overbought.
Look for bearish patterns and consider exiting or shorting.
Upper Band Zone (RSI > 80):
Extreme overbought conditions.
Market is at high risk of reversal; consider taking profits.
3. Color Shading as Visual Cues
Use the colored bands to quickly assess the market’s state:
Red: Caution, overbought levels.
Green: Potential trade opportunities.
Blue: Caution, oversold levels.
4. Confirmation with Other Indicators
Combine Ocean's RSI+ with other indicators (e.g., moving averages, MACD, or volume) for confirmation of trends and reversals.
Use price action and candlestick patterns to validate entries and exits.
Bullish & Bearish Candles with Bollinger BandsI have created pine script for tradingview. in this script I have been focus candlestick with bollinger band.
Gate by Sanskaaarema 20,50,100,200
Identify trends: By observing the direction and spacing of the EMAs.
Find potential support and resistance levels: The EMAs themselves and the filled areas between them can act as dynamic support/resistance.
Get crossover signals (with alerts): The example alerts show how to be notified of price crossing specific EMAs.
Keep the chart clean: The user-selectable EMAs allow for decluttering.
Heikin Ashi EMA Kesişim StratejisiBu kod şunları yapıyor:
Heikin Ashi mumlarını hesaplıyor
Kullanıcının belirleyebileceği iki EMA periyodu tanımlıyor (varsayılan olarak 9 ve 21)
3. Heikin Ashi kapanış fiyatlarına göre EMA'ları hesaplıyor
EMA kesişimlerini tespit ediyor
Grafik üzerinde:
Mavi çizgi: Hızlı EMA
Kırmızı çizgi: Yavaş EMA
Yeşil "AL" etiketi: Hızlı EMA yukarı kestiğinde
Kırmızı "SAT" etiketi: Hızlı EMA aşağı kestiğinde
OSB + EMA Outside Bar Trading Strategy
Buy Setup:
1. Identify a bullish Outside Bar where the high and low exceed the previous candle’s range.
2. Enter a buy trade when price breaks above the high of the Outside Bar.
3. Set a stop-loss below the Outside Bar’s low.
4. Take profit at a key resistance level or use a trailing stop for extended gains.
Sell Setup:
1. Identify a bearish Outside Bar with a high and low exceeding the prior candle’s range.
2. Enter a sell trade when price breaks below the low of the Outside Bar.
3. Place a stop-loss above the Outside Bar’s high.
4. Take profit at a support level or use a trailing stop for further downside potential.
This strategy works best in trending markets and can be enhanced with confirmation from volume, moving averages, or support/resistance levels. 🚀
Advanced Averaged Momentum Indicator (AAMI)Key Features of AAMI:
Combination of Momentum Indicators: It averages normalized values from RSI, MACD histogram, raw Momentum, and Stochastic oscillator to give a comprehensive view of momentum.
Normalization: Each component is normalized to a scale from -1 to 1 to ensure they contribute equally to the AMI calculation.
Visual Cues: The indicator includes visual levels for neutral, overbought, and oversold conditions to aid in quick decision-making.
Alerts: Basic alert conditions are included for when AMI moves into overbought or oversold territory, which traders can customize further.
Customizable: All parameters can be adjusted within TradingView to tailor the indicator to different market conditions or trading strategies.
Smoothing: Included an SMA for AMI to reduce noise and give smoother signals.
Divergence Detection: Implemented a basic divergence detection mechanism to spot potential reversals.
Usage Tips:
Overbought/Oversold: When AMI goes above 0.7, it might suggest an overbought condition, potentially signaling a sell or take profit. Below -0.7 might indicate oversold conditions, suggesting a buy opportunity.
Divergence: Watch for divergences between the AMI and price action for signals of potential trend reversals.
Crossing Zero: The AMI crossing from negative to positive might be used as a buy signal, and vice versa for a sell signal.
This script provides a new way to view momentum by consolidating multiple traditional indicators into one, potentially offering clearer signals in complex market environments.
BB & SMA Alerts (Universal)This script will:
Plot Bollinger Bands (BB 20, 2 StdDev)
Plot SMA 50 & SMA 200 for trend analysis
Send alerts when price crosses BB, SMA 50, or SMA 200
Detect Golden Cross (Bullish) & Death Cross (Bearish) signals
Do note that this is not a guarantee as markets are often irrational, hence these indicators are supposed to supplement your decision making process and not to be used as 100% truth.
The assumptions are made as a universal format that can be used for most asset classes in Equities, Futures, Crypto.
Have not tested it on Funds, Bonds.
Appendix:
Best Practice: Use 20-SMA for Bollinger Bands and keep 50/200-SMA for trend confirmation.
SMA
• Short-Term (Fast) → 9 SMA (Great for intraday trades)
• Medium-Term → 50 SMA (Good for swing trading)
• Long-Term (Slow) → 200 SMA (For overall trend direction)
BB
Why Bollinger Bands Use SMA 20?
• Shorter time frame captures price fluctuations.
• More reactive to price changes → good for reversion trades.
• If you increase it to 50 or 200, Bollinger Bands will be too wide → making it hard to trade reversion.
• Bollinger Bands (50-SMA) → Becomes less sensitive to short-term price swings.
• Bollinger Bands (200-SMA) → Almost useless for mean reversion, since price barely touches bands.
Suggested Use Case:
🔹 Use BB (20-SMA) for entry signals.
🔹 Use 50-SMA & 200-SMA to confirm trend direction.
🔹 Example Trading Strategy:
• If price touches lower BB AND is above 200-SMA → Look for a BUY.
• If price touches upper BB AND is below 200-SMA → Look for a SELL.
Dual MA CrossoverThis script does the following:
1. We define the indicator with the name “Dual MA Crossover” and set it to overlay on the chart.
2. Two user inputs are created for the fast and slow moving average lengths, with default values of 10 and 100 respectively.
3. We calculate the simple moving averages (SMA) using the `ta.sma()` function.
4. The moving averages are plotted on the chart using different colors.
5. Crossover and crossunder conditions are detected using `ta.crossover()` and `ta.crossunder()` functions.
6. Labels are created at the crossover points:
• A “BUY” label is placed below the candle when the fast MA crosses above the slow MA.
• A “SELL” label is placed above the candle when the fast MA crosses below the slow MA.
7. The labels are set to have white text as requested, with green background for buy signals and red for sell signals.
Nef33 - SMA, EMA, VWMA + RSI Overbought/Oversold + Imbalance/FVGImbalance: Se considera un imbalance alcista cuando el cierre de una vela está por encima del máximo de la vela anterior y el mínimo está por debajo del mínimo de la vela anterior. Esto crea un desajuste de precio que se marca con un color de fondo verde en el gráfico.
Un imbalance bajista se define cuando el cierre está por debajo del mínimo de la vela anterior y el máximo está por encima del máximo de la vela anterior. Esto se marca con un color de fondo rojo.
FVG (Fair Value Gap): Los gaps en el precio son similares a los imbalances. El código señala estas zonas donde hubo un desajuste de precio con las condiciones anteriores y las muestra sutilmente.
Fuerte Volumen: Si el volumen actual es mayor que el doble del promedio de volumen de los últimos 20 períodos, se considera que hay un "fuerte volumen". Esto se marca con un triángulo morado debajo de la vela.
Colores y Fondo:
El fondo verde marca un imbalance alcista.
El fondo rojo marca un imbalance bajista.
El triángulo morado marca un fuerte volumen.
Este código debería proporcionarte una forma visual de detectar imbalances y fuertes volúmenes de manera sutil, en línea con la estrategia ICT.
Doji Detector - by YustinusIndikator ini membantu dalam menemukan candlestick dengan range range minimal 0.01 (DOJI).
Nef 33 SMA, EMA, VWMA + RSI Overbought/OversoldSimple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Moving Average (VWMA), each plotted with different colors (blue, orange, and green, respectively).
Relative Strength Index (RSI), with overbought and oversold levels set to 70 and 30, respectively, and with red and green signals showing when these conditions are met.
Fair Value Gap Strategyffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffff
Scalping Fairas OilScalping trading minyak adalah strategi perdagangan yang memanfaatkan pergerakan kecil harga minyak dalam waktu singkat. Scalping dilakukan dengan membeli dan menjual minyak secara berkala.
Cara melakukan scalping trading minyak
Buka rekening trading dengan broker yang menawarkan trading minyak
Pantau berita pasar minyak, data ekonomi, dan faktor yang memengaruhi harga minyak
Analisis grafik harga minyak
Tentukan level support dan resistance utama
Atur strategi scalping
Lakukan pesanan beli atau jual berdasarkan strategi scalping saat peluang muncul
Pantau perdagangan dengan cermat
Sesuaikan level stop-loss dan take-profit jika perlu
Tutup posisi dan ambil keuntungan saat target profit tercapai
Kekurangan scalping
Scalping bisa sangat menuntut karena trader harus selalu memantau pasar dan siap mengambil tindakan dengan cepat
Scalping bisa sangat mahal karena trader harus membayar komisi dan biaya lainnya kepada broker
Scalping bukan untuk semua orang
FAISAL RAHMAN SIDIK
faisalrahmansidik@gmail.com
085345678944
Intraday Gap Detector BY(ELCHEQUE)Intraday Gap Detector
PUEDES VER EN LA GRAFICA CUANDO DEJE UN GAP UP Y UN GAP DOW
VWAP with ±2 & ±3 Sigmao integrate the VWAP and CDV logic for entry along with the ATR-based trailing stop loss for exits, we can combine the concepts and modify the strategy as follows:
Strategy Overview:
Long Entry:
Price is above VWAP.
CDV is positive (bullish).
Short Entry:
Price is below VWAP.
CDV is negative (bearish).
Exit Logic:
For Long: Use the ATR trailing stop. Exit when price crosses below the ATR line.
For Short: Use the ATR trailing stop. Exit when price crosses above the ATR line.
MA 200 crossing priceHow to Enable Alerts in TradingView:
Apply the indicator to your chart.
Click on "Alerts" (clock icon).
Click "Create Alert".
Under Condition, select your indicator name.
Choose "Any alert function call" (since we are using alertcondition()).
Set up notification preferences (popup, email, webhook, etc.).
Click "Create".
Now, when the price crosses above or below the 200 EMA, an alert will trigger! 🚀
Smart Money Zones (HTF)арапрт сраспр м рп мрпот мрпот мопот опмо мрмпот итьсам ртровк уекыимо протимчаквнрти
EMA Crossover with Candle Color //@version=5
indicator("EMA Crossover with Candle Color", overlay=true)
// Input untuk EMA
shortLength = input(9, title="Short EMA")
longLength = input(21, title="Long EMA")
// Menghitung EMA
shortEMA = ta.ema(close, shortLength)
longEMA = ta.ema(close, longLength)
// Menentukan persilangan
crossUp = ta.crossover(shortEMA, longEMA)
crossDown = ta.crossunder(shortEMA, longEMA)
// Warna candle berubah ketika terjadi persilangan
barColor = crossUp ? color.green : crossDown ? color.red : na
// Plot EMA
plot(shortEMA, title="Short EMA", color=color.blue, linewidth=2)
plot(longEMA, title="Long EMA", color=color.orange, linewidth=2)
// Memberikan tanda panah pada persilangan
plotshape(crossUp, location=location.belowbar, color=color.green, style=shape.labelup, title="Cross Up")
plotshape(crossDown, location=location.abovebar, color=color.red, style=shape.labeldown, title="Cross Down")
// Mengubah warna candle saat persilangan
barcolor(barColor)
Custom Strategy with Enhancements (Version 6)Custom Strategy with Enhancements (Version 6
Sure! I’ll adjust the script to reflect the trading time window from 9:30 AM to 3:30 PM. The time range can be defined more specifically by converting these hours into Unix timestamps, and we will check if the current time falls within this period.
Valuation Ratios PE PB PSThis Indicator Will Show You Below Valuations Ratios:
1. Price to Earnings
2. Price to Book
3. Price to Sales
Golden MovingThis indicator contain 4 Moving Averages as Band to help Traders to just trade by the trend of the Market.
You can easily adjust the the length and color of the moving without any limitation.
It also have Alert which you can only use for the Cross of TWO of the Moving and i strongly advise you to use it for the short moving like 9 & 21 .
Please comment me if you feel like you need any more information or help or any changes.
Thanks a Lot