Star Pattern IdentifierThe Star Pattern Identifier is a custom TradingView indicator designed to detect and mark Morning Star (MS) and Evening Star (ES) candlestick patterns, which are powerful reversal signals. This indicator offers a flexible and customizable approach by incorporating adjustable parameters for both the size and volume of the third candle in the pattern.
Key Features:
Morning Star (MS) : A bullish reversal pattern that occurs after a downtrend.
Evening Star (ES) : A bearish reversal pattern that occurs after an uptrend.
Adjustable Parameters:
Third Candle Size Multiplier : Define how large the body of the third candle should be relative to the second candle (default is 2x).
Third Candle Volume Multiplier : Control the minimum volume of the third candle in relation to the second candle (default is 0.5x).
The script ensures that the third candle’s volume is at least 50% of the second candle's volume and that its body is at least twice the size of the second candle, to filter out weaker signals.
The patterns are marked directly on the chart with "MS" (Morning Star) or "ES" (Evening Star) labels for easy identification.
Practical Use:
Use this indicator to spot potential trend reversals with more confidence by ensuring strong candlestick body and volume conditions.
Customize the parameters to suit your trading strategy and preferences.
How it Works:
The indicator looks for a bearish first candle , followed by a bullish or indecisive second candle , and a bullish third candle for the Morning Star pattern.
For the Evening Star, the indicator looks for a bullish first candle , followed by a bearish or indecisive second candle , and a bearish third candle .
The size and volume of the third candle are checked to ensure it meets the set parameters, confirming the strength of the reversal signal.
This tool is perfect for traders seeking to spot reversal signals in the market.
Chart patterns
Swing Breakout Strategy by SharadTrades on Swing Breakouts, It's Simple.
Keep SL and Target as per your suitability.
RSI + MACD Combined by Majidbest of all i have combined the most traded indicators in one for you to ease the trading
Indecisive Candle Buy/Sell Signals by VIKKAS VERMAUsing Hieken Ashi candle sticks @ 15 mins timeframe
9-20 EMA Crossover with TP and SL9-20 EMA Crossover: This script tracks the crossover of the 9-period EMA and the 20-period EMA.
When the 9 EMA crosses above the 20 EMA, a buy signal is triggered.
When the 9 EMA crosses below the 20 EMA, a sell signal is triggered.
Take Profit and Stop Loss Levels:
The take profit for a long position is set at 3% above the entry price (close * 1.03).
The stop loss for a long position is set at 1% below the entry price (close * 0.99).
The take profit for a short position is set at 3% below the entry price (close * 0.97).
The stop loss for a short position is set at 1% above the entry price (close * 1.01).
Leverage: The strategy uses 20x leverage for both long and short positions (leverage=20).
Alerts: Alerts are set up for the buy signal when the 9 EMA crosses above the 20 EMA and the sell signal when the 9 EMA crosses below the 20 EMA. These alerts can be used with a webhook to trigger trades on Binance Futures.
Strategy:
For long trades: The strategy enters a long position and sets a take profit at 3% above the entry price and a stop loss at 1% below the entry price.
For short trades: The strategy enters a short position and sets a take profit at 3% below the entry price and a stop loss at 1% above the entry price.
9-20 EMA Crossover with TP and SL9-20 EMA Crossover: This script tracks the crossover of the 9-period EMA and the 20-period EMA.
When the 9 EMA crosses above the 20 EMA, a buy signal is triggered.
When the 9 EMA crosses below the 20 EMA, a sell signal is triggered.
Take Profit and Stop Loss Levels:
The take profit for a long position is set at 3% above the entry price (close * 1.03).
The stop loss for a long position is set at 1% below the entry price (close * 0.99).
The take profit for a short position is set at 3% below the entry price (close * 0.97).
The stop loss for a short position is set at 1% above the entry price (close * 1.01).
Leverage: The strategy uses 20x leverage for both long and short positions (leverage=20).
Alerts: Alerts are set up for the buy signal when the 9 EMA crosses above the 20 EMA and the sell signal when the 9 EMA crosses below the 20 EMA. These alerts can be used with a webhook to trigger trades on Binance Futures.
Strategy:
For long trades: The strategy enters a long position and sets a take profit at 3% above the entry price and a stop loss at 1% below the entry price.
For short trades: The strategy enters a short position and sets a take profit at 3% below the entry price and a stop loss at 1% above the entry price.
Petru Indicator14 Day range. Percentage move. Analyzes first 14 days and percentage move after given window.
MI-Advanced Long/Short StrategyAdvanced Multi-Indicator Trading Strategy
Combining Trend Following, Momentum Confirmation & Risk Management
This sophisticated trading strategy is designed to identify high-probability long/short opportunities using a confluence of technical indicators while maintaining strict risk control. It combines trend analysis, momentum confirmation, and volume-based validation to generate clear buy/sell signals across various markets and timeframes.
Core Components
Trend Identification Engine
Dual EMA System (12/26 periods):
Bullish bias when 12-EMA > 26-EMA
Bearish bias when 12-EMA < 26-EMA
Supertrend Indicator:
Dynamic trend filter using price volatility
Green line = Bullish trend (longs enabled)
Red line = Bearish trend (shorts enabled)
Momentum Confirmation
MACD Histogram:
Bullish crossover (signal line cross) for entries
Bearish crossover for exits/reversals
RSI Threshold:
50-level as momentum baseline
Longs only when RSI > 50
Shorts only when RSI < 50
Volume Validation
20-period volume moving average
Entry requires 150%+ volume spike
Filters low-confidence moves
Risk Management Framework
ATR-Based Stops:
2x ATR (14-period) stop loss
3x ATR take profit (1:1.5 RR ratio)
Position Sizing:
Percentage-based equity management
Built-in commission calculation
Signal Generation Logic
Long Entry Conditions (All Must Be True):
12-EMA crosses above 26-EMA
MACD line crosses above signal line
RSI sustains above 50 level
Price above Supertrend line (green)
Volume spike confirmation
Short Entry Conditions (All Must Be True):
12-EMA crosses below 26-EMA
MACD line crosses below signal line
RSI holds below 50 level
Price below Supertrend line (red)
Volume spike confirmation
Exit Conditions:
Trailing stop via Supertrend reversal
EMA crossover in opposite direction
RSI crossing 50 threshold
Automatic profit targets/stops
Key Features
Multi-Timeframe Compatibility: Works on 1M-1D charts
Visual Clarity:
Colored EMA ribbons for trend direction
Label-based buy/sell markers
Supertrend overlay for real-time guidance
Alert System:
Built-in buy/sell alert conditions
Compatible with email/SMS notifications
Adaptive Risk:
Dynamic stop-loss adjustment
Position sizing relative to account equity
False Signal Filter:
Volume spike requirement
Triple confirmation (trend+momentum+volume)
Strategic Advantages
Trend-Riding Capability:
Captures sustained moves via Supertrend/EMA combo
Avoids choppy markets through volume filters
Confirmation Hierarchy:
Primary Trend: EMA crossover
Secondary Confirmation: MACD/RSI
Tertiary Validation: Volume/Supertrend
Risk-Controlled Execution:
Automatic stop-loss placement
Fixed risk/reward ratio enforcement
Commission-aware backtesting
Visual Trading Psychology:
Clear color-coded indicators reduce emotional trading
Objective entry/exit rules eliminate guesswork
Ideal Market Conditions
Best Performing: Trending markets (up/down)
Avoid During:
Low-volume periods
Consolidation/ranging markets
Major news events
Practical Usage Tips
Combine with higher timeframe analysis
Adjust ATR multiplier for volatile assets
Modify volume threshold for liquid markets
Use trailing stops for extended trends
Pair with fundamental catalysts for swing trades
This strategy provides a systematic approach to trading by combining technical analysis with disciplined risk management. Its multi-layered confirmation process aims to filter out market noise while capturing high-quality setups, making it suitable for both discretionary traders and automated trading systems.
Deepsek IndicatorThis TradingView Pine Script indicator combines EMA crossovers (for trend direction) and RSI (for momentum) to generate Buy/Sell signals. It includes customizable Take Profit (TP) and Stop Loss (SL) levels, plotted directly on the chart.
Key Features
Signal Types:
EMA Crossover: Triggers Buy when a fast EMA crosses above a slow EMA; Sell on the reverse.
RSI Divergence: Buy when RSI exits oversold (30); Sell when RSI exits overbought (70).
Risk Management:
Set TP/SL as fixed percentages (e.g., 2% TP) or fixed price points.
Visual horizontal lines mark entry price, TP (teal dashed), and SL (red dashed).
Visual Clarity:
Labels (BUY/SELL) with arrows at signal points.
Plots EMAs (fast/slow) and RSI for trend/momentum confirmation.
Flexibility:
Adjust parameters (EMA lengths, RSI settings, TP/SL rules) via input settings.
Alerts for real-time signal notifications.
Purpose:
Designed to simplify entries/exits with clear rules, enforce disciplined risk management, and adapt to multiple markets (stocks, forex, crypto).
Bullish/Bearish Reversal ArrowsThe Bullish/Bearish Reversal Arrows Indicator is designed to identify potential reversal points in the market based on two key technical analysis tools: the MACD (Moving Average Convergence Divergence) and the RSI (Relative Strength Index).
Bullish Reversal:
A green upward arrow appears below the price bar when the MACD line crosses above the signal line (bullish crossover) and the RSI is in the oversold region (below the specified RSI oversold level).
This indicates a potential shift from a bearish trend to a bullish trend, signaling a possible buy opportunity.
Bearish Reversal:
A red downward arrow appears above the price bar when the MACD line crosses below the signal line (bearish crossunder) and the RSI is in the overbought region (above the specified RSI overbought level).
This indicates a potential shift from a bullish trend to a bearish trend, signaling a possible sell opportunity.
Features:
Combines two popular indicators (MACD and RSI) to increase accuracy.
Plots clear green upward arrows for bullish reversals and red downward arrows for bearish reversals directly on the chart.
Customizable inputs:
Adjust the MACD fast, slow, and signal lengths.
Set the RSI length and thresholds for oversold and overbought conditions.
Use Case:
This indicator is suitable for traders looking for:
Visual cues for potential market reversals.
Confirmation of oversold and overbought conditions using RSI.
An additional layer of decision-making for entry and exit points.
Note: As with all indicators, this tool should not be used in isolation. Combine it with other analysis techniques and risk management strategies for the best results.
RSI + MACD Strategy with Alerts//@version=5
indicator("RSI + MACD Strategy with Alerts", overlay=true)
// ตั้งค่า RSI
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
rsiValue = ta.rsi(close, rsiLength)
// ตั้งค่า MACD
fastLength = input.int(12, title="MACD Fast Length")
slowLength = input.int(26, title="MACD Slow Length")
signalLength = input.int(9, title="MACD Signal Length")
= ta.macd(close, fastLength, slowLength, signalLength)
// เงื่อนไขสัญญาณซื้อ (Buy Signal)
buyCondition = ta.crossover(macdLine, signalLine) and rsiValue < rsiOversold
// เงื่อนไขสัญญาณขาย (Sell Signal)
sellCondition = ta.crossunder(macdLine, signalLine) and rsiValue > rsiOverbought
// แสดงสัญญาณบนกราฟ
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// แจ้งเตือน (Alert)
alertcondition(buyCondition, title="Buy Alert", message="Buy Signal: RSI Oversold และ MACD Bullish Crossover")
alertcondition(sellCondition, title="Sell Alert", message="Sell Signal: RSI Overbought และ MACD Bearish Crossover")
Midnight Opening Ranges [TDL]
Midnight Opening Ranges with Standard Deviations as taught by Micheal J. Huddleston
- Custom colors
- Up to 10 Std dev levels
- Midnight opening price
- Current and previous ranges with dates and midpoints
Market Sessions and OverlapsMarket Sessions and Overlaps Indicator
This script, titled " Market Sessions and Overlaps ," provides a detailed visualization of major global trading sessions—Asia, Europe, and New York—along with the periods where these sessions overlap. It is designed to assist traders in understanding session timings and overlaps in their local time zone. Key features include:
Session Visualization: Highlights the Asia, Europe, and New York trading sessions directly on the chart with customizable colors and transparency for better clarity.
Overlap Identification: Marks the overlapping periods between Asia-Europe and Europe-New York sessions, where market activity often intensifies, with distinct candle colors.
Time Zone Support: The script allows users to select their local time zone, ensuring all session times are displayed accurately, no matter the user’s location.
Alerts for Key Events: Includes optional alerts to notify users of session openings, closings, and the start or end of overlap periods.
This indicator serves as a visual tool for tracking session-specific activity and liquidity. It is configurable to match individual preferences, enabling better alignment with trading strategies.
Disclaimer: This script is for informational purposes only and does not provide financial advice. Please consult a licensed financial advisor for personalized trading guidance.
CryptoMitchX Memecoin ShorterUpdate for "CryptoMitchX Memecoin Shorter" Indicator
New Features & Improvements:
Conditional Hiding of Recommendations:
SHORT Recommendations: These are now hidden when the RSI (Relative Strength Index) falls below 30, preventing signals during potentially oversold conditions.
Take Profit Recommendations: Hidden when the RSI goes above 60, avoiding signals in potentially overbought market conditions.
Refined Alert System:
Alerts for both SHORT and Take Profit signals now only trigger when the RSI conditions are met, ensuring more targeted notifications.
Code Optimization:
The script has been updated to address scope-related errors, improving its reliability and performance on the TradingView platform.
Technical Details:
RSI Implementation: The RSI is calculated with a 14-period length to determine market momentum.
Conditional Plotting: Instead of using direct conditional statements inside plotting functions, we now use boolean variables to control which signals are plotted, avoiding local scope issues.
Signal Tracking: Continues to track consecutive signals, but now with the added condition of RSI thresholds for more nuanced trading signals.
Usage:
Users will see a cleaner chart with signals only appearing when they are most relevant according to RSI levels, reducing false signals and improving the overall trading strategy experience.
I nstallation:
Simply update or replace the existing indicator script with this new version in your TradingView Pine Script editor.
Known Issues & Limitations:
This update does not include real sentiment analysis due to the limitations of Pine Script in accessing external data. The sentiment is simulated based on price volatility and direction.
Feedback:
We're eager to hear your feedback on these changes. If you encounter any issues or have suggestions for further improvements, please let us know.
SQZMOM_LB StrategyUtiliza el indicador sqzmom, abriendo operaciones cuando el indicador cambia al color 3 y cerrandolas cuando cambia al color 1
Price Action + Support/Resistance with LabelsEntry Conditions:
Long Entry (BUY): Based on the bullish engulfing pattern and price being above the resistance level.
Short Entry (SELL): For demonstration, the short entry condition is set as price being below the support level and a bullish candle in the previous bar. You can modify this logic for your own use case.
Stop Loss and Take Profit:
Stoploss is plotted at the calculated stop loss level.
Target is plotted at the calculated take profit level.
Labels:
For long trades, labels are added with "BUY", "STOPLOSS", and "TARGET".
For short trades (if enabled), labels are added with "SELL", "STOPLOSS", and "TARGET".
Labels are placed using label.new at specific locations on the chart (above or below bars).
Alert Conditions:
Alerts are created for both long and short entry signals so you can get notified when the entry conditions are met.
How it works:
BUY label will appear below the bar when a long entry condition is met.
SELL label will appear above the bar when a short entry condition is met.
STOPLOSS and TARGET labels will appear at their respective levels when an entry signal is triggered.
The labels will appear on the chart to give you a clear visual cue of the entry, stop loss, and take profit levels.
How to Use:
Copy the script into your Pine Editor on TradingView and apply it to your chart.
Observe the labels that show up on the chart:
"BUY" will appear below the bar when long conditions are met.
"SELL" will appear above the bar when short conditions are met (if using short logic).
"STOPLOSS" will be plotted at the stop loss level.
"TARGET" will be plotted at the take profit level.
Optional Customization:
You can modify the short entry condition based on your preferred method.
You can adjust the length for the support/resistance calculation, the stopLossRR, and other parameters to fine-tune the strategy for Nifty 50 or any other asset.
Let me know if you have any further questions or need additional modifications!
Super Trader by CryptoMitchXDocumentation for "Super Trader by CryptoMitchX"
This indicator combines two powerful trading tools: a swing trading system and a liquidity level detector. Below are strategies, optimization tips, and best practices for using this script effectively on TradingView.
Key Features:
Swing Trader:
Moving averages (MA50 and MA100) to identify trends.
Heiken Ashi style bars for smoothing price action.
SuperTrend indicator for generating delayed buy/sell signals to reduce noise and false signals.
Liquidity Levels:
Detects and visualizes bullish and bearish liquidity zones.
Allows users to choose between "Wicks Only," "Breaks & Retests," or a combined mode.
Configurable zone extension to see how long a zone remains valid.
Strategies for Use:
Trend Following:
Use the MA50 and MA100 to determine the overall trend direction.
Uptrend: MA50 is above MA100.
Downtrend: MA50 is below MA100.
Enter trades in the direction of the trend when buy/sell signals align with liquidity levels.
Liquidity Zone Interaction:
Watch for price interactions with identified liquidity zones.
Bullish Zone: Look for buy signals near bullish zones.
Bearish Zone: Look for sell signals near bearish zones.
Combine this with Heiken Ashi bars to confirm strong momentum before entering trades.
SuperTrend Signals:
Delayed buy/sell signals reduce overtrading and help capture stronger market moves.
Use these signals as confirmation rather than standalone triggers.
Optimization Ideas:
Adjust Swing Sensitivity:
The default swing length is set to 5. Increase it (e.g., to 7-10) for higher timeframes to focus on major price pivots.
Customize Zone Behavior:
Use the "Extend Zones" option to track long-lasting zones and assess market structure.
Adjust the "Maximum Zone Bars" parameter to manage clutter and maintain relevance.
Fine-Tune SuperTrend:
Modify the ATR Period and Factor settings to suit your preferred trading timeframe.
Lower ATR: More reactive to price changes.
Higher Factor: Reduces noise and false signals.
Use Volume Data:
Pay attention to the volume histogram. Zones with high-volume interactions are more significant and likely to hold as support or resistance.
Tips for Buying and Selling:
Buying:
Look for buy signals when price interacts with bullish liquidity zones and the MA50 is above MA100.
Confirm upward momentum with Heiken Ashi candles and high volume.
Use the delayed buy signal to ensure the market has committed to the move.
Selling:
Look for sell signals when price interacts with bearish liquidity zones and the MA50 is below MA100.
Confirm downward momentum with Heiken Ashi candles and increasing volume.
Wait for delayed sell signals to reduce false exits in a volatile market.
Additional Notes:
This indicator is best used on higher timeframes (e.g., 1H, 4H, or Daily) to reduce noise.
Combine with other indicators (e.g., RSI or MACD) for additional confirmation.
Always test and refine settings using the "Replay" mode on TradingView to optimize for your trading style.
Trend Retest Strategy1. The Two Lines: Support & Resistance Levels
Red Line (recentHigh):
Plots the highest price level over the last 7 days (42 bars on the 4-hour timeframe). This acts as a dynamic resistance level.
Example: If price approaches this line and reverses, it signals a potential resistance retest.
Green Line (recentLow):
Plots the lowest price level over the last 7 days (42 bars on 4H). This acts as a dynamic support level.
Example: If price bounces off this line, it signals a support retest.
These lines update automatically as new price data forms.
Why 42 bars?
4-hour chart = 6 bars per day (24 hours / 4 = 6).
6 bars/day × 7 days = 42 bars.
2. Entry Signals (Arrows)
The arrows appear when all your strategy’s conditions align:
For Long Entries (▲ Green Triangle Below Bar):
Daily Trend: Daily RSI ≥ 50 (bullish).
MA Crossover: 20-period SMA crosses above 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≥ 50 and rising (bullish momentum).
Retest: Price is within 0.5% of either the recentHigh (resistance) or recentLow (support).
Volume: Current volume > 20-period average volume.
Candle Confirmation: A bullish candle closes above the open.
For Short Entries (▼ Red Triangle Above Bar):
Daily Trend: Daily RSI < 50 (bearish).
MA Crossover: 20-period SMA crosses below 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≤ 50 and falling (bearish momentum).
Retest: Price is near recentHigh or recentLow (same 0.5% threshold).
Volume: Volume exceeds its 20-period average.
Candle Confirmation: A bearish candle closes below the open.
3. How It All Fits Together
Step 1: The indicator checks the daily RSI to confirm the broader trend.
Step 2: On the 4H chart, it tracks the moving averages (MA20 and MA50) and RSI for momentum.
Step 3: When price retests the dynamic support/resistance lines (red/green), it waits for volume and candle confirmation to validate the retest.
Step 4: If all rules align, an arrow appears (long or short).
Example Scenario (Long Entry):
Daily Chart: RSI = 60 (bullish).
4H Chart:
MA20 crosses above MA50.
RSI = 55 and rising.
Price dips to the green support line (within 0.5%).
Volume spikes above average.
A bullish candle closes higher.
Result: A green ▲ appears below the bar.
Simple Swing Trader by CryptoMitchX How to Use the Simple Swing Trader by CryptoMitchX
How to Use:
The Simple Swing Trader indicator combines multiple tools to help you identify potential trading opportunities:
Moving Averages (MA 50 & MA 100): These are plotted as yellow and purple lines on the chart. Use these to determine trend direction and crossovers for potential trend changes.
Heiken Ashi Bars: Displayed with volume-based coloring for smoother visualization of trends. Look for changes in bar colors to identify potential shifts in momentum.
SuperTrend Buy/Sell Signals: Labels are placed on the chart to indicate "BUY" or "SELL" opportunities based on the SuperTrend calculation. Green labels signify potential buy zones, and red labels signify potential sell zones.
Volume Histogram: Shown in a separate pane, this provides an adjustable view of market activity. Use the "Volume Histogram Base Multiplier" input to customize its display.
Customization: All elements are editable for your trading preferences. Adjust colors, timeframes, and parameters as needed.
Features:
Multi-Tool Integration:
Combines trend-following, momentum-based, and volume-focused tools in one indicator.
SuperTrend Signals: Generates clear "BUY" and "SELL" labels to assist decision-making.
Heiken Ashi Visualization: Reduces noise and smoothens price data for better clarity.
Customizable Settings: Fully adjustable parameters to suit different trading styles and assets.
Volume Insights: An adaptable histogram that reflects market participation and activity.
Suggested Modifications
Alert Integration: Add alert conditions for BUY and SELL signals to receive real-time notifications.
Dynamic Color Customization: Enable dynamic coloring based on additional indicators, like RSI or MACD.
Optimization for Specific Assets: Fine-tune ATR and factor settings to align with the behavior of specific markets (e.g., crypto, forex, stocks).
Additional Indicators: Consider incorporating a momentum oscillator to enhance confirmation of trade setups.
This indicator is designed to work on any timeframe and asset. Experiment with different settings to optimize it for your trading strategy.
The Code
//@version=6
indicator("Simple Swing Trader by CryptoMitchX", overlay=true)
// Define moving averages
length50 = 50
length100 = 100
ma50 = ta.sma(close, length50)
ma100 = ta.sma(close, length100)
// Plot moving averages with specified colors and thickness
plot(ma50, title="MA 50", color=color.new(color.yellow, 0), linewidth=2)
plot(ma100, title="MA 100", color=color.new(color.purple, 0), linewidth=8)
// Moving Average Crosses
var float last_ma50 = na
var float last_ma100 = na
if (not na(ma50) and not na(ma100))
last_ma50 := ma50
last_ma100 := ma100
// Heiken Ashi style bars with volume-based coloring
ha_open = request.security(syminfo.tickerid, timeframe.period, math.avg(close , open ))
ha_close = math.avg(close, open, high, low)
ha_high = math.max(high, ha_open, ha_close)
ha_low = math.min(low, ha_open, ha_close)
var float last_volume = na
current_volume = volume
// Using plot for bar color indication without specifying color
plot(ha_close, title="HA Close", color=color.new(color.blue, 0), display=display.all, editable=true)
last_volume := current_volume
// Super Trend calculations for labels (but not plotting the line)
atrPeriod = 10
factor = 3.0
src = close
atr = ta.atr(atrPeriod)
upperband = src - (factor * atr)
lowerband = src + (factor * atr)
supertrend = na(upperband) ? na : upperband
supertrend := close > nz(supertrend ) ? math.max(upperband, nz(supertrend )) : math.min(lowerband, nz(supertrend ))
// Buy/Sell signals for SuperTrend with color (labels without plotting the line)
if (supertrend < nz(supertrend ))
label.new(bar_index, low, "BUY", color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.small)
if (supertrend > nz(supertrend ))
label.new(bar_index, high, "SELL", color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.small)
// Define histbase as an input
histbase_value = input.float(0.1, title="Volume Histogram Base Multiplier", minval=0.01, maxval=1, step=0.01)
// Display volume in a separate pane with modifications
plot(volume * histbase_value, title="Volume", color=color.new(color.white, 0), style=plot.style_histogram, linewidth=3, histbase=0, display=display.all)