Candlestick analysis
5-Minute YEN Pivot Bars 1.0The 5-Minute YEN Pivot Bars indicator is designed to identify and highlight low-range pivot bars on 5-minute charts, specifically tailored for Yen-based pairs (e.g., GBPJPY, USDJPY). By focusing on precise pip thresholds, this tool helps traders detect potential pivot points within specific trading sessions, while avoiding inside bars and other noise often seen in low-volatility conditions. This can be particularly useful for trend traders and those looking to refine their entry points based on intraday reversals.
Key Features:
- Customized Pip Thresholds for Yen Pairs:
The indicator is pre-configured for Yen pairs, where 1 pip is typically represented by 0.01. It applies these thresholds:
- Limited Range: 4 pips or less between open and close prices.
- High/Low Directionality: At least 3 pips from the close/open to the bar's high or low.
- Open/Close Proximity: 4 pips or less between open and close.
- Inside Bar Tolerance: A tolerance of 3 pips for inside bars, helping reduce false signals from bars contained within the previous bar's range.
- Session-Specific Alerts:
- The indicator allows you to enable alerts for the European Session (6:00-12:00), American Session (12:00-17:00), and London Close (17:00-20:00). You can adjust these times based on your own trading hours or timezone preferences via a time-shift setting.
- Receive real-time alerts when a valid bullish or bearish pivot bar is identified within the chosen sessions, allowing you to respond to potential trade opportunities immediately.
- Time Shift Customization:
- Adjust the "Time Shift" parameter to account for different time zones, ensuring accurate session alignment regardless of your local time.
How It Works:
1. Pivot Bar Identification:
The indicator scans for bars where the difference between the open and close is within the "Limited Range" threshold, and both open and close prices are close to either the high or the low of the bar.
2. Directional Filtering:
It requires the bar to show strong directional bias by enforcing an additional distance between the open/close levels and the opposite end of the bar (high/low). Only bars with this directional structure are considered for highlighting.
3. Exclusion of Inside Bars:
Bars that are completely contained within the range of the previous bar are excluded (inside bars), as are consecutive inside bars. This filtering is essential to avoid marking bars that typically indicate consolidation rather than potential pivot points.
4. Session Alerts:
When a valid pivot bar appears within the selected sessions, an alert is triggered, notifying the trader of a potential trading signal. Bullish and bearish signals are differentiated based on whether the close is near the high or low.
How to Use:
- Trend Reversals: Use this indicator to spot potential trend reversals or pullbacks on a 5-minute chart, especially within key trading sessions.
- Entry and Exit Points: Highlighted bars can serve as potential entry points for traders looking to capitalize on short-term directional changes or continuation patterns.
- Combine with Other Indicators: Consider pairing this tool with momentum indicators or trendlines to confirm the signals, providing a comprehensive analysis framework.
Default Parameters:
- Limited Range: 4 Pips
- High/Low Directionality: 3 Pips
- Open/Close Proximity: 4 Pips
- Inside Bar Tolerance: 3 Pips
- Session Alerts: Enabled for European, American, and London Close sessions
- Time Shift: Default 6 (adjustable to align with different time zones)
This indicator is specifically optimized for Yen pairs on 5-minute charts due to its pip calculation.
No-Gap-CandlesCandle indicator that makes the chart more readable by removing overnight gaps by using the closing price of the previous day as the opening price of the current day.
FFMFFW Daily EMA 21 Trend Cross/Retest MarkupA script that marks up the daily close of possible entries and retests
Dinamik EMA Periyotları ile Buy/Sell Sinyalifiyat 50 emanın üstündeyken 10 ema 30 emayı 50 emanın üstünde yukarı kesince buy sinyal etiketi,fiyat 50 emanın altındayken 10 ema 30 emayı 50 emanın altında aşağı doğru kesince sell sinyal etiketi var.buy ve sell sinyalleri için alarm kurulabilir.
Kushy - EMA (9, 21, 50, 100, 200)Tên chỉ báo: Custom EMA (9, 21, 50, 100, 200)
Mô tả: Đây là chỉ báo EMA tùy chỉnh được thiết kế để giúp người dùng theo dõi xu hướng thị trường bằng cách sử dụng 5 đường EMA phổ biến với các giá trị 9, 21, 50, 100 và 200. Mỗi đường EMA được gán màu sắc riêng để dễ dàng quan sát:
EMA 9: Màu tím - thích hợp cho việc theo dõi biến động ngắn hạn.
EMA 21: Màu cam - giúp xác định xu hướng ngắn hạn và hỗ trợ giao dịch ngắn.
EMA 50: Màu xanh dương - cung cấp tín hiệu trung hạn, thường được sử dụng trong chiến lược swing trading.
EMA 100: Màu xanh lá - cho thấy xu hướng tổng quát trung hạn.
EMA 200: Màu đỏ - biểu thị xu hướng dài hạn, rất hữu ích để đánh giá xu hướng lớn trong thị trường.
Chỉ báo này giúp người dùng dễ dàng xác định xu hướng và tìm điểm vào/ra tiềm năng khi các đường EMA giao nhau hoặc khi giá cắt qua các đường EMA chính. Phù hợp cho cả day trading, swing trading và các chiến lược đầu tư dài hạn.
Hướng dẫn sử dụng:
Các đường EMA ngắn hạn (EMA 9, EMA 21) giúp xác định các tín hiệu giao dịch nhanh, trong khi các đường dài hạn (EMA 50, EMA 100, EMA 200) cung cấp xu hướng tổng thể của thị trường.
Quan sát sự giao nhau của các đường EMA để tìm điểm vào/ra giao dịch.
Khi giá nằm trên các đường EMA dài hạn, đó là tín hiệu của xu hướng tăng; ngược lại, khi giá nằm dưới các đường này, có thể là xu hướng giảm.
Globex time (New York Time)This indicator is designed to highlight and analyze price movements within the Globex session. Primarily geared toward the Globex Trap trading strategy, this tool visually identifies the session's high and low prices, allowing traders to better assess price action during extended hours. Here’s a comprehensive breakdown of its features and functionality:
Purpose
The "Globex Time (New York Time)" indicator tracks price levels during the Globex trading session, providing a clear view of overnight market activity. This session, typically running from 6 p.m. ET (18:00) until the following morning at 8:30 a.m. ET, is a critical period where significant market positioning can occur before the regular session opens. In the Globex Trap strategy, the session high and low are essential levels, as price movements around these areas often indicate potential support, resistance, or reversal zones, which traders use to set up entries or exits when the regular trading session begins.
Key Features
Customizable Session Start and End Times
The indicator allows users to specify the exact start and end times of the Globex session in New York time. The default settings are:
Start: 6 p.m. ET (18:00)
End: 8:30 a.m. ET
These settings can be adjusted to align with specific market hours or personal preferences.
Session High and Low Identification
Throughout the defined session, the indicator dynamically calculates and tracks:
Session High: The highest price reached within the session.
Session Low: The lowest price reached within the session.
These levels are essential for the Globex Trap strategy, as price action around them can indicate likely breakout or reversal points when regular trading resumes.
Vertical Lines for Session Start and End
The indicator draws vertical lines at both the session start and end times:
Session Start Line: A solid line marking the exact beginning of the Globex session.
Session End Line: A similar vertical line marking the session’s conclusion.
Both lines are customizable in terms of color and thickness, making it easy to distinguish the session boundaries visually on the chart.
Horizontal Lines for Session High and Low
At the end of the session, the indicator plots horizontal lines representing the Globex session's high and low levels. Users can customize these lines:
Color: Define specific colors for the session high (default: red) and session low (default: green) to easily differentiate them.
Line Style: Options to set the line style (solid, dashed, or dotted) provide flexibility for visual preferences and chart organization.
Automatic Reset for Daily Tracking
To adapt to the next trading day, the indicator resets the session high and low data once the current session ends. This reset prepares it to start tracking new levels at the beginning of the next session without manual intervention.
Practical Application in the Globex Trap Strategy
In the Globex Trap strategy, traders are primarily interested in price behavior around the high and low levels established during the overnight session. Common applications of this indicator for this strategy include:
Breakout Trades: Watching for price to break above the Globex high or below the Globex low, indicating potential momentum in the breakout direction.
Reversal Trades: Monitoring for failed breakouts or traps where price tests and rejects the Globex high or low, suggesting a reversal as liquidity is trapped in these zones.
Support and Resistance Zones: Using the session high and low as key support and resistance levels during the regular trading session, with potential entry or exit points when price approaches these areas.
Additional Configuration Options
Vertical Line Color and Width: Define the color and thickness of the vertical session start and end lines to match your chart’s theme.
Upper and Lower Line Colors and Styles: Customize the appearance of the session high and low horizontal lines by setting color and line style (solid, dashed, or dotted), making it easy to distinguish these critical levels from other chart markings.
Summary
This indicator is a valuable tool for traders implementing the Globex Trap strategy. It visually segments the Globex session and marks essential price levels, helping traders analyze market behavior overnight. Through its customizable options and clear visual representation, it simplifies tracking overnight price activity and identifying strategic levels for potential trade setups during the regular session.
Confirmed market structure buy/sell indicatorOverview
The Swing Point Breakout Indicator with Multi-Timeframe Dashboard is a TradingView tool designed to identify potential buy and sell signals based on swing point breakouts on the primary chart's timeframe while simultaneously providing a snapshot of the market structure across multiple higher timeframes. This dual approach helps traders make informed decisions by aligning short-term signals with broader market trends.
Key Features
Swing Point Breakout Detection
Swing Highs and Lows: Identifies significant peaks and troughs based on a user-defined lookback period.
Breakout Signals:
Bullish Breakout (Buy Signal): Triggered when the price closes above the latest swing high.
Bearish Breakout (Sell Signal): Triggered when the price closes below the latest swing low.
Visual Indicators: Highlights breakout bars with colors (lime for bullish, red for bearish) and plots buy/sell markers on the chart.
Multi-Timeframe Dashboard
Timeframes Monitored: 1m, 5m, 15m, 1h, 4h, 1D, and 1W.
Market Structure Status:
Bullish: Indicates upward market structure.
Bearish: Indicates downward market structure.
Neutral: No clear trend.
Visual Table: Displays each timeframe with its current status, color-coded for quick reference (green for bullish, red for bearish, gray for neutral).
Operational Workflow
Initialization:
Sets up a dashboard table on the chart's top-right corner with headers "Timeframe" and "Status".
Swing Point Detection:
Continuously scans the main timeframe for swing highs and lows using the specified lookback period.
Updates the latest swing high and low levels.
Signal Generation:
Detects when the price breaks above the last swing high (bullish) or below the last swing low (bearish).
Activates potential buy/sell setups and confirms signals based on subsequent price movements.
Dashboard Update:
For each defined higher timeframe, assesses the market structure by checking for breakouts of swing points.
Updates the dashboard with the current status for each timeframe, aiding in trend confirmation.
Visualization:
Colors the bars where breakouts occur.
Plots buy and sell signals directly on the chart for easy identification.
multiple EMAPine Script Description for Multiple EMA Values
This Pine Script code calculates and plots multiple EMA (Exponential Moving Average) values for different time periods on a price chart. Each EMA represents the average price over a specified period, helping traders identify the overall price trend and momentum. Shorter-period EMAs respond faster to price changes, while longer-period EMAs show more stable trends.
Basic Setup
The script allows users to customize the period for each EMA, such as 9-day, 21-day, 50-day, and 200-day EMAs.
Each EMA period is defined as an input parameter, making it flexible to adapt to various trading strategies.
EMA Calculation
The ta.ema() function is used to compute each EMA based on the specified period.
The calculated EMAs are displayed on the chart in distinct colors, allowing traders to quickly see the trend for each period.
Chart Display
Using the plot() function, each EMA is plotted on the chart with a unique color and style, making it easy to differentiate between short-term and long-term trends.
Additional Features
EMA Crosses: When a shorter EMA crosses above a longer EMA, it can signal a buying opportunity. Conversely, a downward cross can signal a selling opportunity. The script can highlight these crossover points.
Trend Confirmation: When all EMAs are moving upward, it indicates a strong upward trend; when all are moving downward, it indicates a strong downtrend.
EMA Spacing Visualization: Wider spacing between EMAs can suggest increasing volatility, which can be useful for assessing risk.
Inversion Fair Value Gap Oscillator | Flux Charts💎 GENERAL OVERVIEW
Introducing the new Inversion Fair Value Gap Oscillator (IFVG Oscillator) indicator! This unique indicator identifies and tracks Inversion Fair Value Gaps (IFVGs) in price action, presenting them in an oscillator format to reveal market momentum based on IFVG strength. It highlights bullish and bearish IFVGs while enabling traders to adjust detection sensitivity and apply volume and ATR-based filters for more precise setups. For more information about the process, check the "📌 HOW DOES IT WORK" section.
Features of the new IFVG Oscillator:
Fully Customizable FVG & IFVG Detection
An Oscillator Approach To IFVGs
Divergence Markers For Potential Reversals
Alerts For Divergence Labels
Customizable Styling
📌 HOW DOES IT WORK?
Fair Value Gaps are price gaps within bars that indicate inefficiencies, often filled as the market retraces. An Inversion Fair Value Gap is created in the opposite direction once a FVG gets invalidated. The IFVG Oscillator scans historical bars to identify these gaps, then filters them based on ATR or volume. Each IFVG is marked as bullish or bearish according to the opposite direction of the original FVG that got invalidated.
An oscillator is calculated using recent IFVGs with this formula :
1. The Oscillator starts as 0.
2. When a new IFVG Appears, it contributes (IFVG Width / ATR) to the oscillator of the corresponding type.
3. Each confirmed bar, the oscillator is recalculated as OSC = OSC * (1 - Decay Coefficient)
The oscillator aggregates and decays past IFVGs, allowing recent IFVG activity to dominate the signal. This approach emphasizes current market momentum, with oscillations moving bullish or bearish based on IFVG intensity. Divergences are marked where IFVG oscillations suggest potential reversals. Bullish Divergence conditions are as follows :
1. The current candlestick low must be the lowest of last 25 bars.
2. Net Oscillator (Shown in gray line by default) must be > 0.
3. The current Bullish IFVG Oscillator value should be no more than 0.1 below the highest value from the last 25 bars.
Traders can use divergence signals to get an idea of potential reversals, and use the Net IFVG Oscillator as a trend following marker.
🚩 UNIQUENESS
The Inversion Fair Value Gap Oscillator stands out by converting IFVG activity into an oscillator format, providing a momentum-based visualization of IFVGs that reveals market sentiment dynamically. Unlike traditional indicators that statically mark IFVG zones, the oscillator decays older IFVGs over time, showing only the most recent, relevant activity. This approach allows for real-time insight into market conditions and potential reversals based on oscillating IFVG strength, making it both intuitive and powerful for momentum trading.
Another unique feature is the combination of customizable ATR and volume filters, letting traders adapt the indicator to match their strategy and market type. You can also set-up alerts for bullish & bearish divergences.
⚙️ SETTINGS
1. General Configuration
Decay Coefficient -> The decay coefficient for oscillators. Increasing this setting will result in oscillators giving the weight to recent IFVGs, while decreasing it will distribute the weight equally to the past and recent IFVGs.
2. Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
3. Inversion Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for IFVG Zone Invalidation.
4. Style
Divergence Labels On -> You can switch divergence labels to show up on the chart or the oscillator plot.
[TT] Delta Based Support & Resistance Before Getting to the Indicator Concept, You need to understand What delta is.
For simple yet accurate understanding lets say the difference between Buyers and sellers is called delta. In a given time frame like 15mins for example, if we have 100 buyers and 75 sellers, delta will be 25, positive number indicates the buyers are dominating that particular candle. The volume of this candle will be 175, where delta indicates who dominated by just showing 25. We are literally following the volume, or in simple words the directional volume.
Now we all know that market is moved by Buyers and sellers and not by price alone. In that case why are we depending on indicators that are moved by close price which can be manipulated in real time. There is only one element in the market that cannot be manipulated and that is volume. We are using that Delta to determine our Direction and trend.
Note : Please wait for the candle to close and Level to form and only then enter on a retest of the level.
Usage of this Indicator.
in the following pictures one can see this indicator on NSE:BANKNIFTY And NSE:NIFTY , India's most Liquidity IDX and accuracy of our indicator.
Once the Buyers dominate the market after consolidation a support is formed and when sellers dominate a resistance is formed.
NSE:NIFTY 5Mins
Nifty50 1Hr
NSE:BANKNIFTY 1Hr
BANKNIFTY 5Min
BANKNIFTY 5Min
One can Use this in any Entity with volume like Commodities and Forex but do understand that forex have different exchange and different brokers and volume so be ware while working with such. following are the Forex and BTC and Gold
BITSTAMP:BTCUSD 1Hr
FXOPEN:XAUUSD 1Hr
4Hrs
This will help You get confirmation for Many other strategies. Always remember one thing, don't search for the trade let the trade come to you. Trade only when you see a perfect confirmation.
TRADE ENTRY
Enter in a trade when the price gets back in to the level Look at the following Chart in any timeframe.
For any Explanation you can contact me in Tradingview.
Note: CVD Calculation taken from Tradingview
Sumit Infusion-ndpDarvas with pivot. This script allows user to vies darvas box with ema distance and pivot .
Highlight 3 PM Candle//@version=5
indicator("Highlight 3 PM Candle", overlay=true)
// Function to determine if the current candle is the 3 PM candle
is3pm(candleTime) =>
hour(candleTime) == 15 and minute(candleTime) == 0
// Check if the current candle is the 3 PM candle
highlight = is3pm(time)
// Highlight the 3 PM candle with a background color
bgcolor(highlight ? color.new(color.red, 80) : na)
AstroTrading_OrderBlocksThe AstroTrading Order Blocks indicator is a tool that helps identify potential support and resistance levels by establishing relationships between price action and candle data. This indicator uses the open, close, high and low values of past candles to analyze their interaction with current candles. Users can add this indicator to their charts to better understand market behavior.
Key Features:
Candle Information Analysis:
The indicator detects whether the previous candle was green or red.
The open, close, high and low levels of past candles are analyzed and compared to the current candle.
Conditions:
Red Line Condition: If the previous candle is green, the high of the current candle is between the open and close of the previous candle and the current candle is red, a red line is formed.
Green Line Condition: If the previous candle was red, the low of the current candle is between the open and close of the previous candle, and the current candle is green, a green line is formed.
Visual Expressions on the Chart:
When the red line condition is triggered, red lines and the “🐻Bear OB🐻” sign are displayed on the chart.
When the green line condition is triggered, green lines and the “🐂Bull OB🐂” sign are displayed on the chart.
Usage:
This indicator helps to identify support and resistance levels in technical analysis.
Traders can evaluate potential buying or selling opportunities by analyzing past price movements.
Warnings:
Users are advised to use the indicator with caution and conduct their own research.
The indicator should only be used to identify support and resistance levels and should not be used in conjunction with other technical analysis tools.
Summary of the Code:
This indicator is designed to work on the TradingView platform and performs the following functions:
Analyzes previous candle data and compares it with the current candle data.
Plots support and resistance levels on the chart according to the conditions.
It displays the relevant symbols with red and green lines.
SupernovaBuy/Sell Signal with Bollinger Bands, Color Changing Lines, SL Lines with SL Price, and Color Changing Parabolic SAR
MACD Signal IndicatorSignal based on MACD for sell and buy, this indicator use MACD to send signal for buy or sell, it try to predict market movement
SOLUSDT for binance V2SOLUSDT 1시간 봉을 위한 전략
시그날 봇 거래를 위해서 만들어 봄
1거래씩만 하고 잔고 100% 사용, 커미션 0.06% 설정
수익 4%
손절 1.5%
트레이딩뷰 특징 상 딱 들어 맞지는 않습니다.
15-Minute Time Frame Separatorim using this indicator to find best entry using 15minute time frame . so before i need to put manually ,
UT Bot Strategy with RSI, Supertrend, and Ichimoku Cloud FiltersThis is a stratefy using UT Bot Strategy with RSI, Supertrend, and Ichimoku Cloud Filters
Alpha Ai Reversal [Basic] Strategy : DAX30 AAPL GOLD XRP BNB XMR🚀 Alpha Ai Reversal Strategy : DAX30 AAPL GOLD XRP BNB XMR 🚀
The Alpha Ai Reversal strategy is a technical trading tool built to detect potential reversal points in various market conditions. By combining multiple indicators, it provides structured signals to help guide entry and exit points.
🔍 What the Script Does
The script aims to identify potential price reversals, providing buy and sell signals that can be applied across different assets and timeframes. It’s designed to operate effectively in both trending and ranging markets, helping traders detect points where the market may shift direction. This strategy has been backtested extensively, covering 16 years on indices, commodities, and stocks, and 3-4 years on cryptocurrencies, ensuring reliability across varying conditions.
⚙️ How the Script Works
Candlestick Count 9/13
This strategy utilizes the Candlestick Count 9/13 chosen for its ability to adapt in both trending and ranging markets. Unlike traditional indicators, which often struggle in sideways conditions, it helps highlight potential reversal points regardless of market trend.
Moving Averages for Confirmation
The script includes three moving averages to confirm each signal, providing an additional filter for entry and exit points. These moving averages help ensure that signals align with broader market trends, which may reduce false signals.
Dynamic Trailing Stop-Loss
A dynamic trailing stop-loss is employed to manage risk. This stop-loss level, based on one of the moving averages, adjusts with the price movement, helping to lock in profits or limit losses as the trade progresses.
Optimized Take-Profit
The strategy calculates take-profit levels by analyzing historical data, scanning past price behavior to identify an optimized exit point. This data-driven take-profit level is tailored to align with historical performance, aiming to capture favorable price levels over time.
💵 Money Management & Capital Setup
To help traders maximize returns while protecting capital, this strategy is designed to work best when following the 2% risk management rule. This guideline means that no more than 2% of total portfolio capital should be risked on a single trade, aiming to minimize potential losses while allowing for sustainable growth.
In addition, we provide guidance on position sizing and stop-loss placement to support disciplined trading. The strategy offers a balance between capital preservation and risk-taking, helping users manage individual trades without overexposing their portfolio.
📈 How to Use It
Apply the script to a TradingView chart for a supported asset and timeframe.
Follow the provided buy and sell signals.
Adjust asset and timeframe settings as indicated below to support signal accuracy.
DAX30 (OANDA) → 6H
Apple Stock (NASDAQ) → 2H
Gold (TVC) → 8H
Monero - BYBIT:XMRUSDT.P → 1H
Ripple - BYBIT:XRPUSDT.P → 1H
Binance - Coin BYBIT:BNBUSDT.P → 4H
🔒 Why the Source Code is Protected
The Alpha Ai Reversal strategy is a limited version of our private strategy, Alpha Ai Reversal [ULTIMATE}. The full version has been specifically optimized for over 96 assets, incorporating refined calculations and proprietary adjustments tailored to each asset.
To maintain the integrity and effectiveness of the strategy, the source code for the Alpha Ai Reversal remains protected.
📝 Risk Disclaimer
Trading involves risk, and while this strategy is designed to assist in decision-making, it does not guarantee profits. We advise testing the strategy on a demo account or starting with a small capital allocation, following risk management guidelines, and seeking professional advice if needed.
BTC Volume number candel//@version=5
indicator("BTC Key Indicators with Volume Labels", overlay=true)
// 1. Klouzavé průměry (MA)
shortMaLength = 50
longMaLength = 200
shortMa = ta.sma(close, shortMaLength)
longMa = ta.sma(close, longMaLength)
plot(shortMa, color=color.blue, linewidth=2, title="50 MA")
plot(longMa, color=color.red, linewidth=2, title="200 MA")
// 2. RSI (Relative Strength Index)
rsiLength = 14
rsiOverbought = 70
rsiOversold = 30
rsi = ta.rsi(close, rsiLength)
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted)
plot(rsi, "RSI", color=color.purple, linewidth=1)
// 3. MACD (Moving Average Convergence Divergence)
macdLength1 = 12
macdLength2 = 26
signalSmoothing = 9
= ta.macd(close, macdLength1, macdLength2, signalSmoothing)
plot(macdLine, color=color.blue, title="MACD Line", linewidth=1)
plot(signalLine, color=color.orange, title="Signal Line", linewidth=1)
bgcolor(macdLine > signalLine ? color.new(color.green, 90) : color.new(color.red, 90), title="MACD Background")
// 4. Volume (Objem obchodů) - zobrazení sloupců
showVolume = input(true, "Show Volume Columns")
volumeColor = close > open ? color.green : color.red
plot(showVolume ? volume : na, style=plot.style_columns, color=volumeColor, title="Volume")
// 5. Volume Labels (číselné hodnoty nad svíčkami)
showVolumeLabels = input(true, "Show Volume Labels")
if showVolumeLabels
label.new(bar_index, high, str.tostring(volume, "#"), color=color.blue, textcolor=color.white, size=size.small, yloc=yloc.above)