ali_he96This is a customized version of the HALFTREND indicator.
Trading Method:
Timeframe: 1-hour or higher.
Buy Signal: When a buy signal is generated, open a long position and set the stop loss just below the lowest level.
Sell Signal: When a sell signal is generated, open a short position and set the stop loss just above the highest level.
Risk Management:
Make sure to learn risk management principles before trading. Always maintain a minimum risk-to-reward ratio of 2
You can set alerts to receive notifications for buy and sell signals.
Volume
Multi VWAPThis script calculates and displays four VWAP (Volume-Weighted Average Price) lines on the chart for different timeframes: Daily, Weekly, Monthly, and Yearly. Each VWAP line resets at the start of its respective period, providing insights into price trends over short and long terms.
voss 1 of 1 Price Action Volumetric Order Blocks [voss]Indicator Name: Order Block Finder
Description:
This TradingView indicator automatically detects and highlights Order Blocks — key zones where large institutions or professional traders have placed significant buy or sell orders, often resulting in sharp price moves. Order Blocks represent areas of strong demand (bullish order blocks) or supply (bearish order blocks) that price tends to revisit or react to.
Features:
Bullish Order Blocks:
The indicator identifies and marks areas where price experiences a strong reversal or acceleration upward after an institutional buying spree. These are typically seen after a significant price drop followed by a consolidation before a sharp upward movement. The Bullish Order Block is marked with a green box or green shaded area.
Bearish Order Blocks:
These are zones of institutional selling pressure where price reverses or accelerates downward after a buying climax. The Bearish Order Block is marked with a red box or red shaded area.
Zone Validity:
The indicator will adjust the order block zones based on recent price action, providing dynamic updates to reflect the validity and relevance of the zone. Older order blocks that no longer hold relevance are faded or removed.
Trend Confirmation:
The Order Block Finder will also highlight trend direction using a simple moving average (SMA) or other trend indicators, giving users an idea of whether to focus on bullish or bearish order blocks.
Alerts:
Set custom alerts for when price approaches an identified order block or when a breakout from an order block occurs. This feature helps traders stay informed in real-time about critical market zones.
Color-Coded Zones:
The indicator will color code the order block zones (green for bullish, red for bearish) and provide adjustable opacity so traders can customize the visibility according to their preference.
Automatic Drawing:
The indicator automatically draws order block zones on the chart, saving traders the time and effort of manually plotting them. The zones are based on the concept of "last up candle before a down move" for bearish order blocks and "last down candle before an up move" for bullish order blocks.
Historical & Real-Time Data:
The Order Block Finder works with both real-time and historical data, allowing traders to identify potential entry or exit points not only for the current market conditions but also to review past market reactions.
How to Use:
Look for price action that approaches the identified order block zones.
If price retraces into a bullish order block in an uptrend, it could be an ideal buying opportunity.
Conversely, if price retraces into a bearish order block in a downtrend, it could signal a shorting opportunity.
Combine with other indicators (e.g., RSI, MACD, or volume analysis) to confirm signals.
Best for:
Swing traders, day traders, and institutional traders who rely on supply and demand-based strategies.
Traders looking to identify key zones for potential reversals or continuation patterns based on institutional order flow.
Trend Volume * RMS BUY SELL * V4 By DemirkanThis indicator is a trading tool designed to assist in analyzing market trends. It primarily uses Hull Moving Average (HMA) and Root Mean Square (RMS) volume analysis to generate buy and sell signals. Below is a detailed explanation of the functions used and their purposes:
1. EMA and ATR User Settings
pine
Kodu kopyala
emaLength = input.int(10, title="EMA Length")
atrLength = input.int(14, title="ATR Length")
atrMin = input.float(0.1, title="ATR Min")
atrMax = input.float(1.5, title="ATR Max")
colorUp = input.color(color.green, title="Buy Color")
colorDown = input.color(color.red, title="Sell Color")
This section allows the user to customize the indicator's parameters:
EMA Length: The period length for the Exponential Moving Average (EMA).
ATR Length: The period length for the Average True Range (ATR) indicator.
ATR Min and ATR Max: Minimum and maximum values for ATR.
colorUp and colorDown: Colors for the buy and sell signals.
2. Hull Moving Average (HMA) Settings
pine
Kodu kopyala
src = input(close, title="Source")
length = input.int(55, title="Hull Length")
lengthMult = input.float(1.0, title="Length Multiplier")
useHtf = input.bool(false, title="Show Hull MA from X timeframe?")
htf = input.timeframe("240", title="Higher timeframe")
This section sets up the parameters for the Hull Moving Average (HMA):
Source: The price source to use for HMA calculation (e.g., close price).
Hull Length: The period length for HMA calculation.
Length Multiplier: Multiplier for the HMA period.
useHtf: Allows the user to display the HMA from a different time frame (e.g., 4-hour chart).
htf: The time frame for the HMA calculation.
3. Hull MA Function
pine
Kodu kopyala
HMA(_src, _length) =>
ta.wma(2 * ta.wma(_src, _length / 2) - ta.wma(_src, _length), math.round(math.sqrt(_length)))
Here, the function for calculating the Hull Moving Average (HMA) is defined:
WMA (Weighted Moving Average): The weighted moving average function used in HMA calculation.
math.sqrt: The square root of the period length is used to improve the accuracy of HMA.
4. RMS Volume Calculation
pine
Kodu kopyala
trendLength = input.int(20, title="RMS Trend Length")
rmsVolume = math.sqrt(ta.sma(math.pow(volume, 2), trendLength))
This section calculates the Root Mean Square (RMS) of volume:
RMS: The square root of the average of squared volume values is calculated to measure volume variability.
SMA (Simple Moving Average): The average volume is calculated over a specified period.
5. RMS Volume Categorization
pine
Kodu kopyala
rmsCategory = "Low"
if rmsVolume > 1.5
rmsCategory := "High"
else if rmsVolume > 0.5
rmsCategory := "Medium"
This code categorizes the RMS volume into Low, Medium, and High categories. It highlights the importance of price movements accompanied by high volume.
6. Buy and Sell Signals
pine
Kodu kopyala
buySignal = (close > HULL) and (rmsCategory == "High")
sellSignal = (close < HULL) and (rmsCategory == "High")
Buy Signal: A buy signal is generated when the price is above the HMA and the volume is high.
Sell Signal: A sell signal is generated when the price is below the HMA and the volume is high.
7. Plot Hull MA
pine
Kodu kopyala
plot(HULL, title="Hull MA", color=color.blue, linewidth=2)
The Hull Moving Average is plotted in blue with a line width of 2 pixels on the chart.
8. Buy/Sell Signals as Shapes
pine
Kodu kopyala
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=colorUp, style=shape.triangleup, size=size.small)
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=colorDown, style=shape.triangledown, size=size.small)
Buy and sell signals are displayed as triangle shapes with the specified colors on the chart.
9. Alert Conditions
pine
Kodu kopyala
alertcondition(buySignal, title="Buy Alert", message="Price crossed above Hull MA with High RMS")
alertcondition(sellSignal, title="Sell Alert", message="Price crossed below Hull MA with High RMS")
These alert conditions notify the user when a buy or sell signal is triggered based on the Hull MA and RMS volume criteria.
Purpose and Warnings:
This indicator analyzes market trends using Hull Moving Average and RMS volume analysis, generating buy and sell signals based on high volume and trend direction.
However, it should not be used as a standalone indicator. It must be complemented with other indicators and analysis methods. Always apply risk management and consider market conditions when making buy and sell decisions.
Volume to Candle Size Ratio - UpdatedBased on the script from but with some added features (more to come)
(don't mind that the screen shot above has 3 of the same indicator....I was testing/debugging when it took and published the screen shot)
What's new:
- Works across all time frames, not just the 5 minute
- Added a moving average line
- Added alerts so that you don't have to watch the charts
Soon to come:
- Add levels/zones to be shown on the chart and used with the indicator. The indicator will alert you when a volume/price ratio candle approaches your levels (would also be useful for automated backtesting)
- Using the volume profile and the indicator to automate finding levels/zones for you
Zonas de Volumen, POC, Stop/Take ProfitEste indicador en TradingView, denominado "Zonas de Volumen, POC y Stop/Take Profit", permite visualizar las áreas clave de negociación en un activo, ayudando a identificar puntos estratégicos para gestionar posiciones.
Threshold-Based Delta Price-Volume StrategyThis strategy observed change in price with reference to change in volume.
Rising Price (Strong Buy):
Price change > 3%.
Volume change > 10%.
Falling Price (Strong Buy):
Price change < -4%.
Volume change < 4%.
First 5 Minutes Open/Close LinesThis very simple indicator paints lines at the high and low of the first 5m candle of the session. It is primarily intended for big cap NYSE traded stocks with high volume. I wrote this indicator to save me the trouble of manually drawing the lines each day.
The lines drawn at the 5m high/low will remain constant regardless of which timeframe you switch to. In the example screenshot, we are looking at the 1m timeframe. This helps us switch effortlessly between different timeframes to see if a given price movement meets our entry criteria.
In addition to drawing lines at the first 5m high/low, it will optionally paint two zones, one each around the high and low. The boundaries of this zone are configurable and expressed as a percentage of the total movement of the first 5m bar. By default, it is set to 25%.
This indicator is based on the concept that the first 5m bar always has massive volume which helps us infer that price may react around the extremes of that movement. The basic strategy works something like this:
- You identify the high timeframe (HTF) trend direction of the stock
- You wait for the first 5m candle of the session to close
- You wait for price to puncture through the outer boundary of the zone marked by the indicator.
- You enter when price retraces to the high, or low, which marks the midpoint of the punctured zone.
- Only enter long on stocks in a HTF uptrend, and short on stocks in an HTF downtrend.
- Use market structure to identify stop loss and take profit targets
Note: Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
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.
Strong buy sell for NQ and QQQworks for qqq and nq to identify buy pressure, sell pressure, and absorption
On Balance Volume Oscillator of Trading Volume TrendOn Balance Volume Oscillator of Trading Volume Trend
Introduction
This indicator, the "On Balance Volume Oscillator of Trading Volume Trend," is a technical analysis tool designed to provide insights into market momentum and potential trend reversals by combining the On Balance Volume (OBV) and Relative Strength Index (RSI) indicators.
Calculation and Methodology
* OBV Calculation: The indicator first calculates the On Balance Volume, which is a cumulative total of the volume of up days minus the volume of down days. This provides a running tally of buying and selling pressure.
* RSI of OBV: The RSI is then applied to the OBV values to smooth the data and identify overbought or oversold conditions.
* Exponential Moving Averages (EMAs): Two EMAs are calculated on the RSI of OBV. A shorter-term EMA (9-period in this case) and a longer-term EMA (100-period) are used to generate signals.
Interpretation and Usage
* EMA Crossovers: When the shorter-term EMA crosses above the longer-term EMA, it suggests increasing bullish momentum. Conversely, a downward crossover indicates weakening bullish momentum or increasing bearish pressure.
* RSI Divergences: Divergences between the price and the indicator can signal potential trend reversals. For example, if the price is making new highs but the indicator is failing to do so, it could be a bearish divergence.
* Overbought/Oversold Conditions: When the RSI of OBV is above 70, it suggests the market may be overbought and a potential correction could be imminent. Conversely, when it is below 30, it suggests the market may be oversold.
Visual Representation
The indicator is plotted on a chart with multiple lines and filled areas:
* Two EMAs: The shorter-term EMA and longer-term EMA are plotted to show the trend of the OBV.
* Filled Areas: The area between the two EMAs is filled with a color to indicate the strength of the trend. The color changes based on whether the shorter-term EMA is above or below the longer-term EMA.
* RSI Bands: Horizontal lines at 30 and 70 mark the overbought and oversold levels for the RSI of OBV.
Summary
The On Balance Volume Oscillator of Trading Volume Trend provides a comprehensive view of market momentum and can be a valuable tool for traders. By combining the OBV and RSI, this indicator helps identify potential trend reversals, overbought and oversold conditions, and the strength of the current trend.
Note: This indicator should be used in conjunction with other technical analysis tools and fundamental analysis to make informed trading decisions.
Trend Master v2The Trend Master indicator is designed to highlight trends and provide visual feedback on trend strength by filling the space between two key Exponential Moving Averages (EMAs) on your chart. This indicator uses the 9-period and 20-period EMAs as the primary trend signals, along with a 200-period EMA for determining long-term trend alignment.
The fill color between the EMAs changes dynamically to represent different market conditions:
Green Fill: The short-term trend (9 EMA) is above the mid-term trend (20 EMA), and both are above the long-term trend (200 EMA), indicating a strong uptrend.
Red Fill: The short-term trend is below the mid-term trend, and both are below the long-term trend, signaling a strong downtrend.
Gray Fill: Mixed conditions, where either the short-term trend is above the mid-term trend but below the long-term trend, or vice versa, indicating a possible trend transition or weak trend alignment.
Opacity Adjustment: The fill opacity changes based on the percentage distance between the 9 EMA and the 200 EMA, highlighting strong versus weak trends:
Higher Opacity: Indicates a more pronounced trend when the short-term and long-term EMAs have a larger gap.
Lower Opacity: Occurs when the short-term and long-term EMAs are close, suggesting weaker trend strength.
Usage:
This indicator provides traders with a quick visual snapshot of trend alignment and strength. Use it to identify when trends are in clear alignment for potential entries and to spot possible trend reversals during periods of weak alignment.
Delivery Volume IndicatorDelivery Volume Indicator
The Delivery Volume Indicator is designed to provide insights into trading volume specifically delivered on a daily basis, scaled in lakhs (hundreds of thousands) for ease of interpretation. This tool can be especially useful for traders looking to monitor delivery-based volume changes and trends, as it helps to distinguish between bullish and bearish volume flows.
Key Features:
Daily Volume in Lakhs: The indicator pulls daily volume data and scales it to lakhs for more readable values.
Bullish/Bearish Color Coding: The indicator color-codes volume columns to reflect market sentiment. Columns are displayed in green when the price closes higher than it opens (bullish) and in red when the price closes lower than it opens (bearish).
Adjustable EMA: A customizable Exponential Moving Average (EMA) is applied to the scaled delivery volume. The EMA line, displayed in blue, helps smooth out volume trends and allows traders to adjust the period for personal strategy alignment.
How to Use:
Observe the delivery volume changes to track market sentiment over time. Increased bullish delivery volume could indicate accumulating interest, while increased bearish delivery volume might suggest distribution.
Utilize the EMA to identify longer-term trends in delivery volume, with shorter EMA periods for quick volume shifts and longer periods for gradual trend changes.
This indicator is ideal for traders seeking volume-based insights that align closely with price action.
10 EMA Break with Volume ConfirmationTracks when price breaks above or below 10 EMA with above average volume useful for meaningful breaks above or below as well as false breaks with easy to read icons
enjoy :)
MERCURY by Dr.Abiram Sivprasad - Adaptive Pivot and Ema AlertSYSThe MERCURY indicator is an advanced, adaptive indicator designed to support traders in detecting critical price movements and trend reversals in real time. Developed with precision by Dr. Abhiram Sivprasad, this tool combines a sophisticated Central Pivot Range (CPR), EMA crossovers, VWAP levels, and multiple support and resistance indicators into one streamlined solution.
Key Features:
Central Pivot Range (CPR): MERCURY calculates the central pivot along with below-central (BC) and top-central (TC) pivots, helping traders anticipate areas of potential reversal or breakout.
EMA Crossovers: The indicator includes up to nine EMAs with customizable lengths. An integrated EMA crossover alert system provides timely signals for potential trend shifts.
VWAP Integration: The VWAP levels are used in conjunction with EMA crossovers to refine trend signals, making it easier for traders to spot high-probability entries and exits.
Adaptive Alerts for Breakouts and Breakdowns: MERCURY continuously monitors the chart for conditions such as all EMAs turning green or red. The alerts trigger when a candle body closes above/below the VWAP and EMA1 and EMA2 levels, confirming a breakout or breakdown.
Customizable EMA Dashboard: An on-chart table displays the status of EMAs in real-time, with color-coded indicators for easy readability. It highlights long/short conditions based on the EMA setup, guiding traders in decision-making at a glance.
How to Use:
Trend Confirmation: Use the CPR and EMA alignment to identify uptrends and downtrends. The table colors and alerts provide a clear, visual cue for entering long or short positions.
Breakout and Breakdown Alerts: The alert system enables traders to set continuous alerts for critical price levels. When all EMAs align in one color (green for long, red for short), combined with a candle closing above or below VWAP and EMA levels, the indicator generates breakout or breakdown signals.
VWAP & EMA Filtering: VWAP acts as a dynamic support/resistance level, while the EMAs provide momentum direction. Traders can refine entry/exit points based on this multi-layered setup.
Usage Scenarios:
Day Trading & Scalping: Traders can use the CPR, VWAP, and EMA table to make swift, informed decisions. The multiple EMA settings allow scalpers to set shorter EMAs for quicker responses.
Swing Trading: Longer EMA settings combined with VWAP and CPR can provide insights into sustained trends, making it useful for holding positions over several days.
Risk Management: MERCURY dashboard and alert functionality allow traders to set clear boundaries, reducing impulsive decisions and enhancing trading discipline.
Indicator Composition:
Open-Source: The core logic for CPR and EMA crossovers is presented open-source, ensuring transparency and user adaptability.
Advanced Logic Integration: This indicator implements custom calculations and filtering, optimizing entry and exit signals by merging VWAP, CPR, and EMA in a logical and user-friendly manner.
Chart Requirements:
For best results, use MERCURY on a clean chart without additional indicators. The default settings are optimized for simplicity and clarity, so avoid cluttering the chart with other tools unless necessary.
Timeframes: MERCURY is suitable for timeframes as low as 5&15 minutes for intraday trading and up to daily timeframes for trend analysis.
Symbol Settings: Works well across forex, stocks, and crypto assets. Adjust EMA lengths based on the asset’s volatility.
Example Chart Settings:
Symbol/Timeframe: BTCUSD, 1-hour timeframe (or any symbol as per user preference).
Settings: Default settings for CPR and EMA table.
Chart Style: Clean chart with MERCURY as the primary indicator.
Publishing Considerations:
Invite-Only Access: If setting to invite-only, ensure compliance with the Vendor requirements.
Limit Claims: Avoid making unsubstantiated claims about accuracy, as MERCURY should be viewed as a tool to aid analysis, not as a guaranteed performance predictor.
Example Strategy
This indicator provides signals primarily for trend-following and reversal strategies:
1. Trend Continuation:
- Buy Signal: When the price crosses above both EMA1 and EMA2 and holds above the daily CPR level, a bullish trend continuation is confirmed.
- Sell Signal: When the price crosses below both EMA1 and EMA2 and holds below the daily CPR level, a bearish trend continuation is confirmed.
2. Reversal at Pivot Levels:
- If the price approaches a resistance (R1, R2, or R3) from below with an uptrend and then begins to cross under EMA1 or EMA2, it may signal a bearish reversal.
- If the price approaches a support (S1, S2, or S3) from above in a downtrend and then crosses above EMA1 or EMA2, it may signal a bullish reversal.
Example Setup
- Long Entry
- When the price crosses above the daily pivot point and closes above both EMA1 and EMA2.
- Hold the position if the price remains above the VWAP band and monitor for any EMA crossunder as an exit signal.
- Short Entry:
- When the price drops below the daily pivot and both EMA1 and EMA2 cross under the price.
- Consider covering the position if the price breaks above the VWAP band or if a crossover of EMA1 and EMA2 occurs.
Alerts
Alerts are customizable based on EMA1 & EMA2 crossovers to notify the trader of potential trend shifts.
Multiple EMA, SMA & VWAPThere is 4 EMAs - 5, 9, 21, 50; 4 SMAs - 5, 10, 50, 200; 1 VWAP which can be edited according yourself
VWAP on Straddle & Strangle From Sandeep// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © AlgoTest
//@version=5
indicator("VWAP on Straddle & Strangle", overlay = false)
var bool first = true
var strike_gap = map.new()
if first
first := false
strike_gap.put("NIFTY", 50)
strike_gap.put("BANKNIFTY", 100)
strike_gap.put("FINNIFTY", 50)
strike_gap.put("MIDCPNIFTY", 25)
strike_gap.put("SENSEX", 100)
strike_gap.put("CRUDEOIL",50)
spot = input.string( "NIFTY" , title = "Spot Symbol", options = , group = "Index")
tooltip_day = "Enter the day of the expiry. Add 0 infront, if day is in single digit. For eg : 05 instead of 5"
tooltip_month = "Enter the month of the expiry. Add 0 infront, if month is in single digit. For eg : 06 instead of 6"
tooltip_year = "Enter the year of the expiry. Use last digit of the year. For eg : 24 instead of 2024"
_day = input.string( "11" , title = "Expiry Day", tooltip = tooltip_day, group="Expiry Date")
_month = input.string( "07" , title = "Expiry Month", tooltip = tooltip_month, group="Expiry Date")
_year = input.string( "24" , title = "Expiry Year", tooltip = tooltip_year, group="Expiry Date")
tooltip_ = "You can select any Strike, you can also have VWAP on Straddle, Strangle"
strike_ce = input.int(24300, "Call Strike", tooltip = tooltip_, group = "Select Strike")
strike_pe = input.int(24300, "Put Strike", tooltip = tooltip_, group = "Select Strike")
var string symbol_CE = ""
var string symbol_PE = ""
if(spot == "SENSEX")
symbol_CE := spot+"_"+_year+_month+_day+"_C_"+str.tostring(strike_ce)
symbol_PE := spot+"_"+_year+_month+_day+"_P_"+str.tostring(strike_pe)
if(spot != "SENSEX")
symbol_CE := spot+_year+_month+_day+"C"+str.tostring(strike_ce)
symbol_PE := spot+_year+_month+_day+"P"+str.tostring(strike_pe)
= request.security( symbol_CE, timeframe.period , )
= request.security( symbol_PE, timeframe.period , )
call_volume = request.security( symbol_CE, timeframe.period , volume )
put_volume = request.security( symbol_PE, timeframe.period , volume )
straddle_open = call_open + put_open
straddle_close = call_close + put_close
straddle_high = math.max(straddle_open, straddle_close)
straddle_low = math.min(straddle_open, straddle_close)
straddle_volume = call_volume + put_volume
var float sumPriceVolume = 0.0
var float sumVolume = 0.0
var float vwap = 0.0
if (dayofweek != dayofweek )
sumPriceVolume := 0.0
sumVolume := 0.0
vwap := 0.0
sumPriceVolume += straddle_close * straddle_volume
sumVolume += straddle_volume
vwap := sumPriceVolume / sumVolume
plotcandle ( straddle_open , straddle_high , straddle_low , straddle_close , title = "Straddle" , color = straddle_close > straddle_open ? color.green : color.red )
// vwap = ta.vwap(straddle_close)
plot ( vwap , title = "VWAP on Straddle" , color = color.blue , linewidth = 2 )
entry = straddle_close < vwap and straddle_close >= vwap
exit = straddle_close >= vwap and straddle_close < vwap
plotshape(exit, title = "Exit", text = 'Exit', style = shape.labeldown, location = location.top, color= color.red, textcolor = color.white, size = size.tiny)
plotshape(entry, title = "Entry", text = 'Entry', style = shape.labelup, location = location.bottom, color= color.green, textcolor = color.white, size = size.tiny)
alertcondition(exit, "Exit", "Exit")
alertcondition(entry, "Entry", "Entry")
Volume Bars [jpkxyz]
Multi-Timeframe Volume indicator by @jpkxyz
This script is a Multi-Timeframe Volume Z-Score Indicator. It dynamically calculates /the Z-Score of volume over different timeframes to assess how significantly current
volume deviates from its historical average. The Z-Score is computed for each
timeframe independently and is based on a user-defined lookback period. The
script switches between timeframes automatically, adapting to the chart's current
timeframe using `timeframe.multiplier`.
The Z-Score formula used is: (current volume - mean) / standard deviation, where
mean and standard deviation are calculated over the lookback period.
The indicator highlights periods of "significant" and "massive" volume by comparing
the Z-Score to user-specified thresholds (`zScoreThreshold` for significant volume
and `massiveZScoreThreshold` for massive volume). The script flags buy or sell
conditions based on whether the current close is higher or lower than the open.
Visual cues:
- Dark Green for massive buy volume.
- Red for massive sell volume.
- Green for significant buy volume.
- Orange for significant sell volume.
- Gray for normal volume.
The script also provides customizable alert conditions for detecting significant or massive buy/sell volume events, allowing users to set real-time alerts.
David_candle length with average and candle directionThis indicator,
calculates the difference between the highest and lowest price (High-Low difference) for a specified number of periods and displays it in a table. Here are the functions and details included:
Number of Periods: The user can define the number of periods (e.g., 10) for which the High-Low differences are calculated.
Table Position: The position of the table that displays the results can be selected by the user (top left, top right, bottom left, or bottom right).
High-Low Difference per Candle: For each defined period, the difference between the highest and lowest price of the respective candle is calculated.
Candle Direction: The color of the displayed text in the table changes based on the candle direction:
Green for bullish candles (close price higher than open price).
Red for bearish candles (close price lower than open price).
White for neutral candles (close price equal to open price).
Average: Below the High-Low differences, the average value of the calculated differences is displayed in yellow text.
This indicator is useful for visually analyzing the volatility and movement range within the recent candles by highlighting the average High-Low difference.
VPA Volume Price AverageDescription:
This indicator displays a moving average of volume and its signal line in a separate pane, with conditional highlighting to help interpret buyer and seller pressure. It’s based on two main lines:
Volume Moving Average (red line) : represents the average volume calculated over a configurable number of periods.
Signal Line of the Volume Moving Average (blue line): this is an average of the volume moving average itself, used as a reference for volume trends.
Key Features
Volume Moving Average with Conditional Highlighting:
The volume moving average is plotted as a red line and changes color based on two specific conditions:
The closing price is above its moving average, calculated over a configurable number of periods, indicating a bullish trend.
The volume moving average is greater than the signal line, suggesting an increase in buyer pressure.
When both conditions are met, the volume moving average turns green. If one or both conditions are not met, the line remains red.
Signal Line of the Volume Moving Average:
The signal line is plotted in blue and represents a smoothed version of the volume moving average, useful for identifying long-term volume trends and as a reference for the highlighting condition.
Customizable Periods
The indicator allows you to set the periods for each average to adapt to different timeframes and desired sensitivity:
Period for calculating the volume moving average.
Period for calculating the signal line of the volume moving average.
Period for the price moving average (used in the highlighting condition).
How to Use
This indicator is especially useful for monitoring volume dynamics in detail, with a visual system that highlights conditions of increasing buyer strength when the price is in an uptrend. The green highlight on the volume moving average provides an intuitive signal for identifying potential moments of buyer support.
Try it to gain a clearer and more focused view of volume behavior relative to price movement!
ROCnRollThe ROCnRoll indicator can be used on any asset and aims to generate bullish or bearish signals based on market trends, assisting investors in making buy or sell decisions.
This technical indicator combines two well-known and complementary indicators:
The Rate of Change (ROC)
The Exponential Moving Average (EMA)
With these two tools, the ROCnRoll indicator accurately, precisely, and flexibly reflects the volatility of the analyzed asset prices.