CE_ZLSMA_5MIN_CANDLECHART-- Overview
The "CE_ZLSMA_5MIN_CANDLECHART" strategy, developed by DailyPanda, is a comprehensive trading strategy designed for analyzing trading on 5-minute candlestick charts.
It aims to use some indicators calculated from a Hekin Ashi chart, while running it on a normal candlestick chart, making sure that no price distortion affects the strategy results .
It also brings a feature to show, on the candlestick chart, where the entries would take place on the HA chart, to also be able to study the effect that the price distortion would make on your backtest.
-- Credit
The code in this script is based on open-source indicators originally written by veryfid and everget, I've made significant changes and additions to the scripts but all credit for the idea goes to them, I just built on top of it:
-- Key Features
It incorporate already built indicators (ZLSMA) and CandelierExit (CE)
-- Zero Lag Least Squares Moving Average (ZLSMA) - by veryfid
The ZLSMA is used to detect trends with minimal lag, improving the accuracy of entry and exit signals.
It incorporates a double-smoothed linear regression to minimize lag and enhance trend-following capabilities.
Buy signals are generated when the price closes above the ZLSMA together with the CE signal.
It is calculated based on the HA candlestick pattern.
-- Chandelier Exit (CE) - by everget
The Chandelier Exit indicator is used to dynamically manage stop-loss levels based on the Average True Range (ATR).
It ensures that stop-loss levels are adaptive to market volatility, protecting profits and limiting losses.
The ATR period and multiplier can be customized to fit different trading styles and risk tolerances.
It is calculated based on the HA candlestick pattern.
-- Heikin Ashi Candles
The strategy leverages Heikin Ashi candlesticks to be able identify trends more clearly and leverage this to stay on winning trades longer.
Traders can choose to display Heikin Ashi candlesticks and order fills on the chart for better visualization.
-- Risk Management
The strategy includes multiple risk management options to protect traders' capital.
Maximum intraday loss limit based on a percentage of equity.
Maximum stop-loss in points to filter out entries with excessive risk.
Daily profit target to stop trading once the goal is achieved.
Options to use fixed contract sizes or dynamically adjust based on a percentage of equity.
These features help traders manage risk and ensure sustainable trading practices.
Moving Averages
Several moving averages (EMA 9, EMA 20, EMA 50, EMA 72, EMA 200, SMA 200, and SMA 500) are plotted to provide additional context and trend confirmation.
A "Zone of Value" is highlighted between the EMA 200 and SMA 200 to identify potential support and resistance areas.
-- Customizable Inputs
The strategy includes various customizable inputs, allowing traders to tailor it to their specific needs.
Start and stop trading times.
Risk management parameters (e.g., maximum stop-loss, daily drawdown limit, and daily profit target).
Display options for Heikin Ashi candles and moving averages.
ZLSMA length and offset.
-- Usage
-- Setting Up the Strategy
Configure the start year for the strategy and the trading hours using the input fields. The first candle of each day will be filled black for easy identification, while candles that are outside the allowed time range will be filled purple.
Customize the risk management parameters to match your risk tolerance and trading style.
Enable or disable the display of Heikin Ashi candlesticks and moving averages as desired.
-- Interpreting Signals
Buy signals are indicated by a "Buy" label when the Heikin Ashi close price is above the ZLSMA and the Chandelier Exit indicates a long position.
The strategy will automatically enter a long position with a stop-loss level determined the swing low.
Positions are closed when the close price falls below the ZLSMA.
-- Risk Management
The strategy monitors the maximum intraday loss and stops trading if the loss limit is reached.
If enabled, also stops trading once the daily profit target is achieved, helping to lock in gains.
You have the option to filter operations based on a maximum accepted stop-loss level, based on your risk tolerance.
You can also operate with a fixed amount of contracts or dynamically adjust it based on your allowed risk per trade, ensuring optimal protection of capital.
-- Visual Aids
The strategy plots various moving averages to provide additional trend context.
The "Zone of Value" between the EMA 200 and SMA 200 highlights potential support and resistance areas.
Heikin Ashi candlesticks and order fills can be displayed to enhance the difference this strategy would take if you were to backtest it on a Heikin Ashi chart.
-- Table of results
This strategy also breaks down the results on a monthly basis for better understanding of your capital development along the way.
-- Conclusion
The "CE_ZLSMA_5MIN_CANDLECHART" strategy is a tool for intraday traders looking to understand and leaverage the Heikin Ashi chart while still using the normal candle chart. Traders can customize the strategy to fit their specific needs, making it a versatile addition to any trading toolkit.
Cari skrip untuk "stop loss"
Chande Kroll Trend Strategy (SPX, 1H) | PINEINDICATORSThe "Chande Kroll Stop Strategy" is designed to optimize trading on the SPX using a 1-hour timeframe. This strategy effectively combines the Chande Kroll Stop indicator with a Simple Moving Average (SMA) to create a robust method for identifying long entry and exit points. This detailed description will explain the components, rationale, and usage to ensure compliance with TradingView's guidelines and help traders understand the strategy's utility and application.
Objective
The primary goal of this strategy is to identify potential long trading opportunities in the SPX by leveraging volatility-adjusted stop levels and trend-following principles. It aims to capture upward price movements while managing risk through dynamically calculated stops.
Chande Kroll Stop Parameters:
Calculation Mode: Offers "Linear" and "Exponential" options for position size calculation. The default mode is "Exponential."
Risk Multiplier: An adjustable multiplier for risk management and position sizing, defaulting to 5.
ATR Period: Defines the period for calculating the Average True Range (ATR), with a default of 10.
ATR Multiplier: A multiplier applied to the ATR to set stop levels, defaulting to 3.
Stop Length: Period used to determine the highest high and lowest low for stop calculation, defaulting to 21.
SMA Length: Period for the Simple Moving Average, defaulting to 21.
Calculation Details:
ATR Calculation: ATR is calculated over the specified period to measure market volatility.
Chande Kroll Stop Calculation:
High Stop: The highest high over the stop length minus the ATR multiplied by the ATR multiplier.
Low Stop: The lowest low over the stop length plus the ATR multiplied by the ATR multiplier.
SMA Calculation: The 21-period SMA of the closing price is used as a trend filter.
Entry and Exit Conditions:
Long Entry: A long position is initiated when the closing price crosses over the low stop and is above the 21-period SMA. This condition ensures that the market is trending upward and that the entry is made in the direction of the prevailing trend.
Exit Long: The long position is exited when the closing price falls below the high stop, indicating potential downward movement and protecting against significant drawdowns.
Position Sizing:
The quantity of shares to trade is calculated based on the selected calculation mode (linear or exponential) and the risk multiplier. This ensures position size is adjusted dynamically based on current market conditions and user-defined risk tolerance.
Exponential Mode: Quantity is calculated using the formula: riskMultiplier / lowestClose * 1000 * strategy.equity / strategy.initial_capital.
Linear Mode: Quantity is calculated using the formula: riskMultiplier / lowestClose * 1000.
Execution:
When the long entry condition is met, the strategy triggers a buy signal, and a long position is entered with the calculated quantity. An alert is generated to notify the trader.
When the exit condition is met, the strategy closes the position and triggers a sell signal, accompanied by an alert.
Plotting:
Buy Signals: Indicated with an upward triangle below the bar.
Sell Signals: Indicated with a downward triangle above the bar.
Application
This strategy is particularly effective for trading the SPX on a 1-hour timeframe, capitalizing on price movements by adjusting stop levels dynamically based on market volatility and trend direction.
Default Setup
Initial Capital: $1,000
Risk Multiplier: 5
ATR Period: 10
ATR Multiplier: 3
Stop Length: 21
SMA Length: 21
Commission: 0.01
Slippage: 3 Ticks
Backtesting Results
Backtesting indicates that the "Chande Kroll Stop Strategy" performs optimally on the SPX when applied to the 1-hour timeframe. The strategy's dynamic adjustment of stop levels helps manage risk effectively while capturing significant upward price movements. Backtesting was conducted with a realistic initial capital of $1,000, and commissions and slippage were included to ensure the results are not misleading.
Risk Management
The strategy incorporates risk management through dynamically calculated stop levels based on the ATR and a user-defined risk multiplier. This approach ensures that position sizes are adjusted according to market volatility, helping to mitigate potential losses. Trades are sized to risk a sustainable amount of equity, adhering to the guideline of risking no more than 5-10% per trade.
Usage Notes
Customization: Users can adjust the ATR period, ATR multiplier, stop length, and SMA length to better suit their trading style and risk tolerance.
Alerts: The strategy includes alerts for buy and sell signals to keep traders informed of potential entry and exit points.
Pyramiding: Although possible, the strategy yields the best results without pyramiding.
Justification of Components
The Chande Kroll Stop indicator and the 21-period SMA are combined to provide a robust framework for identifying long trading opportunities in trending markets. Here is why they work well together:
Chande Kroll Stop Indicator: This indicator provides dynamic stop levels that adapt to market volatility, allowing traders to set logical stop-loss levels that account for current price movements. It is particularly useful in volatile markets where fixed stops can be easily hit by random price fluctuations. By using the ATR, the stop levels adjust based on recent market activity, ensuring they remain relevant in varying market conditions.
21-Period SMA: The 21-period SMA acts as a trend filter to ensure trades are taken in the direction of the prevailing market trend. By requiring the closing price to be above the SMA for long entries, the strategy aligns itself with the broader market trend, reducing the risk of entering trades against the overall market direction. This helps to avoid false signals and ensures that the trades are in line with the dominant market movement.
Combining these two components creates a balanced approach that captures trending price movements while protecting against significant drawdowns through adaptive stop levels. The Chande Kroll Stop ensures that the stops are placed at levels that reflect current volatility, while the SMA filter ensures that trades are only taken when the market is trending in the desired direction.
Concepts Underlying Calculations
ATR (Average True Range): Used to measure market volatility, which informs the stop levels.
SMA (Simple Moving Average): Used to filter trades, ensuring positions are taken in the direction of the trend.
Chande Kroll Stop: Combines high and low price levels with ATR to create dynamic stop levels that adapt to market conditions.
Risk Disclaimer
Trading involves substantial risk, and most day traders incur losses. The "Chande Kroll Stop Strategy" is provided for informational and educational purposes only. Past performance is not indicative of future results. Users are advised to adjust and personalize this trading strategy to better match their individual trading preferences and risk tolerance.
Multi Timeframe Moving Average Convergence Divergence {DCAquant}Overview
The MTF MACD indicator provides a unique view of MACD (Moving Average Convergence Divergence) and Signal Line dynamics across various timeframes. It calculates the MACD and Signal Line for each selected timeframe and aggregates them for analysis.
Key Features
MACD Calculation
Utilizes standard MACD calculations based on user-defined parameters like fast length, slow length, and signal smoothing.
Determines the difference between the MACD and Signal Line to identify convergence or divergence.
Multiple Timeframe Analysis
Allows users to select up to six different timeframes for analysis, ranging from minutes to days, providing a holistic view of market trends.
Calculates MACD and Signal Line for each timeframe independently.
Aggregated Analysis
Combines MACD and Signal Line values from multiple timeframes to derive a consolidated view.
Optionally applies moving average smoothing to aggregated MACD and Signal Line values for better clarity.
Position Identification
Determines the trading position (Long, Short, or Neutral) based on the relationship between MACD and Signal Line.
Considers the proximity of MACD and Signal Line to identify potential trading opportunities.
Visual Representation
Plots MACD and Signal Line on the price chart for visual analysis.
Utilizes color-coded backgrounds to indicate trading conditions (Long, Short, or Neutral) for quick interpretation.
Dynamic Table Display
Displays trading position alongside graphical indicators (rocket for Long, snowflake for Short, and star for Neutral) in a customizable table.
Offers flexibility in table placement and size for user preference.
How to Use
Parameter Configuration
Adjust parameters like fast length, slow length, and signal smoothing to fine-tune MACD calculations.
Select desired timeframes for analysis based on trading preferences and market conditions.
Interpretation
Monitor the relationship between MACD and Signal Line on the price chart.
Pay attention to color-coded backgrounds and graphical indicators in the table for actionable insights.
Decision Making
Consider entering Long positions when MACD is above the Signal Line and vice versa for Short positions.
Exercise caution during Neutral conditions, as there may be uncertainty in market direction.
Risk Management
Combine MTF MACD analysis with risk management strategies to optimize trade entries and exits.
Set stop-loss and take-profit levels based on individual risk tolerance and market conditions.
Conclusion
The Multi Timeframe Moving Average Convergence Divergence (MTF MACD) indicator offers a robust framework for traders to analyze market trends across multiple timeframes efficiently. By combining MACD insights from various time horizons and presenting them in a clear and actionable format, it empowers traders to make informed decisions and enhance their trading strategies.
Disclaimer
The Multi Timeframe Moving Average Convergence Divergence (MTF MACD) indicator provided here is intended for educational and informational purposes only. Trading in financial markets involves risk, and past performance is not indicative of future results. The use of this indicator does not guarantee profits or prevent losses.
Please be aware that trading decisions should be made based on your own analysis, risk tolerance, and financial situation. It is essential to conduct thorough research and seek advice from qualified financial professionals before engaging in any trading activity.
The MTF MACD indicator is a tool designed to assist traders in analyzing market trends and identifying potential trading opportunities. However, it is not a substitute for sound judgment and prudent risk management.
By using this indicator, you acknowledge that you are solely responsible for your trading decisions, and you agree to indemnify and hold harmless the developer and distributor of this indicator from any losses, damages, or liabilities arising from its use.
Trading in financial markets carries inherent risks, and you should only trade with capital that you can afford to lose. Exercise caution and discretion when implementing trading strategies, and consider seeking independent financial advice if necessary.
RSI Multi Strategies With Overlay SignalsHello everyone,
In this indicator, you will find 6 different entry and exit signals based on the RSI :
Entry into overbought and oversold zones
Exit from overbought and oversold zones
Crossing the 50 level
RSI cross RSI MA below or above the 50 level
RSI cross RSI MA in the overbought or oversold zones
RSI Divergence
With the signals identified, you can create your own strategy . (If you have any suggestions, please mention them in the comments).
Beyond these signals, you can set SL (Stop Loss) and TP (Take Profit) levels to better manage your positions.
SL Methods:
Percentage: The stop loss is determined by the percentage you specify.
ATR : The stop level is determined based on the Average True Range (ATR).
TP Methods:
Percentage: The take profit is determined by the percentage you specify.
RR ( Risk Reward ): The take profit level is determined based on the distance from the stop level.
You can mix and match these options as you like.
What makes the indicator unique and effective is its ability to display the RSI in the bottom chart and the signals, SL (Stop Loss), and TP (Take Profit) levels in the overlay chart simultaneously. This feature allows you to manage your trading quickly and easily without the need for using two separate indicators.
Let's try out a few strategies together.
My entry signal: RSI Entered OS (Oversold) Zone
My exit signal: RSI Entered OB (Overbought) Zone
I'm not using a stoploss for this strategy ("Fortune favors the brave").
Let's keep ourselves safe by adding a stop loss.
I'm adding an ATR-based stop loss.
I think it's better now.
If you have any questions or suggestions about the indicator, you can contact me.
Cheers
ProTrend Adaptive Indicator by TradingClueThe " ProTrend Adaptive " is an innovative trading indicator, aimed at offering traders an advanced method for detecting market trends with higher precision. This tool ingeniously integrates the principles of the Supertrend indicator with adaptive linear regression channels , enhancing its sensitivity to current market dynamics.
โฏ Core Features โฏ
โ
Trend Detection
At its heart, the ProTrend Adaptive utilizes a dual-approach for identifying trends. The first layer is derived from the Supertrend indicator, known for its effectiveness in highlighting ongoing trends using price average and volatility. This is visually represented by distinct red and green areas above or below the price candles, indicating bearish or bullish trends, respectively.
โ
Adaptive Linear Regression Channels
The second layer employs adaptive linear regression channels, which dynamically adjust their length based on the Average True Range (ATR), a measure of market volatility. This adaptability ensures the indicator remains attuned to changing market conditions, offering more relevant trend lines and signals.
โ
Signal Sensitivity
By leveraging the ATR not just in the Supertrend calculation but also to dynamically adjust the linear regression channels, the ProTrend Adaptive offers heightened sensitivity to market changes, ensuring traders receive timely and accurate signals.
โ
Entry Signals & Trend Strength
Entry points for potential trades are marked by triangles. Additionally, the indicator includes a feature that displays the strength of a trend through transparent bars below the candles, calculated using the Average Directional Index (ADX), providing users with valuable insight into the vigor of the trend.
โฏ Importance of Adaptive Approach โฏ
The adaptive nature of the ProTrend Adaptive's linear regression channels is crucial for its performance. Traditional linear regression channels are fixed in their period, which can render them less effective during periods of significant volatility shifts. By making the length of these channels responsive to the ATR, the ProTrend Adaptive ensures that the trend lines and signals it generates are always aligned with the current market context, offering traders a dynamic tool that adjusts in real-time to volatility changes.
โฏ Supertrend Indicator Explained โฏ
The Supertrend Indicator is a popular tool among traders for its simplicity and effectiveness in identifying market trends. It calculates the average price momentum and volatility to determine whether the market is in a bullish or bearish phase. Its visual simplicity, showing clear bullish and bearish zones, makes it an invaluable component of the ProTrend Adaptive, providing a solid foundation for trend detection upon which the adaptive linear regression channels build.
โฏ Example โฏ
This example illustrates several robust entry signals. These signals can seamlessly integrate into an overarching trading strategy, with exit points determined through a separate calculation. This approach allows traders to tailor their entry and exit strategies to their specific trading objectives, leveraging the ProTrend Adaptive for precise market entry while applying customized criteria for exit decisions.
Caution: Trading carries a significant risk of financial loss, and past performance does not guarantee future results. Signals may be conflicting or ambiguous. Employ risk reduction techniques, such as setting stop losses, to mitigate potential losses.
Day Open Line + SMA 8/3 Crossover + BollingerHow Users Can Make Profit Using This Script:
DAYS OPEN LINE:
1.Purpose: Publishing a "Days Open Line" indicator serves to inform customers about the operational schedule of a business or service.
2.Visibility: It ensures that the information regarding the days of operation is easily accessible to current and potential customers.
3.Transparency: By making the operational schedule public, businesses demonstrate transparency and reliability to their customers.
4.Accessibility: The indicator should be published on various platforms such as the business website, social media channels, and physical locations to ensure accessibility to a wide audience.
5.Clarity: The information should be presented in a clear and concise manner, specifying the days of the week the business is open and the corresponding operating hours.
6.Updates: It's important to regularly update the "Days Open Line" indicator to reflect any changes in the operational schedule, such as holidays or special events.
7.Customer Convenience: Providing this information helps customers plan their visits accordingly, reducing inconvenience and frustration due to unexpected closures.
8.Expectation Management: Setting clear expectations regarding the business hours helps manage customer expectations and reduces the likelihood of disappointment or complaints.
9.Customer Service: Publishing the "Days Open Line" indicator demonstrates a commitment to customer service by ensuring that customers have the information they need to engage with the business.
10.Brand Image: Consistently .maintaining and updating the indicator contributes to a positive brand image, as it reflects professionalism, reliability, and a customer-centric approach.
SMA CROSS:
1.This indicator generates buy and sell signals based on the crossover of two Simple Moving Averages (SMA): a shorter 3-day SMA and a longer 8-day SMA.
When the 3-day SMA crosses above the 8-day SMA, it generates a buy signal indicating a potential upward trend.
Conversely, when the 3-day SMA crosses below the 8-day SMA, it generates a sell signal indicating a potential downward trend.
Signal Interpretation:
2.Buy Signal: Generated when the 3-day SMA crosses above the 8-day SMA.
Sell Signal: Generated when the 3-day SMA crosses below the 8-day SMA.
Usage:
3.Traders can use this indicator to identify potential entry and exit points in the market.
Buy signals suggest a bullish trend, indicating a favorable time to enter or hold a long position.
4.Sell signals suggest a bearish trend, indicating a potential opportunity to exit or take a short position.
Parameters:
5.Periods: 3-day SMA and 8-day SMA.
Price: Closing price is commonly used, but users can choose other price types (open, high, low) for calculation.
Confirmation:
6.It's recommended to use additional technical analysis tools or confirmatory indicators to validate signals and minimize false signals.
Risk Management:
7.Implement proper risk management strategies, such as setting stop-loss orders, to mitigate losses in case of adverse price movements.
Backtesting:
8.Before using the indicator in live trading, conduct thorough backtesting to evaluate its effectiveness under various market conditions.
Considerations:
9.While SMA crossovers can provide valuable insights, they may generate false signals during ranging or choppy markets.
Combine this indicator with other technical analysis techniques for comprehensive market analysis.
Continuous Optimization:
10.Monitor the performance of the indicator and adjust parameters or incorporate additional filters as needed to enhance accuracy over time.
BOLLINGER BAND:
1.Definition: A Bollinger Band indicator is a technical analysis tool that consists of a centerline (typically a moving average) and two bands plotted above and below it. These bands represent volatility around the moving average.
2.Purpose: Publishing a Bollinger Band indicator serves to provide traders and investors with insights into the volatility and potential price movements of a financial instrument.
3.Visualization: The indicator is typically displayed on price charts, allowing users to visualize the relationship between price movements and volatility levels.
4.Interpretation: Traders use Bollinger Bands to identify overbought and oversold conditions, potential trend reversals, and volatility breakouts.
5.Components: The indicator consists of three main components: the upper band, lower band, and centerline (usually a simple moving average). These components are calculated based on standard deviations from the moving average.
6.Parameters: Traders can adjust the parameters of the Bollinger Bands, such as the period length and standard deviation multiplier, to customize the indicator based on their trading strategy and preferences.
7.Signals: Bollinger Bands generate signals when prices move outside the bands, indicating potential trading opportunities. For example, a price breakout above the upper band may signal a bullish trend continuation, while a breakout below the lower band may indicate a bearish trend continuation.
8.Confirmation: Traders often use other technical indicators or price action analysis to confirm signals generated by Bollinger Bands, enhancing the reliability of their trading decisions.
9.Education: Publishing Bollinger Band indicators can serve an educational purpose, helping traders learn about technical analysis concepts and how to apply them in real-world trading scenarios.
10.Risk Management: Traders should exercise proper risk management when using Bollinger Bands, as false signals and market volatility can lead to losses. Publishing educational content alongside the indicator can help users understand the importance of risk management in trading.
VWAP:
1.Calculation: VWAP is calculated by dividing the cumulative sum of price times volume traded for every transaction (price * volume) by the total volume traded.
2.Time Frame: VWAP is typically calculated for a specific time frame, such as a trading day or a session.
3.Intraday Trading: It's commonly used by intraday traders to assess the fair value of a security and to determine if the current price is above or below the average price traded during the day.
4.Execution: Institutional traders often use VWAP as a benchmark for executing large orders, aiming to buy at prices below VWAP and sell at prices above VWAP.
5.Benchmark: It serves as a benchmark for traders to evaluate their trading performance. Trades executed below VWAP are considered good buys, while those above are considered less favorable.
6.Sensitivity: VWAP is more sensitive to price and volume changes during periods of high trading activity and less sensitive during periods of low trading activity.
7.Day's End: VWAP resets at the end of each trading day, providing a new reference point for the following trading session.
8.Volume Weighting: The weighting by volume means that prices with higher trading volumes have a greater impact on VWAP than those with lower volumes.
9.Popular with Algorithmic Traders: Algorithmic trading systems often incorporate VWAP strategies to execute trades efficiently and minimize market impact.
10.Limitations: While VWAP is a useful indicator, it's not foolproof. It may lag behind rapidly changing market conditions and may not be suitable for all trading strategies or market conditions. Additionally, it's more effective in liquid markets where there is significant trading volume.
How the Script Works:
1.Utilizes Day Open Line for accurate market entry points.
2.Identifies bullish trends with SMA 3 crossover SMA 8.
3.Signals potential sell opportunities with SMA 8 crossunder SMA 3.
4.Bollinger Bands indicate overbought and oversold conditions.
5.VWAP offers insights into average price levels weighted by volume.
6.Combination of indicators enhances trade confirmation.
7.Facilitates precise timing for buy and sell decisions.
8.Enables traders to capitalize on market volatility.
9.Empowers users to navigate dynamic market conditions.
10.Supports profitable trading strategies with comprehensive analysis.
11.It is known when the market is sideways.
Smart Money Concepts [UAlgo]๐ถ Description:
Smart Money Concepts (SMC) refer to a trading strategy that revolves around understanding and following the actions of institutional investors, such as banks and hedge funds, who are considered the โsmart moneyโ in the market. The concept is based on the idea that these institutions have more information and resources, and thus their market activities can indicate future market movements.
This script designed to be a tool that will automatically provide many features related to SMC concept for investors, offering a market structure analysis that includes the identification of order blocks, breaker blocks, and liquidity points. It also delineates premium and discount zones, highlights Fair Value Gaps (FVG), Volume Imbalance (VI) and Order Gap (OG) areas, providing users with a multifaceted view of market dynamics.
๐ถ Key Features:
Market Structure Analysis : Simplifies the overview of market behavior, identifies market breakouts or trend continuation.
It detects the market structure as shown in the image below :
Order Blocks : Detects Order Blocks based on market structure analysis and volume characteristics. It draws these blocks and provides information such as volume.
Order Block Identification:
Breaker Blocks : Detects Breaker Blocks based on market structure analysis.
Breaker Block Identification:
When Order Block above is broken,
As you can see, it has now turned into a Bearish Breaker Block,
And it seems that the price is getting a reaction from this breaker block above.
Liquidity Sweeps : Tracks liquidity sweeps on both the buy and sell sides, offering traders a perspective on market momentum and potential shifts.
Multi-Timeframe Fair Value Gap (FVG), Volume Imbalance (VI), Order Gaps (OG) Detection : Detects Fair Value Gap (FVG), Volume Imbalance (VI) and Order Gaps (OG) based on different criteria such as price movements and volume characteristics. It marks these gaps/voids and provides visual cues for analysis.
Examle for FVG:
Premium & Discount Zone Analysis : Analyzes premium and discount zones, showing prices within these zones and highlighting equilibrium (0.5) levels.
Customizable Options : Provides various input parameters for customization, such as market structure length, sensitivity settings, display preferences, and mitigation methods.
Previous Key Levels : Identifies previous key levels include previous highs, lows, equilibrium points, and open prices across different timeframes such as daily, weekly, and monthly.
๐ถ Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Pro Divergence Adaptive [regular + hidden] by TradingClue๐ด Overview ๐ด
ProDivergence Adaptive is a versatile tool designed to identify regular and hidden divergences , including regular divergences from higher timeframes , on any given chart.
This indicator combines two major approaches of identifying divergences:
- Using price-action , identification of higher-highs, higher-lows etc.
- Using a statistical model (linear regression) to determine the direction of movements
To be more sensitive to the current market conditions, both were implemented in an adaptive way.
๐ด How the mechanics and calculations work ๐ด
โ
short recap on what divergences are
Regular divergences occur when the price moves opposite to a selected oscillator, signaling potential trend reversals. They can be spotted on higher timeframes, providing stronger confirmation for potential reversals when aligned with signals on the current timeframe.
Hidden divergences indicate trend continuation. Combining these on various timeframes provides a more comprehensive analysis for traders to identify entry or exit points in the market
โ
Price Action
A regular bullish divergence happens when the price of an asset is forming lower lows, while the oscillator is forming higher lows.
A regular bearish divergence occurs when the price of an asset is forming higher highs, while the oscillator is forming lower highs
A hidden bullish divergence happens when the price of an asset is making higher lows during an uptrend, but the oscillator is making lower lows.
A hidden bearish divergence occurs when the price of an asset is making lower highs during a downtrend, but the oscillator is making higher highs.
"Lows" are signaled by a minimum value that is surrounded by higher low values.
"Highs" are signaled by a maximum value that is surrounded by lower high values.
Since there is no smoothing involved, there is only minimal lag.
โ
Statistical Model
When using linear regression to identify divergences between the price of an asset and an oscillator, we apply a statistical approach to find trends in the data. This method allows for a more nuanced detection of divergences, as it considers the overall direction of price points and oscillator values rather than individual highs and lows.
Regular Bullish Divergence: Occurs when the linear regression of the asset's price shows a downward trend while the linear regression of the oscillator indicates an upward trend.
Regular Bearish Divergence: Happens when the linear regression of the asset's price is upward but the linear regression of the oscillator is downward.
Hidden Bullish Divergence: Identified when, during an uptrend, the linear regression of the price is upward, but the linear regression of the oscillator trends downward.
Hidden Bearish Divergence: Occurs when, during a downtrend, the linear regression of the price trends downward, but the linear regression of the oscillator is upward.
Using linear regression smooths out fluctuations and focuses on the overall trend direction of both price and oscillator, reducing the impact of short-term volatility and providing a clearer view of the market's momentum.
โ
Adaptive Approach
Traditional oscillator settings do not account for changes in market volatility, leading to potential misalignment with current market conditions. This can result in either too many false signals during high volatility periods or missed opportunities in lower volatility settings due to the oscillator's static nature.
The adaptive approach adjusts the oscillator's settings based on the Average True Range (ATR), a measure of market volatility. By dynamically altering the oscillator length in relation to the current ATR value compared to its historical range, the settings become responsive to the market's volatility.
This adaptive method enhances the detection of meaningful divergences between price and oscillator movements by ensuring the oscillator is finely tuned to the current market environment. It results in a more accurate identification of potential reversal points, crucial for the success of divergence-based trading strategies.
๐ด Key Features ๐ด
Identifies regular and hidden divergences
Multi-Timeframe Analysis
Adaptive Oscillator Configuration, level of adaptiveness can be adjusted
Supported Oscillators: CCI, Momentum, RSI
Boundaries for the dynamic length of the oscillator can be applied
Works for all kinds of assets (Forex, Stocks, Crypto, Commodities, Futures, ...)
Works on all timeframes
๐ด Examples ๐ด
โ
Canadian Dollar / Japanese Yen, 4H Chart, FX:CADJPY
Divergences of Price vs CCI. The adaptive/ dynamic length of the CCI can range between 5 and 12.
โ
Bitcoin / U.S. Dollar, 2H Chart BITSTAMP:BTCUSD
Divergences of Price vs Momentum. The adaptive/ dynamic length of the Momentum can range between 4 and 13.
Caution: Trading carries a significant risk of financial loss, and past performance does not guarantee future results. Signals may be conflicting or ambiguous. Employ risk reduction techniques, such as setting stop losses, to mitigate potential losses.
FreedX Backtest PlusโโOur new FreedX Backtest PLUS template enhances TradingView backtesting with smart features like Mean Reversion, Flexible Volatility, Liquidation Filter, and Better Trend Filtering, making strategies more effective. It lets users set up automated alerts easily. This guide explains how to make the most of these improved features.
The Trading Date Settings feature in our TradingView script allows you to refine their backtesting parameters by specifying trading dates and hours. This feature enhances the accuracy of the backtest by aligning it with specific time frames and days, ensuring that the strategy is tested under relevant market conditions.
Features:
โ๏ธ Enable Trading Between Specific Dates:
โโ๐ฏ Purpose:
โโโโโ Allows you to limit the backtesting of their strategy to a specific date range.
โโ๐ก How to Use:
โโโโโ Input the Start Date and End Date for the backtest period.
โโโโโ The script will execute the strategy only within this specified date range.
โ๏ธ Enable Trading Between Specific Hours:
โโ๐ฏ Purpose:
โโโโโ Allows you to limit the backtesting of their strategy to a specific hour range.
โโ๐ก How to Use:
โโโโโ Input the start and end hour for in Trading Session section.
โโโโโ The script will execute the strategy only within this specified hour range.
โ๏ธ Enable Trading on Specified Days of the Week:
โโ๐ฏ Purpose:
โโโโโ Gives you the option to conduct backtesting on selected days of the week, tailoring the strategy to particular market behaviours that may occur on these days.
โโ๐ก How to Use:
โโโโโ Select the days of the week for the backtest.
โโโโโ The script will activate the trading strategy only on these chosen days.
โโ BUY/SELL TRIGGER SETTINGS
The Buy/Sell Trigger Settings feature is designed to provide users with flexibility in defining the conditions for 'LONG' and 'SHORT' signals based on various indicator types. This customization is crucial for tailoring strategies to different trading styles and market conditions.
Features:
โ๏ธ Single-Line Plotted Indicators :
โโ๐ฏ Purpose:
โโโโโ Enables you to select a single-line plotted indicator as a source for backtesting. You can define specific levels to trigger 'LONG' or 'SHORT' signals.
โโ๐ก How to Use:
โโโโโ Choose a Single-Line Plotted indicator as the source.
โโโโโ Set the top and bottom levels for the indicator.
โโโโโ The script triggers 'LONG' signals at the bottom level and 'SHORT' signals at the top level.
โ๏ธ Two-Line Plotted Indicators :
โโ๐ฏ Purpose:
โโโโโ Allows backtesting with two-line cross plot sources. Signals are generated based on the crossover of these lines.
โโ๐ก How to Use:
โโโโโ Select two lines as 'Source 1' and 'Source 2' for the indicator.
โโโโโ The script triggers a 'LONG' signal when 'Source 1' crosses above 'Source 2'.
โโโโโ Conversely, a 'SHORT' signal is triggered when 'Source 2' crosses above 'Source 1'.
โ๏ธ Custom Signals :
โโ๐ฏ Purpose:
โโโโโ This setting enables users to define their own criteria for LONG, SHORT, and CLOSE signals based on custom indicator outputs.
โโ๐ก How to Use:
โโโโโ Select the custom source for your signals.
โโโโโ Define the output values that correspond to each signal type (e.g., โ1โ for 'LONG', โ-1โ for SHORT, and โ0โ for CLOSE).
โโโโโ The script will trigger signals according to these custom-defined values.
โโ TP/SL SETTINGS
The TP/SL (Take Profit/Stop Loss) Settings feature is designed to give users control over their profit securing and risk mitigation strategies. This feature allows for setting custom TP and SL levels, which can be critical in managing trades effectively.
Features:
Custom TP/SL Levels for Long/Short Signals:
โโ๐ฏ Purpose:
โโโโโ Enables users to set specific percentage levels for Take Profit and Stop Loss on long and short signals.
โโ๐ก How to Use:
โโโโโ In the TP/SL Settings, input the desired percentage for Take Profit (TP) and Stop Loss (SL).
โโโโโ For example, to secure a profit at a 10% price increase on LONG signals, set the โLong TP Percentageโ to โ10โ.
โ STRATEGY SETTINGS
Strategy Settings provide a range of options to customize the trading strategy. These settings include leverage, position direction changes, and more, allowing users to tailor their strategy to their risk tolerance and market view.
Features:
โ๏ธ Enable Reverse Position:
โโ๐ฏ Purpose:
โโโโโ Automatically closes a current position and opens a new one in the opposite direction upon detecting a signal for a market trend change.
โโ๐ฏ Example:
โโโโโ If a LONG signal is received while in a SHORT position, the script will close the SHORT position and open a LONG position.
โโ๐ก How to Use:
โโโโโ Activate this feature in the Strategy Settings.
โ๏ธ Enable Spot Mode:
โโ๐ฏ Purpose:
โโโโโ Disables short orders, using short signals only for closing long positions.
โโ๐ก How to Use:
โโโโโ Select the 'Spot Mode' option in the Strategy Settings.
โ๏ธ Enable Invert Signals:
โโ๐ฏ Purpose:
โโโโโ Inverts all indicator signals, changing LONG signals to SHORT and vice versa.
โโ๐ก How to Use:
โโโโโ Opt for the 'Invert Signals' feature in the Strategy Settings.
โ๏ธ Enable Trailing Stop:
โโ๐ฏ Purpose:
โโโโโ Triggers a trailing stop order on the exchange instead of a standard stop market order.
โโโข๏ธ Caution:
โโโโโ The backtesting of this feature on TradingView may not accurately reflect actual strategy performance due to discrepancies between TradingView and exchange mechanisms.
โโ๐ก How to Use:
โโโโโ Select 'Trailing Stop' in the Strategy Settings.
โ๏ธ Enable Realistic TP & SL:
โโ๐ฏ Purpose:
โโโโโ Goal is protect the user from unrealistic stop loss and take profit prices in live exchange trading conditions.
โโโโโ That feature continuously checks the take profit, stop loss and move stop loss prices to prevent unrealistic values. It changes their values according to (minimum realistic percent %)
โโ๐ก How to Use:
โโโโโ Select 'Enable Realistic TP & SL' in the Strategy Settings. Write min allowed percents.
โ LIMITER SETTINGS
Limiter Settings provide a range of options to customize the trading strategy. These settings include drawdown limits,contract limit, tradable ratio, for allowing users to tailor their strategy to their risk tolerance and market view.
โ๏ธ Leverage :
โโ๐ฏ Purpose:
โโโโโ Allows users to apply leverage to their trades.
โโโข๏ธ Caution:
โโโโโ High leverage can significantly increase the risk of liquidation.
โโโโโ High leverage and a high stop-loss price may override your fixed stoploss percentage, adjusting the stop-loss to the liquidation price.
โโ๐ก How to Use:
โโโโโ Set the desired leverage ratio in the Strategy Settings.
โ๏ธ Drawdown Limit:
โโ๐ฏ Purpose:
โโโโโ Sets a maximum drawdown limit, automatically halting the strategy if this limit is reached, thereby controlling risk.
โโ๐ก How to Use:
โโโโโ Input the maximum drawdown limit (default: 100, min: 0, max: 100).
โ๏ธ Contract Limit:
โโ๐ฏ Purpose:
โโโโโ Sets a maximum contract limit, beyond which the compound effect cannot be used. This is important to prevent market manipulation through large-volume orders.
โโ๐ก How to Use:
โโโโโ Input the maximum contract limit (min: 0).
โ๏ธ Tradable Ratio:
โโ๐ฏ Purpose:
โโโโโ Sets a tradable ratio, it uses that ratio calculating entry cost for position. Main purpose is cash-out and cash-in according to balance change.
โโ๐ก How to Use:
โโโโโ Input the tradable ratio percent (default: 98, min: 0.1, max: 100).
โ CASH-OUT SETTINGS
Cash-Out Settings offer a money-saving mechanism that prevents entering positions with the entire balance due to cashed-out funds. It functions with a webhook alerts, but the 'Override Allocation %' option must be enabled.
โ๏ธ Cash-out Threshold %:
โโ๐ฏ Purpose:
โโโโโ It is cash-out mechanism, it saves money with a target threshold.
โโ๐ก How to Use:
โโโโโ Input the threshold (min: 0).
โ๏ธ Cash-out Per Profitable Trades %:
โโ๐ฏ Purpose:
โโโโโ It is cash-out mechanism, it saves money from every trade with a percent like commission.
โโ๐ก How to Use:
โโโโโ Input save percent% (min: 0).
โ ADAPTIVE VOLATILITY STRATEGY SETTINGS
Advanced Strategy Settings offer sophisticated methods for managing Stop Loss (SL) and Take Profit (TP) using the Average True Range (ATR). These settings are ideal for traders who want to incorporate volatility into their exit strategies.
Features:
โ๏ธ Enable ATR Stop Loss:
โโ๐ฏ Purpose:
โโโโโ Automatically sets the Stop Loss price using the Average True Range at the time of entry.
โโ๐ก How to Use:
โโโโโ Activate 'ATR Stop Loss' to have the SL price calculated based on the current ATR.
โโโ Enable ATR Trailing Stop:
โโโโโ Dynamically updates the Stop Loss price with each new bar, according to the Average True Range.
โโโโโ Activate 'ATR Trailing Stop'.
โโโโโ Set the ATR Period to define the number of bars for ATR calculation.
โโโโโ Adjust the ATR SL Multiplier to determine the stop loss distance.
โโโโโ Modify the ATR TP Multiplier for setting the take profit distance.
โ๏ธ Enable ATR Take Profit:
โโ๐ฏ Purpose:
โโโโโ Sets the Take Profit price based on the Average True Range at the time of entry.
โโ๐ก How to Use:
โโโโโ Choose 'ATR Take Profit' for TP price determination using ATR.
โ๏ธ Enable ATR Limit Entry:
โโ๐ฏ Purpose:
โโโโโ Trade can not open in candle close price. Price should hit target price that based on average true range value.
โโ๐ก How to Use:
โโโโโ Choose 'ATR Limit Entry' for entry price determination using ATR.
โโโ Enable ATR Limit Entry Trailing Price:
โโโโโ Dynamically updates the entry price with each new bar, according to the Average True Range.
โโโโโ Activate 'ATR Limit Entry Trailing Price'.
โโโโโ Set the ATR Period to define the number of bars for ATR calculation.
โโโโโ Adjust the ATR SL Multiplier to determine the stop loss distance.
โโโโโ Modify the ATR TP Multiplier for setting the take profit distance.
โ TREND FILTERING SETTINGS
Trend Filtering Settings are designed to align trading strategies with the prevailing market trend, enhancing the precision of trade entries and exits. These settings utilize moving averages for trend analysis and decision-making.
Features:
โ๏ธ Enable Moving Average Filtering:
โโ๐ฏ Purpose:
โโโโโ Limits trades based on moving average trends, blocking short trades in an uptrend and vice versa.
โโ๐ก How to Use:
โโโโโ Enable 'Trend Filtering'.
โโโโโ Set Fast and Slow MA Lengths for trend analysis.
โโโโโ Select the Timeframe for moving averages.
โโโโโ Choose the Moving Average Type for trend filtering.
โโ๐ฏ Note:
โโโโโ Be cautious with timeframe selections; lower timeframes than the base may cause inconsistencies.
โโโ Exit on Trend Reversal:
โโโโโ Automatically closes a position when a market trend reversal is detected.
โโโโโ Turn on 'Exit on Trend Reversal' in the settings.
โโโ Ignore Counter Signals:
โโโโโ Ignores counter signals during trending market way.
โโโโโ If the trend way is long. All short signals will ignore and vice versa.
โโโ Enable Drawing On Chart:
โโโโโ Visually represents the trend filter directly on the chart for easy reference.
โโโโโ Activate 'Drawing On Chart' to see the trend filter overlaid on the trading chart.
โ๏ธ Enable Adx Filtering:
โโ๐ฏ Purpose:
โโโโโ Limits trades based on adx value, blocking trades if trend strength is not enough or vice versa for invert mode.
โโ๐ก How to Use:
โโโโโ Enable 'Adx Filtering'.
โโโโโ Set Smoothing and Lengths for adx trend analysis.
โโโโโ Select level barrier for trend strength.
โ๏ธ Enable Custom Filtering:
โโ๐ฏ Purpose:
โโโโโ Limits trades based on custom sources, blocking trades according to custom trades.
โโ๐ก How to Use:
โโโโโ Enable 'Custom Filtering'.
โโโโโ Select fast source.
โโโโโ Select slow source.
โโโโโ Enable lag mode.
โ MEAN REVERSION FILTERING SETTINGS
Mean Reversion Filtering Settings are designed to align trading strategies during accumulation market conditions. They set a distance from a line to permit trading. The purpose is to ensure that when the price strays too far from the mean line, it should revert back. In accumulation markets, price movements are generally horizontal. In such situations, mean reversion will operate like a grid, enabling profitable trades with low drawdown. However, when the market structure begins to trend, mean reversion filters may not be as profitable as in accumulation markets. For instance, let's say the price is rising and we are shorting the market until it reaches the mean price line. As the price goes up and the mean also rises, we will end up closing the position at a higher price, rendering the mean reversion system non-profitable. Therefore, consider this filter wisely; greater distances might work better in trending markets.
Features:
โ๏ธ Enable Kairi Filter:
โโ๐ฏ Purpose:
โโโโโ Blocks trades based on distance percent between price and moving average.
โโ๐ก How to Use:
โโโโโ Enable 'Kairi Filter'.
โโโโโ Set Length and Distance Percent.
โโโ Enable Trend Drawing On Chart:
โโโโโ Visually represents the trend filter directly on the chart for easy reference.
โโโโโ Enable 'Drawing On Chart' to see the allowed regions overlaid on the trading chart with arrows.
โ๏ธ Enable VWAP Filter:
โโ๐ฏ Purpose:
โโโโโ Blocks trades based on distance percent between price and volume weighted average price.
โโ๐ก How to Use:
โโโโโ Enable 'VWAP Filter'.
โโโโโ Set Timeframe as minutes and distance as percent.
โโโ Exit on Crossing with VWAP:
โโโโโ Automatically closes a position when the closing price of a candle crosses the VWAP.
โโโโโ Choose "Enable", 'Exit on Crossing with VWAP' in the settings.
โโโ Enable Drawing On Chart:
โโโโโ Visually represents the trend filter directly on the chart for easy reference.
โโโโโ Enable 'Drawing On Chart' to see the allowed regions overlaid on the trading chart with arrows.
โ LIQUIDATION FILTER SETTINGS
Liquidation filter compares the volume data of futures and spot markets.
Large differences in volume indicate unexpected market conditions, such as massive trading activities, which may signal liquidations.
Features:
โ๏ธ Enable Liquidation Filter:
โโ๐ฏ Purpose:
โโโโโ Blocks trades based on extra ordinary volume differences in spot and futures market.
โโ๐ก How to Use:
โโโโโ Enable 'Liquidation Filter'.
โโโโโ Set behavior to react during that market conditions.
โ Set base amount to filter volume. This amount changes according to timeframe, you should find right amounts.
โ Liquidation candle count means, it is sum of liquidated candle count in last 20 bars.If you set 0, it means feature is disabled.
โ Detection, try to select the spot and perpetual symbols automatically, symbol names varies, it do not support all symbols, you should choose manually in that situation.
โ AUTOMATED ALERT SETTINGS
Automated Alert Settings are designed to integrate your TradingView script with webhook alerts. These settings allow for enhanced strategy execution and management.
Features:
Enable Webhook Alerts:
โโ๐ฏ Purpose:
โโโโโ Trigger BUY, SELL, CHANGE_DIRECTION or MOVE_STOP_LOSS .
โโ๐ก How to Use:
โโโโโ Enable 'Webhook Alerts' in the settings.
โโโโโ Enter your Strategy Key.
โโโโโ Optionally, activate 'Override Allocation Percentage' to bypass the preset allocation percentage.
โโโข๏ธ Caution:
โโโโโ Overriding the allocation percentage may result in trade entry errors due to misalignment between entry cost and available balance.
Enable Custom Alerts:
โโ๐ฏ Purpose:
โโโโโ User can produce unique messages for different purposes.
โโ๐ก How to Use:
โโโโโ Enable 'Custom Alerts' in the settings.
โโโโโ Enter your message format type.
โ DEBUGGING SETTINGS
Debugging Settings are crucial for users who want to analyze and optimize their strategies. These settings provide tools for visualizing alerts on charts and accessing detailed data outputs.
Features:
โ๏ธ Enable Alert Plotting:
โโ๐ฏ Purpose:
โโโโโ Allows users to visualize trading alerts directly on the chart, aiding in strategy analysis and refinement.
โโ๐ก How to Use:
โโโโโ Activate 'Alert Plotting' to draw alerts on the chart.
โโโข๏ธ Caution:
โโโโโ It is recommended to disable this feature when creating actual trading alerts, as it can cause latency in signal processing.
โ๏ธ Enable Debugger Mode:
โโ๐ฏ Purpose:
โโโโโ Facilitates strategy debugging by providing detailed data output in the TradingView Data Window.
โโ๐ก How to Use:
โโโโโ Turn on 'Debugger Mode' to access real-time data and metrics relevant to your strategy.
โ๏ธ Enable Table:
โโ๐ฏ Purpose:
โโโโโ Facilitates strategy debugging by providing detailed data output in the TradingView Table on chart.
โโ๐ก How to Use:
โโโโโ Turn on 'Table' to access last closed candle data and metrics relevant to your strategy.
โ ADDITIONAL SETTINGS
โ๏ธ Enable Bar Magnifier
โ๏ธ Enable Using standard OHLC
WaveTrendnel Oscillator [UAlgo]๐ถDescription:
The WaveTrendnel Oscillator, is a technical analysis tool designed for traders to identify potential trend reversals and overbought/oversold conditions in the market. It combines the concepts of wave analysis and trend analysis to generate signals based on the current market conditions. This indicator aims to provide traders with insights into the strength and direction of the prevailing trend, facilitating better decision-making in trading strategies.
๐ถKey Features:
Customizable Parameters: Users can customize various parameters including the source data, channel length, average length, and signal length according to their trading preferences and market conditions.
Signal Display: The indicator offers the option to display buy and sell signals on the chart, helping traders to visually identify potential entry and exit points.
Wave and Kernel Analysis: The WaveTrendnel Oscillator utilizes a rational quadratic kernel function, which applies a mathematical approach known as the kernel method. This method analyzes historical price data by assigning weights to each data point based on its proximity to the current period, providing a smoother and more accurate representation of market trends.
Overbought/Oversold Levels: Traders can define overbought and oversold levels using customizable threshold parameters, enabling them to identify potential reversal points in the market.
๐ถCredit:
The WaveTrendnel Oscillator indicator is a modification of the original WaveTrend Oscillator developed by @LazyBear on TradingView.
๐ถDisclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
U-Oscillator Pro [UAlgo]The U-Oscillator Pro is a comprehensive technical analysis tool designed to assist traders in making informed decisions in financial markets. This indicator integrates various features including oscillator, bands, trend clouds divergences, and confluence signals to provide a comprehensive view of market dynamics.
๐ถ Oscillator :
U-Oscillator uses an amalgamation of price, momentum, and volatility elements to provide a comprehensive market view. It provides a common output about the market and is easy to use.
Oscillator Features :
Customizable Oscillator Length : This parameter sets the length of the oscillator.
Use Machine Learning On Oscillator Calculation : By evaluating the output of the oscillator, this data set calculates a weighted average of the data set by taking each point with a certain weight and using these weights. This is often used in situations where some data points are more important or need to have more impact than others. A weight for each point that the oscillator calculates may represent the importance or impact of that point. By including all these calculations in the oscillator, it provides a result.
Reversal Signals : Determines whether to display reversal signals on the chart. When set to true, it enables the plotting of reversal signals based on certain conditions for both long (buy) and short (sell) signals. These signals can be interpreted as "potential" turning points of the market. Signals are represented by small shapes on the chart, with green indicating short (sell) signals and red indicating long (buy) signals.
๐ถ Extreme Bands:
These regions can be described as the possible reversal regions of the price and obtained by deviations of oscillator values.
Extreme Bands Features:
Band Length : Determines the length of the bands.
Show Extreme Bands : Option to display the extreme bands.
Show Middle Line : Option to show the middle line.
Transparency Mode : Adjust the transparency level of the bands.
It would not be wrong to consider it as potential overbought and oversold regions.
Example:
๐ถ Divergences :
The divergence calculation in this script identifies potential reversals by analyzing pivot points in the oscillator. Here's how it works:
Divergence Features :
Pivot Length: The user specifies the length of the divergence calculation (pivotLength), which determines the number of bars to consider for pivot analysis.
Pivot Identification: The script searches for pivot highs and lows within the specified length. These pivots indicate potential turning points in the oscillator.
Divergence Conditions: Different conditions are evaluated based on the identified pivots to determine the presence of bullish or bearish divergences:
Regular Bullish Divergence: Occurs when the oscillator makes a lower low while the price makes a higher low.
Hidden Bullish Divergence: Occurs when the oscillator makes a higher low while the price makes a lower low.
Regular Bearish Divergence: Occurs when the oscillator makes a higher high while the price makes a lower high.
Hidden Bearish Divergence: Occurs when the oscillator makes a lower high while the price makes a higher high.
Visualization: Detected divergences are plotted on the chart using shapes and lines, indicating potential reversal points. Users can choose which types of divergences to display using input options.
๐ถ Trend Cloud :
This section can provide information about the long-term direction of the price and the current status of the trend. The increase in the visibility of the cloud can provide information about the strength of the trend.
Trend Cloud Features :
Show Trend Cloud: This setting allows you to choose whether the trend cloud is displayed on the chart or not.
Fast Trend Cloud Mode: This feature can be used to provide information about the cloud's shorter-term trend and its strength.
Classic Mode of Trend Cloud :
Fast Mode of Trend Cloud :
๐ถ Confluence :
This section of the script aims to identify potential reversal confluences based on the deviation between the price and a combination of oscillator values. The confluence signals are categorized into light and heavy, representing different levels of potential reversal strength.
Confluence Features :
Show Light/Heavy Reversal Confluences: This setting allows users to control the visibility of the confluence signals on the chart.
Confluence Term: Users can select the term for calculating the confluence, which in turn affects the sensitivity of the confluence signals. The available options are Short, Medium, and Long.
Confluence Signal Conditions:
Light Bearish Reversal Confluence: This type of confluence occurs when there is a moderate deviation between the price and the oscillator values, indicating a potential shift towards a bearish reversal in the market sentiment.
Heavy Bearish Reversal Confluence: In contrast, a heavy bearish reversal confluence signifies a significant deviation between the price and the oscillator values, suggesting a strong indication of a bearish reversal in the market sentiment.
Light Bullish Reversal Confluence: Similar to light bearish reversal confluence, light bullish reversal confluence occurs with a moderate deviation between the price andthe oscillator values, indicating a potential shift towards a bullish reversal in the market sentiment.
Heavy Bullish Reversal Confluence: On the other hand, heavy bullish reversal confluence indicates a substantial deviation between the price andthe oscillator values, suggesting a strong indication of a bullish reversal in the market sentiment.
Plotting Confluence Signals: Shapes (triangles) are plotted on the chart to indicate the presence of confluence signals. Red triangles denote bearish signals, while green triangles denote bullish signals.
This confluence analysis provides traders with additional insights into potential reversal points or helping them make more informed trading decisions.
Example For Confluence :
๐ถ Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Liquidation Longs/Shorts [UAlgo]๐ถDescription:
The "Liquidation Longs/Shorts " indicator is designed to identify potential liquidation levels for long and short positions. It calculates the distance of the selected price source (close, high, low, or open) from two moving averages (MA) and plots the resulting values on the chart. When the price is at an extreme distance from the moving averages, it suggests a potential liquidation point for either long or short positions.
๐ถKey Features:
Liquidation Calculations: The indicator calculates the distance of the selected price source from two moving averages: a simple moving average (SMA) and an exponential moving average (EMA) with customizable lengths.
Color Customization: Users can customize the colors of the plotted columns representing the distance from the moving averages for long and short liquidation levels.
Liquidation Circles: The indicator marks potential liquidation levels with small circles on the chart, with customizable colors for long and short liquidations.
Orange Circles -> Identifies Potential Short Liquidations
Aqua Circles -> Identifies Potential Long Liquidations
Example:
Adaptive Source Selection: Traders can select the price source (close, high, low, or open) for liquidation calculations, allowing flexibility based on their trading strategies.
Dynamic Threshold Calculation: The indicator dynamically adjusts the liquidation threshold based on the selected moving average lengths, providing adaptability to changing market conditions.
Disclaimer:
Use with Caution: This indicator is provided for educational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
This indicator serves as a tool to assist traders in identifying potential liquidation levels, but it should be used in conjunction with other technical analysis tools and risk management practices for effective trading decision-making.
FreedX BacktestโโOur strategy template empowers TradingView users to effortlessly backtest any indicator, enhancing their trading strategy's effectiveness. In addition, users can create automated webhook alerts from the template. This document details our template's features and how to utilize them effectively.
โโ TRADE DATE SETTINGS
The Trading Date Settings feature in our TradingView script allows you to refine their backtesting parameters by specifying trading dates and hours. This feature enhances the accuracy of the backtest by aligning it with specific time frames and days, ensuring that the strategy is tested under relevant market conditions.
Features:
โ๏ธ Enable Trading Between Specific Dates:
โโ๐ฏ Purpose:
โโโโโ Allows you to limit the backtesting of their strategy to a specific date range.
โโ๐ก How to Use:
โโโโโ Input the Start Date and End Date for the backtest period.
โโโโโ The script will execute the strategy only within this specified date range.
โ๏ธ Enable Trading Between Specific Hours:
โโ๐ฏ Purpose:
โโโโโ Allows you to limit the backtesting of their strategy to a specific hour range.
โโ๐ก How to Use:
โโโโโ Input the start and end hour for in Trading Session section.
โโโโโ The script will execute the strategy only within this specified hour range.
โ๏ธ Enable Trading on Specified Days of the Week:
โโ๐ฏ Purpose:
โโโโโ Gives you the option to conduct backtesting on selected days of the week, tailoring the strategy to particular market behaviours that may occur on these days.
โโ๐ก How to Use:
โโโโโ Select the days of the week for the backtest.
โโโโโ The script will activate the trading strategy only on these chosen days.
โโ BUY/SELL TRIGGER SETTINGS
The Buy/Sell Trigger Settings feature is designed to provide users with flexibility in defining the conditions for 'LONG' and 'SHORT' signals based on various indicator types. This customization is crucial for tailoring strategies to different trading styles and market conditions.
Features:
โ๏ธ Single-Line Plotted Indicators :
โโ๐ฏ Purpose:
โโโโโ Enables you to select a single-line plotted indicator as a source for backtesting. You can define specific levels to trigger 'LONG' or 'SHORT' signals.
โโ๐ก How to Use:
โโโโโ Choose a Single-Line Plotted indicator as the source.
โโโโโ Set the top and bottom levels for the indicator.
โโโโโ The script triggers 'LONG' signals at the bottom level and 'SHORT' signals at the top level.
โ๏ธ Two-Line Plotted Indicators :
โโ๐ฏ Purpose:
โโโโโ Allows backtesting with two-line cross plot sources. Signals are generated based on the crossover of these lines.
โโ๐ก How to Use:
โโโโโ Select two lines as 'Source 1' and 'Source 2' for the indicator.
โโโโโ The script triggers a 'LONG' signal when 'Source 1' crosses above 'Source 2'.
โโโโโ Conversely, a 'SHORT' signal is triggered when 'Source 2' crosses above 'Source 1'.
โ๏ธ Custom Signals :
โโ๐ฏ Purpose:
โโโโโ This setting enables users to define their own criteria for LONG, SHORT, and CLOSE signals based on custom indicator outputs.
โโ๐ก How to Use:
โโโโโ Select the custom source for your signals.
โโโโโ Define the output values that correspond to each signal type (e.g., โ1โ for 'LONG', โ-1โ for SHORT, and โ0โ for CLOSE).
โโโโโ The script will trigger signals according to these custom-defined values.
โโ TP/SL SETTINGS
The TP/SL (Take Profit/Stop Loss) Settings feature is designed to give users control over their profit securing and risk mitigation strategies. This feature allows for setting custom TP and SL levels, which can be critical in managing trades effectively.
Features:
Custom TP/SL Levels for Long/Short Signals:
โโ๐ฏ Purpose:
โโโโโ Enables users to set specific percentage levels for Take Profit and Stop Loss on long and short signals.
โโ๐ก How to Use:
โโโโโ In the TP/SL Settings, input the desired percentage for Take Profit (TP) and Stop Loss (SL).
โโโโโ For example, to secure a profit at a 10% price increase on LONG signals, set the โLong TP Percentageโ to โ10โ.
โ STRATEGY SETTINGS
Strategy Settings provide a range of options to customize the trading strategy. These settings include leverage, drawdown limits, position direction changes, and more, allowing users to tailor their strategy to their risk tolerance and market view.
Features:
โ๏ธ Enable Leverage :
โโ๐ฏ Purpose:
โโโโโ Allows users to apply leverage to their trades.
โโโข๏ธ Caution:
โโโโโ High leverage can significantly increase the risk of liquidation.
โโโโโ High leverage and a high stop-loss price may override your fixed stoploss percentage, adjusting the stop-loss to the liquidation price.
โโ๐ก How to Use:
โโโโโ Set the desired leverage ratio in the Strategy Settings.
โ๏ธ Enable Drawdown Limit:
โโ๐ฏ Purpose:
โโโโโ Sets a maximum drawdown limit, automatically halting the strategy if this limit is reached, thereby controlling risk.
โโ๐ก How to Use:
โโโโโ Input the maximum drawdown limit (default: 100, min: 0, max: 100).
โ๏ธ Enable Reverse Position:
โโ๐ฏ Purpose:
โโโโโ Automatically closes a current position and opens a new one in the opposite direction upon detecting a signal for a market trend change.
โโ๐ฏ Example:
โโโโโ If a LONG signal is received while in a SHORT position, the script will close the SHORT position and open a LONG position.
โโ๐ก How to Use:
โโโโโ Activate this feature in the Strategy Settings.
โ๏ธ Enable Spot Mode:
โโ๐ฏ Purpose:
โโโโโ Disables short orders, using short signals only for closing long positions.
โโ๐ก How to Use:
โโโโโ Select the 'Spot Mode' option in the Strategy Settings.
โ๏ธ Enable Invert Signals:
โโ๐ฏ Purpose:
โโโโโ Inverts all indicator signals, changing LONG signals to SHORT and vice versa.
โโ๐ก How to Use:
โโโโโ Opt for the 'Invert Signals' feature in the Strategy Settings.
โ๏ธ Enable Trailing Stop:
โโ๐ฏ Purpose:
โโโโโ Triggers a trailing stop order on the exchange instead of a standard stop market order.
โโโข๏ธ Caution:
โโโโโ The backtesting of this feature on TradingView may not accurately reflect actual strategy performance due to discrepancies between TradingView and exchange mechanisms.
โโ๐ก How to Use:
โโโโโ Select 'Trailing Stop' in the Strategy Settings.
โ ADVANCED STRATEGY SETTINGS
Advanced Strategy Settings offer sophisticated methods for managing Stop Loss (SL) and Take Profit (TP) using the Average True Range (ATR). These settings are ideal for traders who want to incorporate volatility into their exit strategies.
Features:
โ๏ธ Enable ATR Stop Loss:
โโ๐ฏ Purpose:
โโโโโ Automatically sets the Stop Loss price using the Average True Range at the time of entry.
โโ๐ก How to Use:
โโโโโ Activate 'ATR Stop Loss' to have the SL price calculated based on the current ATR.
โ๏ธ Enable ATR Take Profit:
โโ๐ฏ Purpose:
โโโโโ Sets the Take Profit price based on the Average True Range at the time of entry.
โโ๐ก How to Use:
โโโโโ Choose 'ATR Take Profit' for TP price determination using ATR.
โ๏ธ Enable ATR Trailing Stop:
โโ๐ฏ Purpose:
โโโโโ Dynamically updates the Stop Loss price with each new bar, according to the Average True Range.
โโ๐ก How to Use:
โโโโโ Activate 'ATR Trailing Stop'.
โโโโโ Set the ATR Period to define the number of bars for ATR calculation.
โโโโโ Adjust the ATR SL Multiplier to determine the stop loss distance.
โโโโโ Modify the ATR TP Multiplier for setting the take profit distance.
โ TREND FILTERING SETTINGS
Trend Filtering Settings are designed to align trading strategies with the prevailing market trend, enhancing the precision of trade entries and exits. These settings utilize moving averages for trend analysis and decision-making.
Features:
โ๏ธ Enable Trend Filtering:
โโ๐ฏ Purpose:
โโโโโ Limits trades based on moving average trends, blocking short trades in an uptrend and vice versa.
โโ๐ก How to Use:
โโโโโ Enable 'Trend Filtering'.
โโโโโ Set Fast and Slow MA Lengths for trend analysis.
โโโโโ Select the Timeframe for moving averages.
โโโโโ Choose the Moving Average Type for trend filtering.
โโ๐ฏ Note:
โโโโโ Be cautious with timeframe selections; lower timeframes than the base may cause inconsistencies.
โ๏ธ Enable Exit on Trend Reversal:
โโ๐ฏ Purpose:
โโโโโ Automatically closes a position when a market trend reversal is detected.
โโ๐ก How to Use:
โโโโโ Turn on 'Exit on Trend Reversal' in the settings.
โ๏ธ Enable Trend Drawing On Chart:
โโ๐ฏ Purpose:
โโโโโ Visually represents the trend filter directly on the chart for easy reference.
โโ๐ก How to Use:
โโโโโ Activate 'Trend Drawing On Chart' to see the trend filter overlaid on the trading chart.
โ AUTOMATED ALERT SETTINGS
Automated Alert Settings are designed to integrate your TradingView script with webhook alerts. These settings allow for enhanced strategy execution and management.
Features:
Enable Webhook Alerts:
โโ๐ฏ Purpose:
โโโโโ Trigger BUY, SELL, CHANGE_DIRECTION or MOVE_STOP_LOSS .
โโ๐ก How to Use:
โโโโโ Enable 'Webhook Alerts' in the settings.
โโโโโ Enter your Strategy ID.
โโโโโ Optionally, activate 'Override Allocation Percentage' to bypass the preset allocation percentage.
โโโข๏ธ Caution:
โโโโโ Overriding the allocation percentage may result in trade entry errors due to misalignment between entry cost and available balance.
โ DEBUGGING SETTINGS
Debugging Settings are crucial for users who want to analyze and optimize their strategies. These settings provide tools for visualizing alerts on charts and accessing detailed data outputs.
Features:
โ๏ธ Enable Alert Plotting:
โโ๐ฏ Purpose:
โโโโโ Allows users to visualize trading alerts directly on the chart, aiding in strategy analysis and refinement.
โโ๐ก How to Use:
โโโโโ Activate 'Alert Plotting' to draw alerts on the chart.
โโโข๏ธ Caution:
โโโโโ It is recommended to disable this feature when creating actual trading alerts, as it can cause latency in signal processing.
โ๏ธ Enable Debugger Mode:
โโ๐ฏ Purpose:
โโโโโ Facilitates strategy debugging by providing detailed data output in the TradingView Data Window.
โโ๐ก How to Use:
โโโโโ Turn on 'Debugger Mode' to access real-time data and metrics relevant to your strategy.
โ ADDITIONAL SETTINGS
โ๏ธ Enable Bar Magnifier
โ๏ธ Enable Using standard OHLC
Portfolio HeatThe "Portfolio Heat" indicator offers a visual representation of potential risk exposure for a portfolio across up to eight different symbols. It dynamically calculates three risk metrics based on current price, the number of shares owned, your designated stop loss, and total account size.
Open Dollar Risk โ the total dollar amount you will lose if your stop loss is hit.
Open % of Portfolio Risk โ the risk as a percentage of your total account size.
Starting Capital Risk โ the dollar amount risked based on the difference between the entry price and stop price.
These metrics adjust in real-time, allowing you to monitor and manage risk more effectively.
Open portfolio heat refers to how much you would lose if all your currently held stock positions hit their stop-losses, whether those stop-losses are below what you paid for them - referred to as your โcost basisโ - at your cost basis (breakeven) or above your cost basis (in the money). Admittedly, itโs a pretty bad day when all your stops are hit at once, but as traders we need to prepare for the worst. To visualize what โopen heatโ looks like on a single stock position, please note the chart below:
In the example above you can see that if you were to purchase 100 shares of this stock at a cost-basis of $18/share, and your stop-loss is placed at $15, if the current price of the stock is at $20 and the stock price drops to hit your stop-loss, it would result in a $500 total drawdown in your portfolio. Keep in mind this is just one stock position. Hypothetically, if you were even holding two stocks that had the above open heat, with a $10,000 account size, you could experience a 10% drawdown quite fast if the market corrects.
The โPortfolio Heatโ indicator is fully customizable allowing traders to select the number of positions in the portfolio, colors and a detailed or a summary view of risk.
Note if entering a short position, you will enter the number of shares owned as a negative number.
Risk Reward Optimiser [ChartPrime]โโCONCEPTS
In modern day strategy optimization there are few options when it comes to optimizing a risk reward ratio. Users frequently need to experiment and go through countless permutations in order to tweak, adjust and find optimal in their data.
Therefore we have created the Risk Reward Optimizer.
The Risk Reward Optimizer is a technical tool designed to provide traders with comprehensive insights into their trading strategies.
It offers a range of features and functionalities aimed at enhancing traders' decision-making process.
With a focus on comprehensive data, it is there to help traders quickly and efficiently locate Risk Reward optimums for inbuilt of custom strategies.
โโInternal and external Signals:
The script can optimize risk to reward ratio for any type of signals
You can utilize the following :
๐ธInternal signals โ We have included a number of common indicators into the optimizer such as:
โซ๏ธ Aroon
โซ๏ธ AO (Awesome Oscillator)
โซ๏ธ RSI (Relative Strength Index)
โซ๏ธ MACD (Moving Average Convergence Divergence)
โซ๏ธ SuperTrend
โซ๏ธ Stochastic RSI
โซ๏ธ Stochastic
โซ๏ธ Moving averages
All these indicators have 3 conditions to generate signals :
Crossover
High Than
Less Than
๐ธExternal signal
โซ๏ธ by incorporating your own indicators into the analysis. This flexibility enables you to tailor your strategy to your preferences.
โฝ๏ธ How to link your signal with the optimizer:
In order to be able to analysis your signal we need to read it and to do so we would need to PLOT your signal with a defined value
plot( YOUR LONG Condition ? 100 : 0 , display = display.data_window)
โโCustomizable Risk to Reward Ratios:
This tool allows you to test seven different customizable risk to reward ratios , helping you determine the most suitable risk-reward balance for your trading strategy. This data-driven approach takes the guesswork out of setting stop-loss and take-profit levels.
โโComprehensive Data Analysis:
The tool provides a table displaying key metrics, including:
Total trades
Wins
Losses
Profit factor
Win rate
Profit and loss (PNL)
This data is essential for refining your trading strategy.
๐ธ It includes a tooltip for each risk to reward ratio which gives data for the:
Most Profitable Trade USD value
Most Profitable Trade % value
Most Profitable Trade Bar Index
Most Profitable Trade Time (When it occurred)
Position and size is adjustable
โโVisual insights with histograms:
Visualize your trading performance with histograms displaying each risk to reward ratio trade space, showing total trades, wins, losses, and the ratio of profitable trades.
This visual representation helps you understand the strengths and weaknesses of your strategy.
It offers tooltips for each RR ratio with the average win and loss percentages for further analysis.
โโDynamic Highlighting:
A drop-down menu allows you to highlight the maximum values of critical metrics such as:
Profit factor
Win rate
PNL
for quick identification of successful setups.
โโStop Loss Flexibility:
You can adjust stop-loss levels using three different calculation methods:
ATR
Pivot
VWAP
This allows you to align risk-reward ratios with your preferred risk tolerance.
โโChart Integration:
Visualize your trades directly on your price chart, with each trade displayed in a distinct color for easy tracking.
When your take-profit (TP) level is reached , the tool labels the corresponding risk-reward ratio for that specific TP, simplifying trade management.
โโDetailed Tooltips:
Tooltips provide deeper insights into your trading performance. They include information about the most profitable trade, such as the time it occurred, the bar index, and the percentage gain. Histogram tooltips also offer average win and loss percentages for further analysis.
โโSettings:
โโCode:
In summary, the Risk Reward Optimizer is a data-driven tool that offers traders the ability to optimize their risk-reward ratios, refine their strategies, and gain a deeper understanding of their trading performance. Whether you're a day trader, swing trader, or investor, this tool can help you make informed decisions and improve your trading outcomes.
Filtered Bollinger Bands By @TradingadeThis is a reversal strategy based on Bollinger Bands combined with a Trend filter.
The most important part of this strategy is the Trend filter. When applied, it will increase the likelihood of confirming an exhausted movement (it will help find the maximum "elastic bent"), and may reduce chances of getting bad entries condition.
The logic of this code is:
Enter Long : price goes outside lower band, then close cross above lower band
Stop Loss : Percentage %
Take profit : Percentage %
Exit Cond : when high crosses above upper band. It could be both in profit or in loss.
Filter: Yesterday low was the lowest in previous X days
Enter Short : price goes outside lower band, then close cross above lower band
Stop Loss : Percentage %
Take profit : Percentage %
Exit Cond : when low crosses below lower band. It could be both in profit or in loss.
Filter: Yesterday high was the highest in previous X days
FILTER Notes:
You could switch both timeframe and N. of candles in input section. Even tough generally daily data are more reliable, you could find interesting to change it to 1H tf, so filter would be:
"1H high/low was the lowest/highest in previous X hours"
EXIT Notes:
Please note that "% exits" will always override "Exit Cond".
Set % exits to 0 if you want to exit only by "Exit Cond".
Settings used to get the results below :
Initial Capital = 10000
Order Size = 10000 USDT
Commission = 0.06 %
TREND FILTER
Trend filter = True
Trend intensity = 4 Candles , TF 1 day
BB FILTER
Lenght = 20
Source = Close
StdDev = 2
STRATEGY SETTINGS
Position Side = LONG
Stop Loss % = 8
Take Profit % = 0
Exit Cond = True