SHAAKUNI INDICATOR//@version=5
indicator("Simple Moving Average Crossover", overlay=true)
// Input for Moving Averages
fastLength = input.int(10, title="Fast MA Length")
slowLength = input.int(20, title="Slow MA Length")
// Calculating Moving Averages
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
// Plotting Moving Averages
plot(fastMA, color=color.green, title="Fast MA")
plot(slowMA, color=color.red, title="Slow MA")
// Highlight Buy/Sell Signals
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
Indicators and strategies
Gold Trading Signals + Trendlines + Patterns//@version=5
indicator("Gold Trading Signals + Trendlines + Patterns", overlay=true)
// === تنظیمات ورودی ===
emaShortLength = input.int(50, title="EMA Short Length", minval=1)
emaLongLength = input.int(200, title="EMA Long Length", minval=1)
rsiLength = input.int(14, title="RSI Length", minval=1)
atrMultiplierSL = input.float(1.5, title="ATR Multiplier for Stop Loss", minval=0.1)
tpMultiplier = input.float(2.0, title="Take Profit Multiplier", minval=1.0)
pivotLookback = input.int(5, title="Pivot Lookback Period", minval=2)
// === اندیکاتورها ===
emaShort = ta.ema(close, emaShortLength)
emaLong = ta.ema(close, emaLongLength)
rsi = ta.rsi(close, rsiLength)
atr = ta.atr(14)
// === قوانین ورود ===
longCondition = close > emaShort and emaShort > emaLong and rsi > 40
shortCondition = close < emaShort and emaShort < emaLong and rsi < 60
// === مدیریت ریسک ===
stopLossLong = close - atr * atrMultiplierSL
takeProfitLong = close + atr * atrMultiplierSL * tpMultiplier
stopLossShort = close + atr * atrMultiplierSL
takeProfitShort = close - atr * atrMultiplierSL * tpMultiplier
// === سیگنالهای بصری ===
plotshape(series=longCondition, style=shape.labelup, location=location.belowbar, color=color.green, text="BUY", size=size.small)
plotshape(series=shortCondition, style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL", size=size.small)
if longCondition
line.new(x1=bar_index, y1=stopLossLong, x2=bar_index + 10, y2=stopLossLong, color=color.red, width=1, style=line.style_dotted)
line.new(x1=bar_index, y1=takeProfitLong, x2=bar_index + 10, y2=takeProfitLong, color=color.green, width=1, style=line.style_dotted)
if shortCondition
line.new(x1=bar_index, y1=stopLossShort, x2=bar_index + 10, y2=stopLossShort, color=color.red, width=1, style=line.style_dotted)
line.new(x1=bar_index, y1=takeProfitShort, x2=bar_index + 10, y2=takeProfitShort, color=color.green, width=1, style=line.style_dotted)
// === خطوط روند ===
// محاسبه سقفها و کفها (Pivot Points)
pivotHigh = ta.pivothigh(high, pivotLookback, pivotLookback)
pivotLow = ta.pivotlow(low, pivotLookback, pivotLookback)
// رسم خطوط روند بر اساس سقفها و کفها
var line upTrendline = na
var line downTrendline = na
if (not na(pivotLow))
if (na(upTrendline))
upTrendline := line.new(x1=bar_index , y1=pivotLow, x2=bar_index, y2=low, color=color.green, width=1, style=line.style_solid)
else
line.set_xy2(upTrendline, bar_index, low)
if (not na(pivotHigh))
if (na(downTrendline))
downTrendline := line.new(x1=bar_index , y1=pivotHigh, x2=bar_index, y2=high, color=color.red, width=1, style=line.style_solid)
else
line.set_xy2(downTrendline, bar_index, high)
// === الگوهای قیمتی ===
// شناسایی مثلث (Triangle)
isTriangle = ta.crossover(emaShort, emaLong) or ta.crossunder(emaShort, emaLong)
if isTriangle
label.new(bar_index, high, "Triangle", style=label.style_circle, color=color.orange, textcolor=color.white)
// === نمایش EMAها ===
plot(emaShort, color=color.blue, title="EMA 50", linewidth=2)
plot(emaLong, color=color.red, title="EMA 200", linewidth=2)
// === نمایش RSI ===
hline(70, "Overbought (70)", color=color.gray, linestyle=hline.style_dotted)
hline(30, "Oversold (30)", color=color.gray, linestyle=hline.style_dotted)
Inside/Outside Bar Direction Highlighter
Here’s a trading indicator in Pine Script (v6) that combines the essence of the Inside Bar, Outside Bar, and directional patterns inspired by TT3 Theory. This indicator highlights bars based on their classification as inside, outside, or directional and provides potential trade signals.
Inside Outside Indicator
Explanation:
Bar Classification:
Inside Bar: Current high is less than the previous high, and the low is greater than the previous low.
Outside Bar: Current high exceeds the previous high, and the low breaks below the previous low.
Up/Down Bars: Closing prices relative to the previous high/low.
Visual Highlights:
Bars are visually highlighted with colors for easy identification.
Trade Signals:
Long Signal: When the close crosses above the previous high and it's a directional up bar.
Short Signal: When the close crosses below the previous low and it's a directional down bar.
Customizable Inputs:
Colors for inside, outside, up, and down bars can be modified.
You can copy and paste this script into the Pine Editor on TradingView to see it in action. Adjust the logic to fit your trading strategy as needed.
You said:
summary of how to use this indicator without buy/sell signal
ChatGPT said:
ChatGPT
How to Use the Inside/Outside Bar Direction Highlighter Indicator (Without Buy/Sell Signals)
Understand the Bar Classifications:
Inside Bars: Highlighted in blue (default). These indicate periods of market consolidation. Look for potential breakouts in either direction.
Outside Bars: Highlighted in orange (default). These represent increased volatility, where both higher highs and lower lows are made. Watch for reversals or continuations based on broader trends.
Directional Up Bars: Highlighted in green (default). These occur when the current close is above the previous high, signaling bullish momentum.
Directional Down Bars: Highlighted in red (default). These occur when the current close is below the previous low, indicating bearish momentum.
Identify Key Patterns:
Use the highlighted bars to spot price action setups, such as:
Breakouts from inside bars.
Reversal signals following outside bars.
Continuation patterns when directional bars align with the trend.
Combine with Your Analysis:
Trend Analysis: Match bar classifications with trend direction on larger timeframes (e.g., daily, 4-hour).
Support/Resistance: Use inside and outside bars near key levels for confirmation or reversal signals.
Volume: Higher volume on directional bars strengthens the momentum signal.
Customize the Colors:
Adjust the bar highlight colors to fit your chart theme for better visibility.
No Automatic Signals:
This indicator doesn’t provide explicit buy/sell recommendations. Instead, use the visual highlights to make informed decisions based on your trading strategy.
By interpreting these bar patterns, you can better gauge market behavior and make more confident decisions without relying on preset signals.
Volatility-Weighted MA (VWMA)Interpretation:
VWMA adjusts to changes in market volatility, offering dynamic support and resistance levels.
Sharp deviations from VWMA often signal potential reversals or breakouts.
How to Use for Trades:
Mean Reversion: Look for price rejections at VWMA in low-volatility environments.
Trend Breakout: Trade in the direction of the breakout when price closes strongly above/below VWMA in high-volatility conditions.
Cripto Indicator SwingTradeInclui em um único indicador vários métodos visando ajudar aqueles que usam a conta free do tradingview e somente podem ter dois indicadores simultaneamente nos graficos.
EMA
AMA
Pivot
Super Trend
Nuvem de Ishimoku
Close Within Top or Bottom 10%Green/Red background lines with form on every green candle that closes within the top 10% of the candle (wick included) or form on every red candles that closes within the bottom 10% of the candle (wick included). The green and red background colors can be changed
Ultimate Buy/Sell IndicatorUltimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B Ultimate Buy and Sell Indicator For Johnny B
Dynamic Volatility Heatmap (ATR)How the Script Works
Dynamic Thresholds:
atrLow and atrHigh are calculated as percentiles (20% and 80% by default) of ATR values over the last double the ATR period (28 days if ATR is 14).
This creates thresholds that adapt to recent market conditions.
Background Heatmap:
Green: ATR is below the low threshold, indicating calm markets (options are cheap).
Red: ATR is above the high threshold, signaling elevated volatility (options are expensive).
Yellow: ATR is within the normal range, showing neutral market conditions.
Overlay Lines:
]Dynamic lines for atrLow and atrHigh help visualize thresholds on the chart.
Interpretation for Trading
Green Zone (Low ATR):
Interpretation: The market is calm, and options are likely underpriced.
Trade Setup: Favor buying options (e.g., long straddles or long calls/puts) to profit from potential volatility increases.
Red Zone (High ATR):
Interpretation: The market is volatile, and options are likely overpriced.
Trade Setup: Favor selling options (e.g., credit spreads or iron condors) to benefit from volatility decay.
Yellow Zone (Neutral ATR):
Interpretation: Volatility is within typical levels, offering no strong signal.
Trade Setup: Combine with other indicators, such as gamma levels or Bollinger Bands, for confirmation.
5. Enhancing with Other Indicators
Combine with Bollinger Bands:
Overlay Bollinger Bands to identify price extremes and align them with volatility heatmap signals.
MERCURY-PRO by DrAbhiramSivprasd“MERCURYPRO”
The MERCURYPRO indicator is a custom technical analysis tool designed to provide dynamic trend signals based on a combination of the Chande Momentum Oscillator (CMO) and Standard Deviation (StDev). This indicator helps traders identify trend reversals or continuation based on the behavior of the price and momentum.
Key Features:
• Source Input: The indicator works with any price data, with the default set to close, which represents the closing price of each bar.
• Length Input: A period (default value 9) is used to determine the calculation window for the Chande Momentum Oscillator and Standard Deviation.
• Fixed CMO Length Option: Users can choose whether to use a fixed CMO length of 9 or adjust the length to the user-defined pds value.
• Calculation Method: The indicator allows switching between using the Chande Momentum Oscillator (CMO) or Standard Deviation (StDev) for the momentum calculation.
• Alpha: The smoothing factor used in the calculation of the MERCURYPRO value, which is based on the length of the period input (pds).
Core Calculation:
1. Momentum Calculation: The script calculates the momentum by determining the change in the source price (e.g., close) from one period to the next.
2. Chande Momentum Oscillator (CMO): The positive and negative momentum components are calculated and then summed over the specified period. This value is normalized to a percentage to determine the momentum strength.
3. K Value Calculation: The script selects either the CMO or Standard Deviation (depending on the user setting) to calculate the k value, which represents the dynamic price momentum.
4. MERCURYPRO Line: The final output of the indicator, MERCURYPRO, is computed using a weighted average of the k value and the previous MERCURYPRO value. The line is smoothed using the Alpha parameter.
Plot and Signal Generation:
• Color Coding: The line is color-coded based on the direction of MERCURYPRO:
• Blue: The trend is bullish (MERCURYPRO is rising).
• Maroon: The trend is bearish (MERCURYPRO is falling).
• Default Blue: Neutral or sideways market conditions.
• Plotting: The MERCURYPRO line is plotted with varying colors depending on the trend direction.
Alerts:
• Color Change Alert: The indicator has an alert condition based on when the MERCURYPRO line crosses its previous value. This helps traders stay informed about potential trend reversals or continuation signals.
Use Case:
• Trend Confirmation: Traders can use the MERCURYPRO indicator to identify whether the market is in a strong trend or not.
• Signal for Entries/Exits: The color change and crossovers of the MERCURYPRO line can be used as entry or exit signals, depending on the trader’s strategy.
Overall Purpose:
The MERCURYPRO indicator combines momentum analysis with smoothing techniques to offer a dynamic, responsive tool for identifying market trends and potential reversals. It is particularly useful in conjunction with other technical indicators to provide confirmation for trade setups.
How to Use the MERCURYPRO Indicator:
The MERCURYPRO indicator is designed to help traders identify trend reversals and market conditions. Here are a few ways you can use it:
1. Trend Confirmation (Bullish or Bearish)
• Bullish Trend: When the MERCURYPRO line is colored Blue, it indicates a rising trend, suggesting that the market is bullish.
• Action: You can consider entering long positions when the line turns blue, or holding your existing positions if you’re already long.
• Bearish Trend: When the MERCURYPRO line is colored Maroon, it signals a downward trend, indicating a bearish market.
• Action: You may consider entering short positions or closing any long positions when the line turns maroon.
2. Trend Reversal Alerts
• Color Change: The MERCURYPRO indicator changes color when there’s a trend reversal. The alert condition triggers when the MERCURYPRO crosses above or below its previous value, signaling a potential shift in the trend.
• Action: You can use this alert as a signal to monitor potential entry or exit points for trades. For example, a crossover from maroon to blue could indicate a potential buying opportunity, while a crossover from blue to maroon could suggest a selling opportunity.
3. Use with Other Indicators for Confirmation
• While the MERCURYPRO provides valuable trend insights, it’s often more effective when used in combination with other indicators like RSI (Relative Strength Index), MACD, or moving averages to confirm signals.
• Example: If MERCURYPRO turns blue and RSI is above 50, it may signal a strong bullish trend, enhancing the confidence to enter a long trade.
4. Divergence
• Watch for divergence between the MERCURYPRO line and the price chart:
• Bullish Divergence: If the price makes new lows while MERCURYPRO is showing higher lows, it suggests a potential bullish reversal.
• Bearish Divergence: If the price makes new highs while MERCURYPRO is showing lower highs, it suggests a potential bearish reversal.
Example of Use:
• Example 1: If the MERCURYPRO line changes from maroon to blue, you might enter a long position. After the MERCURYPRO line turns blue, use an alert to monitor the price action. If other indicators (like RSI) also suggest strength, your confidence in the trade will increase.
• Example 2: If the MERCURYPRO line shifts from blue to maroon, it could be a signal to close long positions and consider shorting the market if other conditions align (e.g., moving averages also turn bearish).
Warning for Using the MERCURYPRO Indicator:
1. Lagging Indicator:
• The MERCURYPRO is a lagging indicator, meaning it responds to price changes after they have occurred. This may delay entry and exit signals, and it’s crucial to combine it with other leading indicators to get timely information.
2. False Signals in Range-bound Markets:
• In choppy or sideways markets, the MERCURYPRO line can produce false signals, flipping between blue and maroon frequently without showing a clear trend. It’s important to avoid trading based on these false signals when the market is not trending.
3. Overreliance on One Indicator:
• Relying solely on MERCURYPRO can be risky. Always confirm signals with additional tools like volume analysis, price action, or other indicators to increase the accuracy of your trades.
4. Market Conditions Matter:
• The indicator may work well in trending markets, but in highly volatile or news-driven environments, it may provide misleading signals. Ensure that you take market fundamentals and external news events into consideration before acting on the indicator’s signals.
5. Risk Management:
• As with any technical indicator, MERCURYPRO is not infallible. Always use appropriate risk management techniques such as stop-loss orders to protect your capital. Never risk more than you can afford to lose on a trade.
6. Backtest First:
• Before implementing MERCURYPRO in live trading, make sure to backtest it on historical data. Test the strategy with various market conditions to assess its effectiveness and identify any potential weaknesses.
By considering these guidelines and warnings, you can use the MERCURYPRO indicator more effectively and mitigate potential risks in your trading strategy.
MACD Alış/Satış Siqnalları//@version=5
indicator("MACD Alış/Satış Siqnalları", shorttitle="MACD Signals", overlay=true)
// MACD və Siqnal Xətlərinin Hesablanması
= ta.macd(close, 12, 26, 9)
// Alış və Satış Şərtləri
buySignal = (macdLine > signalLine) and (macdLine <= signalLine ) and (macdLine > 0)
sellSignal = (macdLine < signalLine) and (macdLine >= signalLine ) and (macdLine < 0)
// Siqnalların Vizual Göstərilməsi
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, text="Alış")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="Satış")
SKDJ-yinjian777The SKDJ (Stochastic KDJ) indicator helps identify overbought and oversold conditions in the market, signaling potential reversal points.
Components
K Line (Fast Line): Reflects the current momentum.
D Line (Slow Line): Smooths the K line for clearer trends.
Overbought/Oversold Levels:
80: Overbought
20: Oversold
Signals
Buy Signal (Golden Cross):
K crosses above D.
K > 75.
Sell Signal (Death Cross):
K crosses below D.
K < 25.
Background Color
Green: K > D (Bullish)
Red: K < D (Bearish)
Usage Tips
Combine with Other Indicators for confirmation.
Adjust Parameters based on the asset and timeframe.
Backtest your strategy before live trading.
中文版本
概述
SKDJ(随机KDJ)指标用于识别市场的超买和超卖状态,提示潜在的反转点。
组成部分
K线(快线):反映当前动量。
D线(慢线):平滑K线,显示更清晰的趋势。
超买/超卖水平:
80:超买
20:超卖
信号
买入信号(金叉):
K线上穿D线。
K > 75。
卖出信号(死叉):
K线下穿D线。
K < 25。
背景颜色
绿色:K > D(看涨)
红色:K < D(看跌)
使用技巧
结合其他指标以确认信号。
根据资产和时间框架调整参数。
回测策略以确保有效性。
Renklendirilmiş Grafik ve Hareketli Ortalamalar + Parabolic SAR//@version=5
indicator("Renklendirilmiş Grafik ve Hareketli Ortalamalar + Parabolic SAR", overlay=true)
// Hareketli Ortalamalar
ma50 = ta.sma(close, 50)
ma200 = ta.sma(close, 200)
// Parabolic SAR
sar = ta.sar(0.02, 0.02, 0.2)
// Trend Şartları
upTrend = close > ma50 and ma50 > ma200
downTrend = close < ma50 and ma50 < ma200
// Arka Plan Renklendirme
bgcolor(upTrend ? color.new(color.green, 85) : na, title="Yükseliş Arka Plan")
bgcolor(downTrend ? color.new(color.red, 85) : na, title="Düşüş Arka Plan")
// Çubukları Renklendir
barcolor(upTrend ? color.green : na, title="Yükseliş Çubukları")
barcolor(downTrend ? color.red : na, title="Düşüş Çubukları")
// Parabolic SAR
plot(sar, style=plot.style_cross, color=color.purple, title="Parabolic SAR")
// İşlem Sinyalleri
longSignal = close > ma50 and close > ma200
shortSignal = close < ma50 and close < ma200
// Long ve Short Sinyalleri İçin Arka Plan
bgcolor(longSignal ? color.new(color.green, 90) : na, title="Long Signal Background")
bgcolor(shortSignal ? color.new(color.red, 90) : na, title="Short Signal Background")
Supertrend + KAMA Long StrategyThis strategy combines Supertrend and Kaufman Adaptive Moving Average (KAMA) indicators to identify long positions and manage stop-loss conditions effectively.
**Supertrend**: Determines the trend direction and helps identify entry and exit points.
**KAMA**: Adapts dynamically to market volatility and confirms trend reversals.
The strategy enters a long position when the Supertrend indicates an uptrend and the price is above the KAMA. It exits when the Supertrend switches to a downtrend and the price is below the KAMA, minimizing losses or protecting profits.
Christmas RSI with Jingle Bell [TrendX_]Jingle Bell 🔔, Jingle Bell 🔔, Jingle all the chart 📈 Merry Christmas Tradingview Community !!!
Introducing the Jingle Bell Indicator, a festive Pine Script creation designed to spread joy and luck to your trading endeavors. The Bow will change colors based on the reaction of RSI with the 50 level. Add a Jingle Bell drawing to your charts and celebrate the most wonderful time of the year. Turn on alert for today to get my Merry Christmas wish.
This indicator is my gift to the Tradingview community, designed to bring a touch of luck to your trades. Hope this Jingle Bell will bring some joy and festive vibes to your trading experience.
ROC with AveragesMain Idea
This script provides traders with a comprehensive view of market momentum by calculating the Rate of Change (ROC) and categorizing its impact into averages of positive, negative, and total values.
Key Features
Rate of Change (ROC) Calculation: Measures the percentage change in closing prices over a user-defined period.
Categorical Averages:
Positive Average: Average ROC for upward movements.
Negative Average: Average ROC for downward movements.
Total Average: Aggregate average across all movements.
Dynamic Visualization: Plots ROC alongside its categorized averages for better trend analysis.
Benefits
Simplifies the evaluation of market trends by breaking down data into actionable insights.
Helps traders identify the strength of upward or downward movements.
Offers a clear visual representation for quick decision-making.
This structure highlights the purpose and value of the script while aligning with the Minto Pyramid Principle. Let me know if you'd like further refinements!
الفكرة الرئيسية
يوفر هذا السكربت للمتداولين رؤية شاملة لزخم السوق من خلال حساب معدل التغير (ROC) وتصنيفه إلى متوسطات القيم الإيجابية والسلبية والإجمالية.
المميزات الرئيسية
حساب معدل التغير (ROC): يقيس النسبة المئوية للتغير في أسعار الإغلاق خلال فترة محددة يختارها المستخدم.
المتوسطات التصنيفية:
المتوسط الإيجابي: متوسط معدل التغير للحركات الصعودية.
المتوسط السلبي: متوسط معدل التغير للحركات الهبوطية.
المتوسط الإجمالي: متوسط إجمالي يشمل جميع الحركات.
تصور ديناميكي: يعرض معدل التغير إلى جانب المتوسطات المصنفة لتسهيل تحليل الاتجاهات.
الفوائد
يبسط تقييم اتجاهات السوق من خلال تقسيم البيانات إلى رؤى قابلة للتنفيذ.
يساعد المتداولين على تحديد قوة الحركات الصعودية أو الهبوطية.
يقدم تمثيلاً بصرياً واضحاً لاتخاذ قرارات سريعة ودقيقة.
Supertrend - 4h LettermanThis strategy, named "Supertrend - 4h Letterman", leverages the Supertrend indicator to identify and act on bullish market trends. Here's a summary of its features and warnings:
Features:
Capital Allocation: Allocates 15% of equity per trade, ensuring a controlled risk-reward ratio.
Commission and Slippage: Includes a 0.1% commission and a slippage value of 3 to account for real-market conditions.
Date Filters: Allows users to specify a start and end date for trading, defaulting to January 1, 2018, through December 31, 2069.
Trade Logic:
Enters a long position when a bullish trend is detected.
Exits the position when the trend reverses to bearish.
Visualization: Plots the Supertrend levels with clear uptrend (green) and downtrend (red) visuals for easy monitoring.
Risk Warning:
Trading involves significant risk and may lead to loss of invested capital. Users are strongly advised to trade responsibly and consult with a financial advisor if unsure.
Let me know if you’d like further refinements or additional clarifications!
Anchored GB TimeCustomizable indicator designed to track the number of hours elapsed since a user-defined starting point, such as the weekly market open. It highlights significant time intervals by checking the elapsed hour count against predefined GB Numbers and CE Numbers, offering precise insights for time-based trading strategies.
Custom Start Time:
Choose the day and hour when the counter resets, making it adaptable to different asset classes and market sessions.
Perfect for aligning with weekly opens or specific algorithmic strategies.
GB and CE Numbers:
Predefined sets of Goldbach (GB) Numbers and Critical Event (CE) Numbers.
Labels are displayed when the hour counter matches one of these significant numbers.
Customizable Appearance:
Separate settings for GB and CE labels:
Enable or disable each set.
Customize label colors, sizes, and vertical offsets.
Time Zone Support:
Select your desired time zone for accurate start time synchronization with your chart.
Consistent Label Placement:
Labels remain fixed above the candles regardless of zoom level or price range, ensuring clarity on any chart.
Useful for:
Time-Based Strategies: Identify key market intervals for entries or exits based on elapsed trading hours.
Custom Session Tracking: Monitor time progression across different market sessions or instruments.
Algorithmic Insights: Integrate time-based rules into your trading systems with precision.
How to Use:
1. Set the start day and hour using the Algo Start Day and Algo Start Hour inputs.
2. Customize the appearance of GB Time and CE Numbers labels as needed.
3. Align the chart's time zone with the indicator for accurate time tracking.
In the chart example, price is anchored to Sunday at 6pm, the opening hour for the week for futures
Asia Sessions AutoPlotting**Asia Sessions AutoPlotting**
This script is designed to automatically detect and plot the Asia session high and low levels directly on your chart, providing key session data for trading analysis. It is highly customizable, making it an essential tool for traders who rely on session data for decision-making.
### Key Features:
- **Asia Session Detection**: Automatically identifies the Asia session based on user-defined time settings (default: 0000-0845 UTC).
- **High/Low Line Plotting**: Displays high and low price levels for the session with customizable colors and line styles.
- **Line Extensions**: Option to extend session high/low lines for future price action reference.
- **Session Background Fill**: Adds an optional colored background to highlight the Asia session period.
- **Day Labels**: Includes labels for the session high/low levels with the corresponding day of the week.
- **Dynamic Session History**: Limits the display to a user-specified number of past sessions (default: 7) to keep the chart clean and focused.
- **Customizable Colors**: Highlights Mondays with unique colors for easy identification, while other weekdays use a different scheme.
### Use Cases:
- Identify key session levels for trading strategies.
- Monitor Asia session dynamics and their impact on subsequent sessions.
- Spot significant price reactions around session highs/lows.
### Inputs:
- **Session Time**: Adjust the session time to match your preferred Asia trading hours.
- **Toggle High/Low Lines**: Enable or disable the plotting of session highs and lows.
- **Line Extensions**: Extend the session high/low lines into future bars for better visualization.
- **Background Highlight**: Toggle a colored background for the Asia session.
- **Maximum Sessions**: Define how many past sessions to display for clarity.
This script is perfect for intraday traders, scalpers, and swing traders looking to gain insight into the Asia session and its influence on global markets. Fully adjustable and easy to use, it enhances your chart with critical information at a glance.
Simply add it to your TradingView chart, configure your settings, and let it do the work for you!
Supply and Demand ZonesDeskripsi Skrip:
Skrip ini berfungsi untuk mengidentifikasi dan menggambar zona supply (penawaran) dan demand (permintaan) pada grafik harga berdasarkan analisis harga tinggi dan rendah dalam periode tertentu.
Fitur Utama:
Identifikasi Zona Supply dan Demand:
Skrip ini mencari level supply di mana harga mengalami puncak tertinggi dalam periode lookback (jumlah periode yang dipilih pengguna).
Demand adalah titik terendah dalam periode lookback, di mana harga memiliki penurunan yang signifikan.
Input Pengguna:
Lookback Period: Jumlah periode (bar) yang digunakan untuk mencari harga tertinggi dan terendah, yang menentukan potensi zona supply atau demand.
Price Move Threshold: Persentase yang menentukan seberapa besar level harga harus bergerak (dalam hal demand atau supply) untuk membentuk zona tersebut.
Zone Width: Lebar zona yang digunakan untuk menggambar area supply/demand dalam jumlah periode setelah menemukan level supply/demand yang sesuai.
Penggambaran Zona Supply dan Demand:
Setelah menemukan level harga supply (harga tertinggi) atau demand (harga terendah), skrip ini menggambar sebuah box pada chart yang memperlihatkan rentang antara harga atas (top) dan bawah (bottom) zona tersebut.
Warna border box akan berwarna merah untuk zona supply dan hijau untuk zona demand, sementara area dalam kotak diwarnai dengan transparansi agar dapat dengan mudah terlihat di atas chart.
Penghapusan Kotak Lama:
Setiap kali ditemukan zona supply atau demand baru, kotak sebelumnya akan dihapus untuk menghindari tumpang tindih kotak, yang memastikan hanya ada satu kotak aktif di setiap waktu.
Proses yang Terjadi dalam Skrip:
Perhitungan Zona:
Fungsi f_find_supply_demand() digunakan untuk memeriksa apakah harga tertinggi atau terendah dalam periode lookback memenuhi kriteria untuk dianggap sebagai zona supply atau demand.
Pembuatan Box Supply dan Demand:
Setelah zona yang valid ditemukan (supply atau demand), fungsi utama membuat kotak menggunakan fungsi box.new(), yang menggambar zona pada chart dengan batas-batas yang disesuaikan.
Pembuangan Box Lama:
Jika ada zona supply atau demand sebelumnya, kotak tersebut dihapus dengan box.delete() untuk memastikan bahwa hanya ada satu kotak yang digambar di chart pada suatu waktu.
Parameter yang Dapat Disesuaikan Pengguna:
Lookback Period (Periode untuk Mencari Harga Tertinggi dan Terendah): Menentukan berapa lama periode pencarian untuk level tertinggi dan terendah harga dalam grafik.
Price Move Threshold (%): Persentase pergerakan harga yang digunakan untuk menggambar kotak supply dan demand.
Zone Width (Lebar Zona): Menentukan seberapa panjang kotak itu akan digambar di grafik berdasarkan perhitungan titik bar_index (indeks batang/kursi pada grafik).
Output:
Zona Supply (Zona Penawaran) digambar dengan kotak merah, menggambarkan area harga tinggi di mana mungkin ada penjual besar yang memasuki pasar.
Zona Demand (Zona Permintaan) digambar dengan kotak hijau, menggambarkan area harga rendah di mana mungkin ada pembeli besar yang memasuki pasar.
Dengan skrip ini, Anda bisa memvisualisasikan dengan mudah area supply dan demand di grafik dan mendapatkan wawasan yang lebih baik mengenai potensi pembalikan harga atau titik pembelian dan penjualan berdasarkan analisis teknikal.
SHAAKUNI INDICATO//@version=5
indicator("Simple Moving Average Crossover", overlay=true)
// Input for Moving Averages
fastLength = input.int(10, title="Fast MA Length")
slowLength = input.int(20, title="Slow MA Length")
// Calculating Moving Averages
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
// Plotting Moving Averages
plot(fastMA, color=color.green, title="Fast MA")
plot(slowMA, color=color.red, title="Slow MA")
// Highlight Buy/Sell Signals
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
RCI 6 linesYou can display 6 RCIs. It’s simple, so feel free to adjust it as you like. Your support would be a great motivator for creating new indicators.
6本のRCIを表示できます。
シンプルですので、ご自由に調整してください。
応援頂けると新たなインジケーター作成の糧になります。