Market Structure Trend Targets [ChartPrime]The Market Structure Trend Targets indicator is designed to identify trend direction and continuation points by marking significant breaks in price levels. This approach helps traders track trend strength and potential reversal points. The indicator uses previous highs and lows as breakout triggers, providing a visual roadmap for trend continuation or mean reversion signals.
⯁ KEY FEATURES AND HOW TO USE
⯌ Breakout Points with Numbered Markers :
The indicator identifies key breakout points where price breaks above a previous high (for uptrends) or below a previous low (for downtrends). The initial breakout (zero break) is marked with the entry price and a triangle icon, while subsequent breakouts within the trend are numbered sequentially (1, 2, 3…) to indicate trend continuation.
Example of breakout markers for uptrend and downtrend:
⯌ Percentage Change Display Option :
Traders can toggle on a setting to display the percentage change from the initial breakout point to each subsequent break level, offering an easy way to gauge trend momentum over time. This is particularly helpful for identifying how far price has moved in the current trend.
Percentage change example between break points:
⯌ Dynamic Stop Loss Levels :
In uptrends, the stop loss level is placed below the price to protect against downside moves. In downtrends, it is positioned above the price. If the price breaches the stop loss level, the indicator resets, indicating a potential end or reversal of the trend.
Dynamic stop loss level illustration in uptrend and downtrend:
⯌ Mean Reversion Signals :
The indicator identifies potential mean reversion points with diamond icons. In an uptrend, if the price falls below the stop loss and then re-enters above it, a diamond is plotted, suggesting a possible mean reversion. Similarly, in a downtrend, if the price moves above the stop loss and then falls back below, it indicates a reversion possibility.
Mean reversion diamond signals on the chart:
⯌ Trend Visualization with Colored Zones :
The chart background is shaded to visually represent trend direction, with color changes corresponding to uptrends and downtrends. This makes it easier to see overall market conditions at a glance.
⯁ USER INPUTS
Length : Defines the number of bars used to identify pivot highs and lows for trend breakouts.
Display Percentage : Option to toggle between showing sequential breakout numbers or the percentage change from the initial breakout.
Colors for Uptrend and Downtrend : Allows customization of color zones for uptrends and downtrends to match individual chart preferences.
⯁ CONCLUSION
The Market Structure Trend Targets indicator offers a strategic way to monitor market trends, track breakouts, and manage risk through dynamic stop loss levels. Its clear visual representation of trend continuity, alongside mean reversion signals, provides traders with actionable insights for both trend-following and counter-trend strategies.
Trend Analysis
Nimu Market on DemandNimu Market On Demand is an innovative tool designed to provide a visual representation of market demand levels on a scale of 1 to 100. This scale is displayed at specific intervals , making it easy for users to understand market demand fluctuations in real time.
To enhance analysis, Nimu Market On Demand also incorporates the Relative Strength Index (RSI) with key thresholds at . RSI is a widely-used technical indicator that measures market strength and momentum, offering insights into overbought (excessive buying) or oversold (excessive selling) conditions.
The combination of the Demand graph and RSI enables users to:
Identify the right time to buy when the RSI falls below 30, signaling an oversold condition.
Determine the optimal time to sell when the RSI rises above 70, indicating an overbought condition.
With an integrated visualization, users can effortlessly observe demand patterns and combine them with RSI signals to make smarter and more strategic trading decisions. This tool is designed to help traders and investors maximize opportunities in a dynamic market environment.
Absorption AnalysisThe Absorption Analysis indicator identifies potential market turning points by analyzing volume, price patterns, and market structure across multiple dimensions. It combines traditional technical signals with volume analysis and success rate tracking to provide high-probability reversal opportunities.
Signal Types & Classification
1. Pattern-Based Signals (W-Bottom & M-Top)
**W-Bottom Pattern**
- Pattern Structure:
* Price makes a low below the lower Bollinger Band
* First bounce occurs with price moving higher
* Secondary test forms a higher low
* Final confirmation with bullish close above lower band
- Volume Requirements:
* Must exceed 1.5x the 20-period volume moving average
- Visual Indicators:
* Blue dotted line appears at pattern low
* Line remains until broken by price
* Label shows volume and percentage from baseline
- Success Tracking:
* Pattern stored in historical database
* Success measured by upward price movement
* Historical success rate displayed with signal
**M-Top Pattern**
- Pattern Structure:
* Price makes a high above the upper Bollinger Band
* First pullback occurs with price moving lower
* Secondary push forms a lower high
* Final confirmation with bearish close below upper band
- Volume Requirements:
* Must exceed 1.5x the 20-period volume moving average
- Visual Indicators:
* Orange dotted line appears at pattern high
* Line remains until broken by price
* Label shows volume and percentage from baseline
- Success Tracking:
* Pattern stored in historical database
* Success measured by downward price movement
* Historical success rate displayed with signal
2. Technical Reversals
**Bullish Reversal**
- Entry Conditions:
* Previous candle closes below lower Bollinger Band
* Previous candle must be bearish
* Current candle closes above lower band
* Current candle must be bullish
- Volume Validation:
* Volume must exceed 1.5x 20-period MA
- Visual Markers:
* Green label at reversal point
* Includes volume context
- Trading Implementation:
* Suggests strong buying pressure overcoming selling
* Often marks end of downward price exhaustion
**Bearish Reversal**
- Entry Conditions:
* Previous candle closes above upper Bollinger Band
* Previous candle must be bullish
* Current candle closes below upper band
* Current candle must be bearish
- Volume Validation:
* Volume must exceed 1.5x 20-period MA
- Visual Markers:
* Red label at reversal point
* Includes volume context
- Trading Implementation:
* Suggests strong selling pressure overcoming buying
* Often marks end of upward price exhaustion
3. Volume-Based Reversals
**High Volume Bear to Bull**
- Signal Formation:
* High volume bearish candle (2.5σ above mean)
* Immediately followed by high volume bullish candle
- Market Psychology:
* Shows strong selling being absorbed by buying
* Often indicates institutional accumulation
- Visual Identification:
* Purple "HV Bull" label
* Includes volume statistics
- Trading Context:
* Strong signal for trend reversal
* Most effective at support levels
**High Volume Bull to Bear**
- Signal Formation:
* High volume bullish candle (2.5σ above mean)
* Immediately followed by high volume bearish candle
- Market Psychology:
* Shows strong buying being absorbed by selling
* Often indicates institutional distribution
- Visual Identification:
* Purple "HV Bear" label
* Includes volume statistics
- Trading Context:
* Strong signal for trend reversal
* Most effective at resistance levels
4. Absorption Signals
**Buy Absorption**
- Technical Requirements:
* High volume conditions (2.5σ above mean)
* Spread momentum must be negative
* Fast spread MA below slow spread MA
* Bullish closing candle
- Market Interpretation:
* Indicates buying pressure absorbing selling
* Often precedes upward movement
- Visual Markers:
* Red label with volume context
* Placed at significant price levels
**Sell Absorption**
- Technical Requirements:
* High volume conditions (2.5σ above mean)
* Spread momentum must be negative
* Fast spread MA below slow spread MA
* Bearish closing candle
- Market Interpretation:
* Indicates selling pressure absorbing buying
* Often precedes downward movement
- Visual Markers:
* Green label with volume context
* Placed at significant price levels
Volume Analysis Components
Volume Calculation
- Rolling baseline volume calculated based on timeframe:
* Monthly: 6-period sum
* Weekly: 12-period sum
* Daily: 20-period sum
* Intraday: Proportional to timeframe
- Net volume = Bullish volume - Bearish volume
- Volume percentage calculated against baseline
- High volume threshold = 2.5 standard deviations
- Pattern volume threshold = 1.5x 20MA
Exchange Aggregation
- Primary symbol (chart) always included
- Optional secondary symbol data
- Combines volume data for stronger signals
- Useful for crypto markets with split liquidity
Success Rate Implementation
Rate Calculation
- Based on user-defined lookback period
- Separately tracked for each pattern type
- Bullish patterns: Percentage of times price moved higher
- Bearish patterns: Percentage of times price moved lower
- Used to filter alerts with minimum threshold
Pattern Storage
- Arrays maintain historical pattern data
- Limited to lookback period size
- Oldest patterns removed as new ones form
- Constantly updated success rates
## Trading Implementation
### Signal Priority
1. Pattern Signals (W/M)
- Highest reliability due to complex criteria
- Must meet all volume and price conditions
- Line break provides clear invalidation
2. High Volume Reversals
- Strong indication of institutional activity
- Clear volume confirmation
- Immediate reversal potential
3. Technical Reversals
- Traditional technical analysis backbone
- Enhanced with volume confirmation
- Good for trend trading
4. Absorption Signals
- Early warning system
- Best used with other confirmations
- Good for position building
Best Practices
- Look for multiple signal types aligning
- Consider higher timeframe context
- Use success rates to filter setups
- Monitor volume context closely
- Wait for candle closes
- Use line breaks for clear invalidation
- Consider market structure
- Pay attention to success rates
- Use appropriate position sizing
Risk Management
- Use pattern breaks for stop losses
- Consider historical success rates
- Larger positions for multiple signal confluence
- Respect timeframe hierarchy
- Monitor volume for confirmation
- Use proper position sizing
- Consider market volatility
This indicator provides a comprehensive framework for identifying potential market turning points while maintaining rigorous risk management through multiple confirmation factors and clear invalidation levels.
Profitability Visualization with Bid-Ask Spread ApproximationOverview
The " Profitability Visualization with Bid-Ask Spread Approximation " indicator is designed to assist traders in assessing potential profit and loss targets in relation to the current market price or a simulated entry price. It provides flexibility by allowing users to choose between two methods for calculating the offset from the current price:
Bid-Ask Spread Approximation: The indicator attempts to estimate the bid-ask spread by using the highest (high) and lowest (low) prices within a given period (typically the current bar or a user-defined timeframe) as proxies for the ask and bid prices, respectively. This method provides a dynamic offset that adapts to market volatility.
Percentage Offset: Alternatively, users can specify a fixed percentage offset from the current price. This method offers a consistent offset regardless of market conditions.
Key Features
Dual Offset Calculation Methods: Choose between a dynamic bid-ask spread approximation or a fixed percentage offset to tailor the indicator to your trading style and market analysis.
Entry Price Consideration: The indicator can simulate an entry price at the beginning of each trading session (or the first bar on the chart if no sessions are defined). This feature enables a more realistic visualization of potential profit and loss levels based on a hypothetical entry point.
Profit and Loss Targets: When the entry price consideration is enabled, the indicator plots profit target (green) and loss target (red) lines. These lines represent the price levels at which a trade entered at the simulated entry price would achieve a profit or incur a loss equivalent to the calculated offset amount.
Offset Visualization: Regardless of whether the entry price is considered, the indicator always displays upper (aqua) and lower (fuchsia) offset lines. These lines represent the calculated offset levels based on the chosen method (bid-ask approximation or percentage offset).
Customization: Users can adjust the percentage offset, toggle the bid-ask approximation and entry price consideration, and customize the appearance of the lines through the indicator's settings.
Inputs
useBidAskApproximation A boolean (checkbox) input that determines whether to use the bid-ask spread approximation (true) or the percentage offset (false). Default is false.
percentageOffset A float input that allows users to specify the percentage offset to be used when useBidAskApproximation is false. The default value is 0.63.
considerEntryPrice A boolean input that enables the consideration of a simulated entry price for calculating and displaying profit and loss targets. Default is true.
Calculations
Bid-Ask Approximation (if enabled): bidApprox = request.security(syminfo.tickerid, timeframe.period, low) Approximates the bid price using the lowest price (low) of the current period. askApprox = request.security(syminfo.tickerid, timeframe.period, high) Approximates the ask price using the highest price (high) of the current period. spreadApprox = askApprox - bidApprox Calculates the approximate spread.
Offset Amount: offsetAmount = useBidAskApproximation ? spreadApprox / 2 : close * (percentageOffset / 100) Determines the offset amount based on the selected method. If useBidAskApproximation is true, the offset is half of the approximated spread; otherwise, it's the current closing price (close) multiplied by the percentageOffset.
Entry Price (if enabled): var entryPrice = 0.0 Initializes a variable to store the entry price. if considerEntryPrice Checks if entry price consideration is enabled. if barstate.isnew Checks if the current bar is the first bar of a new session. entryPrice := close Sets the entryPrice to the closing price of the first bar of the session.
Profit and Loss Targets (if entry price is considered): profitTarget = entryPrice + offsetAmount Calculates the profit target price level. lossTarget = entryPrice - offsetAmount Calculates the loss target price level.
Plotting
Profit Target Line: Plotted in green (color.green) with a dashed line style (plot.style_linebr) and increased linewidth (linewidth=2) when considerEntryPrice is true.
Loss Target Line: Plotted in red (color.red) with a dashed line style (plot.style_linebr) and increased linewidth (linewidth=2) when considerEntryPrice is true.
Upper Offset Line: Always plotted in aqua (color.aqua) to show the offset level above the current price.
Lower Offset Line: Always plotted in fuchsia (color.fuchsia) to show the offset level below the current price.
Limitations
Approximation: The bid-ask spread approximation is based on high and low prices and may not perfectly reflect the actual bid-ask spread of a specific broker, especially during periods of high volatility or low liquidity.
Simplified Entry: The entry price simulation is basic and assumes entry at the beginning of each session. It does not account for specific entry signals or order types.
No Order Execution: This indicator is purely for visualization and does not execute any trades.
Data Discrepancies: The high and low values used for approximation might not always align with real-time bid and ask prices due to differences in data aggregation and timing between TradingView and various brokers.
Disclaimer
This indicator is for educational and informational purposes only and should not be considered financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct thorough research and consider your own risk tolerance before making any trading decisions. It is recommended to combine this indicator with other technical analysis tools and a well-defined trading strategy.
Puell Multiple BTC | JeffreyTimmermansThe Puell Multiple is a metric that assesses the relationship between mining profitability and market cycles. It is calculated by comparing the daily value of newly issued coins (USD) to the 365-day moving average of daily coin issuance (USD).
This indicator works best on the 1D BTC Chart. When interpreting the Puell Multiple, it can generally be understood as follows:
High values indicate that miner profitability is significantly higher than the yearly average. This may lead to an increased incentive for miners to sell off their holdings, putting additional selling pressure on the market.
Low values suggest that miner profitability is lower than the yearly average. In this case, miners might experience financial strain, causing some to reduce their hash power by shutting down mining rigs. This, in turn, can reduce the number of coins being sold into the market, as remaining miners need to liquidate fewer coins to maintain operations, thereby decreasing the impact on the liquid supply.
The Puell Multiple is a metric used primarily in the cryptocurrency space, specifically for Bitcoin, to assess whether Bitcoin is overvalued or undervalued in relation to its mining rewards. It helps to gauge the profitability of miners and, by extension, to assess market conditions.
Use:
This Puell Multiple is invented for Long-Term, Trend Following Systems.
The Puell Multiple trend can be visualized through the color of the bars, which represents the direction of the trend, while the background indicates the strength of that trend.
Bar Color: The color of the bars typically changes to reflect whether the trend is bullish or bearish. For example, green bars may indicate a strong bullish trend, while red bars signal a bearish or declining trend. The color coding helps to quickly interpret the market's overall movement in relation to mining profitability.
Background Color: The background of the chart is used to reflect the strength of the trend. A darker or more intense background may signify a stronger trend, indicating that the market conditions are more pronounced, while a lighter background can suggest a weaker or more uncertain trend, showing less certainty in the market’s direction.
Together, the combination of bar color and background provides a clearer picture of both the trend's direction and its strength, making it easier to assess potential market behavior based on miner profitability and market cycles.
Puell Multiple and Moving Average: They can be used as an extra tool to confirm the bullish or bearish trend. When the Puell Multiple is above the Moving Average, this will suggest and confirm that the trend is bullish.
How you score this for your own systems is up to you.
-Jeffrey
Puell Multiple BTC | JeffreyTimmermansThe Puell Multiple is a metric that assesses the relationship between mining profitability and market cycles. It is calculated by comparing the daily value of newly issued coins (USD) to the 365-day moving average of daily coin issuance (USD).
This indicator works best on the 1D BTC Chart. When interpreting the Puell Multiple, it can generally be understood as follows:
High values indicate that miner profitability is significantly higher than the yearly average. This may lead to an increased incentive for miners to sell off their holdings, putting additional selling pressure on the market.
Low values suggest that miner profitability is lower than the yearly average. In this case, miners might experience financial strain, causing some to reduce their hash power by shutting down mining rigs. This, in turn, can reduce the number of coins being sold into the market, as remaining miners need to liquidate fewer coins to maintain operations, thereby decreasing the impact on the liquid supply.
The Puell Multiple is a metric used primarily in the cryptocurrency space, specifically for Bitcoin, to assess whether Bitcoin is overvalued or undervalued in relation to its mining rewards. It helps to gauge the profitability of miners and, by extension, to assess market conditions.
Use:
This Puell Multiple is invented for Long-Term, Trend Following Systems.
The Puell Multiple trend can be visualized through the color of the bars, which represents the direction of the trend, while the background indicates the strength of that trend.
Bar Color: The color of the bars typically changes to reflect whether the trend is bullish or bearish. For example, green bars may indicate a strong bullish trend, while red bars signal a bearish or declining trend. The color coding helps to quickly interpret the market's overall movement in relation to mining profitability.
Background Color: The background of the chart is used to reflect the strength of the trend. A darker or more intense background may signify a stronger trend, indicating that the market conditions are more pronounced, while a lighter background can suggest a weaker or more uncertain trend, showing less certainty in the market’s direction.
Together, the combination of bar color and background provides a clearer picture of both the trend's direction and its strength, making it easier to assess potential market behavior based on miner profitability and market cycles.
Puell Multiple and Moving Average: They can be used as an extra tool to confirm the bullish or bearish trend. When the Puell Multiple is above the Moving Average, this will suggest and confirm that the trend is bullish.
How you score this for your own systems is up to you.
-Jeffrey
Puell Multiple BTC | JeffreyTimmermansThe Puell Multiple is a metric that assesses the relationship between mining profitability and market cycles. It is calculated by comparing the daily value of newly issued coins (USD) to the 365-day moving average of daily coin issuance (USD).
This indicator works best on the 1D BTC Chart. When interpreting the Puell Multiple, it can generally be understood as follows:
High values indicate that miner profitability is significantly higher than the yearly average. This may lead to an increased incentive for miners to sell off their holdings, putting additional selling pressure on the market.
Low values suggest that miner profitability is lower than the yearly average. In this case, miners might experience financial strain, causing some to reduce their hash power by shutting down mining rigs. This, in turn, can reduce the number of coins being sold into the market, as remaining miners need to liquidate fewer coins to maintain operations, thereby decreasing the impact on the liquid supply.
The Puell Multiple is a metric used primarily in the cryptocurrency space, specifically for Bitcoin, to assess whether Bitcoin is overvalued or undervalued in relation to its mining rewards. It helps to gauge the profitability of miners and, by extension, to assess market conditions.
Use:
This Puell Multiple is invented for Long-Term, Trend Following Systems.
The Puell Multiple trend can be visualized through the color of the bars, which represents the direction of the trend, while the background indicates the strength of that trend.
Bar Color: The color of the bars typically changes to reflect whether the trend is bullish or bearish. For example, green bars may indicate a strong bullish trend, while red bars signal a bearish or declining trend. The color coding helps to quickly interpret the market's overall movement in relation to mining profitability.
Background Color: The background of the chart is used to reflect the strength of the trend. A darker or more intense background may signify a stronger trend, indicating that the market conditions are more pronounced, while a lighter background can suggest a weaker or more uncertain trend, showing less certainty in the market’s direction.
Together, the combination of bar color and background provides a clearer picture of both the trend's direction and its strength, making it easier to assess potential market behavior based on miner profitability and market cycles.
Puell Multiple and Moving Average: They can be used as an extra tool to confirm the bullish or bearish trend. When the Puell Multiple is above the Moving Average, this will suggest and confirm that the trend is bullish.
How you score this for your own systems is up to you.
-Jeffrey
Uptrick: Arbitrage OpportunityINTRODUCTION
This script, titled Uptrick: Arbitrage Monitor, is a Pine Script™ indicator that aims to help traders quickly visualize potential arbitrage scenarios across multiple cryptocurrency exchanges. Arbitrage, in general, involves taking advantage of price differences for the same asset across different trading platforms. By comparing market prices of the same symbol on two user-selected exchanges, as well as scanning a broader list of exchanges, this script attempts to signal areas where you might want to buy on one exchange and sell on another. It includes various graphical tools, calculations, and an optional Automated Detection signal feature, allowing users to incorporate more advanced data scanning into their trading decisions. Keep in mind that transaction fees must also be considered in real-world scenarios. These fees can negate potential profits and, in some cases, result in a net loss.
PURPOSE
The primary purpose of this indicator is to show potential percentage differences between the same cryptocurrency trading pairs on two different exchanges. This difference is displayed numerically, visually as a line chart, and it is also tested against user-defined thresholds. With the threshold in place, buy and sell signals can be generated. The script allows you to quickly gauge how significant a spread is between two exchanges and whether that spread surpasses a specified threshold. This is particularly useful for arbitrage trading, where an asset is bought at a lower price on one exchange and sold at a higher price on another, capitalizing on price discrepancies. By identifying these opportunities, traders can potentially secure profits across different markets.
WHY IT WAS MADE
This script was developed to help traders who frequently look for arbitrage opportunities in the fast-paced cryptocurrency market. Cryptocurrencies sometimes experience quick price divergences across different exchanges. By having an automated approach that compares and displays prices, traders can spend less time manually tracking price discrepancies and more time focusing on actual trading strategies. The script was also made with user customization in mind, allowing you to toggle an optional Automated-based approach and choose different moving average methods to smooth out the displayed price difference.
WHAT ARBITRAGE IS
Arbitrage is the practice of buying an asset on one market (or exchange) at a lower price and simultaneously selling it on another market where the price is higher, thus profiting from the price difference. In cryptocurrency markets, these price differentials can occur across multiple exchanges due to varying liquidity, trading volume, geographic factors, or market inefficiencies. Though sometimes small, these differences can be exploited for profit when approached methodically.
EXPLANATION OF INPUTS
The script includes a variety of user inputs that help tailor the indicator to your specific needs:
1. Compared Symbol 1: This is the primary symbol you want to track (for example, BTCUSDT). Make sure it's written in all capital and make sure that it's price from that exchange is available on Tradingview.
2. Compare Exchange 1: The first exchange on which the script will request pricing data for the chosen symbol.
3. Compared to Exchange: The second exchange, used for the comparison.
4. Opportunity Threshold (%): A percentage threshold that, when exceeded by the price difference, can trigger buy or sell signals.
5. Plot Style?: Allows you to choose between plotting the raw difference line or a moving average of that difference.
6. MA Type: Select among SMA, EMA, WMA, RMA, or HMA for your moving average calculation.
7. MA Length: The lookback period for the selected moving average.
8. Plot Buy/Sell Signals?: Enables or disables the plotting of arrows signaling potential buy or sell zones based on threshold crossovers.
9. Automated Detection?: Toggles an additional multi-exchange data scan feature that calculates the highest and lowest prices for the specified symbol across a predefined list of exchanges.
CALCULATIONS
At its core, the script calculates price1 and price2 using the request.security function to fetch close prices from two selected exchanges. The difference is measured as (price1 - price2) / price2 * 100. This results in a percentage that indicates how much higher or lower price1 is relative to price2. Additionally, the script calculates a slope for this difference, which helps color the line depending on whether it is trending up or down. If you choose the moving average option, the script will replace the raw difference data with one of several moving average calculations (SMA, EMA, WMA, RMA, or HMA).
The script also includes an iterative scan of up to 15 different exchanges for Automated detection, collecting the highest and lowest price across all those exchanges. If the Automated option is enabled, it compiles a potential recommendation: buy at the cheapest exchange price and sell at the most expensive one. The difference across all exchanges (allExDiffPercent) is calculated using (highestPriceAll - lowestPriceAll) / lowestPriceAll * 100.
WHAT AUTOMATED DETECTION SIGNAL DOES
If enabled, the Automated detection feature scans all 15 supported exchanges for the specified symbol. It then identifies the exchange with the highest price and the exchange with the lowest price. The script displays a recommended action: buy on the lowest-exchange price and sell on the highest-exchange price. While called “Automated,” it is essentially a multi-exchange data query that automates a portion of research by consolidating different price points. It does not replace thorough analysis or guaranteed execution; it simply provides an overview of potential extremes.
WHAT ALL-EX-DIFF IS
The variable allExDiffPercent is used to show the overall difference between the highest price and the lowest price found among the 15 pre-chosen exchanges. This figure can be useful for anyone wanting a big-picture view of how large the arbitrage spread might be across the broader market.
SIGNALS AND HOW THEY ARE GENERATED
The script provides two main modes of signal generation:
1. Raw Difference Mode: If the user chooses “Use Normal Line,” the script compares the percentage difference of the two selected exchanges (price1 and price2) to the user-defined threshold. When the difference crosses under the positive threshold, a sell signal is displayed (red arrow). Conversely, when the difference crosses above the negative threshold, a buy signal is displayed (green arrow).
2. Moving Average Mode: If the user selects “Use Moving Average,” the script instead references the moving average values (maValue). The signals fire under similar conditions but use the average line to gauge whether the threshold has been crossed.
HOW TO USE THE INDICATOR
1. Add the script to your chart in TradingView.
2. In the script’s settings panel, configure the symbol you wish to compare (for example, BTCUSDT), choose the two exchanges you want to evaluate, and set your desired threshold.
3. Optionally, pick a moving average type and length if you prefer a smoother representation of the difference.
4. Enable or disable buy/sell signals according to your preference.
5. If you’d like to see potential extremes among a broader list of exchanges, enable Automated Detection. Keep in mind that this feature runs additional security requests, so it might slow down performance on weaker devices or if you already have many scripts running.
EXCHANGES TO USE
The script currently supports up to 15 exchanges: BYBIT, BINANCE, MEXC, BLOFIN, BITGET, OKX, KUCOIN, COINBASE, COINEX, PHEMEX, POLONIEX, GATEIO, BITSTAMP, and KRAKEN. You can choose any two of these for direct comparison, and if you enable the Automated detection, it will attempt to query them all to find extremes in real time.
VISUALS
The exchanges and current prices & differences are all plotted in the table while the colored line represents the difference in the price. The two thresholds colored red are where signals are generated. A cross below the upper threshold is a sell signal and a cross above the lower threshold is a buy signal. In the line at the bottom, purple is a negative slope and aqua is a positive slope.
LIMITATIONS AND POTENTIAL PROBLEMS
If you enable too many visual elements such as signals, additional lines, and the Automated-based scanning table, you may find that your chart becomes cluttered, or text might overlap. One workaround is to remove and reapply the indicator to refresh its display. You may also want to reduce the number of displayed table rows by disabling some features if your chart becomes too crowded. Sometimes there might be an error that the price of an asset is not available on an exchange, to fix this, go and select another exchange to compare it to, or if it happens in Automated detection, choose a different asset, ideally more widely spread.
UNIQUENESS
This indicator stands out due to its multifaceted approach: it doesn’t just look at two exchanges but optionally scans up to 15 exchanges in real time, presenting users with a much broader view of the market. The dual-mode system (raw difference vs. moving average) allows for both immediate, unfiltered signals and smoother, noise-reduced signals depending on user preference. By default, it introduces dynamic visual cues through color changes when the slope of the difference transitions upward or downward. The optional Automated detection, while not a deep learning system, adds a functional intelligence layer by collating extreme price points from multiple exchanges in one place, thereby streamlining the manual research process. This combination of features gives the script a unique edge in the TradingView ecosystem, catering equally to novices wanting a straightforward approach and to advanced users looking for an aggregated multi-exchange analysis.
CONCLUSION
Uptrick: Arbitrage Monitor is a versatile and customizable Pine Script™ indicator that highlights price differences for a specified symbol between two user-selected exchanges. Through signals, threshold-based alerts, and optional Automated detection across multiple exchanges, it aims to support traders in identifying potential arbitrage opportunities quickly and efficiently. This script makes no guarantees of profitability but can serve as a valuable tool to add to your trading toolkit. Always use caution when implementing arbitrage strategies, and be mindful of market risks, exchange fees, and latency.
ADDITIONAL DISCLOSURES
This script is provided for educational and informational purposes only. It does not constitute financial advice or a guarantee of performance. Users are encouraged to conduct thorough research and consider the inherent risks of arbitrage trading. Market conditions can change rapidly, and orders may fail to execute at desired prices, especially when large price discrepancies attract competition from other traders.
FCPO Smart Shooter EnhancedFCPO Smart Shooter 🎯
A powerful and intelligent trading indicator specifically designed for FCPO (Crude Palm Oil Futures) trading. Combines advanced technical analysis with AI-driven signals to identify high-probability trading opportunities.
Key Features:
• Dual Analysis Mode: Choose between AI-powered signals or pure technical analysis
• Dynamic Stop Loss: Adapts to market volatility using ATR
• Smart Entry Points: Identifies trend reversals and continuation patterns
• Session-Aware: Optimized for FCPO trading sessions (Morning/Afternoon/Night)
• Clear Visual Signals: Distinct color-coded buy/sell signals with targets and stops
Technical Components:
• Ichimoku Cloud components for trend direction
• MACD for momentum confirmation
• Bollinger Bands for volatility
• ADX for trend strength
• Custom AI scoring system analyzing multiple factors
Signal Types:
🔵 Blue Labels: AI-powered BUY signals
🟣 Purple Labels: AI-powered SELL signals
🟢 Green Labels: Technical Analysis BUY signals
🔴 Red Labels: Technical Analysis SELL signals
Status Dashboard:
• AI Score: Overall market analysis score (0-100)
• Trend: Current market trend status
• Volatility: Market volatility level
• MACD: Momentum direction
• RSI: Overbought/Oversold conditions
• Volume: Volume analysis
• Prediction: Short-term market prediction
How to Use:
1. Select your preferred analysis mode (AI or Technical)
2. Watch for signal labels that appear with clear entry, target, and stop levels
3. Monitor the status dashboard for additional market insights
4. Trade only during active FCPO sessions for best results
Settings:
• Target Ticks: Set your profit target (default: 15)
• Stop Loss: Set your risk limit (default: 10)
• AI Analysis: Toggle between AI and Technical analysis modes
Best Practices:
• Use larger stops during high volatility
• Confirm signals with market structure
• Monitor trend strength before entry
• Respect session times for better accuracy
Note: This indicator combines multiple technical factors with AI analysis to provide trading signals. Always use proper risk management and consider market conditions before trading.
Disclaimer: This indicator is for educational purposes only. Always do your own analysis and trade at your own risk.
Version: 1.0
Author: @miqoness
Last Updated: December 2023
FCPO Smart Shooter EnhancedFCPO Smart Shooter 🎯
A powerful and intelligent trading indicator specifically designed for FCPO (Crude Palm Oil Futures) trading. Combines advanced technical analysis with AI-driven signals to identify high-probability trading opportunities.
Key Features:
• Dual Analysis Mode: Choose between AI-powered signals or pure technical analysis
• Dynamic Stop Loss: Adapts to market volatility using ATR
• Smart Entry Points: Identifies trend reversals and continuation patterns
• Session-Aware: Optimized for FCPO trading sessions (Morning/Afternoon/Night)
• Clear Visual Signals: Distinct color-coded buy/sell signals with targets and stops
Technical Components:
• Ichimoku Cloud components for trend direction
• MACD for momentum confirmation
• Bollinger Bands for volatility
• ADX for trend strength
• Custom AI scoring system analyzing multiple factors
Signal Types:
🔵 Blue Labels: AI-powered BUY signals
🟣 Purple Labels: AI-powered SELL signals
🟢 Green Labels: Technical Analysis BUY signals
🔴 Red Labels: Technical Analysis SELL signals
Status Dashboard:
• AI Score: Overall market analysis score (0-100)
• Trend: Current market trend status
• Volatility: Market volatility level
• MACD: Momentum direction
• RSI: Overbought/Oversold conditions
• Volume: Volume analysis
• Prediction: Short-term market prediction
How to Use:
1. Select your preferred analysis mode (AI or Technical)
2. Watch for signal labels that appear with clear entry, target, and stop levels
3. Monitor the status dashboard for additional market insights
4. Trade only during active FCPO sessions for best results
Settings:
• Target Ticks: Set your profit target (default: 15)
• Stop Loss: Set your risk limit (default: 10)
• AI Analysis: Toggle between AI and Technical analysis modes
Best Practices:
• Use larger stops during high volatility
• Confirm signals with market structure
• Monitor trend strength before entry
• Respect session times for better accuracy
Note: This indicator combines multiple technical factors with AI analysis to provide trading signals. Always use proper risk management and consider market conditions before trading.
Disclaimer: This indicator is for educational purposes only. Always do your own analysis and trade at your own risk.
Version: 1.0
Author: @miqoness
Last Updated: December 2023
FCPO Smart Shooter EnhancedFCPO Smart Shooter 🎯
A powerful and intelligent trading indicator specifically designed for FCPO (Crude Palm Oil Futures) trading. Combines advanced technical analysis with AI-driven signals to identify high-probability trading opportunities.
Key Features:
• Dual Analysis Mode: Choose between AI-powered signals or pure technical analysis
• Dynamic Stop Loss: Adapts to market volatility using ATR
• Smart Entry Points: Identifies trend reversals and continuation patterns
• Session-Aware: Optimized for FCPO trading sessions (Morning/Afternoon/Night)
• Clear Visual Signals: Distinct color-coded buy/sell signals with targets and stops
Technical Components:
• Ichimoku Cloud components for trend direction
• MACD for momentum confirmation
• Bollinger Bands for volatility
• ADX for trend strength
• Custom AI scoring system analyzing multiple factors
Signal Types:
🔵 Blue Labels: AI-powered BUY signals
🟣 Purple Labels: AI-powered SELL signals
🟢 Green Labels: Technical Analysis BUY signals
🔴 Red Labels: Technical Analysis SELL signals
Status Dashboard:
• AI Score: Overall market analysis score (0-100)
• Trend: Current market trend status
• Volatility: Market volatility level
• MACD: Momentum direction
• RSI: Overbought/Oversold conditions
• Volume: Volume analysis
• Prediction: Short-term market prediction
How to Use:
1. Select your preferred analysis mode (AI or Technical)
2. Watch for signal labels that appear with clear entry, target, and stop levels
3. Monitor the status dashboard for additional market insights
4. Trade only during active FCPO sessions for best results
Settings:
• Target Ticks: Set your profit target (default: 15)
• Stop Loss: Set your risk limit (default: 10)
• AI Analysis: Toggle between AI and Technical analysis modes
Best Practices:
• Use larger stops during high volatility
• Confirm signals with market structure
• Monitor trend strength before entry
• Respect session times for better accuracy
Note: This indicator combines multiple technical factors with AI analysis to provide trading signals. Always use proper risk management and consider market conditions before trading.
Disclaimer: This indicator is for educational purposes only. Always do your own analysis and trade at your own risk.
Version: 1.0
Author: @miqoness
Last Updated: December 2023
3 EMA Crossover Strategy with AlertsThis strategy works very well with XAUUSD with 3M TF & BTCUSD with 1M TF
Lokesh(bank nifty option buying) MA Crossover with RSI use it directly in bank nifty option chart for 5 minute time frame specialy for put buying
SMC/ICT Market Structure & FVG - Free Version [APERTA]This is a free indicator that visualizes the SMC/ICT market structures and fair value gaps (FVG).
Free version does not provide trading signals.
Thrax Signals and OverlaysThrax Signals and Overlays is a versatile toolkit offering insights into trends, trade entry/exit points, market sentiment, volatility, and more.
1. Enable Bar Colors:
Turn this on to see candlesticks change colors based on market sentiment.
- Green: Bullish sentiment.
- Purple: Neutral/sideways sentiment.
- Red: Bearish sentiment.
➔ These colors are calculated using a combination of Superbands, ATRs, and momentum.
➔ When a candle turns purple to green, it suggests a shift from neutral to bullish sentiment.
➔ When a candle turns purple to red, it indicates a shift from neutral to bearish sentiment.
2. Enable Buy/Sell Signals:
When this feature is enabled, the indicator provides clear buy and sell signals to help you identify potential trading opportunities.
⚙️ A Buy Signal is indicated by a green arrow, suggesting an upward market movement and an opportunity to enter a long trade.
⚙️ A Sell Signal is indicated by a red arrow, signaling a downward market movement and a potential opportunity for a short trade.
⚙️ Strong Buy and Sell Signals are represented by a "+" symbol, which highlights particularly high-confidence trade signals based on stronger trend alignments.
By enabling this feature, you can quickly spot entry points for your trades with the support of well-calculated indicators, streamlining your decision-making process.
3. Take Profit Points
➔ Green "x": Suggested exit points for bullish trades.
➔ Red "x": Suggested exit points for bearish trades.
These points are calculated using multiple trailing ATRs, allowing you to exit trades in portions.
4. Enable Thrax Shield Zones:
⚙️ When this feature is enabled, the indicator displays dynamic resistance and support zones on your chart, providing valuable insights into key price levels where market trends are likely to react.
➔ The Top Band (Red) represents the Resistance Zone, indicating a price level where upward momentum may slow or reverse as sellers dominate.
➔ The Bottom Band (Green) represents the Support Zone, indicating a price level where downward momentum may slow or reverse as buyers step in.
➔ These zones are calculated using a modified Gaussian filter, which smoothens price data and captures subtle market behaviors. By identifying these zones, you can plan trades more effectively, avoiding entries near resistance and looking for opportunities around support.
5. Plot Dynamic Wave Trail:
⚙️ This feature adds a wave trail to the chart, offering a dynamic and continuous visual representation of market sentiment and momentum.
➔ Blue Wave: Indicates bullish sentiment, suggesting the market is trending upwards with positive momentum.
➔ Red Wave: Indicates bearish sentiment, signaling a downward trend in the market. (This feature will be available soon.)
➔ The wave trail provides an intuitive way to confirm the prevailing market direction, helping traders make more informed decisions about entering or exiting trades.
✦ This can act as support an d resistance as well. When price touches blue trail price reversal in short term is highly possible similarly when price touches red trail price reversal chances are high.
✦ When a buy signal occurs but the Wave Trail is red, it could indicate a false signal, as the bearish sentiment contradicts the buy indication. Similarly, when a sell signal occurs but the Wave Trail is blue, it may also be a false signal, as the bullish sentiment opposes the sell indication. Always cross-reference signals with the Wave Trail to confirm sentiment before making trade decisions, reducing the chances of acting on conflicting or unreliable signals.
6. Enable Dynamic cloud
✦ When enabled it plots a cloud structure on chart. When the trend starts the color of the cloud is darker and then as the trend sustains it lightens out. It helps you identify recent trends ( dark cloud) by differentiating the older trends ( lighter cloud).
7. Enable Trend Catcher & Trend Tracer
⚙️ Trend Tracer
✦ When enabled, it plots a dotted line below the candles. This can be used in conjunction with trail wave to confirm bullish if both is bullish and bearish if both is bearish. This is built by tweaking a lower timeframe super trend.
➔ Confirms bullish sentiment when paired with a bullish wave trail.
➔ Confirms bearish sentiment when paired with a bearish wave trail.
⚙️ Trend Catcher
✦ Displays sharp trend lines on the chart. When enables it displays sharp trend lines which can be used in conjunction with trend catcher and trail wave to confirm trend type.
8. Dashboard
⚙️ When enabled, the dashboard provides key insights into market trends, including trend strength, trend direction, trend volatility, trend sentiment, and trend squeeze.
➔ Trend Strength: Displays a value between 0-100, derived from a combination of RSI and ADX values to indicate the trend's intensity.
➔ Trend Direction: Determines whether the market is bullish or bearish, calculated using RSI, ESAs (Exponential Moving Averages), and trend strength.
➔ Trend Volatility: Measures market fluctuations using Bollinger Bands and the RBI Vigor Index.
➔ Trend Sentiment: Reflects market bias, calculated using moving averages and on-balance volume (OBV).
✦This feature offers a concise overview of market conditions, helping you make informed trading decisions.
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
THRAX TRADE SETUP
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
⚙️ Trade Setup Guidelines
✪ Aggressive Long Trade Setup:
- Base Setup: Enable Buy-Sell signals, Wave Trail, Bar Coloring, and Shield Zones.
- Wait for a Buy or Strong Buy signal.
- Ensure the Wave Trail is bullish (blue) when the signal occurs.
- Confirm the price is not at the resistance zone (Upper Shield Zone).
- Once all conditions are met, you can initiate a long trade.
✪ Aggressive Short Trade Setup:
- Base Setup: Enable Buy-Sell signals, Wave Trail, Bar Coloring, and Shield Zones.
- Wait for a Sell or Strong Sell signal.
- Ensure the Wave Trail is bearish (red) when the signal occurs.
- Confirm the price is not at the support zone (Lower Shield Zone).
- Once all conditions are met, you can initiate a short trade.
⚙️ Cautious Trade Setup Guidelines
You can follow the Aggressive Long or Short Trade Setup with added confirmations for safer trades:
- Wait for the Aggressive Trade Setup conditions to trigger, then look for the following confirmations:
1. Confirmation 1: The candle color matches the sentiment (Green for bullish, Red for bearish).
2. Confirmation 2: The signal strength in the Dynamic Cloud is strong (dark colors).
3. Confirmation 3: Both Trend Catcher and Trend Tracer align with the sentiment (bullish or bearish).
4. Confirmation 4: Use the Dashboard to confirm the trend's strength, direction, and volatility.
These cautious setups provide additional validation for more reliable trades.
PSE, Practical Strategy EnginePSE, Practical Strategy Engine
A ready-to-use engine that is simple to connect your indicator to, simple to use, and effective at generating alerts for order-filled events during the real-time candle.
Great for
• Evaluating indicators on important metrics without the need to write a strategy script for backtesting.
• Using indicators with built-in risk management.
About The PSE
This engine accepts entry and exit signals from your indicator to provide trade signals for both long and short positions. The PSE was written for trading Funds (e.g. ETF’s), Stocks, Forex, Futures, and Cryptocurrencies. The trades on the chart indicate market, limit, and stop orders. The PSE allows for backtesting of trades along with metrics of performance based on trade-groups with many great features.
Copyright © 2024 CoinOperator LLC
Note: A link to a video of how to connect your indicator(s) to the PSE is provided below.
Key Features
Trade-Grp’s
A Trade-Grp makes up one or more trade positions from the first position entering to the last position exiting. Using Trade-Grp’s instead of positions should help you better assess if the metric results fit your trading style.
Below are two (2) examples of a Trade-Grp with three (3) positions.
Metrics
A table of metrics is available if the “Show Metrics Table” checkbox is enabled on the Inputs tab, but metrics always show in the Data Window.
Examples of the Metrics Table are shown below.
• ROI (Return on Investment) and CAGR (Compound Annual Growth Rate) are based on the Avg Invest/Trade-Grp and are adjusted for dividends if the “Include Dividends in Profit” checkbox is enabled.
• Profit/Risked is based on Trade-Grp’s. Also known as reward/risk, as well as expectancy per amount risked. It determines the effectiveness of your strategy and provides a measure of comparison between your strategies. This is adjusted for dividends if the “Include Dividends in Profit” checkbox is enabled. In the Data Window the color is green when above the breakeven point of making a profit and red when below the breakeven point. In the Table the color is red if below the breakeven point, otherwise it is the default color. For example, using the 3 metrics tables above:
For every USD risked the profit is 1.709 USD.
For every BTC risked the profit is 0.832 BTC.
For every JPY risked the profit is 0.261 JPY.
• Winning % is based on Trade-Grp’s. In the Data Window the color is green when above the breakeven point of making a profit and red when below the breakeven point. In the Table the color is red if below the breakeven point, otherwise it is the default color.
The breakeven point is a relationship between the Profit/Risked and Winning % to indicate system profitability potential. Another way to assess trading system performance. For example, for a low Winning % a high Profit/Risked is needed for the system to be potentially profitable.
• Profit Factor (PF) is based on Trade-Grp’s. The dividend payment, if any, is not considered in the calculation of a win or loss. The “Include Dividends in Profit Factor” checkbox allows you the option to either include or not include dividends in the calculation of Profit Factor. The default is enabled.
Must enable the “Include Dividends in Profit” checkbox to include dividends in PF.
Including dividends in PF evaluates the trading strategy with a more overall profitability performance view.
Enable/Disable “Include Dividends in Profit Factor” checkbox also affects the Avg Trade-Grp Loss, and thus Equity Loss from ECL and % Equity Loss from ECL.
• Max Consecutive Losses are based on Trade-Grp’s.
• Nbr of Trade-Grp’s and Nbr of Positions.
These help you to determine if enough trades have occurred to validate your strategy. The Nbr of Positions is the count of positions on the chart. The TV list of trades in the Strategy Tester may indicate more than what is actually shown on the chart. The Data Window includes 'Nbr Strat Tester Trades', which equals the TV listing trades, to help you locate specific trades on the chart.
• Time in Market (%) is based on Trade-Grp’s and date range selected.
• Avg Invest/Trade-Grp will indicate the average amount of money invested in a Trade-Grp. This is adjusted for dividends if the “Include Dividends in Profit” checkbox is enabled.
• Equivalent Consecutive Losses, labeled as Equiv. Cons. Losses (ECL).
This value is determined by the Winning % and Nbr of Trade-Grp’s. This simulates the more likely case of a series of losses, then a small win, then another series of losses to form an equivalent consecutive losing streak. To lower the value, increase the Winning %.
• Equity Loss from ECL is the equity loss from the equivalent consecutive losses.
• % Equity Loss from ECL is the percent of equity loss from the equivalent consecutive losses.
Risk Management
• Pyramid rules enforce and maintain position sizing designated by you on the Inputs tab (% Equity to Risk, Up/Dwn Gap) & Properties tab (number of pyramids, slippage, and commission).
A pyramid position will not occur unless both its stop covers the last entry price with gap/slippage and commission cost of previous trade is covered. If take profit is enabled, a pyramid position will not occur unless commission cost of the trade is covered when take profit target is reached.
• Position sizing, stop-loss (SL), trailing stop-loss (TSL), and take profit (TP) are used.
• Wash sale prevention for applicable assets is enforced. Wash sale assets include stock and fund (e.g. ETF’s).
• No more than one entry position per candle is enforced .
Other Great Features
• Losing Trade-Grp’s indicated at the exit with label text in the color blue. Used to easily find consecutive losses affecting your strategy’s performance. The dividend payment, if any, is not considered in the calculation of a win or loss.
• Position values can be displayed on the chart. The number format is based on the min tick value, but is limited to 8 decimal places only for display purposes.
• Dividends per share and the amount can be displayed on the chart.
• Hold Days . This is the number of days to hold before allowing the next Trade-Grp. Can be a decimal number. This feature may help those trading on a cash account to avoid any settlement violations when trading the same asset.
• Date Filter. Partition the time when trading is allowed to see if the strategy works well across the date range selected. The metrics should be acceptable across all four (4) time ranges: entire range, 1st half, IQR (inter-quartile range), and 2nd half.
• Price gap amount identification. Used in determining if a pyramid entry may be profitable, and may be used in determining slippage amount to use.
• When TP is enabled, the PSE will only allow a pyramid position if the potential is profitable based on commission and price gap selected.
• Trade-Grp’s shown in background color: green for long positions and red for short positions.
• The PSE will alert you to update your stop-loss as the market changes if your exchange/broker does not allow for trailing stop-loss orders. Enable this option on the Inputs tab with Alert Chg TSL.
• The PSE will alert you if your drawdown exceeds Max % Equity Drawdown set on the Inputs tab.
• The PSE will send an alert to warn you of an expiring GTC order.
Some brokers will indicate the order is GTC, Good 'Till Cancelled, but there really is a time limit on the order and is typically 60-120 days. Therefore, the PSE will alert you if you've been in position for close to 60 days so you can refresh your order. The alert is typically a few days before the 60-day time period.
• For order fill alerts just use a {{placeholder}} in the Message of the alert. Details on how to enter placeholders is explained below.
• Identify same bar enter/exit for first entries and pyramids. This is shown in the Data Window as well. This can help you determine what stop-loss % works best for your trading style.
• Leverage trading information is displayed in the Data Window and applies to Trade-Grps.
Failed PosSize or Margin (%): Shows a zero if the failed-to-trade position size was less than 1 or shows the margin % which failed to meet the margin requirement set in the Properties tab. A flag will show on the bar where a failed-to-trade occurred. This is only applicable to the first position of a Trade-Grp. Position the cursor over the flag for the value to show in the Data Window.
Notional Value: total Trade-Grp position size x latest entry price x point value. The equity must be > notional value x margin requirement for a trade to occur.
Current Margin (%): must be greater than margin requirement set on the Properties tab in order for a trade to occur.
Margin Call Price: when enabled on the Style tab is displayed on both the chart and the Data Window as shown below.
PSE Settings
Pyramids
• Pyramiding requires the Stop Method to be set to either TSL or Both (meaning SL & TSL).
• The maximum number of pyramids is determined by the value entered in the Properties tab.
• Pyramid orders require the enter price to be higher than the previous close for Longs and lower than the previous close for Shorts.
• Pyramids also require the stop with gap/slippage to be higher than the last entry price for Longs, and lower than the last entry price for Shorts. This covers all previous positions and maintains position sizing.
• When take profit, TP, is enabled, the pyramids also require that they will be profitable when opening a position assuming they will reach TP. This is automatically adjusted by you with the Dwn Gap/Up Gap, Slippage, and Commission settings.
Inputs Tab
General Settings
Color Traded Background
Enable to change background color where in a trade. Green for long positions and red for short positions.
Show Losing Trade-Grp
Enable to show if losing Trade-Grp and is indicated by text in blue color. The last position may be at a loss, but if there was profit for the Trade-Grp, then it will not be shown as a loss .
Show Position Values
Enable to show the currency value of each position in gold color.
Include Dividends in Profit
This feature is only applicable if the asset pays dividends and the time frame period of the chart is 1D or less, otherwise ignored. The PSE assumes dividends are taken as cash and not reinvested.
Enable to adjust ROI, CAGR, Profit/Risked, Avg Invest/Trade-Grp, and Equity to include dividend payments. This feature considers if you were in position at least one day prior to the ex-dividend date and had not exited until after the ex-dividend date.
When Show Dividends is enabled it will display the payout in currency/share, as well as the total amount based on the number of shares the position(s) of the Trade-Grp are currently holding.
Include Dividends in Profit Factor
This checkbox allows you the option to either include or not include dividends in the calculation of Profit Factor. Must enable the “Include Dividends in Profit” checkbox to include dividends in PF. The dividend payment, if any, is not considered in the calculation of a win or loss.
Show Metrics Table
Options are font size and table location.
Alert Failed to Trade
Enable for the strategy to alert you when a trade did not happen due to low equity or low order size. Applicable only for the first position of a Trade-Grp.
Trade Direction
Options are 'Longs Only', 'Both', 'Shorts Only'.
Hold Days
This is the number of days to hold before allowing the next Trade-Grp. Applies only to the first trade position of a Trade-Grp. Where a Trade-Grp consists of the first position plus any pyramid positions.
The value entered will be overwritten to >= 31 to prevent wash sale for applicable assets in the event the last Trade-Grp was a loss. Wash sale assets include stock and fund (i.e. ETF’s).
The minimum value is the equivalent of 1 candle and is automatically assigned by the PSE if the entered value is equivalent to less than one candle. To calculate Hold Days in # of candles on the Hour chart divide the chart period by 24 x #candles. On the Minute chart divide the chart period by 60 then by 24 x #candles.
Show Vertical Lines at From Date & To Date
Shows a vertical dotted line at the From Date and To Date for visual inspection of the setting.
Date Filter
When enabled, trades are allowed between the From Date and To Date, i.e., the date range.
When disabled, trades are allowed for all candles.
Partition the time when trading is allowed to see if your indicator settings work well across the date range. Click 1st Half, IQR (inter-quartile range), or 2nd Half buttons to trade a portion of the date range.
Select only one at-a-time to partition the time when trading is allowed.
When 1st Half is enabled only trades for the 1st half of the date range are allowed.
When IQR is enabled only trades for the inter-quartile date range are allowed.
When 2nd Half is enabled only trades for the 2nd half of the date range are allowed.
Position Sizing
The % of Equity to Risk has been separated into two (2) areas: for initial trades and for pyramid trades. This allows for greater ability to maximize profits within your acceptable drawdown. A variation of the Anti-Martingale method from the initial trade if you choose to use it in that manner.
% Equity to Risk for Initial Trades: enter the percent of equity you want to risk per position for the initial trades of each Trade-Grp. For example, for 1% enter 1.
% Equity to Risk for Pyramid Trades: enter the percent of equity you want to risk per position for the pyramid trades of each Trade-Grp. For example, for 2% enter 2.
% Equity for Max Position Size: the position size will not exceed this amount. For example, for 25% enter 25.
Max % Equity Drawdown Warning: an alert will be triggered if the maximum drawdown exceeds this v alue. For example, for 10% enter 10.
Stop Methods
NOTE: The Stop Method must be either Both or TSL in order for the pyramids to work. This feature enforces position sizing.
Stop-loss, SL, and trailing stop-loss, TSL, are other features that enforce risk management.
The trailing stop-loss, TSL, is activated immediately if Stop Method = TSL. If Stop Method = Both, then the TSL is activated when its value is above stop-loss, SL, for Longs and below the SL for Shorts.
The calculated TSL value (shown on the chart by + symbol) of the previous bar is used for the current bar and the plot value is off by default, but you can it turn on via the Style tab. This is available so you can better understand how the TSL value used was calculated from. It is beneficial to show when monitoring the real-time candle.
Alert Chg TSL
When enabled, this feature will alert you to update your stop price if it moves greater than the change amount in %. The amount is the absolute % so will work for both Longs and Shorts. For example, for 1% enter 1 . This is provided since some exchanges/brokers do not offer TSL orders and you must manually adjust as price action plays out.
The alert will also suggest a stop limit price based on the gap selected and explained below.
The alert will occur at the close of the candle at the calculated TSL value of the candle just prior to the real-time candle.
Dwn Gap/Up Gap Input Settings
A price gap is the difference between the closing price of the previous candle and the opening price of the current candle. Dwn Gap and Up Gap are illustrated here.
The values of the Dwn Gap and Up Gap can be seen in the Data Window and are based on the settings of the Date Filter.
The options are “zero gap”, "median gap", "avg gap", "80 pct gap", "90 pct gap". The X pct gap stands for X percentile rank. For example, "80 pct gap" means that 80% of the gaps are less than or equal to the value shown in the Data Window. Select “zero gap” to disable this feature.
If Show Stop Limit is enabled, it will show a dotted-line below or above the current stop price where a stop-limit order should be taken. It is shown based on the gap option selected. Again, the PSE trades market, limit, and stop orders, but a stop-limit may be shown if you wanted to see where one would be set using the Up/Dwn Gap.
Dwn Gap: Affects Short Take Profit, Long Pyramid Entries, and to show the Long Stop Limit.
Up Gap : Affects Long Take Profit, Short Pyramid Entries, and to show the Short Stop Limit.
Fixed Take Profit (TP)
When take profit (TP) is enabled, the PSE will determine if opening a pyramid position will be in profit assuming the TP will be hit while considering commission costs (on Properties tab).
The larger of Up Gap or Slippage value is used with Long positions regarding TP.
The larger of Dwn Gap or Slippage value is used with Short positions regarding TP.
Properties Tab
• Initial Capital: Set as desired.
• Base Currency: Leave as Default. The PSE is designed to use the instrument’s currency, therefore leave as Default.
• Order Size: Leave as default. This setting has been disabled and position sizing is handled on the Inputs tab and is based on % of equity.
• Pyramiding: Set as desired.
• Commission: Set as number %. The PSE is designed to only work with commission as a percent of the position value.
• Verify Price for Limit Orders: Set as desired.
Slippage
Adjust Slippage on the Properties tab to account for a realistic bid-ask spread. You can use one of Dwn/Up Gap values or other guidelines. Again, the Dwn/Up Gap values are based on the Date Filter input settings.
Heed warnings from the TradingView Pine Script™ manual about values entered into the Slippage field.
The Slippage (ticks) have a noticeable influence on entry price and exit price especially at the beginning when the date range includes prices from $0.01 to $100,000.00 like that for BTC-USD INDEX. When this is the case, it is best to use different slippage values when partitioning time with the Date Filter.
To minimize the effects of slippage, yet account for it select ‘median gap’ on the Input Tab and use that value for slippage on the Properties tab.
The slippage value is included in the placeholder {{strategy.order.price}}.
Leverage Trading
The PSE is designed to be used both without leverage (the default) and with leverage.
These two settings apply to Trade-Grps. For example, for 5x leverage enter 20 (1/5x100=20).
Margin for Long Positions: Set as desired. The default is 100%.
Margin for Short Positions: Set as desired. The default is 100%.
This setting on the Inputs tab applies to each trade position within a Trade-Grp.
Max % Equity per Position: Set as desired. The default is 20% and intended for non-leverage trading. For leverage trading set as desired. For example, for 3x leverage enter 300 (3x100=300).
Recalculate After Order Is Filled
The PSE uses the strategy parameter calc_on_order_fills=true to allow for enter/exit on the same bar and generate alerts immediately after an order is filled. This parameter is on the Properties tab and is named ‘Recalculate After order is filled’ and is enabled by default.
Disabling this feature will cause the PSE to not work as intended.
You will see the following Caution! on the TV Strategy Tester
This occurs because the PSE has the strategy parameter calc_on_order_fills = true.
Again, the PSE will only work as intended if this parameter is enabled and set to true.
Therefore, you can close the caution sign and be confident of receiving realistic results.
Recalculate On every tick: Disable.
Fill Orders
• Using bar magnifier: Set as desired.
• On Bar Close: Disable. The PSE will not work as intended if this is enabled.
• Using Standard OHLC: Set as desired.
Using The Alert Message Box From TV Strategy Alert
Set alerts to gain access to all the alerts from PSE. This allows for both order filled alerts, as well as the alert function calls related to refresh GTC orders, drawdown exceeded, update stop-loss order, and Failed to Trade.
Example Message for Manual Trading Alerts
(This is just an example. Consult TV manual for possible placeholders to use.)
{
Alert for {{plot("position_for_alert")}} position. (long = 1; short = -1)
{{exchange}}:{{ticker}} on TF of {{interval}} at Broker Name
{{strategy.order.action}} Equity x Equity_Multiplier USD in shares at price = {{strategy.order.price}},
where Equity_Multiplier = {{strategy.order.contracts}} x {{strategy.order.price}} / {{plot("Equity")}}
or {{strategy.order.action}} {{strategy.order.contracts}} shares at price = {{strategy.order.price}}.
}
Note: Use the Equity x Equity_Multiplier method if you have several accounts with different initial capital.
Example Message for Bot Trading Alerts
(You must consult your specific bot for configuring the alert message. This is just an example.)
{
"action": "{{strategy.order.action}}",
“price”: {{strategy.order.price}}
"amount": {{strategy.order.contracts}},
"botId": "1234"
}
Connecting to the PSE
The diagram below illustrates how to connect indicators to the PSE.
The Aroon and MACD indicators are only used here as an example. Substitute your own indicators and add as many as you like.
Connection Indicator for the PSE
A video of how to connect your indicator(s) to the PSE is below.
The Connection Indicator for the PSE, also called here the connection-indicator.
Below is a description of how to connect your chosen indicators to the connection-indicator. Two (2) indicators were chosen for the example, but you may have one (1) or many indicators.
If you have source code access to your indicators you can paste the code directly into the connection-indicator to eliminate the need to have those indicators on the chart and the additional connection of them to the connection-indicator. Below will assume source code to the indicators are not available.
The MACD and Aroon Oscillator are from TV built standard indicators and are shown here just as an example for inputs (i.e. source) to the connection-indicator. They were configured as follows:
The source code for the connection-indicator is shown below. Substitute your own chosen indicators and add as many as you like to create your connection-indicator that feeds into the PSE. The MACD and Aroon Oscillator were simply chosen as an example. Configure your connection-indicator in the manner shown below.
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// Copyright © 2024 CoinOperator LLC
// This is just an example Indicator to show how to interface with the PSE.
// The indicators used in the example are standard TV built indicators.
//@version=5
indicator(title="Connection Indicator for the PSE", overlay=false, max_lines_count=500, max_labels_count=500, max_boxes_count=500)
// Ind_1 INDICATOR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This is just and example and used MACD histogram as the source.
Filter_Ind_1 = input.bool(false, 'Ind_1', group='Ind_1 INDICATOR ~~~~~~~~~~~~~~~~~', tooltip='Click ON to enable the indicator')
input_Ind_1 = input.source(title = "input_Ind_1", defval = close, group='Ind_1 INDICATOR ~~~~~~~~~~~~~~~~~')
Entry_Ind_1_Long = Filter_Ind_1 ? input_Ind_1 > 0 ? 1 : 0 : 0
Entry_Ind_1_Short = Filter_Ind_1 ? input_Ind_1 < 0 ? 1 : 0 : 0
Exit_Ind_1_Long = Entry_Ind_1_Short
Exit_Ind_1_Short = Entry_Ind_1_Long
// Ind_2 INDICATOR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This is just an example and used Aroon Oscillator as the source. Included limits to use with the oscillator to determine enter and exit.
Filter_Ind_2 = input.bool(false, "Ind_2", group='Ind_2 INDICATOR ~~~~~~~~~~~~~~', tooltip='Click ON to enable the indicator')
Filter_Ind_2_Limit = input.int(35, minval=0, step=5, group='Ind_2 INDICATOR ~~~~~~~~~~~~~~')
Filter_Ind_2_UL = Filter_Ind_2_Limit
Filter_Ind_2_LL = -Filter_Ind_2_Limit
up = input.source(title = "input_Ind_2A Up", defval = close, group='Ind_2 INDICATOR ~~~~~~~~~~~~~~')
down = input.source(title = "input_Ind_2B Down", defval = close, group='Ind_2 INDICATOR ~~~~~~~~~~~~~~')
oscillator = up - down
Entry_Ind_2_Long = Filter_Ind_2? oscillator > Filter_Ind_2_UL ? 1 : 0 : 0
Entry_Ind_2_Short = Filter_Ind_2? oscillator < Filter_Ind_2_LL ? 1 : 0 : 0
Exit_Ind_2_Long = Entry_Ind_2_Short
Exit_Ind_2_Short = Entry_Ind_2_Long
//#region ~~~~~~~ASSEMBLY OF FILTERS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// You may have as many indicators as you like. Assemble them in similar fashion as below.
// ——————— Assembly of Entry Filters
Nbr_Entries = input.int(1, minval=1, title='Min Nbr Entries', inline='nbr_in_out', group='Assembly of Indicators')
// Update the assembly based on the number of indicators connected.
EntryLongOK = Entry_Ind_1_Long + Entry_Ind_2_Long >= Nbr_Entries? true: false
EntryShortOK = Entry_Ind_1_Short + Entry_Ind_2_Short >= Nbr_Entries? true: false
entry_signal = EntryLongOK ? 1 : EntryShortOK ? -1 : 0
plot(entry_signal, title="Entry_Signal", color=color.new(color.blue, 0))
// ——————— Assembly of Exit Filters
Nbr_Exits = input.int(1, minval=1, title='Min Nbr of Exits', inline='nbr_in_out', group='Assembly of Indicators', tooltip='Enter the minimum number of entries & exits
required for a signal.')
// Update the assembly based on the number of indicators connected.
ExitLongOK = Exit_Ind_1_Long + Exit_Ind_2_Long >= Nbr_Exits? true: false
ExitShortOK = Exit_Ind_1_Short + Exit_Ind_2_Short >= Nbr_Exits? true: false
exit_signal = ExitLongOK ? 1 : ExitShortOK ? -1 : 0
plot(exit_signal, title="Exit_Signal", color=color.new(color.red, 0))
//#endregion ~~~~~~~END OF ASSEMBLY OF FILTERS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
The input box for the connection-indicator is shown below. The default for input source is “close”. For Input_Ind_1 click the dropdown and select the MACD Histogram. For Input_Ind_2 click the dropdown and select Aroon Up and Aroon Down as shown.
Signal Connection Section of PSE
Below is a description of how to connect your chosen indicators to the PSE from the connection-indicator.
At the PSE Input tab, the Signal Connection Section is where you select the source of the Entry and Exit Signal to the PSE. These are the outputs from connection-indicator.
The default source is “close”. Click the dropdown and select the entry and exit signal to establish a connection as shown below.
Ultra TrendlinesThis indicator automatically draws trendlines based on every pivot point, helping traders visualize key support and resistance levels. It dynamically adjusts as new pivots are detected and validates the trendlines against price movement.
Introduction
The Ultra Trendlines indicator is designed to help traders identify and track significant trendlines on their charts. By automatically detecting pivot points (both highs and lows), it draws trendlines that highlight key market movements. These trendlines are valuable for understanding the broader trend and for making informed trading decisions.
Detailed Description
The indicator analyzes price data to find pivot points highs and lows over a user-defined lookback period. Once a pivot is detected, it draws trendlines between the pivot points.
.........
Accuracy
To ensure accuracy, the indicator only keeps trendlines that are confirmed by price action. It checks if the price crosses the trendline and deletes invalid lines.
Additionally, it checks if the trendlines stay within predefined price thresholds, filtering out irrelevant lines that are too far from current price action.
The indicator also has an option to only show "rising lows" and "falling highs" trendlines, offering further precision in trend direction.
As new pivots are detected, older trendlines that fall outside the lookback period are removed, ensuring the chart remains clean.
.....
Style
The trendlines can extend forward (infinite and userdefined), backward, both or none. The lines are drawn with a customizable style (solid, dotted, or dashed), color, and width.
.........
Summary of Key Points
The indicator automatically detects pivot points (highs and lows) and draws trendlines based on them. It allows you to customize the style, color, and width of the trendlines. The indicator filters out invalid trendlines by checking if they are still relevant based on price action and price thresholds. Additionally, you can choose to only display rising lows and falling highs for more accurate trend analysis. It also removes outdated trendlines to keep the chart clean.
Zero Lag Signals For Loop [QuantAlgo]Elevate your trend-following investing and trading strategy with Zero Lag Signals For Loop by QuantAlgo , a simple yet effective technical indicator that merges advanced zero-lag mechanism with adaptive trend analysis to bring you a fresh take on market momentum tracking. Its aim is to support both medium- to long-term investors monitoring broader market shifts and precision-focused traders seeking quality entries through its dual-focused analysis approach!
🟢 Core Architecture
The foundation of this indicator rests on its zero-lag implementation and dynamic trend assessment. By utilizing a loop-driven scoring system alongside volatility-based filtering, each market movement is evaluated through multiple historical lenses while accounting for current market conditions. This multi-layered approach helps differentiate between genuine trend movements and market noise across timeframe and asset classes.
🟢 Technical Foundation
Three distinct components of this indicator are:
Zero Lag EMA : An enhanced moving average calculation designed to minimize traditional lag effects
For Loop Scoring System : A comprehensive scoring mechanism that weighs current price action against historical contexts
Dynamic Volatility Analysis : A sophisticated ATR-based filter that adjusts signal sensitivity to market conditions
🟢 Key Features & Signals
The Zero Lag Signals For Loop provides market insights through:
Color-coded Zero Lag line that adapts to trend direction
Dynamic fills between price and Zero Lag basis for enhanced visualization
Trend change markers (L/S) that highlight potential reversal points
Smart bar coloring that helps visualize market momentum
Background color changes with vertical lines at significant trend shifts
Customizable alerts for both bullish and bearish reversals
🟢 Practical Usage Tips
Here's how you can get the most out of the Zero Lag Signals For Loop :
1/ Setup:
Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites ⭐️
Start with the default Zero Lag length for balanced sensitivity
Use the standard volatility multiplier for proper filtering
Keep the default loop range for comprehensive trend analysis
Adjust threshold levels based on your investing and/or trading style
2/ Reading Signals:
Watch for L/S markers - they indicate validated trend reversals
Pay attention to Zero Lag line color changes - they confirm trend direction
Monitor bar colors for additional trend confirmation
Configure alerts for trend changes in both bullish and bearish directions, ensuring you can act on significant technical developments promptly.
🟢 Pro Tips
Fine-tune the Zero Lag length based on your timeframe:
→ Lower values (20-40) for more responsive signals
→ Higher values (60-100) for stronger trend confirmation
Adjust volatility multiplier based on market conditions:
→ Increase multiplier in volatile markets
→ Decrease multiplier in stable trending markets
Combine with:
→ Volume analysis for trade validation
→ Multiple timeframe analysis for broader context
→ Other technical tools for comprehensive analysis
IronBot v3Introduction
IronBot V3 is a TradingView indicator that analyzes market trends, identifies potential trading opportunities, and helps manage trades by visualizing entry points, stop-loss levels, and take-profit targets.
How It Works
The indicator evaluates price action within a specified analysis window to determine market trends. It uses Fibonacci retracement levels to identify key price levels for trend detection and trading signals. Based on user-defined inputs, it calculates and displays trade levels, including entry points, stop-loss, and multiple take-profit levels.
Trend Definition:
The highest high and lowest low are calculated over a specified number of candles.
The price range is determined as the difference between the highest high and lowest low.
Three Fibonacci levels are calculated within this range:
- Fib Level 0.236
- Trend Line (0.5 level)
- Fib Level 0.786
Determining Long and Short Conditions:
Long Conditions (Buy):
The closing price must be above both the trend line (0.5 level) and the Fib Level 0.236.
Additionally, the market must not currently be in a bearish trend.
Short Conditions (Sell):
The closing price must be below both the trend line and the Fib Level 0.786.
The market must not currently be in a bullish trend.
Trend State Updates:
When a condition is met, the indicator sets the trend to bullish or bearish and turns off bearish or bullish trend conditions.
If neither buy nor sell conditions are met, the trend remains unchanged, and no new trade signals are generated.
Inputs and Their Role in the Algorithm
General Settings
Analysis Window: Specifies the number of historical candles to analyze. This influences the calculation of key levels such as highs and lows, which are critical for determining Fibonacci retracement levels.
First Trade: Defines the start date for generating trading signals.
Trade Configuration
Display TP/SL: Enables or disables the visualization of take-profit and stop-loss levels on the chart.
Leverage: Defines the leverage applied to trades for risk and position size calculations.
Initial Capital: Specifies the starting capital, which is used for calculating position sizes and profits.
Exchange Fees (%): Sets the percentage of fees applied by the exchange, which is factored into profit calculations.
Country Tax (%): Allows users to define applicable taxes, which are subtracted from net profits.
Stop-Loss Configuration
Break Even: Toggles the break-even functionality. When enabled, the stop-loss level adjusts dynamically as take-profit levels are reached.
Stop Loss (%): Defines the percentage distance from the entry price to the stop-loss level.
Take-Profit Settings
The indicator supports up to four take-profit levels:
- TP1 through TP4 Ratios: Specify the price levels for each take-profit target as a percentage of the entry price.
- Profit Percentages: Allocate a percentage of the position size to each take-profit level.
Visualization Elements
Trend Indicators: Displays Fibonacci-based trend lines and markers for bullish or bearish conditions.
Trade Levels: Entry, stop-loss, and take-profit levels are visualized on the chart by dotted lines for clarity. Additionally, a semi-transparent background is applied when a portion of the trade is closed to enhance visualization. Positive profits from a closed trade are green; otherwise, they are red.
Trade Profit Indicator: On each trade, every time a part of the trade is closed (e.g., take profit is reached), the profit indicator will be updated.
Performance Panel: Summarizes key account statistics, including net balance, profit/loss, and trading performance metrics.
Usage Guidelines
Add the indicator to your TradingView chart.
Configure the input settings based on your trading strategy.
Use the displayed levels and trend signals to make informed trading decisions.
Contact
For further assistance, including automation inquiries, feel free to contact me through TradingView’s messaging system.
Purpose and Disclaimer
IronBot V3 is designed for educational purposes and to assist in analyzing market trends. It is not financial advice, and users should perform their own due diligence before making any trading decisions.
Trading involves significant risk, and past performance is not indicative of future results. Use this indicator responsibly.
SuperTrend Volume [BigBeluga]SuperTrend Volume is an advanced trend-following indicator that combines the traditional SuperTrend method with a normalized volume visualization inside trend bands, offering enhanced insight into market dynamics and volume activity.
🔵 Key Features:
Dynamic Trend Bands: The indicator uses the SuperTrend methodology to plot upper and lower trend bands, which adapt dynamically to price movements. Green bands indicate an uptrend, while purple bands indicate a downtrend.
Normalized Volume Visualization:
Inside the trend bands, normalized volume is displayed to highlight the intensity of market participation during trends.
Users can choose between two visualization types:
Bars: Displays volume as vertical bars within the bands.
Area: Represents volume as a shaded area for a smoother look.
Color-Coded Trends: Trend direction is color-coded:
Green for bullish trends.
Purple for bearish trends.
Volume Labels: Each bar or area has a label showing the normalized volume value 0-4 for easier interpretation.
Trend Change Detection: Automatically identifies trend reversals by recalculating the SuperTrend levels and adjusting volume visualization accordingly.
🔵 Usage:
Trend Identification: Use the color-coded trend bands to confirm the current market direction and identify potential reversals.
Volume Confirmation: Assess the strength of trends using normalized volume inside the bands. Higher normalized volume indicates stronger market conviction.
Peak Volume can be a signal of the mean reversion of price
Customization: Adjust the visualization type (bars or area) based on personal preference or analysis needs.
Dynamic Updates: Use volume labels and trend bands to stay updated on market shifts and trading opportunities in real time.
SuperTrend Volume is a versatile tool suitable for traders who want to combine trend analysis with volume dynamics for a more comprehensive view of the market. It is ideal for identifying trend strength, detecting reversals, and gauging the participation of market players during directional moves.
OBVMACD by Cryptos RocketThe OBVMACD Indicator by Cryptos Rocket combines the concepts of the OBV (On-Balance Volume) and the MACD (Moving Average Convergence Divergence) oscillator to provide a comprehensive market trend analysis tool. The indicator is particularly useful for traders who rely on volume and momentum to identify potential signals in the market.
Overview of the Key Components
1. On-Balance Volume (OBV) Calculation:
- The OBV is a momentum indicator that uses volume flow to predict changes in stock price. The script calculates OBV using the price spread (difference between the high and low of each candle) and adjusts the OBV using a smoothing function (exponential moving average).
- The script then computes a price-adjusted version of the OBV to provide a more accurate measure of price momentum relative to volume.
2. Moving Averages (MA) and Customization:
- The user can choose from various moving averages such as EMA, DEMA, TEMA, TDEMA, and others. The script includes custom implementations for each of these MAs to give flexibility depending on the user's preference.
- A key feature is the ability to choose between these moving average types and adjust their lengths to suit different timeframes or market conditions.
3. MACD Calculation:
- The MACD is calculated by subtracting a slow exponential moving average (EMA) from a fast EMA of the OBV-adjusted price. This measure of momentum helps traders identify bullish or bearish trends.
- The script provides an additional feature of slope calculation for the MACD, which helps measure the rate of change in momentum.
4. Trend Identification:
- The script detects the trend direction by analyzing the color change in the plotted line (from red to green or vice versa). A green trend indicates upward momentum, while a red trend suggests downward momentum.
- This color change is based on the calculated slope of the MACD and helps to visualize the direction of the market quickly.
- The script also provides specific buy and sell signals, marked by crosses when the trend changes direction.
5. Pivot Point Detection:
- The script includes an optional pivot point feature that highlights key price levels where the price is expected to reverse. It identifies the highest and lowest points over a user-defined period and plots these as pivot markers on the chart.
- These pivots can serve as important levels for setting stop-loss or take-profit orders.
6. Alerts:
- The script has built-in alerts to notify the user when the trend color changes or when a pivot point is detected. These alerts are especially useful for traders who cannot monitor the chart constantly and need real-time notifications for potential trade setups.
7. Customization:
- The user can customize several parameters, such as the length of moving averages, the period for calculating OBV and MACD, and the visibility of pivot points. This allows for the script to be adapted to various trading strategies or asset classes.
- Users can also toggle the display of signals, such as buy and sell crosses or pivot points, depending on their trading needs.
8. Plotting and Visualization:
- The script visually represents the OBV-adjusted price, MACD, and the trend direction with colored lines. It uses green for bullish (upward) trends and red for bearish (downward) trends, with the MACD plot providing further confirmation of the price momentum.
- The OBV values are smoothed and adjusted, providing a clear visual representation of volume and momentum trends.
9. Complexity and Flexibility:
- While this script is highly customizable and versatile, it is also complex due to the number of features it integrates. The combination of OBV, MACD, and various moving averages provides a multifaceted tool for analyzing price and volume trends.
- The script can be used on various timeframes, making it applicable for both short-term and long-term traders.
10. Advanced Functions:
- The script includes advanced functions for calculating slopes, averages, and other statistical measures that provide deeper insights into market trends. It employs custom mathematical operations like the cumulative sum and the use of different exponential smoothing methods to ensure that the indicators reflect the current market sentiment accurately.
11. Error Handling and Adjustments:
- The code is designed to handle potential errors and provide accurate outputs, even with changing market conditions. This robust error handling is crucial for ensuring that the indicator performs as expected without interruptions.
It offers a comprehensive trading tool that merges the OBV and MACD indicators to create a powerful trend analysis system. It provides traders with several customization options, built-in alerts, and pivot point detection, making it an ideal choice for traders who want to leverage volume, momentum, and price trends in their trading strategies.
DIN: Dynamic Trend NavigatorDIN: Dynamic Trend Navigator
Overview
The Dynamic Trend Navigator script is designed to help traders identify and capitalize on market trends using a combination of Weighted Moving Averages (WMA), Volume Weighted Average Price (VWAP), and Anchored VWAP (AVWAP). The script provides customizable settings and flexible alerts for various crossover conditions, enhancing its utility for different trading strategies.
Key Features
- **1st and 2nd WMA**: Allows users to set and visualize two Weighted Moving Averages. These can be customized to any period, providing flexibility in trend identification.
- **VWAP and AVWAP**: Incorporates both VWAP and AVWAP, offering insights into price levels adjusted by volume.
- **ATR and ADX Indicators**: Includes the Average True Range (ATR) and Average Directional Index (ADX) to help assess market volatility and trend strength.
- **Flexible Alerts**: Configurable buy and sell alerts for any crossover condition, making it versatile for various trading strategies.
How to Use the Script
1. **Set the WMA Periods**: Customize the periods for the 1st and 2nd WMAs to suit your trading strategy.
2. **Enable VWAP and AVWAP**: Choose whether to include VWAP and AVWAP in your analysis by enabling the respective settings.
3. **Configure Alerts**: Set up alerts for the desired crossover conditions (WMA, VWAP, AVWAP) to receive notifications for potential trading opportunities.
4. **Monitor Signals**: Watch for buy and sell signals indicated by triangle shapes on the chart, which appear at the selected crossover points.
When to Use
- **Best Time to Use**: The script is most effective in trending markets where price movements are well-defined. It helps traders stay on the right side of the trend and avoid false signals during periods of low volatility.
- **When Not to Use**: Avoid using the script in choppy or sideways markets where price action lacks direction. The script may generate false signals in such conditions, leading to potential losses.
Benefits of VWAP and AVWAP
- **VWAP**: The Volume Weighted Average Price provides a price benchmark that adjusts for volume, helping traders identify fair value levels. It is particularly useful for intraday trading and gauging market sentiment.
- **AVWAP**: The Anchored VWAP allows traders to set a starting point for VWAP calculations, providing flexibility in analyzing price levels over specific periods or events. This helps in identifying key support and resistance levels based on volume.
Unique Aspects
- **Customizability**: The script offers extensive customization options for WMA periods, VWAP, AVWAP, and alert conditions, making it adaptable to various trading strategies.
- **Combining Indicators**: By integrating WMAs, VWAP, AVWAP, ATR, and ADX, the script provides a comprehensive view of market conditions, enhancing decision-making.
- **Real-Time Alerts**: The flexible alert system ensures traders receive timely notifications for potential trade setups, improving responsiveness to market changes.
Examples
- **Example 1**: A trader sets the 1st WMA to 8 and the 2nd WMA to 100, enabling the VWAP. When the 1st WMA crosses above the 2nd WMA or VWAP, a buy signal is triggered, indicating a potential long entry.
- **Example 2**: A trader sets the AVWAP to start 30 bars ago and monitors for crossovers with the 1st WMA. When the 1st WMA crosses below the AVWAP, a sell signal is triggered, suggesting a potential short entry.
Final Notes
The Dynamic Trend Navigator script is a powerful tool for traders looking to enhance their market analysis and trading decisions. Its unique combination of customizable indicators and flexible alert system sets it apart from other scripts, making it a valuable addition to any trader's toolkit.
Disclaimer: Never any financial advice. Just ThisGirl loving experimenting with indicators to help myself, as well as others.
Market Trends and Liquidity ZonesThe "Market Trends and Liquidity Zones" indicator is designed to help traders visualize key market trends, identify significant block orders, and recognize liquidity zones. Here’s a detailed description of its components and functionalities:
Components:
Moving Average Calculation:
The indicator calculates a simple moving average (SMA) of the closing prices over a specified period (default is 14 periods). This average serves as a reference point to gauge market trends.
Block Order Identification:
It identifies and plots the highest high and lowest low over a defined block order length (default is 50 periods) on a daily timeframe. These levels represent potential sell side (red line) and buy side (green line) block orders, indicating areas where significant buying or selling interest may exist.
Crossover Signals:
The indicator checks for bullish and bearish crossovers:
Bullish Crossover: Occurs when the current price crosses above the average price, suggesting potential upward momentum.
Bearish Crossover: Happens when the current price crosses below the average price, indicating potential downward momentum.
Alerts:
The indicator can send alerts when crossovers occur, providing traders with real-time notifications. Alerts can be enabled or disabled based on user preference.
Visual Signals:
The indicator plots visual signals (upward green arrows for bullish signals and downward red arrows for bearish signals) on the chart, making it easy for traders to spot potential entry or exit points.
Usage:
Trend Analysis: Traders can use the moving average to determine the overall trend of the market. If the price is consistently above the average, it may indicate a bullish trend, while prices below may suggest a bearish trend.
Liquidity Zones: The identified block orders help traders understand where significant buying or selling pressure may exist, aiding in decision-making for entering or exiting trades.
Crossover Alerts: The alerts help traders react quickly to potential market changes, allowing for timely trading actions based on crossover signals.
Summary:
Overall, this indicator combines trend analysis, liquidity zone identification, and alert functions to assist traders in making informed decisions. It is particularly useful for those looking to refine their trading strategies based on market dynamics and price action