VIX CANDLESThe VIX CANDLES indicator is designed to visualize the Williams VIX Fix, a volatility measure that mimics the VIX index but applies to different financial instruments.
This indicator calculates a custom "VIX-like" value based on the highest close over a specified look-back period and plots the result as candlesticks. It also includes an Exponential Moving Average (EMA) to help identify trends and potential buy/sell signals.
Williams VIX Fix Calculation: Measures volatility by comparing the current low to the highest close over the given period, then expressing the result as a percentage.
Custom Candles: The VIX Fix is displayed as a set of candlesticks where the body is colored based on whether the close is higher (green) or lower (red) than the open.
Exponential Moving Average (EMA): An EMA is applied to the VIX Fix value to smooth the data and identify trend changes. The EMA's length is customizable.
Trade Direction Labels: Labels are plotted when the VIX Fix crosses above or below the EMA, signaling potential buy (▽) or sell (△) opportunities.
Customization: Colors for the candlesticks and EMA, as well as the look-back period and EMA length, can be adjusted to suit your preferences.
This indicator is useful for traders looking to track volatility and identify potential trend shifts in the market. By combining the Williams VIX Fix with an EMA, it provides a more dynamic view of market conditions, helping traders spot extreme volatility and adjust their strategies accordingly.
Análise de Tendência
Multi-TF Pivots V1The Multi-TF Pivots Indicator is a powerful and customizable pivot point tool for TradingView. This script allows traders to calculate and display pivot points on a wide range of timeframes, from 1-minute to weekly intervals. It supports both Classic and Fibonacci pivot styles and includes options to customize line colors, label positions, and price visibility. The indicator is ideal for traders who rely on pivot points for intraday and swing trading strategies, offering a clear visual representation of key support and resistance levels. With its flexibility and comprehensive features, this indicator is an essential tool for precise technical analysis.
اندیکاتور Multi-TF Pivots یک ابزار قدرتمند و قابل تنظیم برای محاسبه و نمایش پیوت پوینتها در پلتفرم TradingView است. این اسکریپت به معاملهگران امکان میدهد پیوت پوینتها را در طیف گستردهای از تایمفریمها، از ۱ دقیقه تا هفتگی، محاسبه و نمایش دهند. این اندیکاتور از سبکهای پیوت Classic و Fibonacci پشتیبانی میکند و گزینههایی برای شخصیسازی رنگ خطوط، موقعیت برچسبها و نمایش قیمتها دارد. این ابزار برای معاملهگرانی که به پیوت پوینتها برای استراتژیهای معاملاتی روزانه و نوسانی متکی هستند ایدهآل است و نمایش بصری واضحی از سطوح کلیدی حمایت و مقاومت ارائه میدهد. با انعطافپذیری و ویژگیهای جامع خود، این اندیکاتور یک ابزار ضروری برای تحلیل تکنیکال دقیق است
Crazymoney.aiImportant Notes:
Indicators Are Tools, Not Guarantees:
Indicators are not trading advice or a 100% guarantee. You must use them alongside your own knowledge and analysis.
Past Performance Disclaimer:
While our indicator has been tested and shows a good win rate, always remember that "Past performance is not a guarantee of future results."
About This Script:
This script is designed using a combination of multiple indicators, but it’s far more sophisticated than simple "if 2 indicators say buy, we buy" logic. It incorporates coded logic that acts as a "brain" to make decisions. While it can't avoid all bad trades, it aims to reduce false signals significantly.
Additionally, the script is designed to prevent the common issue of repainting found in many other buy/sell signal scripts.
Recommendation:
I suggest forward testing this script for a few days to understand how it works and to build confidence in its application.
Settings Breakdown:
1. Entry Type:
1. All Trades: Displays unfiltered trades without applying any logic.
2. AI: Filters trades using built-in logic for more accurate signals.
2.Stop-Loss (SL) Type (Red Line):
1. None: No stop-loss applied.
2. Safe: Larger stop-loss determined by the script’s logic.
3. Aggressive: Smaller stop-loss based on the signal candle’s (candle with a square on top/bottom) high or low.
3. Take-Profit (TP) Type (Green Line):
1. None: No take-profit applied.
2. RR: Take-profit based on the risk-reward ratio, adjustable using the RR. Mult. setting.
4. "Are You Greedy?" Checkbox: If checked, this option shows signals for when you can add more quantity or reduce your position based on logic.
5. Magic Levels: Displays support and resistance levels as black lines.
6. Yellow Candles refers to training SL hit or SL hit or Traget it.
Refer to the chart on the indicator page for visual guidance and markings.
LevelUp^ Power Trend ScreenerScreen for symbols in a Power Trend using the Pine Screener. This screener supports all equity types from stocks to ETFs to crypto.
When a Power Trend is active, there is a stronger than usual uptrend underway. The concept of a Power Trend was created by Investor's Business Daily to mimic the trading style of IBD's Founder and legendary trader, William O'Neil.
🔹 What Starts A Power Trend?
✓ Low is above the 21-day EMA for at least 10 days.
✓ 21-day EMA is above the 50-day SMA for at least five days.
✓ 50-day SMA is in an uptrend.
✓ Close up for the day.
🔹 What Ends A Power Trend?
✓ 21-day EMA crosses under 50-day SMA.
✓ Close 10% below recent high and below the 50-day SMA.
🔹 Screening Features - Setting Your Search Criteria
There are various search options that can be customized to meet your preferences.
▪ In A Power Trend
To cast the widest net, select only this option and all stocks in a Power Trend will be returned.
▪ Power Trend Started
This option will search for symbols that began a Power Trend on the most recent daily bar.
▪ Power Trend Ended
This option will search for symbols where there was an active Power Trend, however, it ended on the most recent daily bar.
▪ Days In A Power Trend
This option can be helpful if you would like to find stocks that recently entered a Power Trend, for example, stocks that have been in a Power Trend for less than 5 days. Another use would be to search for stocks where the Power Trend has been active for a longer period of time, for instance, over 50 days.
▪ 1 Week % Change
With this option you can search for stocks that are up/down a specific percentage over the past week. For example, search for stocks in a Power Trend that are up 5% or more in the past week.
▪ 1 Month % Change
Similar to the above, narrow the search to percent changes based on monthly data. For example, return stocks in a Power Trend that are down 10% or more in the past month.
▪ Limit Symbol Types
If you have a watchlist that has multiple symbol types, for example stocks and crypto, you can set this option to limit the search to one or more symbol types. You can configure this option by clicking the drop-down to the right of the indicator name and selecting Settings.
🔹 Installation And Usage
▪ Mark this indicator as a Favorite.
▪ Use the Pine Screener to search for Power Trends.
▪ Save the search results to a watchlist.
▪ View the watchlist in TradingView.
🔹 Power Trend Indicator
This screener is designed to be used along with the Power Trend indicator to view Power Trends on your chart.
🔹 Important Notes
▪ This indicator is for screening, there is no visible output on the chart.
▪ Once you mark this screener as a Favorite, you can remove it from your chart.
▪ The Power Trend concept as defined by Investor's Business Daily is based on moving averages on the daily timeframe. Given this requirement, this screener is also limited to searching the same timeframe.
Abz Simple TrendThe goal of this indicator is to provide an "at-a-glance" trend-oriented moving averages indicator that helps with medium and long term trades and investments.
It should work on any chart timeframe but is intended for people interested in how the price is trending over longer timeframes.
Everything in the indicator is calculated against a weekly chart. This means if you're viewing it on another chart timeframe, such as the daily chart, the indicator will show the lines in the same places.
This indicator is intended to be easy enough for people without significant technical chart reading knowledge: Red means the market momentum is likely negative. Green is "bullish".
This is a lagging indicator. If you're new, this may seem like a bad thing, but markets eventually "revert to the mean". They tend to overshoot up and down from major trend lines, but eventually reconnect.
The indicator tracks 4 different moving averages:
- The Main moving average that is the thick, bright line on the chart
- The momentum line
- The 28w moving average (with smoother applied)
- The slow moving average (200w with special filters and smoother applied). This is the final mean reversion line.
The indicator is set up with multiple alerts and you can adjust everything via the settings.
Just remember that no indicator is a "cure all". You should not blindly trade based on the signals this gives out. It is not optimized to be the perfect trading bot but it will help to validate or invalidate your decisions. It's my favorite "at-a-glance" indicator, but I always look at the price action and see when the price reverses as that will occur before the indicator confirms it.
Other indicators that may help you confirm your decisions include: Volume, MACD, and RSI (especially when you understand divergences between the price action and the RSI).
Previous Day High and Low by DRK TradingThe Previous Day High and Low Indicator is a simple yet powerful tool designed for traders who want to keep track of critical levels from the previous trading session. This indicator automatically marks the high and low of the previous day on your chart with dashed horizontal lines, making it easier to identify key support and resistance zones.
Features:
Horizontal Lines: Clearly marks the previous day's high and low levels.
Dynamic Updates: Automatically updates at the start of a new trading day.
Visual Clarity: Includes labels at the start of the day for quick reference.
Customizable: Works seamlessly across all timeframes and instruments.
Use Case:
Identify potential breakout and reversal zones.
Enhance intraday and swing trading strategies by focusing on key price levels.
Plan stop-loss and target levels based on historical price movements.
This indicator is perfect for price action traders, intraday scalpers, and swing traders who rely on past price behavior to make informed decisions.
Statistical Trend Analysis (Scatterplot) [BigBeluga]Statistical Trend Analysis (Scatterplot) provides a unique perspective on market dynamics by combining the statistical concept of z-scores with scatterplot visualization to assess price momentum and potential trend shifts.
🧿 What is Z-Score?
Definition: A z-score is a statistical measure that quantifies how far a data point is from the mean, expressed in terms of standard deviations.
In this Indicator:
A high positive z-score indicates the price is significantly above the average.
A low negative z-score indicates the price is significantly below the average.
The indicator also calculates the rate of change of the z-score, helping identify momentum shifts in the market.
🧿 Key Features:
Scatterplot Visualization:
Displays data points of z-score and its change across four quadrants.
Quadrants help interpret market conditions:
Upper Right (Strong Bullish Momentum): Most data points here signal an ongoing uptrend.
Upper Left (Weakening Momentum): Data points here may indicate a potential market shift or ranging market.
Lower Left (Strong Bearish Momentum): Indicates a dominant downtrend.
Lower Right (Trend Shift to Bullish/Ranging): Suggests weakening bearish momentum or an emerging uptrend.
Color-Coded Candles:
Candles are dynamically colored based on the z-score, providing a visual cue about the price's deviation from the mean.
Z-Score Time Series:
A line plot of z-scores over time shows price deviation trends.
A gray histogram displays the rate of change of the z-score, highlighting momentum shifts.
🧿 Usage:
Use the scatterplot and quadrant gauges to understand the current market momentum and potential shifts.
Monitor the z-score line plot to identify overbought/oversold conditions.
Utilize the gray histogram to detect momentum reversals and trend strength.
This tool is ideal for traders who rely on statistical insights to confirm trends, detect potential reversals, and assess market momentum visually and quantitatively.
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.
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.