WPR Volume Candle [Atareum]AWPRVC (Atareum WPR Volume Candles) is clearly an awesome indicator produced by AtareumFX that is based on William’s Percent Range concepts by combination with volume. This is a new approach of volume candles that is combined with R% concepts and creates such a powerful tool to trace the market and assists traders to make better decisions surly and so much accurate. You can find this new indicator more useful because it has all benefits and advantages of William’s R% and cover its disadvantages. Also it is more powerful because of using volume in its calculations and generate a new candles which is more reliable and trustworthy.
Concept:
Using William’s Percent leading periods and calculations on redesigning new candles in combination with volume, that makes unique reform candles, but these new candles with their new cloud system clearly response to any reasonable price movement with so much information.
As you know if use R% there are some misleading fake signals generate by oscillator, also it could not show any sign of price moving trend which is almost confusing for beginners or even a pro trader! And finally this oscillator is so sensitive to price change that is so creepy to use for most of traders.
This new AWPRVC solve the problem and make all of them handy and useful for you.
The cloud system which is designed in AWPRVC shows the price trend moving from Bearish Zone (-100 to -50 percent) to Bullish Zone (-50 to 0 percent). You can trust the lead moving forward of the clouds in two separate Top and Bottom (Bull and Bear) lines which solely determine the trend and power of price moving. When clouds are close to each other means we continue the trend and when they get far away from each other means we will face powerful trend in near future. If they are in Bearish Zone we continue the selling pressure and vice versa. Following picture shows good sample of Long and Short positions in compare with so many fake signals generated on original R%.
Besides the cloud system of AWPRVC which is clearly show the price trend and it is completely enough for being sure about price moving trend, you can use moving average which is designated in it to confirm the price trend, also.
Also you can see this new AWPRVC candle by using volume within its conformation, make reasonable price candles which is no so sensitive and so creepy and make your decisions come true in peace and clear sense of market moves. You can see following picture which is showing although the real price candles are so unclear and nonsense of making decision but the AWPRVC candles lead you to make true and trustable position.
As you see this new combination of Williams R% oscillator with volume and also generating a perfect new cloud system will clearly help traders even pro to trust the signals and understand whole market movement better and all of original problems of R% solved and even make a most powerful, trustworthy and useful new indicator.
Parameters:
Section 1 : Candle colour setting for flourishing just as you desire !
Section 2 : Defining Periods of R% and source of candle data in combination with determining the smoothing type of moving averages and signal period.
Section 3 : Select using Standard candles alongside with redesigned cloud calculation type and three additional moving averages which can plot on each newly generated candles and standard candles on a chart with the type mode defined in the previous section.
Note: if you want to omit any or all of these moving averages, you can use 0 in period, instead of selecting "None" in the plot moving option!
Usage :
Overall:
Regardless of the additional moving averages which will lead to so many situations of market according to their types and designs, that is four different period for new redesign AWPRVC and three period for standard chart. You can easily select periods and type for these moving averages. Also, do not forget that signal moving averages is shown only on AWPRVC chart and have two different colour for upward and downward trends. Other moving averages are plot by just one single colour.
Cloud levels are so important because AWPRVC candles show respect to them and when they break the clouds upward or downward it is surly beginning of a trend. Do not forget we have 5 levels for tracing new AWPRVC candles move as follows : Ready for Short \ Long, Surly Short \ Long and Turn Trend which is in middle range of movement percent. Each level clearly shows what it means by its name.
Support and Resistance:
Any consolidation of AWPRVC candles in Ready for Short or Long Zones means the support or resistance level due to its nature, but important thing is how long the candles lasts in there or how many times repeated in the same level in AWPRVC chart zone in future.
For plotting the support or resistance you should trace range of AWPRVC candles consolidated and plot zone in standard chart candles just like following picture.
Divergence:
When standard price candles move downward but we see upward trend in clouds of AWPRVC candles that means we should face Bullish Trend because of the divergence and vice versa. You can see perfect example in following picture.
Signal:
Alert of Long :
Bullish candle cross both cloud down and up level simultaneously.
Confirmed Long :
AWPRVC candles cross up turn trend level and pullback to cloud up level.
Take profit of Long:
Any cross down of the AWPRVC candles from surly short level of chart.
Alert of Short :
Bearish candle cross both cloud up and down level simultaneously.
Confirmed Short :
AWPRVC candles cross down turn trend level and pullback to cloud down level.
Take profit of Short:
Any cross up of the AWPRVC candles from surly long level of chart.
Notes:
Use moving averages cross of standard chart candles as lead to be in positions more as they are good representative of trend.
As long as AWPRVC candles or Cloud levels are in Bullish Zone, you can stay in Long positions.
Cloud level thickness means the power of trend and can be use as confirmation of powerful trend, so when cloud levels tight or going to cross each other it means the trend is going to be reversed.
It is the result of many years of experience in markets and there are so many details about this AWPRVC chart which I am in the experiment phase to publish in the future, so please help me with your ideas and do not hesitate to comment and inform me any suggestions or criticism.
Rata-Rata Pergerakan / Moving Averages
TradeTale Targets & SLIts a Leading Indicator. This script explains how 'Pivot Points' along with 'Fibonacci' & 'VWAP' can be used to catch a trend.
Volume Weighted Average Price (VWAP):-
VWAP stands for Volume-Weighted Average Price, which is a tool that shows the average price of a security over a period of time, adjusted for trading volume.
VWAP = (Cumulative (Price * Volume) ÷ (Cumulative Volume)
Pivot Points:-
A pivot point is a price level calculated from previous prices. Pivot point is simply the average of the previous days high and low and the closing price which shows potential areas of support or resistance. Trading above the pivot point on the subsequent day is thought to indicate ongoing bullish sentiment and Trading below the pivot point indicates bearish sentiment. It lets the trader know that the price is trending in that direction if the price moves through these levels. Day traders calculate pivot points to determine levels of entry, stoploss and take profits.
Fibonacci:-
Fibonacci is based on the key numbers identified by mathematician Leonardo Pisano, nicknamed Fibonacci, in the 13th century. Fibonacci's sequence of numbers is not as important as the mathematical relationships, expressed as ratios, between the numbers in the series. A Fibonacci retracement is created by taking two extreme points on a stock chart and dividing the vertical distance by the key Fibonacci ratios of 23.6%, 38.2%, 50%, 61.8% etc. Once these levels are identified, horizontal lines are drawn and used to identify possible support and resistance levels, place stoploss and set targets.
Logic of this indicator:-
Pivot Points are used as Entry level and Stoploss.
Fibonacci Ratios are used as Targets.
VWAP can be used to see the Trend. (Price above VWAP is Bullish Trend & Price below VWAP is Bearish Trend)
How to use:-
Long when price is above "VWAP".
Short when price is below "VWAP".
Long & Short Levels along with Targets & Stoploss appears as horizontal lines.
Chart Timeframe:-
This Indicator works on all timeframes below "1 day" timeframe.
Traders can also set stop loss and take profit levels as per risk reward ratio.
Note:-
Like other technical indicators, This indicator also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
Custom Moving Average Ribbon with EMA Table & Text ColorComprehensive Description of the Custom Moving Average Ribbon with EMA Table & Text Color
The Custom Moving Average Ribbon with EMA Table & Text Color is a highly flexible and customizable indicator designed for traders who use multiple moving averages to assess trends, strength, and potential market reversals. It plots up to 8 moving averages (either SMA, EMA, WMA, or VWMA) on the price chart and displays a table summarizing the moving averages’ values, periods, and colors. The table also allows for the customization of the text color, making it easier to align with your chart’s theme or preference.
Key Features:
Multiple Moving Averages: You can display up to 8 moving averages (MA), each of which can be customized in terms of:
Type: SMA (Simple Moving Average), EMA (Exponential Moving Average), WMA (Weighted Moving Average), or VWMA (Volume-Weighted Moving Average).
Period: Each moving average has a user-defined period, which allows for flexibility depending on your trading style (short-term, medium-term, or long-term).
Enable/Disable: Each moving average can be independently enabled or disabled based on your preference.
Moving Average Ribbon: The indicator visualizes multiple moving averages as a ribbon, giving traders insight into the market's underlying trend. The interaction between these moving averages provides essential signals:
Uptrend: Shorter-term MAs above longer-term MAs, all sloping upward.
Downtrend: Shorter-term MAs below longer-term MAs, sloping downward.
Consolidation: MAs tightly packed, indicating low volatility or a sideways market.
Customizable Table: The indicator includes a table that displays:
The Name of each moving average (e.g., MA 1, MA 2, etc.).
The Period used for each moving average.
The Current Value of each moving average.
Color Coding for easier visual identification on the chart.
Text Color Customization: You can change the text color in the table to match your chart style or to ensure high visibility.
Responsive Design: This indicator works on any time frame, whether you're a day trader, swing trader, or long-term investor, and the table adjusts dynamically as new data comes in.
How to Use the Indicator
a) Trend Identification
The Custom Moving Average Ribbon helps in identifying trends and their strength. Here’s how you can interpret the plotted moving averages:
Uptrend (Bullish):
If the shorter-term moving averages (e.g., 5-period, 10-period) are above the longer-term moving averages (e.g., 50-period, 200-period), and all the MAs are sloping upward, it suggests a strong bullish trend.
The greater the separation between the moving averages, the stronger the uptrend.
Use the table to quickly verify the current value of each MA and confirm that the price is staying above most or all of the MAs.
Downtrend (Bearish):
When shorter-term moving averages are below the longer-term moving averages and all MAs are sloping downward, this indicates a bearish trend.
Greater separation between MAs indicates a stronger downtrend.
Neutral/Consolidating Market:
If the MAs are tightly packed and frequently crossing each other, the market is likely consolidating, and a strong trend is not in play.
In these situations, it’s better to wait for a clearer signal before taking any positions.
b) Reversal Signals
Golden Cross: When a short-term moving average (e.g., 50-period) crosses above a long-term moving average (e.g., 200-period), this is considered a bullish signal, suggesting a possible upward trend.
Death Cross: When a short-term moving average crosses below a long-term moving average, it’s considered a bearish signal, indicating a potential downward trend.
c) Using the Table for Quick Reference
The table allows you to monitor:
The current price value relative to each moving average. If the price is above most MAs, the market is likely in an uptrend, and if below, in a downtrend.
Changes in MA values: If you see values of shorter-term MAs moving closer to or crossing longer-term MAs, this could indicate a weakening trend or a potential reversal.
How to Combine this Indicator with Other Indicators for a Solid Strategy
The Custom Moving Average Ribbon is powerful on its own but can be enhanced when combined with other technical indicators to form a comprehensive trading strategy.
1. Combining with RSI (Relative Strength Index)
How It Works: RSI is a momentum oscillator that measures the speed and change of price movements, typically over 14 periods. It ranges from 0 to 100, with readings above 70 considered overbought and below 30 considered oversold.
Strategy:
Overbought in an Uptrend: If the moving average ribbon indicates an uptrend but the RSI shows the market is overbought (RSI > 70), it could signal a pullback or correction is imminent.
Oversold in a Downtrend: If the moving average ribbon indicates a downtrend but the RSI shows oversold conditions (RSI < 30), a bounce or reversal may be on the horizon.
2. Combining with MACD (Moving Average Convergence Divergence)
How It Works: MACD tracks the difference between two exponential moving averages, typically the 12-period and 26-period EMAs. It generates buy and sell signals based on crossovers and divergences.
Strategy:
Trend Confirmation: Use the MACD to confirm the direction and momentum of the trend indicated by the moving average ribbon. For example, if the MACD line crosses above the signal line while the shorter-term MAs are above the longer-term MAs, it confirms strong bullish momentum.
Divergences: Watch for divergences between price action and MACD. If price is making higher highs but MACD is making lower highs, it could signal a weakening trend, which you can verify using the moving averages.
3. Combining with Bollinger Bands
How It Works: Bollinger Bands plot two standard deviations above and below a moving average, typically the 20-period SMA. The bands widen during periods of high volatility and contract during periods of low volatility.
Strategy:
Breakout or Reversal: If price action moves above the upper Bollinger Band while the shorter-term MAs are crossing above the longer-term MAs, it confirms a strong breakout. Conversely, if price touches or falls below the lower Bollinger Band and the shorter MAs start crossing below the longer-term MAs, it indicates a potential breakdown.
Mean Reversion: In sideways markets, when the moving averages are tightly packed, Bollinger Bands can help spot mean reversion opportunities (buy near the lower band, sell near the upper band).
4. Combining with Volume Indicators
How It Works: Volume is a crucial confirmation indicator for any trend or breakout. Combining volume with the moving average ribbon can enhance your strategy.
Strategy:
Trend Confirmation: If the price breaks above the moving averages and is accompanied by high volume, it confirms a strong breakout. Similarly, if price breaks below the moving averages on high volume, it signals a strong downtrend.
Divergence: If price continues to trend in one direction but volume decreases, it could indicate a weakening trend, helping you prepare for a reversal.
Example Strategies Using the Indicator
Trend-Following Strategy:
Use the moving average ribbon to identify the main trend.
Combine with MACD or RSI for confirmation of momentum.
Enter trades when the shorter-term MAs confirm the trend and the confirmation indicator (MACD or RSI) aligns with the trend.
Exit trades when the moving averages start converging or when your confirmation indicator shows signs of reversal.
Reversal Strategy:
Wait for significant crossovers in the moving averages (Golden Cross or Death Cross).
Confirm the reversal with divergence in MACD or RSI.
Use Bollinger Bands to fine-tune your entry and exit points based on overbought/oversold conditions.
Conclusion
The Custom Moving Average Ribbon with EMA Table & Text Color indicator provides a robust framework for traders looking to use multiple moving averages to gauge trend direction, strength, and potential reversals. By combining it with other technical indicators like RSI, MACD, Bollinger Bands, and volume, you can develop a solid trading strategy that enhances accuracy, reduces false signals, and maximizes profit potential in various market conditions.
This indicator offers high flexibility with customization options, making it suitable for traders of all levels and strategies. Whether you're trend-following, scalping, or swing trading, this tool provides invaluable insights into market movements.
Trend Filtered Signals with Confidence LevelThe Trend Filtered Signals with Confidence Level is a powerful technical analysis tool designed for trend-following traders. It provides clear buy and sell signals, enhanced by a unique confidence level indicator, helping traders filter out market noise and focus on higher-probability trades. This indicator is built with advanced trend detection, volatility filtering, and volume confirmation, making it suitable for various markets such as stocks, forex, and cryptocurrencies.
Key Features:
Precise Trend Detection:
The indicator uses the Average Directional Index (ADX) to measure the strength of the trend, only generating signals when the trend is strong enough (above a user-defined threshold). This prevents false signals during sideways markets and ensures the system follows meaningful trends.
Buy and Sell Signals:
Buy signals are generated when the price crosses above the fast moving average, and the market is in a strong uptrend based on ADX and other filters. Conversely, sell signals are created when the price crosses below the fast moving average in a strong downtrend. These signals appear directly on the chart with visual markers, making them easy to spot in real-time trading.
Confidence Level for Signals:
Each buy and sell signal is given a confidence percentage, calculated from multiple factors:
The strength of the trend (ADX).
The price’s relationship to moving averages (fast MA and slow MA).
The current trading volume compared to its moving average.
The distance between the price and the moving averages, which is checked against the ATR (Average True Range).
A higher confidence percentage indicates a stronger, more reliable signal. Traders can choose to act only on signals that meet or exceed their preferred confidence level.
ATR-Based Volatility Filtering:
To avoid over-trading or receiving signals that are too close together, the ATR (Average True Range) is used as a volatility filter. This ensures that the signals are spaced out, and traders only receive alerts when the price has moved a meaningful distance, considering market volatility.
Volume Confirmation:
Volume plays a crucial role in signal accuracy. The indicator compares the current volume to its moving average, ensuring that signals are generated only when there is sufficient market participation. This feature helps traders avoid signals during low-volume or illiquid market conditions.
Exit Alerts for Trend Reversals:
The indicator doesn’t just help you enter trades; it also assists with exits. When the trend shows signs of weakening or reversing (such as price crossing back over the moving average or losing ADX strength), the indicator will issue an exit alert, helping traders lock in profits or minimize losses.
How to Use the Indicator:
Choosing Timeframes:
The Trend Filtered Signals with Confidence Level works on multiple timeframes. For intraday traders, it can be applied on 5-minute or 15-minute charts. Swing traders might prefer the 1-hour or daily timeframe to capture longer-term trends. Adjust the inputs based on the volatility of the asset you're trading and the timeframe.
Customizing Inputs:
ADX Length: Defines the length for calculating ADX. A typical setting is 14, but this can be adjusted based on how quickly or slowly you want the indicator to react to changes in trend strength.
ADX Threshold: Set this value to filter out weak trends. The default is 20, but for stronger trend signals, a threshold of 25 or 30 may be more suitable.
ATR Length & Multiplier: Used to calculate the average true range, helping to filter out signals that are too close to each other. The ATR multiplier increases the signal’s precision in volatile markets.
Fast and Slow Moving Averages: These moving averages help define the short- and long-term trend. The default fast MA is 9, and the slow MA is 21, but traders can adjust these based on their strategy.
Volume MA: Defines the length of the moving average applied to volume. A longer setting may be more appropriate for swing trading, while a shorter setting can work better for day trading.
Interpreting the Confidence Percentage:
Signals with a confidence level above 50% are generally considered reliable. However, traders can choose to filter trades based on their risk tolerance by only acting on signals above a certain confidence level (e.g., 70% or higher for conservative traders).
Use the confidence percentage as a guide to increase the likelihood of entering higher-probability trades.
Signal Alerts:
The indicator provides customizable alerts for both buy and sell signals. It also generates alerts when it's time to exit a position due to weakening trend conditions.
Alerts can be set up through TradingView’s alert system to notify you via mobile, email, or browser pop-up, so you never miss an opportunity.
Managing Entries and Exits:
Combine the buy and sell signals with the confidence level to time entries more effectively. After entering a position, keep an eye on the exit signals generated by the indicator to manage your trades.
For trend-following strategies, stay in the trade as long as the indicator shows a strong trend. When the confidence level drops significantly, or the exit alert triggers, it may be time to close the trade.
Inputs Overview:
ADX Length: Default 14, for trend strength.
ADX Threshold: Default 20, minimum trend strength for signal generation.
ATR Length & Multiplier: Adjust for volatility filtering.
Fast MA & Slow MA Lengths: Define the short-term and long-term trend.
Volume MA Length: Confirm signals with volume strength.
Minimum Signal Distance: Prevents excessive signal clustering.
Conclusion:
The Trend Filtered Signals with Confidence Level indicator by Danytradehit is a comprehensive tool that not only identifies trends and trend reversals but also helps you gauge the reliability of each signal through a confidence percentage. It simplifies decision-making for traders by filtering out weak or low-probability trades, ensuring you only act on the most promising market opportunities. This indicator is highly customizable and works across various timeframes and asset classes.
Volume-Weighted Trend Strength indexVolume-Weighted Trend Strength index (VWTSI)
Introduction
The VWTSI is a custom indicator designed to combine trend strength, volume, and volatility to give traders a comprehensive view of market dynamics. It provides flexibility by allowing you to visualize the indicator as either an oscillator or a moving average.
Features
Dual Visualization: Can be displayed either as an oscillator or as a moving average on the chart.
Volume-Weighted: Adjusts trend strength based on current volume compared to its average.
Volatility-Adjusted: Incorporates market volatility into the trend strength calculation.
Customizable: Various parameters can be fine-tuned to suit different trading environments.
How It Works
1. Trend Strength Calculation
The difference between the fast (10-period) and slow (30-period) EMAs is used to calculate trend strength, which gives a percentage-based indication of the trend's strength
2. Volatility Adjustment
The ATR-based volatility is calculated and used to amplify or reduce the trend strength based on the current market conditions
3. Volume Adjustment
The ratio of current volume to the volume SMA adds another layer of adjustment to the final VWTSI value
4. Final VWTSI Calculation
The VWTSI value is the product of trend strength, volatility factor, and volume ratio
5. Normalization
The final VWTSI is normalized to fit within a range of -100 to 100 for better visualization in oscillator mode
Customization Inputs
Fast EMA Length: Default is 10.
Slow EMA Length: Default is 30.
Volume Length: Default is 14.
Volatility Length (ATR): Default is 20.
Oscillator or MA Mode: Toggle between displaying the indicator as an oscillator or moving average.
MENTFX AVERAGES MULTI TIMEFRAMEThe MENTFX AVERAGES MULTIME TIMEFRAME indicator is designed to provide traders with the ability to visualize multiple moving averages (MAs) from higher timeframes on their current chart, regardless of the chart's timeframe. It combines the power of exponential moving averages (EMAs) to help traders identify trends, spot potential reversal points, and make more informed trading decisions.
Key Features:
Multi-Timeframe Moving Averages: This indicator plots moving averages from daily timeframes directly on your chart, helping you keep track of higher timeframe trends while trading in any timeframe.
Customizable Moving Averages: You can adjust the length and visibility of up to three EMAs (default settings are 5, 10, and 20-period EMAs) to suit your trading style.
Overlay on Price: The indicator is designed to be overlaid on your price chart, seamlessly integrating with your existing analysis.
Simple but Effective: By offering a clear visual guide to where price is trading relative to important higher timeframe levels, this indicator helps traders avoid trading against major trends.
Why It’s Unique:
Validation Timeframe Flexibility: Unlike traditional moving average indicators that only work within the same chart's timeframe, the MENTFX AVERAGES M indicator allows you to pull moving averages from higher timeframes (default: Daily) and overlay them on any chart you're currently viewing, whether it's intraday (minutes) or even weekly. This cross-timeframe visibility is critical in determining the true market trend, adding context to your trades.
Customizability: Although the default settings focus on daily EMAs (5, 10, and 20 periods), traders can modify the parameters, including the type of moving average (Simple, Weighted, etc.), making it adaptable for any strategy. Whether you want shorter-term or longer-term averages, this indicator covers your needs.
Trend Confirmation Tool: The use of multiple EMAs helps traders confirm trend direction and potential price breakouts or reversals. For example, when the shorter-term 5 EMA crosses above the 20 EMA, it can signal a potential bullish trend, while the opposite could indicate bearish pressure.
How This Indicator Helps:
Identify Key Support and Resistance Levels: Higher timeframe moving averages often act as dynamic support and resistance. This indicator helps you stay aware of those critical levels, even when trading lower timeframes.
Trend Identification: Knowing where the market is relative to the 5, 10, and 20 EMAs from a higher timeframe gives you a clearer picture of whether you're trading with or against the prevailing trend.
Improved Decision Making: By aligning your trades with the direction of higher timeframe trends, you can increase your confidence in trade entries and exits, avoiding low-probability setups.
Multi-Market Use: This indicator works well across various asset classes—stocks, forex, crypto, and commodities—making it versatile for any trader.
How to Use:
Intraday Trading: Use the daily EMAs as a guide to see if intraday price movements align with longer-term trends.
Swing Trading: Plot daily EMAs to track the strength of a larger trend, using pullbacks to the moving averages as potential entry points.
Trend Trading: Monitor crossovers between the moving averages to signal potential changes in trend direction.
Default Settings:
5 EMA (Daily) – Blue Line
10 EMA (Daily) – Black Line
20 EMA (Daily) – Red Line
These lines will plot on your chart with a subtle opacity (33%) to ensure they don’t obstruct price action, while still providing crucial visual guidance on market trends.
This indicator is perfect for traders who want to blend technical analysis with multi-timeframe insights, helping you stay in sync with broader market movements while executing trades on any timeframe.
Neural Momentum StrategyThis strategy combines Exponential Moving Average (EMA) analysis with a multi-timeframe approach. It uses a neural scoring system to evaluate market momentum and generate precise trading signals. The strategy is implemented in Pine Script v5 and is designed for use on TradingView.
Key Components
The strategy utilizes short-term (10-period) and long-term (25-period) EMAs. It calculates the difference between these EMAs to assess trend direction and strength. A neural scoring system evaluates EMA crossovers (weight: 12 points), trend strength (weight: 10 points), and price acceleration (weight: 4 points). The system implements a score smoothing algorithm using a 10-period EMA.
Multi-timeframe Analysis
The strategy automatically selects a higher timeframe based on the current chart timeframe. It calculates scores for both the current and higher timeframes, then combines these scores using a weighted average. The higher timeframe factor ranges from 3 to 6, depending on the current timeframe.
Trading Logic
Entry occurs when the final combined score turns positive after a change. Exit happens when the final combined score turns negative after a change. The strategy recalculates scores on each bar, ensuring responsive trading decisions.
Risk Management
An optional adaptive stop-loss system based on Average True Range (ATR) is available. The default ATR period is 10, and the stop factor is 1.2. Stop levels are dynamically adjusted on the higher timeframe.
Customization Options
Users can adjust EMA periods, signal line period, scoring weights, and enable/disable multi-timeframe analysis. The strategy allows setting specific date ranges for backtesting and deployment.
Position Sizing
The strategy uses a percentage-of-equity position sizing method, with a default of 30% of account equity per trade.
Code Structure
The strategy is built using TradingView's strategy framework. It employs efficient use of the request.security() function for multi-timeframe analysis. The main calculation function, calculate_score(), computes the neural score based on EMA differences and acceleration.
Performance Considerations
The strategy adapts to various market conditions through its multi-faceted scoring system. Multi-timeframe analysis helps filter out noise and identify stronger trends. The neural scoring approach aims to capture subtle market dynamics often missed by traditional indicators.
Limitations
Performance may vary across different markets and timeframes. The strategy's effectiveness relies on proper calibration of its numerous parameters. Users should thoroughly backtest and forward test before live implementation.
To summarize, the Neural Momentum Strategy represents a sophisticated approach to market analysis. It combines traditional technical indicators with advanced scoring techniques and multi-timeframe analysis. This strategy is designed for traders seeking a data-driven and adaptive method. It aims to identify high-probability trading opportunities across various market conditions.
This Neural Momentum Strategy is for informational and educational purposes only. It should not be considered financial advice. The strategy may exhibit slight repainting behavior due to the nature of multi-timeframe analysis and the use of the request.security() function. Historical values might change as new data becomes available.
Trading carries a high level of risk, and may not be suitable for all investors. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.
Past performance is not indicative of future results. The author and TradingView are not responsible for any losses incurred as a result of using this strategy. Always exercise caution when using this or any trading strategy, and thoroughly test it before implementing in live trading scenarios.
Users are solely responsible for any trading decisions they make based on this strategy. It is strongly recommended that you seek advice from an independent financial advisor if you have any doubts.
Feigenbaum Inspired Bifurcation IndicatorIts a work in progess but here you go. I pair it with a 50 EMA for better direction.
1. Bullish Trend Signal:
Green Labels ("Bullish") are plotted below the price chart when a bullish trend is detected.
This is based on a crossover of two simple moving averages (short and long):
The short-term moving average (SMA) crosses above the long-term moving average, indicating a potential upward trend or buying opportunity.
2. Bearish Trend Signal:
Red Labels ("Bearish") are plotted above the price chart when a bearish trend is detected.
This occurs when the short-term moving average crosses below the long-term moving average, signaling a potential downward trend or selling opportunity.
3. Mid-Range Line (Optional):
A Blue Line is plotted on the chart, representing the mid-point between the highest high and lowest low over the given period (default is 14 bars).
This line can help visualize where the price is relative to its recent range.
Summary:
Bullish Labels (Green): Appear when a bullish crossover happens.
Bearish Labels (Red): Appear when a bearish crossover happens.
Mid-Range Line (Blue): Helps identify the midpoint of recent price ranges (can be turned off if not needed).
This is a simplified trend-following indicator based on moving average crossovers, giving you a quick visual cue of when trends are shifting. Let me know if you’d like further adjustments!
Advanced MA Difference (and more)This Pine Script indicator calculates the difference between the price and a main moving average (SMA or EMA), allowing you to track deviations in either absolute or relative (percentage) terms. It offers several features to help visualize and smooth this difference:
- Main MA Difference: Shows the price deviation from the moving average, either as an absolute dollar amount or as a percentage.
- Fast and Slow Moving Averages: Optionally smooths the difference using fast and slow moving averages, giving insights into short-term and long-term trends in price deviations.
- Difference Between Fast and Slow MAs : Highlights the gap between these MAs, helping to identify momentum shifts.
- Customizable Visuals: Offers flexibility in displaying the difference and moving averages using lines or histograms, and includes a zero line for reference.
When to Use It:
- Use the absolute difference for tracking raw price deviations if you’re focused on concrete moves in the asset’s price.
- Use the relative difference for normalized, percentage-based deviations, especially useful when comparing different assets or time frames.
This indicator is suitable for traders looking to spot trends, price deviations, or momentum shifts relative to a moving average. Its flexibility makes it a good fit for both short-term and long-term analysis.
Price vs 200 EMA IndicatorPurpose :
The Price vs. 200 MA (EMA) Indicator measures the deviation of the current price from its 200-period Exponential Moving Average (EMA). Instead of merely plotting the raw difference, the indicator calculates a standardized difference (similar to a z-score), which quantifies the deviation in terms of standard deviations over time. This helps traders understand how extreme the price is relative to its long-term average and its typical volatility.
Use Cases :
Trend Analysis:
Traders can use the standardized difference to assess how extreme the current price is relative to its long-term trend (200 EMA) while normalizing for volatility.
When the z-score approaches extreme levels (e.g., above 2 or below -2), it may indicate that the asset is overextended in either direction.
Mean Reversion Strategy:
Since the indicator identifies when the price deviates far from the 200 EMA (in terms of standard deviations), traders can use it to time mean-reversion trades, buying when the price is below -2 (oversold) and selling when it’s above +2 (overbought).
Trend Continuation or Exhaustion:
If the price continues to stay above +2 for extended periods, it could indicate a strong trend, whereas a reversion toward the EMA after reaching +2 or -2 could signal trend exhaustion or reversal.
Summary :
The Price vs. 200 MA (EMA) Indicator calculates the standardized difference (z-score) between the price and its 200-period EMA, giving traders a normalized measure of how far the price is from its long-term average, relative to typical price volatility. The color-coded plot provides a clear visual representation of potential overbought/oversold conditions and highlights when the price has deviated significantly from the 200 EMA in either direction.
RSI with Swing Trade by Kelvin_VAlgorithm Description: "RSI with Swing Trade by Kelvin_V"
1. Introduction:
This algorithm uses the RSI (Relative Strength Index) and optional Moving Averages (MA) to detect potential uptrends and downtrends in the market. The key feature of this script is that it visually changes the candle colors based on the market conditions, making it easier for users to identify potential trend swings or wave patterns.
The strategy offers flexibility by allowing users to enable or disable the MA condition. When the MA condition is enabled, the strategy will confirm trends using two moving averages. When disabled, the strategy will only use RSI to detect potential market swings.
2. Key Features of the Algorithm:
RSI (Relative Strength Index):
The RSI is used to identify potential market turning points based on overbought and oversold conditions.
When the RSI exceeds a predefined upper threshold (e.g., 60), it suggests a potential uptrend.
When the RSI drops below a lower threshold (e.g., 40), it suggests a potential downtrend.
Moving Averages (MA) - Optional:
Two Moving Averages (Short MA and Long MA) are used to confirm trends.
If the Short MA crosses above the Long MA, it indicates an uptrend.
If the Short MA crosses below the Long MA, it indicates a downtrend.
Users have the option to enable or disable this MA condition.
Visual Candle Coloring:
Green candles represent a potential uptrend, indicating a bullish move based on RSI (and MA if enabled).
Red candles represent a potential downtrend, indicating a bearish move based on RSI (and MA if enabled).
3. How the Algorithm Works:
RSI Levels:
The user can set RSI upper and lower bands to represent potential overbought and oversold levels. For example:
RSI > 60: Indicates a potential uptrend (bullish move).
RSI < 40: Indicates a potential downtrend (bearish move).
Optional MA Condition:
The algorithm also allows the user to apply the MA condition to further confirm the trend:
Short MA > Long MA: Confirms an uptrend, reinforcing a bullish signal.
Short MA < Long MA: Confirms a downtrend, reinforcing a bearish signal.
This condition can be disabled, allowing the user to focus solely on RSI signals if desired.
Swing Trade Logic:
Uptrend: If the RSI exceeds the upper threshold (e.g., 60) and (optionally) the Short MA is above the Long MA, the candles will turn green to signal a potential uptrend.
Downtrend: If the RSI falls below the lower threshold (e.g., 40) and (optionally) the Short MA is below the Long MA, the candles will turn red to signal a potential downtrend.
Visual Representation:
The candle colors change dynamically based on the RSI values and moving average conditions, making it easier for traders to visually identify potential trend swings or wave patterns without relying on complex chart analysis.
4. User Customization:
The algorithm provides multiple customization options:
RSI Length: Users can adjust the period for RSI calculation (default is 4).
RSI Upper Band (Potential Uptrend): Users can customize the upper RSI level (default is 60) to indicate a potential bullish move.
RSI Lower Band (Potential Downtrend): Users can customize the lower RSI level (default is 40) to indicate a potential bearish move.
MA Type: Users can choose between SMA (Simple Moving Average) and EMA (Exponential Moving Average) for moving average calculations.
Enable/Disable MA Condition: Users can toggle the MA condition on or off, depending on whether they want to add moving averages to the trend confirmation process.
5. Benefits of the Algorithm:
Easy Identification of Trends: By changing candle colors based on RSI and MA conditions, the algorithm makes it easy for users to visually detect potential trend reversals and trend swings.
Flexible Conditions: The user has full control over the RSI and MA settings, allowing them to adapt the strategy to different market conditions and timeframes.
Clear Visualization: With the candle color changes, users can quickly recognize when a potential uptrend or downtrend is forming, enabling faster decision-making in their trading.
6. Example Usage:
Day traders: Can apply this strategy on short timeframes such as 5 minutes or 15 minutes to detect quick trends or reversals.
Swing traders: Can use this strategy on longer timeframes like 1 hour or 4 hours to identify and follow larger market swings.
Distance From moving averageDistance From Moving Average is designed to help traders visualize the deviation of the current price from a specified moving average. Users can select from four different types of moving averages: Simple Moving Average (SMA), Exponential Moving Average (EMA), Weighted Moving Average (WMA), and Hull Moving Average (HMA).
Key Features:
User-Friendly Input Options:
Choose the type of moving average from a dropdown menu.
Set the length of the moving average, with a default value of 200.
Custom Moving Average Calculations:
The script computes the selected moving average using the appropriate mathematical formula, allowing for versatile analysis based on individual trading strategies.
Distance Calculation:
The indicator calculates the distance between the current price and the chosen moving average, providing insight into market momentum. A positive value indicates that the price is above the moving average, while a negative value shows it is below.
Visual Representation:
The distance is plotted on the chart, with color coding:
Lime: Indicates that the price is above the moving average (bullish sentiment).
Red: Indicates that the price is below the moving average (bearish sentiment).
Customization:
Users can further customize the appearance of the plotted line, enhancing clarity and visibility on the chart.
This indicator is particularly useful for traders looking to gauge market conditions and make informed decisions based on the relationship between current prices and key moving averages.
Multi-Setting Moving AverageThis indicator is a TradingView tool that allows you to set the calculation periods for moving averages according to different time frames.
Unlike standard moving average indicators, which require manual adjustments when changing time frames, this indicator is designed to automatically reflect the settings for each time frame, eliminating the hassle of changing settings.
このインジケーターは、異なる時間枠に応じた移動平均線の計算期間を設定できるトレーディングビューのツールです。
一般の移動平均線のインジケーターは時間枠の変更に伴って手動で設定を調整する必要がありますが、このインジケーターは時間枠ごとの設定が自動で反映されるように工夫されているため、設定変更の手間が省けます。
LiquidityFlow Dominance+Alerts (btc.d, T3, Stables)LiquidityFlow Dominance+Alerts: Overview & Usage Guide
Overview
The LiquidityFlow Dominance+Alerts indicator provides a dynamic view of liquidity flow across Bitcoin, Altcoins, and Stablecoins, helping track liquidity shifts and identify market sentiment. By integrating moving averages, custom alerts, and thresholds for extreme outliers, this indicator helps to anticipate bullish and bearish shifts in liquidity and alert market tops and bottoms.
Key features include:
1. Liquidity Flow Monitoring : Track liquidity flow across Bitcoin (BTC), Altcoins (TOTAL3), and Stablecoins (USDT, USDC, DAI).
2. Custom Alerts : Set alerts for key liquidity shifts and extreme conditions in Stablecoin dominance, both with static and moving average (MA)-based calculations.
3. Moving Averages : Use Simple, Exponential, or Weighted Moving Averages to smooth out market data for more reliable signals.
4. Outlier Detection : Identify potential tops and bottoms using thresholds for Stablecoin dominance, with alerts for extreme movements.
Functionality
Data Inputs and Key Metrics
- Symbols Monitored:
- Bitcoin Dominance (BTC.D)
- Altcoin Market Cap (TOTAL3)
- Stablecoins (USDT.D, USDC.D, DAI.D)
- Liquidity Flow Conditions:
- Track percentage changes in dominance across sectors to detect liquidity flow into Bitcoin, Altcoins, or Stablecoins.
- Custom Metrics:
- Liquidity Flow Index: BTC Dominance minus Stablecoin Dominance.
- Liquidity Flow Ratio: BTC Dominance divided by the combined dominance of Stablecoins and Altcoins.
Moving Average Integration
- Select from SMA, EMA, or WMA to apply moving averages to the dominance metrics. Moving averages help smooth out short-term volatility and provide more consistent signals.
- Moving averages are applied to each sector (BTC, Altcoins, and Stablecoins) and compared to their previous period values to determine shifts in liquidity.
Alerts and Thresholds
- % Change Lookback Period: Adjust the lookback period to align with the timeframe of your chart. Shorter timeframes may require a lower lookback period, while higher timeframes may benefit from longer periods.
- Stables Bull/Bear % for Alerts: Set a threshold for when Stablecoin dominance becomes a bullish or bearish signal relative to BTC and Altcoins. A higher threshold may be used in volatile markets to filter out noise.
- Extreme Outliers Detection: Use the **Stables Up/Down Extreme Threshold** to identify potential market tops or bottoms when Stablecoin dominance deviates significantly from historical trends. The **Extreme Lookback Period** controls the time window for detecting these anomalies.
How to Use the Indicator
Adjusting the % Change Lookback Period
- The `% Change Lookback Period` should be adjusted based on your chart’s timeframe. For example, a shorter period (e.g., 7) works well for intraday charts, while longer periods (e.g., 14) might be more suitable for daily or weekly charts.
Setting Thresholds for Alerts
- Stables Bull/Bear % for Alerts: Adjust this setting to define when Stablecoin dominance triggers bullish or bearish alerts. A value like 1% could be a good starting point for most market conditions but can be fine-tuned based on volatility.
- Extreme Lookback Period: Define the lookback period for detecting extreme moves in Stablecoin dominance. This will help identify major tops and bottoms in the market. For shorter-term trades, consider using a shorter extreme lookback (e.g., 7-10 periods).
Alerts for Liquidity Shifts
- The indicator supports alerts for key liquidity shifts, which are useful for staying ahead of market movements. Alerts can be set to notify you when liquidity moves into:
- Bitcoin: Indicating a potential bullish trend for Bitcoin.
- Altcoins: Signaling altcoins are bullish.
- Stablecoins: Suggesting a risk-off environment or market correction.
Extreme Alerts for Stables
- Extreme Up/Down Alerts: These are triggered when Stablecoin dominance crosses extreme thresholds. For example, if Stablecoin dominance rises more than 14% over a set period, it could signal a market top, while a significant drop could indicate a market bottom.
Moving Average Calculations
- In addition to static percentage changes, moving averages can be applied to smooth out dominance values. The type and length of the moving average can be customized:
- SMA (Simple Moving Average): Best for smoothing out volatility in a linear way.
- EMA (Exponential Moving Average): More responsive to recent data, making it useful in faster markets.
- WMA (Weighted Moving Average): Emphasizes more recent data, but less reactive than the EMA.
Additional Usage Tips:
- Background Colors: The indicator visually highlights the dominant liquidity flow:
- Orange: Liquidity is shifting toward Bitcoin.
- Aqua: Liquidity is flowing into Altcoins.
- Red: Liquidity is moving into Stablecoins.
Auto Anchored Swing VWAP'sThe Auto Anchored Swing VWAP's indicator automatically anchors Volume-Weighted Average Price (VWAP) lines to recent swing highs and swing lows. VWAPs often act as key support or resistance levels because they represent the average price at which the majority of trading volume has occurred over a given time.
What is VWAP? VWAP is an essential tool in trading, representing the average price of a security over a specific period, weighted by volume. It helps traders identify the average price at which most trades have been executed, providing a balanced view of price action over time.
Anchored VWAPs: Unlike traditional VWAPs, which start from the beginning of the day, anchored VWAPs allow traders to "anchor" the calculation to a specific point in time or a pivot on the chart, in this case a swing high and swing low. This version of VWAP follows the price action from a selected point forward.
When the price is above the VWAP, it indicates that the majority of traders have paid less for the asset, creating a potential support zone as buyers may step in at or near this level. On the other hand, when the price is below the VWAP, it suggests that most traders have paid a higher price, which can lead to a resistance level where sellers may appear to defend their positions.
Anchored VWAPs, in particular, provide more precise support and resistance levels by starting from a specific swing high, swing low, or other significant point on the chart. This allows traders to track how price interacts with these levels after a certain bar.
The selectable pivot lookback length in this indicator defines the number of bars to the left and right of a potential swing high or swing low that must be lower (for a swing high) or higher (for a swing low) in order to confirm the pivot. In other words, it controls how many surrounding bars need to validate a local price extreme before it is considered a true swing point.
For example, if the lookback length is set to 9, a swing high is identified when there are 9 bars to the left and 9 bars to the right that all have lower highs than the current bar. The same logic applies for swing lows, where the price must be lower than the highs of the bars to the left and right for it to be considered a swing low.
This parameter allows traders to control the sensitivity of the swing points used to anchor VWAPs. A smaller lookback value will identify more frequent and short-term swing highs and lows, making the VWAPs more responsive to recent price action. Conversely, a larger lookback value will result in fewer but more significant swing points.
Pine Script
Utilization of Pine Script’s Enum Feature: This indicator leverages Pine Script's new enum feature for the selection of the VWAP lines (solid, dashed, or dotted) style.
Day & Swing Trading EMA Clouds with Adaptive LevelsDay & Swing Trading EMA Clouds with Adaptive Levels is a tool designed for traders who need a flexible indicator that adapts to both short-term (day trading) and long-term (swing trading) strategies. The indicator blends EMA clouds and adaptive support/resistance levels, making it suitable for analyzing trend strength and key price zones.
How It Works:
EMA Clouds for Trend Detection:
This indicator uses three EMAs (Fast, Intermediate, Slow) to create two clouds:
Fast Cloud: The area between the fast and Intermediate EMAs.
Slow Cloud: The area between the Intermediate and slow EMAs.
The cloud colors change based on trend direction:
Positive (uptrend): When the fast EMA is above the Intermediate EMA (turquoise) or the Intermediate EMA is above the slow EMA (teal).
Negative (downtrend): When the fast EMA is below the Intermediate EMA (pink) or the Intermediate EMA is below the slow EMA (magenta).
Traders can use these clouds to visually gauge market momentum and trend reversals.
Adaptive EMA Settings Based on Trading Mode:
The EMA lengths adjust automatically depending on whether you're in Day Trading or Swing Trading mode:
Day Trading Mode uses shorter periods to capture quick price movements:
Fast EMA: 5-period
Mid EMA: 13-period
Slow EMA: 21-period
Swing Trading Mode uses longer periods to capture broader trends:
Fast EMA: 12-period
Mid EMA: 26-period
Slow EMA: 50-period
This dynamic adjustment allows you to switch between trading styles seamlessly, with the EMAs reflecting the most relevant timeframes for each strategy.
Adaptive Support and Resistance Levels:
Depending on the selected trading mode, the indicator dynamically plots key levels:
Day Trading Mode: Previous day’s high, low, and midpoint, as well as 2-day levels.
Swing Trading Mode: Previous month’s high, low, and midpoint, as well as 2-month levels.
These levels act as dynamic support and resistance zones, giving traders critical areas to monitor for potential reversals or breakouts.
Buy & Sell Signals:
Visual buy/sell signals are generated when the fast EMA crosses above or below the slow EMA. These signals can help traders identify potential trend reversals.
Customization:
You can fully adjust the transparency and colors of the clouds to fit your personal preferences and trading style.
Why This Combination?
Combining EMA clouds with adaptive levels provides traders with a complete picture. The clouds highlight the underlying market momentum and trend strength, while the adaptive levels offer potential entry/exit points based on historical price action. This unique mashup allows traders to follow trends and plan trades around key support and resistance zones.
EMA GridThe EMA Grid indicator is a powerful tool that calculates the overall market sentiment by comparing the order of 20 different Exponential Moving Averages (EMAs) over various lengths. The indicator assigns a rating based on how well-ordered the EMAs are relative to each other, representing the strength and direction of the market trend. It also smooths out the macro movements using cumulative calculations and visually represents the market sentiment through color-coded bands.
EMA Calculation:
The indicator uses a series of EMAs with different lengths, starting from 5 and going up to 100. Each EMA is calculated either using the exponential moving averages.
The EMAs form the grid that the indicator uses to measure the order and distance between them.
Rating Calculation:
The indicator computes the relative distance between consecutive EMAs and sums these differences.
The cumulative sum is further smoothed using multiple EMAs with different lengths (from 3 to 21). This smooths out short-term fluctuations and helps identify broader trends.
Market Sentiment Rating:
The overall sentiment is calculated by comparing the values of these smoothing EMAs. If the shorter-term EMA is above the longer-term EMA, it contributes positively to the sentiment; otherwise, it contributes negatively.
The final rating is a normalized value based on the relationship between these EMAs, producing a sentiment score between 1 (bullish) and -1 (bearish).
Color Coding and Bands:
The indicator uses the sentiment rating to color the space between the 100 EMA and 200 EMA, representing the strength of the trend.
If the sentiment is bullish (rating > 0), the band is shaded green. If the sentiment is bearish (rating < 0), the band is shaded red.
The intensity of the color is based on the strength of the sentiment, with stronger trends resulting in more saturated colors.
Utility for Traders:
The EMA Grid is ideal for traders looking to gauge the broader market trend by analyzing the structure and alignment of multiple EMAs. The color-coded band between the 100 and 200 EMAs provides an at-a-glance view of market momentum, helping traders make informed decisions based on the trend's strength and direction.
This indicator can be used to identify bullish or bearish conditions and offers a smoothed perspective on market trends, reducing noise and highlighting significant trend shifts.
Quantoshi Global Liquidity StrategyThis strategy leverages global liquidity data alongside technical indicators like the Rate of Change (ROC) and Double Exponential Moving Average (DEMA) to identify optimal long-entry points during major market trends. The script is designed to capture long-term, sustained momentum and includes built-in risk management by filtering out rapid price spikes. It is best suited for swing trading or long-term trend trading.
Key Features:
Global Liquidity Data:
The strategy incorporates data from major global central banks and M2 money supply to calculate a comprehensive liquidity index, which is a critical component for long-term trend detection.
ROC-DEMA Crossover:
It combines the Rate of Change (ROC) and a 100-period Double Exponential Moving Average (DEMA) to identify momentum shifts. Long entries are triggered when these indicators confirm an upward trend.
Price Thresholds:
The strategy compares the current price to the price from several candles ago to ensure positions are not entered during unsustainable price surges.
Custom Alerts:
Automated alerts for long entries and exits allow users to automate their trades or receive timely notifications when market conditions are met.
How It Works:
The strategy enters long positions when ROC and DEMA signals confirm a positive trend, and the price conditions suggest a sustainable upward momentum. Long exits occur when the momentum reverses, with a clear crossover signal of ROC below DEMA. Custom alert messages make it ideal for automated trading setups.
Why It's Unique:
This strategy combines liquidity data with technical indicators to filter noise and focus on significant market shifts. It allows traders to capture major trend reversals without needing to actively monitor the charts, making it useful for those focused on swing or long-term trading.
Backtesting & Risk Management:
Given its long-term focus, this strategy generates only a few signals per decade when used on a weekly timescale. As a result, traditional backtesting show few trades, but historical analysis reveals its effectiveness in capturing major market movements.
Account Size:
The backtest is based on a $1,000 account size to represent a realistic trading scenario.
Commissions & Tick size: Commission fees of 0.1% and a tick size of 100 are applied to reflect real-world trading conditions.
Trade Size:
Risk per trade is limited to 5% of the account balance to align with sound risk management practices.
Daksh RSI POINT to ShootHere are the key points and features of the Pine Script provided:
### 1. **Indicator Settings**:
- The indicator is named **"POINT and Shoot"** and is set for non-overlay (`overlay=false`) on the chart.
- `max_bars_back=4000` is defined, indicating the maximum number of bars that the script can reference.
### 2. **Input Parameters**:
- `Src` (Source): The price source, default is `close`.
- `rsilen` (RSI Length): The length for calculating RSI, default is 20.
- `linestylei`: Style for the trend lines (`Solid` or `Dashed`).
- `linewidth`: Width of the plotted lines, between 1 and 4.
- `showbroken`: Option to show broken trend lines.
- `extendlines`: Option to extend trend lines.
- `showpivot`: Show pivot points (highs and lows).
- `showema`: Show a weighted moving average (WMA) line.
- `len`: Length for calculating WMA, default is 9.
### 3. **RSI Calculation**:
- Calculates a custom RSI value using relative moving averages (`ta.rma`), and optionally uses On-Balance Volume (`ta.obv`) if `indi` is set differently.
- Plots RSI values as a green or red line depending on its position relative to the WMA.
### 4. **Pivot Points**:
- Utilizes the `ta.pivothigh` and `ta.pivotlow` functions to detect pivot highs and lows over the defined period.
- Stores up to 10 recent pivot points for highs and lows.
### 5. **Trend Line Drawing**:
- Lines are drawn based on pivot highs and lows.
- Calculates potential trend lines using linear interpolation and validates them by checking if subsequent bars break or respect the trend.
- If the trend is broken, and `showbroken` is enabled, it draws dotted lines to represent these broken trends.
### 6. **Line Management**:
- Initializes multiple lines (`l1` to `l20` and `t1` to `t20`) and uses these lines for drawing uptrend and downtrend lines.
- The maximum number of lines is set to 20 for uptrends and 20 for downtrends, due to a limit on the total number of lines that can be displayed on the chart.
### 7. **Line Style and Color**:
- Defines different colors for uptrend lines (`ulcolor = color.red`) and downtrend lines (`dlcolor = color.blue`).
- Line styles are determined by user input (`linestyle`) and use either solid or dashed patterns.
- Broken lines use a dotted style to indicate invalidated trends.
### 8. **Pivot Point Plotting**:
- Plots labels "H" and "L" for pivot highs and lows, respectively, to visually indicate turning points on the chart.
### 9. **Utility Functions**:
- Uses helper functions to get the values and positions of the last 10 pivot points, such as `getloval`, `getlopos`, `gethival`, and `gethipos`.
- The script uses custom logic for line placement based on whether the pivots are lower lows or higher highs, with lines adjusted dynamically based on price movement.
### 10. **Plotting and Visuals**:
- The main RSI line is plotted using a color gradient based on its position relative to the WMA.
- Horizontal lines (`hline1` and `hline2`) are used for visual reference at RSI levels of 60 and 40.
- Filled regions between these horizontal lines provide visual cues for potential overbought or oversold zones.
These are the main highlights of the script, which focuses on trend detection, visualization of pivot points, and dynamic line plotting based on price action.
Pi Cycle Top & Bottom Indicator [InvestorUnknown]The Pi Cycle Top & Bottom Indicator is designed for long-term cycle analysis, particularly useful for detecting significant market tops and bottoms in assets like Bitcoin. By comparing the behavior of two moving averages, one with a shorter period (default 111) and the other with a longer period (default 350), the indicator helps investors identify potential turning points in the market.
Key Features:
Dual Moving Average System:
The indicator uses two moving averages (MA) to create a cyclic oscillator. The shorter moving average (Short Length MA) is more reactive to recent price changes, while the longer moving average (Long Length MA) smooths out long-term trends. Users can select between:
Simple Moving Average (SMA): A straightforward average of closing prices.
Exponential Moving Average (EMA): Places more weight on recent prices, making it more responsive to market changes.
Oscillator Mode Options:
The Pi Cycle Indicator offers two modes of oscillation to better suit different analysis styles:
RAW Mode: This mode calculates the raw ratio of the Short MA to the Long MA, offering a simple comparison of the two averages.
LOG(X) Mode: In this mode, the oscillator takes the natural logarithm of the Short MA to Long MA ratio. This transformation compresses extreme values and highlights relative changes more effectively, making it particularly useful for spotting shifts in long-term trends.
Cyclical Analysis:
The core of the Pi Cycle Indicator is its ability to visualize the relationship between the two moving averages. The ratio of the Short MA to the Long MA is plotted as an oscillator. When the oscillator crosses above or below a baseline (which is 1 for RAW mode and 0 for LOG(X) mode), it signals potential market turning points.
Visual Representation:
The indicator provides a clear visual display of market conditions:
Orange Line: Represents the Pi Cycle Oscillator, which shows the relationship between the short and long moving averages.
Gray Baseline: A reference line that dynamically adjusts based on the oscillator mode. Crosses above or below this line help indicate possible trend reversals.
Shaded Areas: Color-filled areas between the oscillator and the baseline, which are shaded green when the market is bullish (oscillator above baseline) and red when bearish (oscillator below baseline). This provides a visual cue to assist in identifying potential market tops and bottoms.
Use Cases:
The Pi Cycle Top & Bottom Indicator is primarily used in long-term market analysis, such as Bitcoin cycles, to identify significant tops and bottoms. These moments often coincide with large cyclical shifts, making it valuable for those aiming to enter or exit positions at key moments in the market cycle.
By analyzing the interaction between short-term and long-term trends, investors can gain insight into broader market dynamics and make more informed decisions regarding entry and exit points. The ability to switch between moving average types (SMA/EMA) and oscillator modes (RAW/LOG) adds flexibility for adapting to different market environments.
Arjunology for Stocks IndicatorArjunology for Stocks Indicator is a unique trend-following and exit management system that combines the power of Exponential Moving Averages (EMA) and Average True Range (ATR) to capture market trends and manage trade exits dynamically. It is designed to help traders identify potential buy and sell points based on market trends while incorporating volatility adjustments to avoid false signals and provide more reliable trade entries and exits.
Key Features:
1. Exponential Moving Averages (EMAs):
• Two EMAs (Short EMA and Long EMA) are used to determine trend direction and potential crossover signals.
• Short EMA reacts quickly to price changes, giving an indication of shorter-term trends.
• Long EMA provides a more stable measure of the overall trend direction, helping filter out market noise.
• Bullish Crossovers: When the short EMA crosses above the long EMA, it signals a potential uptrend (buy condition).
• Bearish Crossovers: When the short EMA crosses below the long EMA, it signals a potential downtrend (sell condition).
2. Average True Range (ATR):
• ATR is used to assess market volatility and avoid false signals during low volatility periods.
• A trailing stop loss mechanism based on ATR ensures that the indicator adapts to the current market environment, with higher volatility allowing for wider stops and lower volatility leading to tighter stops.
• A flat ATR threshold is used to avoid signals during quiet periods, where price movement may be too insignificant to trade effectively.
3. Buy and Sell Visual Cues:
• Green Triangle at the bottom of the candle when a bullish crossover (buy) condition is met.
• Red Triangle at the top of the candle when a bearish crossover (sell) condition is met.
• These visual cues help traders quickly identify trade entry points based on the trend signals.
4. Dynamic Exit Management:
• The indicator provides an Blue candle background to highlight exit points, with an “EXIT” label at the bottom of the candle in blue. This visual exit signal ensures clarity when a trade should be exited based on the trend reversal.
Justification for Combining EMAs and ATR in This Script:
The Exponential Moving Averages (EMAs) and Average True Range (ATR) serve complementary purposes in this script, enhancing each other’s functionality to provide a more complete trading system:
1. Trend Identification with EMAs:
• The combination of short and long EMAs is a widely trusted method for determining the trend direction. The crossovers between these EMAs provide clear entry signals for buy or sell trades. However, relying solely on EMAs can lead to false signals during periods of low volatility or market consolidation.
2. ATR for Volatility and Stop Loss:
• To prevent false signals during low-volatility conditions, the script uses ATR as a filter. This ensures that trades are only taken when the market has enough momentum, reducing the risk of being caught in “choppy” conditions where price action may be flat and untradeable.
• Additionally, the ATR-based trailing stop provides dynamic trade management, adjusting stop-loss levels according to the current volatility. This makes the system adaptive and prevents tight stops in volatile conditions or unnecessarily wide stops in calm markets.
3. Why They Work Together:
• The EMAs handle the trend direction, which is the foundation of the trading system, while the ATR adjusts the trade management to account for changing volatility. This means that the trader is always entering trades that are likely to follow a strong trend, while avoiding stagnant markets and using volatility-adaptive exit points.
• Without ATR, EMAs might generate signals during low-volatility periods that are unreliable. On the other hand, ATR alone wouldn’t provide a clear direction for trend-following. Together, these indicators create a balanced approach where trades are not only timely but also carefully managed.
How to Use:
• Buy Entry: Enter when the green triangle appears, indicating a bullish EMA crossover.
• Sell Entry: Enter short when the red triangle appears, indicating a bearish EMA crossover.
• Exit: Follow the orange background and blue “EXIT” label as a visual cue to exit the trade.
The combination of these tools allows traders to identify meaningful trend reversals while also managing risk dynamically, making the Arjunology for Stocks Indicator both versatile and effective for various market conditions.
Flexible Moving Average StrategyThis strategy offers flexibility to choose between SMA and EMA, and allows users to set the review frequency to Daily, Weekly, or Monthly. It adapts to different market conditions by providing full control over the length and timeframe of the Moving Average.
### Key Features:
- **Moving Average Method**: Select between SMA and EMA.
- **Review Frequency**: Choose Daily, Weekly, or Monthly review periods.
- **Customizable**: Set the Moving Average length and timeframe.
- **Entry/Exit Rules**:
- **Enter Long**: When the close price is above the Moving Average at the end of the period.
- **Exit**: When the close price falls below the Moving Average.
### Parameters:
- **Review Frequency**: Daily, Weekly, Monthly
- **Moving Average Method**: SMA or EMA
- **Length & Timeframe**: Fully adjustable
This strategy suits traders who prefer a flexible, trend-following approach based on long-term price movements.
EMA CheatsheetEMA Clouds Indicator: A Comprehensive Guide for Traders
The Exponential Moving Average (EMA) Clouds indicator is a dynamic tool designed to provide traders with visual cues about the current trend and potential shifts in market momentum. The EMA is a type of moving average that gives more weight to recent price data, making it highly responsive to price changes compared to a Simple Moving Average (SMA). When used in the form of clouds, EMAs are layered on top of each other to form a visual representation of bullish and bearish trends.
Understanding EMA Clouds
EMA Clouds consist of two or more EMAs, typically a short-term EMA (e.g., 9-period) and a longer-term EMA (e.g., 21-period). When these two EMAs are plotted together, they create a "cloud" between them. The interaction between these EMAs gives traders critical insights into the market's trend:
Bullish Clouds: When the shorter-term EMA crosses above the longer-term EMA, the market is considered to be in a bullish trend. This creates a green (or lighter colored) cloud between the EMAs, signaling upward momentum. Bullish clouds suggest that buyers are in control, and the price is likely to continue higher.
Bearish Clouds: Conversely, when the shorter-term EMA crosses below the longer-term EMA, the market is considered to be in a bearish trend. This forms a red (or darker colored) cloud between the EMAs, indicating downward momentum. Bearish clouds imply that sellers are dominating the market, and the price is likely to decline.
Key Components of the EMA Clouds Indicator:
Short-Term EMA: This is the fast-moving average (e.g., 9-period EMA) and reacts quickly to recent price changes. It’s used to detect short-term shifts in momentum.
Long-Term EMA: This is the slower-moving average (e.g., 21-period EMA), which smooths out price data over a longer period and identifies the general trend direction.
Cloud: The area between the short-term and long-term EMAs. When this cloud is green (bullish), it indicates that the short-term trend is stronger than the long-term trend. When the cloud turns red (bearish), it suggests that the short-term trend is weaker than the long-term trend.
Cloud Thickness: The thickness of the cloud provides additional information about the strength of the trend. A thicker cloud suggests strong price divergence between short and long-term trends, which could indicate a robust trend. A thinner cloud, on the other hand, may signal trend weakness or consolidation.