Cosine-Weighted MA ATR [InvestorUnknown]The Cosine-Weighted Moving Average (CWMA) ATR (Average True Range) indicator is designed to enhance the analysis of price movements in financial markets. By incorporating a cosine-based weighting mechanism , this indicator provides a unique approach to smoothing price data and measuring volatility, making it a valuable tool for traders and investors.
Cosine-Weighted Moving Average (CWMA)
The CWMA is calculated using weights derived from the cosine function, which emphasizes different data points in a distinctive manner. Unlike traditional moving averages that assign equal weight to all data points, the cosine weighting allocates more significance to values at the edges of the data window. This can help capture significant price movements while mitigating the impact of outlier values.
The weights are shifted to ensure they remain non-negative, which helps in maintaining a stable calculation throughout the data series. The normalization of these weights ensures they sum to one, providing a proportional contribution to the average.
// Function to calculate the Cosine-Weighted Moving Average with shifted weights
f_Cosine_Weighted_MA(series float src, simple int length) =>
var float cosine_weights = array.new_float(0)
array.clear(cosine_weights) // Clear the array before recalculating weights
for i = 0 to length - 1
weight = math.cos((math.pi * (i + 1)) / length) + 1 // Shift by adding 1
array.push(cosine_weights, weight)
// Normalize the weights
sum_weights = array.sum(cosine_weights)
for i = 0 to length - 1
norm_weight = array.get(cosine_weights, i) / sum_weights
array.set(cosine_weights, i, norm_weight)
// Calculate Cosine-Weighted Moving Average
cwma = 0.0
if bar_index >= length
for i = 0 to length - 1
cwma := cwma + array.get(cosine_weights, i) * close
cwma
Cosine-Weighted ATR Calculation
The ATR is an essential measure of volatility, reflecting the average range of price movement over a specified period. The Cosine-Weighted ATR uses a similar weighting scheme to that of the CWMA, allowing for a more nuanced understanding of volatility. By emphasizing more recent price movements while retaining sensitivity to broader trends, this ATR variant offers traders enhanced insight into potential price fluctuations.
// Function to calculate the Cosine-Weighted ATR with shifted weights
f_Cosine_Weighted_ATR(simple int length) =>
var float cosine_weights_atr = array.new_float(0)
array.clear(cosine_weights_atr)
for i = 0 to length - 1
weight = math.cos((math.pi * (i + 1)) / length) + 1 // Shift by adding 1
array.push(cosine_weights_atr, weight)
// Normalize the weights
sum_weights_atr = array.sum(cosine_weights_atr)
for i = 0 to length - 1
norm_weight_atr = array.get(cosine_weights_atr, i) / sum_weights_atr
array.set(cosine_weights_atr, i, norm_weight_atr)
// Calculate Cosine-Weighted ATR using true ranges
cwatr = 0.0
tr = ta.tr(true) // True Range
if bar_index >= length
for i = 0 to length - 1
cwatr := cwatr + array.get(cosine_weights_atr, i) * tr
cwatr
Signal Generation
The indicator generates long and short signals based on the relationship between the price (user input) and the calculated upper and lower bands, derived from the CWMA and the Cosine-Weighted ATR. Crossover conditions are used to identify potential entry points, providing a systematic approach to trading decisions.
// - - - - - CALCULATIONS - - - - - //{
bar b = bar.new()
float src = b.calc_src(cwma_src)
float cwma = f_Cosine_Weighted_MA(src, ma_length)
// Use normal ATR or Cosine-Weighted ATR based on input
float atr = atr_type == "Normal ATR" ? ta.atr(atr_len) : f_Cosine_Weighted_ATR(atr_len)
// Calculate upper and lower bands using ATR
float cwma_up = cwma + (atr * atr_mult)
float cwma_dn = cwma - (atr * atr_mult)
float src_l = b.calc_src(src_long)
float src_s = b.calc_src(src_short)
// Signal logic for crossovers and crossunders
var int signal = 0
if ta.crossover(src_l, cwma_up)
signal := 1
if ta.crossunder(src_s, cwma_dn)
signal := -1
//}
Backtest Mode and Equity Calculation
To evaluate its effectiveness, the indicator includes a backtest mode, allowing users to test its performance on historical data:
Backtest Equity: A detailed equity curve is calculated based on the generated signals over a user-defined period (startDate to endDate).
Buy and Hold Comparison: Alongside the strategy’s equity, a Buy-and-Hold equity curve is plotted for performance comparison.
Visualization and Alerts
The indicator features customizable plots, allowing users to visualize the CWMA, ATR bands, and signals effectively. The colors change dynamically based on market conditions, with clear distinctions between long and short signals.
Alerts can be configured to notify users of crossover events, providing timely information for potential trading opportunities.
Indicators and strategies
Cumulative Buying and Selling Volume with 3 Lookback PeriodsScript Overview:
This script is designed to help traders identify market momentum by analyzing buying and selling volume. It calculates the cumulative buying and selling pressure over three different lookback periods, providing insights into whether the bulls or bears are dominating at any given time. The script does this by computing the cumulative buying and selling volume for each period and comparing them through exponential moving averages (EMA) to smooth out short-term fluctuations.
Purpose and Use:
The primary goal of this script is to highlight shifts in market sentiment based on volume dynamics. Volume is a critical component in market analysis, often signaling the strength behind price movements. By focusing on cumulative buying and selling pressure, the script gives traders an idea of whether the market is trending towards more buying or selling during specific periods. Traders can use this tool to:
Identify potential entry points when buying pressure is strong.
Recognize potential selling opportunities when selling pressure is increasing.
Detect periods of indecision when neither buying nor selling dominates.
Key Concepts:
1. Buying Volume (BV):
The buying volume is calculated based on the price range of each candle. It represents the volume allocated to the bullish side of the market:
When the close is near the high, the buying volume is higher.
Formula: BV = volume * (close - low) / (high - low).
2. Selling Volume (SV):
Similarly, selling volume is derived based on the position of the close relative to the low:
When the close is near the low, selling volume is higher.
Formula: SV = volume * (high - close) / (high - low)
3. Lookback Periods:
The script allows users to define three different lookback periods (5, 10, and 20 by default). These periods smooth out the cumulative buying and selling volumes using EMA calculations:
Shorter periods capture more immediate changes in volume dynamics.
Longer periods provide a broader perspective on market trends.
4. Cumulative Volume Calculation:
For each lookback period, cumulative buying and selling volumes are tracked separately and then smoothed with EMA:
emaBuyVol and emaSellVol are the smoothed values for buying and selling volumes over the lookback periods.
5. Market Pressure Comparison:
Buying Pressure: If the EMA of buying volume is greater than the EMA of selling volume for a particular lookback period, the script considers that buying pressure dominates for that period.
Selling Pressure: Conversely, if selling volume dominates over buying volume for a period, the script registers selling pressure.
6. Overall Market Pressure:
The script aggregates the buying and selling pressures from the three lookback periods to determine the overall market sentiment:
If the majority of periods show buying pressure, the market is bullish.
If the majority show selling pressure, the market is bearish.
If neither side dominates, it suggests a neutral or indecisive market.
Visual Cues:
The script provides visual feedback to help traders quickly interpret the market pressure:
Background Color:
Green (#2bff00) when buying pressure dominates.
Red (#ff0000) when selling pressure dominates.
Gray (#404040) when there is no clear dominance.
Bar Color: The script also colors the price bars based on the dominant market pressure:
Green for buying pressure.
Red for selling pressure.
Gray for neutral or balanced market pressure.
Reset Mechanism:
At the start of each new candle, the cumulative volumes for all three periods are reset to zero. This ensures that the cumulative volumes are only measured for the current candle, preventing carryover from previous periods that could distort the analysis.
How Traders Can Use This Script:
Trend Confirmation: Traders can use the script as a trend confirmation tool. When the background turns green (buying dominance), it suggests bullish momentum. When red, bearish momentum is likely. This information can be used to confirm existing positions or signal new trades in the direction of the market pressure.
Reversal Detection: A sudden shift in the background color (from green to red or vice versa) can indicate a potential reversal. This can be particularly useful when combined with other technical indicators such as price action or support/resistance levels.
Multiple Timeframes: Since the script supports three different lookback periods, it provides a comprehensive view of market pressure across short-term, medium-term, and long-term perspectives. Traders can tailor the lookback periods based on their preferred timeframe to match their trading style, whether it’s intraday trading or longer-term swing trading.
Risk Management: The script's clear visual cues help traders manage risk by highlighting when selling pressure increases, allowing them to consider reducing long positions or tightening stop-losses.
Sine-Weighted MA ATR [InvestorUnknown]The Sine-Weighted MA ATR is a technical analysis tool designed to emphasize recent price data using sine-weighted calculations , making it particularly well-suited for analyzing cyclical markets with repetitive patterns . The indicator combines the Sine-Weighted Moving Average (SWMA) and a Sine-Weighted Average True Range (SWATR) to enhance price trend detection and volatility analysis.
Sine-Weighted Moving Average (SWMA):
Unlike traditional moving averages that apply uniform or exponentially decaying weights, the SWMA applies Sine weights to the price data.
Emphasis on central data points: The Sine function assigns more weight to the middle of the lookback period, giving less importance to the beginning and end points. This helps capture the main trend more effectively while reducing noise from recent volatility or older data.
// Function to calculate the Sine-Weighted Moving Average
f_Sine_Weighted_MA(series float src, simple int length) =>
var float sine_weights = array.new_float(0)
array.clear(sine_weights) // Clear the array before recalculating weights
for i = 0 to length - 1
weight = math.sin((math.pi * (i + 1)) / length)
array.push(sine_weights, weight)
// Normalize the weights
sum_weights = array.sum(sine_weights)
for i = 0 to length - 1
norm_weight = array.get(sine_weights, i) / sum_weights
array.set(sine_weights, i, norm_weight)
// Calculate Sine-Weighted Moving Average
swma = 0.0
if bar_index >= length
for i = 0 to length - 1
swma := swma + array.get(sine_weights, i) * close
swma
Sine-Weighted ATR:
This is a variation of the Average True Range (ATR), which measures market volatility. Like the SWMA, the ATR is smoothed using Sine-based weighting, where central values are more heavily considered compared to the extremities. This improves sensitivity to changes in volatility while maintaining stability in highly volatile markets.
// Function to calculate the Sine-Weighted ATR
f_Sine_Weighted_ATR(simple int length) =>
var float sine_weights_atr = array.new_float(0)
array.clear(sine_weights_atr)
for i = 0 to length - 1
weight = math.sin((math.pi * (i + 1)) / length)
array.push(sine_weights_atr, weight)
// Normalize the weights
sum_weights_atr = array.sum(sine_weights_atr)
for i = 0 to length - 1
norm_weight_atr = array.get(sine_weights_atr, i) / sum_weights_atr
array.set(sine_weights_atr, i, norm_weight_atr)
// Calculate Sine-Weighted ATR using true ranges
swatr = 0.0
tr = ta.tr(true) // True Range
if bar_index >= length
for i = 0 to length - 1
swatr := swatr + array.get(sine_weights_atr, i) * tr
swatr
ATR Bands:
Upper and lower bands are created by adding/subtracting the Sine-Weighted ATR from the SWMA. These bands help identify overbought or oversold conditions, and when the price crosses these levels, it may generate long or short trade signals.
// - - - - - CALCULATIONS - - - - - //{
bar b = bar.new()
float src = b.calc_src(swma_src)
float swma = f_Sine_Weighted_MA(src, ma_length)
// Use normal ATR or Sine-Weighted ATR based on input
float atr = atr_type == "Normal ATR" ? ta.atr(atr_len) : f_Sine_Weighted_ATR(atr_len)
// Calculate upper and lower bands using ATR
float swma_up = swma + (atr * atr_mult)
float swma_dn = swma - (atr * atr_mult)
float src_l = b.calc_src(src_long)
float src_s = b.calc_src(src_short)
// Signal logic for crossovers and crossunders
var int signal = 0
if ta.crossover(src_l, swma_up)
signal := 1
if ta.crossunder(src_s, swma_dn)
signal := -1
//}
Signal Logic:
Long/Short Signals are triggered when the price crosses above or below the Sine-Weighted ATR bands
Backtest Mode and Equity Calculation
To evaluate its effectiveness, the indicator includes a backtest mode, allowing users to test its performance on historical data:
Backtest Equity: A detailed equity curve is calculated based on the generated signals over a user-defined period (startDate to endDate).
Buy and Hold Comparison: Alongside the strategy’s equity, a Buy-and-Hold equity curve is plotted for performance comparison.
Alerts
The indicator includes built-in alerts for both long and short signals, ensuring users are promptly notified when market conditions meet the criteria for an entry or exit.
Futures Beta Overview with Different BenchmarksBeta Trading and Its Implementation with Futures
Understanding Beta
Beta is a measure of a security's volatility in relation to the overall market. It represents the sensitivity of the asset's returns to movements in the market, typically benchmarked against an index like the S&P 500. A beta of 1 indicates that the asset moves in line with the market, while a beta greater than 1 suggests higher volatility and potential risk, and a beta less than 1 indicates lower volatility.
The Beta Trading Strategy
Beta trading involves creating positions that exploit the discrepancies between the theoretical (or expected) beta of an asset and its actual market performance. The strategy often includes:
Long Positions on High Beta Assets: Investors might take long positions in assets with high beta when they expect market conditions to improve, as these assets have the potential to generate higher returns.
Short Positions on Low Beta Assets: Conversely, shorting low beta assets can be a strategy when the market is expected to decline, as these assets tend to perform better in down markets compared to high beta assets.
Betting Against (Bad) Beta
The paper "Betting Against Beta" by Frazzini and Pedersen (2014) provides insights into a trading strategy that involves betting against high beta stocks in favor of low beta stocks. The authors argue that high beta stocks do not provide the expected return premium over time, and that low beta stocks can yield higher risk-adjusted returns.
Key Points from the Paper:
Risk Premium: The authors assert that investors irrationally demand a higher risk premium for holding high beta stocks, leading to an overpricing of these assets. Conversely, low beta stocks are often undervalued.
Empirical Evidence: The paper presents empirical evidence showing that portfolios of low beta stocks outperform portfolios of high beta stocks over long periods. The performance difference is attributed to the irrational behavior of investors who overvalue riskier assets.
Market Conditions: The paper suggests that the underperformance of high beta stocks is particularly pronounced during market downturns, making low beta stocks a more attractive investment during volatile periods.
Implementation of the Strategy with Futures
Futures contracts can be used to implement the betting against beta strategy due to their ability to provide leveraged exposure to various asset classes. Here’s how the strategy can be executed using futures:
Identify High and Low Beta Futures: The first step involves identifying futures contracts that have high beta characteristics (more sensitive to market movements) and those with low beta characteristics (less sensitive). For example, commodity futures like crude oil or agricultural products might exhibit high beta due to their price volatility, while Treasury bond futures might show lower beta.
Construct a Portfolio: Investors can construct a portfolio that goes long on low beta futures and short on high beta futures. This can involve trading contracts on stock indices for high beta stocks and bonds for low beta exposures.
Leverage and Risk Management: Futures allow for leverage, which means that a small movement in the underlying asset can lead to significant gains or losses. Proper risk management is essential, using stop-loss orders and position sizing to mitigate the inherent risks associated with leveraged trading.
Adjusting Positions: The positions may need to be adjusted based on market conditions and the ongoing performance of the futures contracts. Continuous monitoring and rebalancing of the portfolio are essential to maintain the desired risk profile.
Performance Evaluation: Finally, investors should regularly evaluate the performance of the portfolio to ensure it aligns with the expected outcomes of the betting against beta strategy. Metrics like the Sharpe ratio can be used to assess the risk-adjusted returns of the portfolio.
Conclusion
Beta trading, particularly the strategy of betting against high beta assets, presents a compelling approach to capitalizing on market inefficiencies. The research by Frazzini and Pedersen emphasizes the benefits of focusing on low beta assets, which can yield more favorable risk-adjusted returns over time. When implemented using futures, this strategy can provide a flexible and efficient means to execute trades while managing risks effectively.
References
Frazzini, A., & Pedersen, L. H. (2014). Betting against beta. Journal of Financial Economics, 111(1), 1-25.
Fama, E. F., & French, K. R. (1992). The cross-section of expected stock returns. Journal of Finance, 47(2), 427-465.
Black, F. (1972). Capital Market Equilibrium with Restricted Borrowing. Journal of Business, 45(3), 444-454.
Ang, A., & Chen, J. (2010). Asymmetric volatility: Evidence from the stock and bond markets. Journal of Financial Economics, 99(1), 60-80.
By utilizing the insights from academic literature and implementing a disciplined trading strategy, investors can effectively navigate the complexities of beta trading in the futures market.
Fear Greed Zones by Relative Strength IndexThis is a visual modification of the relative Strength Index (RSI) to express extreme areas as fear and greed Zones.
// Input
rsiLength = input.int(14, "RSI Length", minval=1)
// RSI calculation
rsi = ta.rsi(close, rsiLength)
FEAR GREED ZONES
The "Fear Greed Zones Script" indicator is designed to help traders identify psychological levels of fear and greed in the market by utilising relative strength index. It primarily utilises the Relative Strength Index of price to gauge market sentiment, with the following key features:
Color-Codes
Dark Red: Indicates a greed zone , suggesting extreme overbought conditions (high risk) and a possible price reversal downward.
Dark Green: Represents a fear zone, indicating extreme oversold conditions (low risk) and potential for price reversal upward.
Yellow: Serves as a neutral zone with medium risk.
Usage
Market Sentiment Analysis: Traders can use the fear and greed zones to assess overall market sentiment, aligning their strategies with prevailing emotional biases. This helps in identifying potential entry and exit points based on market psychology.
Risk Management: Understanding fear or greed influences market behavior and allows traders to manage their risk more effectively with the knowledge of high or low risk areas; as they can anticipate potential reversals or continuations in price trends.
Conclusion
The "Fear Greed Zones" Script is a valuable tool for traders looking to leverage market psychology. By clearly identifying areas where fear or greed may be influencing price movements, it aids in making more informed trading decisions.
Money Wave Script (Visual Adaptive MFI)This Script is a visual modification of the Money Flow Index (MFI)
//@version=5
indicator(title="Money Flow Index", shorttitle="MFI", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
length = input.int(title="Length", defval=14, minval=1, maxval=2000)
src = hlc3
mf = ta.mfi(src, length)
plot(mf, "MF", color=#7E57C2)
overbought=hline(80, title="Overbought", color=#787B86)
hline(50, "Middle Band", color=color.new(#787B86, 50))
oversold=hline(20, title="Oversold", color=#787B86)
fill(overbought, oversold, color=color.rgb(126, 87, 194, 90), title="Background")
This Money Wave Script is culled from. the Money Flow Index with visual representation to help traders identify money flow. In addition, the waves can be smoothened. Here’s a detailed overview based on its functionality, color coding, usage, risk management, and a concluding summary.
Functionality
The Money Wave Script operates as an oscillator that measures the inflow and outflow of money into an asset over a specified period. It calculates the MFI by considering both price and volume, which allows it to assess buying and selling pressures more accurately than traditional indicators that rely solely on price data.
Color Coding
The indicator employs a color-coded scheme to enhance visual interpretation:
Green Area: Indicates bullish conditions when the normalized Money wave is above zero, suggesting buying pressure.
Red Area: Indicates bearish conditions when the normalized Money wave is below zero, suggesting selling pressure.
Background Colors: The background changes to green when the MoneyWave exceeds the upper threshold (overbought) and red when it falls below the lower threshold (oversold), providing immediate visual cues about market conditions.
Usage
Traders utilize the Money Wave indicator in various ways:
Identifying Overbought and Oversold Levels: By observing the MFI readings, traders can determine when an asset may be overbought or oversold, prompting potential entry or exit points.
Spotting Divergences: Traders look for divergences between price and the MFI to anticipate potential reversals. For example, if prices are making new highs but the MFI is not, it could indicate weakening momentum.
Trend Confirmation: The indicator can help confirm trends by showing whether buying or selling pressure is dominating.
Customizable Settings: Users can adjust parameters such as the MFI length , Smoothen index and overbought/oversold thresholds to tailor the indicator to their trading strategies.
Conclusion
The Money Wave indicator is a powerful tool for traders seeking to analyze market conditions based on the flow of money into and out of assets. Its combination of price and volume analysis, along with clear visual cues, makes it an effective choice for identifying overbought and oversold conditions, spotting divergences, and confirming trends.
Judas Swing ICT 01 [TradingFinder] New York Midnight Opening M15🔵 Introduction
The Judas Swing (ICT Judas Swing) is a trading strategy developed by Michael Huddleston, also known as Inner Circle Trader (ICT). This strategy allows traders to identify fake market moves designed by smart money to deceive retail traders.
By concentrating on market structure, price action patterns, and liquidity flows, traders can align their trades with institutional movements and avoid common pitfalls. It is particularly useful in FOREX and stock markets, helping traders identify optimal entry and exit points while minimizing risks from false breakouts.
In today's volatile markets, understanding how smart money manipulates price action across sessions such as Asia, London, and New York is essential for success. The ICT Judas Swing strategy helps traders avoid common pitfalls by focusing on key movements during the opening time and range of each session, identifying breakouts and false breakouts.
By utilizing various time frames and improving risk management, this strategy enables traders to make more informed decisions and take advantage of significant market movements.
In the Judas Swing strategy, for a bullish setup, the price first touches the high of the 15-minute range of New York midnight and then the low. After that, the price returns upward, breaks the high, and if there’s a candlestick confirmation during the pullback, a buy signal is generated.
bearish setup, the price first touches the low of the range, then the high. With the price returning downward and breaking the low, if there’s a candlestick confirmation during the pullback to the low, a sell signal is generated.
🔵 How to Use
To effectively implement the Judas Swing strategy (ICT Judas Swing) in trading, traders must first identify the price range of the 15-minute window following New York midnight. This range, consisting of highs and lows, sets the stage for the upcoming movements in the London and New York sessions.
🟣 Bullish Setup
For a bullish setup, the price first moves to touch the high of the range, then the low, before returning upward to break the high. Following this, a pullback occurs, and if a valid candlestick confirmation (such as a reversal pattern) is observed, a buy signal is generated. This confirmation could indicate the presence of smart money supporting the bullish movement.
🟣 Bearish Setup
For a bearish setup, the process is the reverse. The price first touches the low of the range, then the high. Afterward, the price moves downward again and breaks the low. A pullback follows to the broken low, and if a bearish candlestick confirmation is seen, a sell signal is generated. This confirmation signals the continuation of the downward price movement.
Using the Judas Swing strategy enables traders to avoid fake breakouts and focus on strong market confirmations. The strategy is versatile, applying to FOREX, stocks, and other financial instruments, offering optimal trading opportunities through market structure analysis and time frame synchronization.
To execute this strategy successfully, traders must combine it with effective risk management techniques such as setting appropriate stop losses and employing optimal risk-to-reward ratios. While the Judas Swing is a powerful tool for predicting price movements, traders should remember that no strategy is entirely risk-free. Proper capital management remains a critical element of long-term success.
By mastering the ICT Judas Swing strategy, traders can better identify entry and exit points and avoid common traps from fake market movements, ultimately improving their trading performance.
🔵 Setting
Opening Range : High and Low identification time range.
Extend : The time span of the dashed line.
Permit : Signal emission time range.
🔵 Conclusion
The Judas Swing strategy (ICT Judas Swing) is a powerful tool in technical analysis that helps traders identify fake moves and align their trades with institutional actions, reducing risk and enhancing their ability to capitalize on market opportunities.
By leveraging key levels such as range highs and lows, fake breakouts, and candlestick confirmations, traders can enter trades with more precision. This strategy is applicable in forex, stocks, and other financial markets and, with proper risk management, can lead to consistent trading success.
Risk Reward CalculatorPlanning your trading is an important step that you must do before buying the stock.
Risk and Reward Calculator is an important tool for the trader.
With this calculator, you only need to put the capital for one trade and it will automaticaly put the plan for you. But if you want to enter your plan for buy and sell, you just need to check the button and enter the number. the risk and reward calculator will suggest position size based on the information.
The Steps to use Risk Reward Calculator
1. enter how many percentage you can accept if your analysis is wrong.
2. enter how much money you want to trade
3. it will automaticaly calculate the plan for you
4. you can change the reward
5. but if you want to enter your own number, you can check the box. After that enter the number you want for your new plan.
TEMA For Loop [Mattes]The TEMA For Loop indicator is a powerful tool designed for technical analysis, combining the Triple Exponential Moving Average (TEMA) with a custom scoring mechanism based on a for loop. It evaluates price trends over a specified period, allowing traders to identify potential entry and exit points in the market. This indicator enhances decision-making by providing visual cues through dynamic candle coloring, reflecting market sentiment and trends effectively.
Technical Details:
Triple Exponential Moving Average (TEMA):
- TEMA is known for its responsiveness to price changes, as it reduces lag compared to traditional moving averages. The TEMA calculation employs three nested Exponential Moving Averages (EMAs) to produce a smoother trend line, which helps traders identify the direction and momentum of the market.
Scoring Mechanism:
- The scoring mechanism is based on a custom for loop that compares the current TEMA value to previous values over a specified range. The loop counts how many previous values are less than the current value, generating a score that reflects the strength of the trend:
- A higher score indicates a stronger upward trend.
- A lower (negative) score suggests a downward trend.
Threshold Levels:
- Upper Threshold: A score above this level signals a potential long entry, indicating strong bullish momentum.
- Lower Threshold: A score below this level indicates a potential short entry, suggesting bearish sentiment.
>>>These thresholds are adjustable, allowing traders to fine-tune their strategy according to their risk tolerance and market conditions.
Signal Logic:
- The indicator provides clear signals for entering long or short positions based on the score crossing the defined thresholds.
>>Long Entry Signal: When the smoothed score crosses above the upper threshold.
>>Short Entry Signal: When the smoothed score crosses below the lower threshold.
Why This Indicator Is Useful:
>>> Enhanced Decision-Making: The TEMA For Loop indicator offers traders a clear and objective view of market trends, reducing the emotional aspect of trading. By visualizing bullish and bearish conditions, it assists traders in making timely decisions.
>>> Customizable Parameters: The ability to adjust TEMA period, thresholds, and other settings allows traders to tailor the indicator to their specific trading strategies and market conditions.
Visual Clarity: The integration of dynamic candle coloring provides immediate visual cues about the prevailing trend, making it easier for traders to spot potential trade opportunities at a glance.
The TEMA For Loop - Smoothed with Candle Colors indicator is a sophisticated trading tool that utilizes TEMA and a custom scoring mechanism to identify and visualize market trends effectively. By employing dynamic candle coloring, traders gain immediate insights into market sentiment, enabling informed decision-making for entry and exit strategies. This indicator is designed for traders seeking a systematic approach to trend analysis, enhancing their trading performance through clear, actionable signals.
Risk Manage Position SizerThis is a risk management tool for traders. It calculates position sizes based on account balance and risk tolerance, and provides automated stop-loss suggestions. The script displays key information in a small table on the chart and plots important price levels.
How to use it:
Input Parameters:
Account Size: Enter your total trading account balance.
Risk Percentage: Set the percentage of your account you're willing to risk per trade.
Use Custom Stop Loss: Toggle this to use a manually entered stop loss price.
Custom Stop Loss Price: If enabled, enter your desired stop loss price.
Reading the Table:
The table displays:
Current Price
Stop Loss Price
Total Position Size (number of shares/contracts to trade)
1/3 Position Size (for scaling in/out)
Auto Stop 1, 2, and 3 (suggested stop loss levels)
Chart Indicators:
Red Line: Your stop loss level
Green Line: Auto Stop 1 (33% of range from entry to stop)
Yellow Line: Auto Stop 2 (67% of range)
Red Line: Auto Stop 3 (final stop, same as initial stop loss)
Trading Application:
Use the Total Position Size to determine how many shares/contracts to trade.
Consider using the 1/3 Position Size for scaling in or out of trades.
Use the Auto Stops to manage your risk as the trade progresses.
Customization:
Adjust the input parameters to fit your trading style and risk tolerance.
The script can be modified to add more features or change the calculation methods if needed.
This tool helps traders make more informed decisions about position sizing and stop placement, potentially improving risk management in their trading strategy. Remember, while this script provides suggestions, all trading decisions should be made based on your own analysis and risk tolerance.
Trend Strength After Reversal
This indicator measures trend strength after the reversal.
It can catch early reversal based on engulfing candlestick pattern or just the regular reversal.
Every reversal have to be confirmed by a close above reversal pattern.
Trend strength is measured by counting subsequent closing confirming the reversal
Breakout & Distribution DetectorHow the Script Works:
1. Bollinger Bands:
• The upper and lower Bollinger Bands are used to detect volatility and potential breakouts. When the price closes above the upper band, it’s considered a bullish breakout. When the price closes below the lower band, it’s a bearish breakout.
2. RSI (Relative Strength Index):
• The RSI is used for momentum confirmation. A bullish breakout is confirmed if the RSI is above 50, and a bearish breakout is confirmed if the RSI is below 50.
• If the RSI enters overbought (above 70) or oversold (below 30) levels, it signals a distribution phase, indicating the market may be ready to reverse or consolidate.
3. Moving Average:
• A simple moving average (SMA) of 20 periods is used to ensure we’re trading in the direction of the trend. Breakouts above the upper Bollinger Band are valid if the price is above the SMA, while breakouts below the lower Bollinger Band are valid if the price is below the SMA.
4. Signals and Alerts:
• BUY Signal: A green “BUY” label appears below the candle if a bullish breakout is detected.
• SELL Signal: A red “SELL” label appears above the candle if a bearish breakout is detected.
• Distribution Phase: The background turns purple if the market enters a distribution phase (RSI in overbought or oversold territory).
• Alerts: You can set alerts based on these conditions to get notifications for breakouts or when the market enters a distribution phase.
AmirAli 20 Pairs/USDT&BTCThis TradingView indicator, titled "20 Pairs/USDT&BTC," is designed to analyze and display the Exponential Moving Averages (EMAs) of various cryptocurrency pairs against USDT and BTC. Here's a detailed breakdown of its features, functionality, and usage:
Key Features:
Pairs Display: The indicator allows users to select which cryptocurrency pairs they wish to display on the chart. The available options include popular cryptocurrencies such as Ethereum (ETH), Binance Coin (BNB), Solana (SOL), Dogecoin (DOGE), Ripple (XRP), Litecoin (LTC), Polkadot (DOT), Avalanche (AVAX), Uniswap (UNI), Chainlink (LINK), Cardano (ADA), Cosmos (ATOM), Filecoin (FIL), Stellar (XLM), VeChain (VET), Enjin (ENJ), Celo (CELO), Hedera (HBAR), and Sandbox (SAND).
Dynamic Price Retrieval: For each selected pair, the indicator retrieves the closing prices for both USDT and BTC from Binance. This is done using the request.security function, which fetches real-time data.
EMA Calculation: The indicator calculates and plots the EMA for each cryptocurrency pair over a user-defined length, allowing traders to identify trends and potential buy/sell signals based on price movements relative to their EMAs.
User Customization: Users can customize several parameters, including the time frame for data retrieval, EMA length, and the visibility of each pair.
Market Hours Visualization: The indicator highlights the trading hours with a gray background, helping users identify when the market is active.
How to Use the Indicator:
Adding the Indicator: To use the indicator, add it to your TradingView chart by searching for "20 Pairs/USDT&BTC" in the public library or by pasting the provided Pine Script code into a new indicator script.
Select Pairs: Enable or disable specific cryptocurrency pairs in the input options at the top of the script. For example, if you want to analyze ETH and ADA, ensure that the respective boxes are checked.
Adjust Time Frame: Set the time frame for the indicator. You can choose any time frame or leave it blank to use the current chart's time frame.
Set EMA Length: Choose the length for the EMA calculation based on your trading strategy. A shorter EMA (e.g., 5) reacts more quickly to price changes, while a longer EMA (e.g., 20) smooths out price fluctuations.
Observe Trends: Monitor the plotted EMAs for the selected pairs. Crossovers of the price with the EMA can indicate potential buy or sell signals. For instance, if the price crosses above the EMA, it may signal a bullish trend, whereas a crossover below could indicate a bearish trend.
Consider Market Hours: Pay attention to the gray background during U.S. trading hours, as this may indicate higher volatility and trading opportunities.
Conclusion
The "20 Pairs/USDT&BTC" indicator is a powerful tool for cryptocurrency traders looking to analyze multiple pairs simultaneously. By providing a visual representation of EMAs, it aids in identifying trends and potential trading opportunities in a user-friendly manner. Make sure to adapt the settings according to your trading strategy and market conditions for optimal results.
Amir Hasankhah & Ali Beyki
Dynamic Darvas BoxBu Darvas Box göstergesi, finansal piyasadaki potansiyel fiyat kırılımlarını hacimle birlikte analiz eden dinamik bir sistem sunar. Geliştirdiğiniz bu Pine Script, belirli bir "bakış aralığı" parametresi kullanarak geçmiş fiyat hareketlerinden yüksek ve düşük noktalar oluşturur ve bu seviyelerin kırılımını takip eder. Hacimli veya hacimsiz kırılımlar da ayrıca işaretlenir. Aşağıda hem Türkçe hem de İngilizce açıklamalar yer almakta:
Türkçe Açıklama:
Darvas Kutusu ve Hacim Kırılımı
Bu gösterge, fiyatların Darvas Kutusu mantığıyla analiz edilmesini sağlar ve kutunun kırılım seviyelerini hacimle birlikte değerlendirir.
Bakış Aralığı (bakis_araligi): Bu parametre, fiyatın geçmişte kaç bar geri giderek yeni bir yüksek veya düşük seviyenin tespit edilmesi gerektiğini belirler.
Hacim SMA (hacim_sma): Hacim için kullanılan basit hareketli ortalamanın (SMA) uzunluğunu belirler. Gösterge, hacim ortalamasının üzerinde veya altında olup olmadığını bu SMA değerine göre değerlendirir.
Kapanış Fiyatı ile Tamamlama (kapanis_kullan): Eğer bu seçenek aktifse, kutu kapanış fiyatı baz alınarak tamamlanır. Aksi takdirde, yüksek ve düşük seviyelerle tamamlanır.
Kırılım Fiyatını Göster (kirilim_goster): Hacim yetersiz olsa bile kırılım seviyesini etiketlemek için kullanılır.
Bu göstergede, yüksek bir fiyatın oluşması durumunda bir kutu başlatılır. Kutu, bakış aralığı boyunca yüksek ve düşük seviyeler ile onaylanır. Sonrasında, fiyatın kutu seviyesini kırıp kırmadığı izlenir. Eğer fiyat kutunun üzerine çıkarsa veya altına düşerse, hacim durumu kontrol edilerek bir "Hacimli Kırılım" veya "Hacimsiz Kırılım" etiketi gösterilir.
Kutu Arka Plan Renkleri: Kutu içerisindeki fiyat hareketinin durumu, renklerle gösterilir:
Yukarı Kırılım: Kutunun üst seviyesinin kırılması durumunda yeşil renk.
Aşağı Kırılım: Kutunun alt seviyesinin kırılması durumunda kırmızı renk.
Nötr: Kutu içinde tarafsız durum için sarı renk.
Ayrıca, kutunun orta hattı (orta_hat), yüksek ve düşük seviyelerin ortalamasını temsil eder ve fiyatın bu çizgiyi kaç kez kestiğini analiz etmek için kullanılabilir.
English Description:
Darvas Box and Volume Breakout
This indicator implements a dynamic Darvas Box strategy that tracks potential price breakouts in combination with volume analysis.
Lookback Period (bakis_araligi): This parameter defines how many bars back the price needs to look for determining a new high or low.
Volume SMA (hacim_sma): Specifies the length of the Simple Moving Average (SMA) for volume. The indicator uses this value to determine if volume is above or below average.
Completion with Closing Price (kapanis_kullan): If this option is enabled, the box is completed based on the closing price. Otherwise, the high and low prices are used for completion.
Show Breakout Price (kirilim_goster): This option is used to label the breakout price, even if the volume is below the average.
The indicator starts a box when a new high price is detected. The box is confirmed over the lookback period using high and low levels. The breakout levels are then monitored. If the price breaks above the upper or lower box boundary, it checks the volume condition and labels the breakout as either "Volume Breakout" or "Non-Volume Breakout."
Box Background Colors: The price movement within the box is represented with colors:
Upward Breakout: The background is green if the upper box boundary is broken.
Downward Breakout: The background is red if the lower boundary is broken.
Neutral: The background is yellow for neutral price movement within the box.
Additionally, the middle line (orta_hat) represents the average of the high and low levels and can be used to analyze how many times the price crosses this midline.
HTF LQ SweepThe following script recognises QL sweeps in the desired time frame with alarm function!
Theory:
There is liquidity above highs and below lows. If this is tapped and the market reacts strongly immediately, the probability of a reversal is greatly increased! In the chart, this is defined in such a way that a candle has its wicks BELOW the old low, but the close is ABOVE the old low. the same applies to the high, of course!
In such a case we have an "LQ Sweep"
How does the script work?
Williams 3 fractals are used as a basis. These are meaningful as lows or highs. Whenever a fractal is created, the price level is saved.
This means that not only the last fractal is relevant, but all historical fractals as long as they have not been reached!
If a candle reaches the level, but shows a rejection and closes within the level again, we have our "LQ Sweep" setup.
In the script you can select the timeframe in which the market has to be analysed. When the QL sweep occurs, an alert is triggered. This saves a lot of time because you can analyse different markets in different timeframes at the same time!
Each QL Sweep is marked in the chart when we are in the selected timeframe. These can also be deactivated so that only the last sweep is displayed.
Benefits for the trader:
An LQ sweep is a nice confirmation for a reversal.
If we have such an LQ sweep, we can wait in the lower timeframe for further confirmation, such as a structural break, to position our entries there.
The alarm function saves us a lot of time and we only go to the chart when a potential setup has been created.
You can set different time frames in the script: The selected time frame is then scanned and sends a signal when the event occurs.
Engulfing Reversal Market PhaseStay at the right side of the market.
This indicator detects bullish and bearish phase in the market based on recent reversal.
It is designed to help filter your trades.
Open only long trades if indicator shows green and open only short trades when indicator shows red.
This indicator will detect bullish and bearish engulfing reversal pattern on the chart.
Bullish engulfing occurs when current candle closes below the bars that created the high.
Bearish engulfing occurs when current candle closes below the bars that created the high.
The reversal pattern occurs not only on a trend change, but can be also be present as a trend continuation pattern or a breakout pattern.
The indicator is able to detect 3 candle patterns and multi candle patterns if detects inside bars in the pattern.
Decision Point Support and ResistanceIntroduction:
The Decision Point Support and Resistance Indicator plots unique time and price based support and resistance lines. Depending on the current time frame (1 minute, 1 hour, 1 day etc.), this indicator references preset higher time frames which I will refer to as parent time frames henceforth.
On each time frame, based on price action within its corresponding parent time frame, support and resistance lines are plotted on the chart at the start of the next parent time frame and extended for 360 candlesticks into the future.
This allows a manageable number of support and resistance lines to be live on the chart at any given time so that it does not become visually overwhelming. It also provides a time window in which each support and resistance line is active to be considered for use in analysis.
Description:
With all of the basic information about what this indicator does, lets delve deeper into the logic behind the lines.
This picture is a screenshot of the 1 minute chart of the S&P 500 emini futures. The default parent time frame for the 1 minute chart on all asset classes is 1 hour. This means that as long as the price action criteria that I will describe in a moment is met, then there will be a support and resistance line plotted at the beginning of each hour while on the 1 minute chart.
The rest of the parent time frame defaults for each current time frames is as follows:
Current Time Frame ------------- Default Parent Time Frame
5 Second --------------------------- 5 Minutes
15 Second ------------------------- 15 Minutes
30 Second ------------------------- 30 Minutes
1 Minute --------------------------- 1 Hour
5 Minute --------------------------- 4 Hours
15 Minute -------------------------- 12 Hours
30 Minute -------------------------- 1 Day
1 Hour ------------------------------ 3 Days
4 Hour ------------------------------ 2 Weeks
1 Day ------------------------------- 3 Months
1 Week ----------------------------- 12 Months
1 Month ---------------------------- 12 Months
Lets continue using the 1 Minute Chart as an example.
The price that each of the support and resistance lines are plotted at (with certain proprietary selection criteria withheld) is determined as follows:
- For Bullish Parent Time Frame Closes (e.g. while on 1 Minute Chart, 1 Hour closes Bullish), the script picks a price point within the parent time frame that is identified by my proprietary selection criteria as being the price point in which the market first "decided" to be bullish for the duration of the parent time frame. At the start of the next parent time frame, a line is plotted at the identified price point and extended for 360 candles into the future. If no price point meets the criteria, no line is plotted.
- For Bearish Parent Time Frame Closes (e.g. while on 1 Minute Chart, 1 Hour closes Bearish), the script picks a price point within the parent time frame that is identified by my proprietary selection criteria as being the price point in which the market first "decided" to be bearish for the duration of the parent time frame. At the start of the next parent time frame, a line is plotted at the identified price point and extended for 360 candles into the future. If no price point meets the criteria, no line is plotted.
This is the reason that this indicator is called the Decision Point Support and Resistance Indicator. It marks the point in which each parent time frame "decided" to be bullish or bearish and plots that point out into the future.
As the market has historically revisited these levels, they have served as highly effective support and resistance levels.
Features:
1. Adjust how far right the support and resistance lines extend
2. Change the color of support and resistance lines
- The lines that are generated from bullish or bearish parent time frames can be individually changed to different colors. This does not mean one should act as support and the other should act as resistance. I have yet to find a meaningful pattern between the bullish and bearish lines so I tend to keep them the same color, but feel free to try!
3. Change line style
4. Manually change default parent time frame to parent time frame of your choosing
- Toggle on "Use Manual Timeframe" to pick a new parent timeframe. This will increase or decrease the frequency of the lines. I felt that the defaults struck a good balance of useful information without becoming overwhelming. That said, please feel free to make that decision yourself by choosing the parent time frame that best suits you!
5. Change Lookback Period
- The default Lookback Period is 3000 candles. You can increase or decrease this for back testing or analysis purposes.
- At the start of a new parent timeframe, the indicator can get stuck while trying to load in new lines. When this happens it is helpful to change the lookback period by 1 (e.g. from 3000 to 3001) to prompt the indicator to load in the most recent support and resistance lines.
How to effectively use the Decision Point Support and Resistance Indicator:
This indicator can be used as stand alone support and resistance for analyzing entry and exit points. Its useful for narrowing down higher time frame zones such as order blocks, fair value gaps, or supply and demand zones from wide price ranges to single price points.
- The lines on the 5 second, 15 second, 30 second, and 1 minute charts are useful for scalping and day trading. Lines that appear on higher time frames are often effective exit points.
- The lines on the 5 minute, 15 minute, 30 minute, and 1 hour charts are useful for intermediate term trading or swing trading. Lines that appear on higher time frames are often effective exit points.
- The lines on the 4 hour, 1 Day, and 1 Week charts are useful for long term trading and investing or dollar cost averaging.
Limitations:
As this indicator plots price points from previous price ranges, it is most effective at catching retracements for continuation trades on your current time frame. It works best for internal range conditions and is less effective in external range conditions such as all time highs and lows.
In these external range conditions it can be helpful to change to a higher time frame for further analysis.
The Decision Point Support and Resistance Indicator is meant to be used to augment your current trading strategy. It is best used as confirmation of your analysis and to help narrow down entry and exit targets within your current strategy.
Conclusion:
The Decision Point Support and Resistance Indicator is the culmination of the close to 10 years of my trading career. I have spent years studying price action and thousands of hours creating, iterating, and refining the concepts underpinning this indicator. Every aspect of this indicator is based on my own entirely original concepts that I created to aid in my own trading. It is an honor to be able to share fruits of my labor with the trading community at large.
Disclaimer:
This indicator is intended for educational and demonstration purposes only and should not be construed as financial or investment advice. Past performance is not indicative of future results. Trading involves risk, and you should seek the advice of a qualified financial professional before making any trading decisions. We do not guarantee the accuracy, completeness, or reliability of this indicator, and we are not liable for any losses or damages incurred as a result of its use.
Market structure[TradeHub]Short Term Low(STL): A swing low, which is surrounded by candles with lows higher from the low of the central candle.
Short Term High(STH): A swing high that is surrounded by candlesticks with highs lower than the centre candlestick.
Intermediate Term Low (ITL): A level on a price chart where the price dips to a relatively lower point compared to the surrounding prices within an intermediate timeframe.
Intermediate Term High (ITH): A level on a price chart where the price peaks to a relatively higher point compared to nearby prices over an intermediate period.
Long Term Low (LTL): An Intermediate Term Low (ITL) that is flanked by higher Intermediate Term Lows (ITLs) on both sides, suggesting a potential major trend reversal and marking a possible long-term shift.
Long Term High (LTH): An Intermediate Term High (ITH) that is bordered by lower Intermediate Term Highs (ITHs) on either side, signaling a possible major reversal and indicating a long-term trend change.
This script is programmed to automatically detect these formations on a price chart. It identifies ITH/ITL and LTH/LTL points to help traders and analysts easily understand the market structure and spot potential turning points. These patterns are commonly used to make decisions regarding trade entries and exits.
It's important to keep in mind that although these concepts are based on recurring patterns in historical price movements, trading and investing in financial markets carry significant risks. Having a thorough knowledge of technical analysis, risk management, and market behavior is crucial before making trading choices.
Advantages:
- Ability to select any number of neighbouring candles to determine STH / STL
- Showing STH/STL on the whole chart history
- Large ITH/ITL/LTH/LTL chart history
Parent Session Sweeps + Alert Killzone Ranges with Parent Session Sweep
Key Features:
1. Multiple Session Support: The script tracks three major trading sessions - Asia, London, and New York. Users can customize the timing of these sessions.
2. Killzone Visualization: The strategy visually represents each session's range, either as filled boxes or lines, allowing traders to easily identify key price levels.
3. Parent Session Logic: The core of the strategy revolves around identifying a "parent" session - a session that encompasses the range of the following session. This parent session becomes the basis for potential trade setups.
4. Sweep and Reclaim Setups: The strategy looks for price movements that sweep (break above or below) the parent session's high or low, followed by a reclaim of that level. This price action often indicates a potential reversal.
5. Risk-Reward Filtering: Each potential setup is evaluated based on a user-defined minimum risk-reward ratio, ensuring that only high-quality trade opportunities are considered.
6. Candle Close Filter: An optional filter that checks the characteristics of the candle that reclaims the parent session level, adding an extra layer of confirmation to the setup.
7. Performance Tracking: The strategy keeps track of bullish and bearish setup success rates, providing valuable feedback on its performance over time.
8. Visual Aids: The script draws lines to mark the parent session's high and low, making it easy for traders to identify key levels.
How It Works:
1. The script continuously monitors price action across the defined sessions.
2. When a session fully contains the range of the next session, it's identified as a potential parent session.
3. The strategy then waits for price to sweep either the high or low of this parent session.
4. If a sweep occurs, it looks for a reclaim of the swept level within the parameters set by the user.
5. If a valid setup is identified, the script generates an alert and places a trade (if backtesting or running live).
6. The strategy continues to monitor the trade for either reaching the target (opposite level of the parent session) or hitting the stop loss.
Considerations for Signals:
- Sweep: A break of the parent session's high or low.
- Reclaim: A close back inside the parent session range after a sweep.
- Candle Characteristics: Optional filter for the reclaim candle (e.g., bullish candle for long setups).
- Risk-Reward: Each setup must meet or exceed the user-defined minimum risk-reward ratio.
- Session Timing: The strategy is sensitive to the defined session times, which should be set according to the trader's preferred time zone.
This strategy aims to capitalize on institutional order flow and liquidity patterns in the forex market, providing traders with a systematic approach to identifying potential reversal points with favorable risk-reward profiles.
Fibonacci Cloud MTF [TrendX_]The Fibonacci Cloud MTF Indicator is an innovative trading tool crafted to assist traders in dynamically identifying key Fibonacci retracement levels. Unlike traditional methods that depend on static pivot points, this indicator effectively plots the Fibonacci golden zone - ranging from 0.382 to 0.618 - using the most recent highs and lows. This dynamic approach provides a more nuanced and responsive analysis of price movements, allowing traders to observe real-time reactions to significant Fibonacci levels. Furthermore, the indicator functions as a trend-following mechanism, signaling potential uptrends when the price crosses above the 0.618 fibonacci retracement level and indicating downtrends when it dips below.
💎 KEY FEATURES
Dynamic Fibonacci Levels: The indicator calculates Fibonacci retracement levels based on the latest highs and lows, providing a more relevant framework for current market conditions.
Golden Zone Focus: It emphasizes the Fibonacci golden zone (0.382 - 0.618), which is widely regarded as a critical area for potential reversals or continuations.
Multi-timeframe Analysis: The ability to view Fibonacci levels across multiple timeframes allows traders to identify trends and potential entry points more effectively.
Trend-Following Signals: Clear trend directions relative to the 0.618 level.
⚙️ USAGES
Identifying Key Retracement Levels: Traders can use the plotted Fibonacci levels to determine potential pullback or throwback at the key Fibonacci areas.
Trend Confirmation: By observing price interactions with the 0.618 level, traders can confirm ongoing trends and make more informed decisions about entering or exiting positions.
Multi-timeframe Strategies: The indicator allows traders to align strategies across different timeframes, improving overall trading effectiveness.
🔎 BREAKDOWN
Dynamic Fibonacci Levels: By calculating Fibonacci retracement levels from the latest highs and lows, traders receive a more accurate representation of current market sentiment. This dynamic approach ensures that the levels adapt to changing market conditions, making them more relevant for decision-making.
Golden Zone Focus: This highlights the Fibonacci golden zone, particularly the range between 0.382 and 0.618. This zone is widely regarded as a pivotal area for potential price reversals or continuations, serving as key support and resistance levels. Prices often react strongly at these points, making them crucial for pinpointing potential entry and exit opportunities in your trading strategy.
Multi-timeframe Analysis: Incorporating multi-timeframe analysis allows traders to observe how Fibonacci levels behave across different timeframes. This feature helps traders identify broader trends while also pinpointing short-term opportunities.
Trend-Following Strategies: Uptrend trigger - When the price crosses above the 0.618 level, it triggers uptrend, conversely, when the price crosses below the 0.618 level, it triggers a downtrend.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur. Therefore, one should always exercise caution and judgment when making decisions based on past performance.
Price Action UltimateThe Price Action Ultimate indicator is an innovative tool designed to provide traders with a comprehensive view of price action based on either volume or touches. By default, the indicator displays touches, offering a unique perspective on price levels that have been frequently interacted with by the market.
At its core, the indicator divides the price range of a specified lookback period into a number of rows (default 25). For each row, it calculates either the volume traded or the number of times the price touched that level. This data is then visualized in two ways: as a histogram and as horizontal lines on the chart.
The histogram, displayed on the right side of the chart, represents the distribution of touches (or volume) across different price levels. Each bar in the histogram shows the number of touches and the percentage of total touches for that price level. The color of the bars ranges from a user-defined low activity color to a high activity color, providing a quick visual reference for the most active price levels.
The horizontal lines drawn across the chart represent the most significant levels based on touches (or volume). By default, the indicator displays the top 3 levels, but this can be adjusted. The thickness of these lines corresponds to the relative importance of each level - thicker lines indicate more touches or higher volume. This feature allows traders to quickly identify key support and resistance levels based on historical price action.
One of the most innovative aspects of this indicator is the option to fade older levels over time. When enabled, this feature gradually increases the transparency of lines as they age, with newer levels appearing more prominently. This helps traders focus on the most recent and relevant price action while still maintaining awareness of older, potentially significant levels.
The indicator offers flexibility in its display options. Users can choose to show levels based on volume, touches, or both. This allows traders to compare and contrast different perspectives on price action. Additionally, the indicator includes options to display a volume profile and a background fill for the analysis range, further enhancing its visual appeal and informational content.
What makes this indicator particularly valuable is its ability to provide a clear, uncluttered view of key price levels without relying on complex calculations or multiple indicators. It distills price action down to its essence - where price has spent the most time or where the most trading activity has occurred. This can be incredibly useful for identifying potential support and resistance levels, areas of consolidation, or possible breakout points.
For traders focused on price action strategies, this indicator offers a powerful tool to enhance their analysis. It provides a data-driven approach to identifying significant price levels, which can be used to inform entry and exit decisions, set stop losses, or anticipate potential market reactions.
This indicator is a tool to aid in market analysis and should not be used as the sole basis for trading decisions. Always combine multiple forms of analysis and practice proper risk management when trading. Past performance does not guarantee future results.
Motive Wave Scanner [Trendoscope®]Motive Wave Scanner is a simple algorithm to find out motive waves as per the rules of Elliott Wave theory.
It is an extension to our previous open source script Interactive Motive Wave Checklist which provides interactive capability to select six points of a five wave formation. Once users select them, the rules of motive waves are applied to manually selected points to highlight them as either diagonal wave, motive wave or none.
This indicator does the same. But, instead of requesting the pivots manually from the user, the indicator automatically picks and scans them through zigzag.
We have already published a similar script as protected source. But, due to some changes in the pine engine, there have been few issues in the runtime. In this publication, we not only address those runtime issues but also making it open source for the users to make use of the source code and enhance it further.
🎲 What are motive waves
Motive waves are strong upward or downward movement with 5 subwaves.
Motive Wave in the upward direction will start with Swing High, Ends with Swing High and consists of 3 Higher Highs and 2 Higher Lows representing strong upward trend.
Motive Wave in the downward direction will start with Swing Low, Ends with Swing low and consists of 3 Lower Lows and 2 Lower Highs representing strong downward trend.
🎲 Types of Motive Waves
Motive Waves are broadly classified by two types:
Impulse Waves
Diagonal Waves
Diagonal Waves are further classified into Contracting and Expanding Diagonals. These can fall into the category of either leading diagonal and ending diagonal.
🎲 Rules of Motive Waves
🎯 Generic Rule of any motive waves are as follows
Should consist of 5 alternating waves. (Swing High followed by Swing low and vice versa)
This can start from Swing High and end in Swing High or start from Swing Low and end in Swing Low of a zigzag.
Wave-2 should not move beyond Wave-1. This means, the Wave-2 is always shorter than Wave-1 with respect to distance between the price of start and end.
Wave-3 always moves beyond Wave-1. This means, the Wave-3 is always longer than Wave-2 in terms of price
Among Wave-1, Wave-3, and Wave-5, Wave-3 is never the shortest one. This means, either Wave-1 or Wave-5 can be longer than Wave-3 but not both. Wave-3 can also be longest among the three.
Here is the pictorial representation of the rules of the Motive Waves
For a wave to be considered as motive wave, it also needs to follow the rules of either impulse or diagonal waves.
🎯 Rules for a 5 wave pattern to be considered as Impulse Wave are:
Wave-4 never overlaps with Wave-1 price range
Wave-1, Wave-3 and Wave-5 should not be either expanding or contracting. Meaning, we cannot have Wave-1 > Wave-3 > Wave-5 , and we cannot have Wave-1 < Wave-3 < Wave-5
Pictorial representation of the impulse wave rules are as below:
🎯 Rules for the Diagonal Waves are as follows
Contrary to the first rule of impulse wave, in case of diagonal wave, Wave-4 always overlaps with Wave-1 price range. But, it will not go beyond Wave-3
Waves are progressively expanding or contracting - Wave1 > Wave3 > Wave5 and Wave2 > Wave4 to be contracting diagonal. Wave1 < Wave3 < Wave5 and Wave2 < Wave4 to be expanding diagonal wave.
Pictorial representation of the Contracting Diagonal Wave is as below. Here, the Wave-1, Wave-3 and Wave-5 are in contracting formation.
Pictorial representation of the Expanding Diagonal Wave is as below. Here, the Wave-1, Wave-3 and Wave-5 are in expanding formation.
🎲 Indicator Settings
Indicator settings are defined as below:
Repaint Warning : If Repaint is selected, the indicator will throw a runtime error after certain bars or when alerts are set. This is due to some pine internal issue. At present, we do not have any solution for this until the internal issue is resolved by Tradingview Pine Team.
Trade Entry Detector, Wick to Body Ratio Trade Entry Detector: Wick-to-Body Ratio Strategy with Bollinger Bands
Overview
The Trade Entry Detector is a custom strategy for TradingView that leverages the Bollinger Bands and a unique wick-to-body ratio approach to capture precise entry opportunities. This indicator is designed for traders who want to pinpoint high-probability reversal points when price interacts with Bollinger Bands, all while offering flexible entry fill options.
The strategy performs primary analysis on the daily time frame, regardless of your current chart setting, allowing you to view daily Bollinger Band levels and entry signals even on lower time frames. This approach is suitable for swing traders and short-term traders looking to align intraday moves with higher time frame signals.
How the Strategy Works
1. Bollinger Band Analysis on the Daily Time Frame
Bollinger Bands are calculated using a 20-period simple moving average (SMA) and a standard deviation multiplier (default is 2). These bands dynamically expand and contract based on market volatility, making them ideal for identifying overbought and oversold conditions:
* Upper Band: Indicates potential overbought levels.
* Lower Band: Indicates potential oversold levels.
2. Wick-to-Body Ratio Condition
This strategy places significant emphasis on candle wicks relative to the candle body. Here’s why:
* A large upper wick relative to the body signals potential selling pressure after testing the upper Bollinger Band.
* A large lower wick relative to the body indicates buying support after testing the lower Bollinger Band.
* Ratio Threshold: You can set a minimum wick-to-body ratio (default is 1.0), meaning that the wick must be at least equal in size to the body. This ensures only candles with significant reversals are considered for entry.
3. Flexible Entry Timing
To adapt to various trading styles, the indicator allows you to choose the entry fill timing:
* Daily Close: Enter at the close of the daily candle.
* Daily Open: Enter at the open of the following daily candle.
* HOD (High of Day): Set entry at the daily high, for those who want confirmation of upward momentum.
* LOD (Low of Day): Set entry at the daily low, ideal for confirming downward movement.
4. Position Sizing and Risk Management
The strategy calculates position size based on a fixed risk percentage of your account balance (default is 1%). This approach dynamically adjusts position sizes based on stop-loss distance:
* Stop Loss: Placed at the nearest swing high (for shorts) or swing low (for longs).
* Take Profit: Exits are triggered when the price reaches the opposite Bollinger Band.
5. Order Expiration
Each pending order (long or short) expires after two days if unfilled, allowing for new setups on subsequent candles if conditions are met again.
Using the Trade Entry Detector
Step-by-Step Guide
1. Set the Primary Time Frame
The core calculations run on the daily time frame, but the strategy can be applied to intraday charts (e.g., 65-minute or 15-minute) for deeper insights.
2. Adjust Bollinger Band Settings
* Length: Default is 20, which determines the period for calculating the moving average.
* Standard Deviation Multiplier: Default is 2.0, which sets the width of the bands. Adjusting this can help you capture broader or tighter volatility ranges.
3. Define the Wick-to-Body Ratio
Set the minimum ratio between wick and body (default 1.0). Higher values filter out candles with less wick-to-body contrast, focusing on stronger rejection moves.
4. Choose Entry Fill Timing
Select your preferred fill condition:
* Daily Close: Confirms the trade at the end of the daily session.
* Daily Open: Executes the entry at the open of the next day.
* HOD/LOD: Uses the daily high or low as an additional confirmation for upward or downward moves.
5. Position Sizing and Risk Management
* Set your account balance and risk percentage. The strategy automatically calculates position sizes based on the stop distance to manage risk efficiently.
* Stop Loss and Take Profit points are automatically set based on swing highs/lows and opposing Bollinger Bands, respectively.
Practical Example
Let’s say SPY (S&P 500 ETF) tests the lower Bollinger Band on the daily time frame, with a lower wick that is twice the size of the body (meeting the 1.0 ratio threshold). Here’s how the strategy might proceed:
1. Signal: The lower wick on SPY suggests buying interest at the lower Bollinger Band.
2. Entry Fill Timing: If you’ve selected "Daily Open," the entry order will be placed at the next day's open price.
3. Stop Loss: Positioned at the nearest daily swing low to minimize risk.
4. Take Profit: If SPY price moves up and reaches the upper Bollinger Band, the position is automatically closed.
Indicator Features and Benefits
* Multi-Time Frame Compatibility: Perform daily analysis while tracking signals on any intraday chart.
* Automatic Position Sizing: Tailor risk per trade based on account balance and desired risk percentage.
* Flexible Entry Options: Choose from close, open, HOD, or LOD for optimal timing.
* Effective Trend Reversal Identification: Uses wick-to-body ratio and Bollinger Band interaction to pinpoint potential reversals.
* Dynamic Visualization: Bollinger Bands are displayed on your chosen time frame, allowing seamless intraday tracking.
Summary
The Trade Entry Detector provides a unique, data-driven way to spot reversal points with customizable entry options. By combining Bollinger Bands with wick-to-body ratio conditions, it identifies potential trade setups where price has tested extremes and shown reversal signals. With its flexible entry timing, risk management features, and multi-time frame compatibility, this indicator is ideal for traders looking to blend daily market context with shorter-term execution.
Tips for Usage:
* For swing trading, consider the Daily Open or Close entry options.
* For momentum entries, HOD or LOD may offer better alignment with the direction of the wick.
* Backtest on different assets to find optimal Bollinger Band and wick-to-body settings for your market.
Use this indicator to enhance your understanding of price behavior at key levels and improve the precision of your entry points. Happy trading!