Weekly RSI Buy/Sell SignalsWeekly RSI Buy/Sell Signal Indicator
This indicator is designed to help traders identify high-probability buy and sell opportunities on the weekly chart by using the Relative Strength Index (RSI). By utilizing weekly RSI values, this indicator ensures signals align with broader market trends, providing a clearer view of potential price reversals and continuation.
How It Works:
Weekly RSI Calculation: This script calculates the RSI using a 14-period setting, focusing on the weekly timeframe regardless of the user’s current chart view. The weekly RSI is derived using request.security, allowing for consistent signals even on intraday charts.
Signal Conditions:
Buy Signal: A buy signal appears when the RSI crosses above the oversold threshold of 30, suggesting that price may be gaining momentum after a potential bottom.
Sell Signal: A sell signal triggers when the RSI crosses below the overbought threshold of 70, indicating a possible momentum shift downwards.
Visual Cues:
Buy/Sell Markers: Clear green "BUY" and red "SELL" markers are displayed on the chart when buy or sell conditions are met, making it easy to identify entry and exit points.
RSI Line and Thresholds: The weekly RSI value is plotted in real time with color-coded horizontal lines at 30 (oversold) and 70 (overbought), providing a visual reference for key levels.
This indicator is ideal for traders looking for reliable, trend-based signals on higher timeframes and can be a helpful tool for filtering out shorter-term market noise.
Algotrading
Z-Score Pairs TradingTitle: Z-Score Pairs Trading Indicator
Description:
This indicator implements a Z-score based pairs trading strategy, allowing traders to identify potential statistical arbitrage opportunities between two selected assets.
Key Features:
- Calculates Z-score for the price difference between any two user-selected symbols
- Visualizes Z-score with customizable thresholds for signals
- Generates long and short signals based on extreme Z-score values
- Adaptable to various markets including stocks, ETFs, and commodities
How It Works:
1. The indicator calculates the price difference between two selected symbols.
2. It then computes the Z-score of this difference, showing how far the current spread deviates from its historical average.
3. When the Z-score exceeds set thresholds (default ±2), the indicator generates trading signals.
Settings:
- Symbol A and Symbol B: Select any two tradable symbols to compare
- Lookback Period: Number of periods for calculating the moving average and standard deviation
Interpretation:
- Z-score above 2: Potential short signal (pair is likely overextended)
- Z-score below -2: Potential long signal (pair is likely oversold)
- Z-score between -2 and 2: Normal trading range, no signals
Visual Aids:
- Blue line: Z-score
- Dashed lines: Threshold levels at 0, ±1, and ±2
- Green triangles: Long signals
- Red triangles: Short signals
Disclaimer:
This indicator is for educational and research purposes only. Trading carries a high level of risk. Always conduct your own analysis and manage your risk appropriately before entering any trade.
Made by @marekfleisi
Rolling Straddle PremiumScript is Basically intended to provide insight's on the Rolling Straddle premium for the selected index based on the input settings.
Important thing to consider for the script to work seamlessly:
Specify the LTP in the input field (need not be very accurate)
Specify the Expiry Date for the Option Strike.
Ensure Profile matches to the chart script (Index Script)
Note: Zones marked in Blue, is the max level that indicator can track the option prices. beyond which it may fail to track, during such time consider reloading the indicator with Latest LTP .
Labels on the chart indicate that If i had shorted the Straddle, what would be my current position of that Straddle. however the rational behind shorting is only the pivot high points (not sure if this is right or wrong! )
Note On Labels: Labels are delayed basis the pivot point candles specified in the indicator settings.
EN: Entry Price (Straddle Premium) of the Strike Specified.
Cur: Current Price ( Current Straddle Premium ) of the Strike Specified.
SH: Max Straddle Premium ( Increase in Premium ) since position is active.
SL: Min Straddle Premium ( Premium Erosion ) since position is active.
Market Structure MTF"Market Structure MTF" is designed to help traders analyze and visualize market structures across up to three different timeframes. It allows users to customize various parameters such as period length, label size, and colors for different elements. The indicator identifies and tracks key market structure components, such as highs and lows, break of structure, and displays this information directly on the chart. It is also useful when studying Algo Trade concepts.
Additionally, it includes a table summarizing trends and providing the efficiency of the latest market data for each timeframe.
Recommended Settings
If you're new to this indicator, it's recommended to start with a single timeframe to become familiar with its functionality.
Once comfortable, you can use the following timeframes:
Base Timeframe : 15 minutes
Secondary Timeframe : 1 hour
Tertiary Timeframe : 4 hours
Another example setup could be:
Base Timeframe : 1 hour
Secondary Timeframe : 4 hours
Tertiary Timeframe : 1 day
Important Notes
Multiples of Base Timeframe : Ensure that the secondary and tertiary timeframes are multiples of the base timeframe. This ensures consistency and accuracy in analysis.
Display Order : It is recommended to display the timeframes in the correct order, with the current timeframe displayed on top of the previous ones.
Customization : You can customize the period length, label size, shapes, and colors to match your preferences.
Market Structure Elements : The indicator tracks key market structure elements such as highs and lows, which are crucial for understanding market trends and potential reversal points.
Trend Summary Table : The included table summarizes trends and provides an overview of the latest market data, helping you make informed trading decisions. The "Efficiency" column shows whether the latest structure is IPA (Inefficient Price Action) or EPA (Efficient Price Action).
Matrix Glitch | FractalystThe Matrix Glitch indicator is a visually engaging tool for traders, inspired by the iconic Matrix movie effects. It overlays price charts with dynamic, multi-colored glitches that sync with market data, creating a striking, almost surreal visual experience.
The indicator uses characters from various languages (e.g., Japanese, Chinese, Russian, English) to mimic the digital rain effect from the movies. Users can select a language, which activates a corresponding array of characters. These characters are randomly picked from the chosen array and displayed on the chart.
Underlying Calculations and Logic
Arrays in the Indicator
1- Character Management:
The script uses arrays to store sets of characters representing different symbols or alphabets. These arrays allow the indicator to dynamically select and update characters for display. Each element in these arrays corresponds to a specific character that will be used to populate the grid.
2- Current and Previous States:
Arrays are employed to keep track of the current state of characters that are displayed on the grid. Simultaneously, another set of arrays records the previous state of these characters. This dual-state management allows the script to smoothly transition between updates, handling changes in characters and visual effects like fading.
3- Transparency Control:
Transparency levels for each character in the grid are managed through arrays. These arrays store the opacity values, ensuring that each character has the appropriate level of transparency. By comparing the current and previous transparency states, the script can create effects like gradual fading or intensifying visibility.
4- Rain Effect Simulation:
To create the "rain" effect, the script maintains arrays that simulate the falling text by continuously updating the position and visibility of characters. As new characters enter the top of the grid, older ones are removed from the bottom, with their transparency levels adjusted to simulate movement.
5- Operational Flow:
Initialization : Arrays are initialized to manage both the characters and their transparency. This setup allows the script to handle the dynamic display efficiently.
Updates : During each cycle, new characters are selected and old characters are shifted accordingly. The arrays ensure that both the content and appearance of the grid are updated seamlessly.
Rendering : The arrays dictate how characters and their transparency are rendered on the grid, ensuring a cohesive and visually appealing effect.
Here's how to use the indicator step-by-step:
1- Apply the Indicator to Your Charts:
Begin by adding the indicator to your chart. This will activate the visual effect on your selected trading instrument or time frame.
Select Your Preferred Language of the Matrix Characters:
In the settings, choose the language or symbol set you want the matrix characters to display. This could be anything from traditional matrix-style characters to different alphabets or custom symbols.
2- Choose the Matrix Effect (Rain, Burst):
Decide on the type of visual effect you prefer. You can select from options like the classic "rain" effect, where characters fall from the top of the screen, or a "burst" effect, where characters explode outward or appear in a different dynamic pattern.
3- Adjust the Color According to Your Preference:
Customize the color of the matrix characters to suit your aesthetic or chart theme. You can select from a range of colors or even set up a gradient for more complex visual effects.
4- Adjust the Width and Height of the Matrix According to Your Screen:
Fine-tune the dimensions of the matrix display. Set the width and height so that the matrix fits perfectly on your screen, ensuring that it aligns well with other chart elements and doesn't obstruct your view.
------
What Makes the Matrix Glitch Indicator Unique?
Language Selection:
Customizable Language: Unlike many indicators that might offer static or limited visual elements, the Matrix Glitch Indicator allows users to choose from a variety of languages for the characters displayed. This feature not only personalizes the user experience but also adds a cultural or linguistic element to trading charts. Users can select languages like Japanese, Chinese, Russian, or English, and many more.
This flexibility ensures that traders from different backgrounds can feel a connection with their charts through familiar or exotic scripts.
Dynamic Effects:
Effect Modes: The indicator offers two distinct modes - Rain Mode and Burst Mode. In Rain Mode, characters fall from the top of the chart, mimicking the iconic digital rain from the Matrix films.
In Burst Mode, characters radiate outward from a central point, creating a unique visual effect that can be synchronized with market volatility.
This dual-mode functionality allows traders to choose how they want their data to be visually represented, providing both aesthetic variety and potentially different insights into market behavior.
Color Customization:
Full Color Control: The ability to fully customize the color of the characters is a standout feature. Traders can match the indicator's colors to their trading platform's theme, their mood, or even specific market conditions (e.g., red for downturns, green for upturns). This level of customization not only aids in creating a personalized trading environment but can also serve as a visual cue for different market states.
Universal Display Compatibility:
Adjustability for All Displays: The indicator is designed to be fully adjustable for various screen resolutions and sizes. This ensures that whether you're trading on a high-resolution monitor, a laptop, or even a mobile device, the Matrix Glitch effect remains clear and impactful without compromising on the functionality of the trading chart. This adaptability is crucial in an era where trading can happen anywhere, making the indicator a versatile tool for traders on the go or in a static setup.
------
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst use, reproduction, or distribution of these proprietary elements is prohibited.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
Approximate Spectral Entropy-Based Market Momentum (SEMM)Overview
The Approximate Spectral Entropy-Based Market Momentum (SEMM) indicator combines the concepts of spectral entropy and traditional momentum to provide traders with insights into both the strength and the complexity of market movements. By measuring the randomness or predictability of price changes, SEMM helps traders understand whether the market is in a trending or consolidating state and how strong that trend or consolidation might be.
Key Features
Entropy Measurement: Calculates the approximate spectral entropy of price movements to quantify market randomness.
Momentum Analysis: Integrates entropy with rate-of-change (ROC) to highlight periods of strong or weak momentum.
Dynamic Market Insight: Provides a dual perspective on market behavior—both the trend strength and the underlying complexity.
Customizable Parameters: Adjustable window length for entropy calculation, allowing for fine-tuning to suit different market conditions.
Concepts Underlying the Calculations
The indicator utilizes Shannon entropy, a concept from information theory, to approximate the spectral entropy of price returns. Spectral entropy traditionally involves a Fourier Transform to analyze the frequency components of a signal, but due to Pine Script limitations, this indicator uses a simplified approach. It calculates log returns over a rolling window, normalizes them, and then computes the Shannon entropy. This entropy value represents the level of disorder or complexity in the market, which is then multiplied by traditional momentum measures like the rate of change (ROC).
How It Works
Price Returns Calculation: The indicator first computes the log returns of price data over a specified window length.
Entropy Calculation: These log returns are normalized and used to calculate the Shannon entropy, representing market complexity.
Momentum Integration: The calculated entropy is then multiplied by the rate of change (ROC) of prices to generate the SEMM value.
Signal Generation: High SEMM values indicate strong momentum with higher randomness, while low SEMM values indicate lower momentum with more predictable trends.
How Traders Can Use It
Trend Identification: Use SEMM to identify strong trends or potential trend reversals. Low entropy values can indicate a trending market, whereas high entropy suggests choppy or consolidating conditions.
Market State Analysis: Combine SEMM with other indicators or chart patterns to confirm the market's state—whether it's trending, ranging, or transitioning between states.
Risk Management: Consider high SEMM values as a signal to be cautious, as they suggest increased market unpredictability.
Example Usage Instructions
Add the Indicator: Apply the "Approximate Spectral Entropy-Based Market Momentum (SEMM)" indicator to your chart.
Adjust Parameters: Modify the length parameter to suit your trading timeframe. Shorter lengths are more responsive, while longer lengths smooth out the signal.
Analyze the Output: Observe the blue line for entropy and the red line for SEMM. Look for divergences or confirmations with price action to guide your trades.
Combine with Other Tools: Use SEMM alongside moving averages, support/resistance levels, or other indicators to build a comprehensive trading strategy.
BE-NSE-Distributed Straddle Intraday Trading StrategyHerewith publishing the script (not the Indicator!) for the benift of Option Traders. I call this a script as this doesn't perform any kind of analysis of candle data and provide general BUY | SELL information. This Script is based on the TRUE VALUES concept which is nothing but LTP.
Idea Behind this Script:
As an option seller i need the lower risk option premium to trade. so that, time can work in our favor. basic question which we get at the first is which option to choose out of many available.
If traders feel the question is apt then this script is for them.
Logic Behind this script:
Upon Market Open, script in the BACKEND ( Under the hood ) deployes 60 possible combinations of STRADDLES for sampling, and continue to monitor the LTP movements and compares it against opposite pairs. lets say out of 30 Straddle options one of the Straddle it picked is ATM CE VS ATM PE. for 1 rs move in underlying how much impact is happening in CE VS PE.
This simple anlysis is done at every 30 seconds. once the Analysis is complete it picks 4 options 2 on the CALL side and 2 on the PUT side, which script feels the movement of prices are smooth. SMOOTH refers that time decay that can work in our favor..
Calculations behid the script:
lets say BNF LTP is 52000 at 9:20 AM, and one of the pair script took for sampling was ATM CE vs PE which are having the LTP of 100 each.
At 9:35 AM, BNF is trading at 52075, and ATM CE is reading the LTP of 122 and ATM PUT is reading the LTP of 70. ideally LTP of Call should be around 135 and Put should be around 65 considering the usual delta of 0.48 . Net Money Index for this Pair Sample is 8
Call Side => 100 - 122 = -22
Put Side => 100 - 70 = 30
Money Index => 30 - 22 = 8 for 15 Min
This Money index is calculated across choosen samples and the Option strikes is provided as an output which has mere possiblity of working in Options Seller's favor.
How to Read the Output:
For the choosen strikes from the time of Entry (Suggested Entry time by script) till the current time, the bottom pane plots the Money index as columns. Green Columns indicate that how much option premium eroded due to time decay. Red Columns indicate that how much Option premium increased during the time.
Note: Script dynamically calculate the strikes and suggests in realtime.
WARNING or a Humble Request:
For those who don't understand the word "Repaint" how it works in Pine Script. plz don't consider using this script. For those who wish to understand I have kept the Observer mode in the settings which shall guide you on why the Money Index shown on the chart when the MARKET IS CLOSED is different than when the MARKET IS OPEN (Realtime).
Disclaimer:
I have tested the script only in BNF and not sure if this works on Nifty, FinNifty or others. you may still try and plz do provide the feedback for improvising the script.
----- BreathEasy --------
The information contained in my scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators/ideas are only for educational purposes!
AlgoBuilder [Trend-Following] | FractalystWhat's the strategy's purpose and functionality?
This strategy is designed for both traders and investors looking to rely on and trade based on historical and backtested data using automation. The main goal is to build profitable trend-following strategies that outperform the underlying asset in terms of returns while minimizing drawdown. For example, as for a benchmark, if the S&P 500 (SPX) has achieved an estimated 10% annual return with a maximum drawdown of -57% over the past 20 years, using this strategy with different entry and exit techniques, users can potentially seek ways to achieve a higher Compound Annual Growth Rate (CAGR) while maintaining a lower maximum drawdown.
Although the strategy can be applied to all markets and timeframes, it is most effective on stocks, indices, future markets, cryptocurrencies, and commodities and JPY currency pairs given their trending behaviors.
In trending market conditions, the strategy employs a combination of moving averages and diverse entry models to identify and capitalize on upward market movements. It integrates market structure-based trailing stop-loss mechanisms across different timeframes and provides exit techniques, including percentage-based and risk-reward (RR) based take profit levels.
Additionally, the strategy has also a feature that includes a built-in probability and sentiment function for traders who want to implement probabilities and market sentiment right into their trading strategies.
Performance summary, weekly, and monthly tables enable quick visualization of performance metrics like net profit, maximum drawdown, compound annual growth rate (CAGR), profit factor, average trade, average risk-reward ratio (RR), and more. This aids optimization to meet specific goals and risk tolerance levels effectively.
-----
How does the strategy perform for both investors and traders?
The strategy has two main modes, tailored for different market participants: Traders and Investors.
Trading:
1. Trading (1x):
- Designed for traders looking to capitalize on bullish trending markets.
- Utilizes a percentage risk per trade to manage risk and optimize returns.
- Suitable for active trading with a focus on trend-following and risk management.
- (1x) This mode ensures no stacking of positions, allowing for only one running position or trade at a time.
◓: Mode | %: Risk percentage per trade
2. Trading (2x):
Similar to the 1x mode but allows for two pyramiding entries.
This approach enables traders to increase their position size as the trade moves in their favor, potentially enhancing profits during strong bullish trends.
◓: Mode | %: Risk percentage per trade
3. Investing:
- Geared towards investors who aim to capitalize on bullish trending markets without using leverage while mitigating the asset's maximum drawdown.
- Utilizes 100% of the equity to buy, hold, and manage the asset.
- Focuses on long-term growth and capital appreciation by fully investing in the asset during bullish conditions.
- ◓: Mode | %: Risk not applied (In investing mode, the strategy uses 100% of equity to buy the asset)
-----
What's the purpose of using moving averages in this strategy? What are the underlying calculations?
Using moving averages is a widely-used technique to trade with the trend.
The main purpose of using moving averages in this strategy is to filter out bearish price action and to only take trades when the price is trading ABOVE specified moving averages.
The script uses different types of moving averages with user-adjustable timeframes and periods/lengths, allowing traders to try out different variations to maximize strategy performance and minimize drawdowns.
By applying these calculations, the strategy effectively identifies bullish trends and avoids market conditions that are not conducive to profitable trades.
The MA filter allows traders to choose whether they want a specific moving average above or below another one as their entry condition.
This comparison filter can be turned on (>/<) or off.
For example, you can set the filter so that MA#1 > MA#2, meaning the first moving average must be above the second one before the script looks for entry conditions. This adds an extra layer of trend confirmation, ensuring that trades are only taken in more favorable market conditions.
MA #1: Fast MA | MA #2: Medium MA | MA #3: Slow MA
⍺: MA Period | Σ: MA Timeframe
-----
What entry modes are used in this strategy? What are the underlying calculations?
The strategy by default uses two different techniques for the entry criteria with user-adjustable left and right bars: Breakout and Fractal.
1. Breakout Entries :
- The strategy looks for pivot high points with a default period of 3.
- It stores the most recent high level in a variable.
- When the price crosses above this most recent level, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot high left bars period | ◨: Pivot high right bars period
2. Fractal Entries :
- The strategy looks for pivot low points with a default period of 3.
- When a pivot low is detected, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot low left bars period | ◨: Pivot low right bars period
By utilizing these entry modes, the strategy aims to capitalize on bullish price movements while ensuring that the necessary conditions are met to validate the entry points.
-----
What type of stop-loss identification method are used in this strategy? What are the underlying calculations?
Initial Stop-Loss:
1. ATR Based:
The Average True Range (ATR) is a method used in technical analysis to measure volatility. It is not used to indicate the direction of price but to measure volatility, especially volatility caused by price gaps or limit moves.
Calculation:
- To calculate the ATR, the True Range (TR) first needs to be identified. The TR takes into account the most current period high/low range as well as the previous period close.
The True Range is the largest of the following:
- Current Period High minus Current Period Low
- Absolute Value of Current Period High minus Previous Period Close
- Absolute Value of Current Period Low minus Previous Period Close
- The ATR is then calculated as the moving average of the TR over a specified period. (The default period is 14).
Example - ATR (14) * 1.5
⍺: ATR period | Σ: ATR Multiplier
2. ADR Based:
The Average Day Range (ADR) is an indicator that measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
Calculation:
- To calculate the ADR for a particular day:
- Calculate the average of the high prices over a specified number of days.
- Calculate the average of the low prices over the same number of days.
- Find the difference between these average values.
- The default period for calculating the ADR is 14 days. A shorter period may introduce more noise, while a longer period may be slower to react to new market movements.
Example - ADR (14) * 1.5
⍺: ADR period | Σ: ADR Multiplier
Application in Strategy:
- The strategy calculates the current bar's ADR/ATR with a user-defined period.
- It then multiplies the ADR/ATR by a user-defined multiplier to determine the initial stop-loss level.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop.
Trailing Stop-Loss:
One of the key elements of this strategy is its ability to detec buyside and sellside liquidity levels across multiple timeframes to trail the stop-loss once the trade is in running profits.
By utilizing this approach, the strategy allows enough room for price to run.
There are two built-in trailing stop-loss (SL) options you can choose from while in a trade:
1. External Trailing Stop-Loss:
- Uses sell-side liquidity to trail your stop-loss, allowing price to consolidate before continuation. This method is less aggressive and provides more room for price fluctuations.
Example - External - Wick below the trailing SL - 12H trailing timeframe
⍺: Exit type | Σ: Trailing stop-loss timeframe
2. Internal Trailing Stop-Loss:
- Uses the most recent swing low with a period of 2 to trail your stop-loss. This method is more aggressive compared to the external trailing stop-loss, as it tightens the stop-loss closer to the current price action.
Example - Internal - Close below the trailing SL - 6H trailing timeframe
⍺: Exit type | Σ: Trailing stop-loss timeframe
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance.
-----
What type of break-even and take profit identification methods are used in this strategy? What are the underlying calculations?
For Break-Even:
- You can choose to set a break-even level at which your initial stop-loss moves to the entry price as soon as it hits, and your trailing stop-loss gets activated (if enabled).
- You can select either a percentage (%) or risk-to-reward (RR) based break-even, allowing you to set your break-even level as a percentage amount above the entry price or based on RR.
For TP1 (Take Profit 1):
- You can choose to set a take profit level at which your position gets fully closed or 50% if the TP2 boolean is enabled.
- Similar to break-even, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP1 level as a percentage amount above the entry price or based on RR.
For TP2 (Take Profit 2):
- You can choose to set a take profit level at which your position gets fully closed.
- As with break-even and TP1, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP2 level as a percentage amount above the entry price or based on RR.
The underlying calculations involve determining the price levels at which these actions are triggered. For break-even, it moves the initial stop-loss to the entry price and activate the trailing stop-loss once the break-even level is reached.
For TP1 and TP2, it's specifying the price levels at which the position is partially or fully closed based on the chosen method (percentage or RR) above the entry price.
These calculations are crucial for managing risk and optimizing profitability in the strategy.
⍺: BE/TP type (%/RR) | Σ: how many RR/% above the current price
-----
What's the ADR filter? What does it do? What are the underlying calculations?
The Average Day Range (ADR) measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
The period of the ADR filter used in this strategy is tied to the same period you've used for your initial stop-loss.
Users can define the minimum ADR they want to be met before the script looks for entry conditions.
ADR Bias Filter:
- Compares the current bar ADR with the ADR (Defined by user):
- If the current ADR is higher, it indicates that volatility has increased compared to ADR (DbU).(⬆)
- If the current ADR is lower, it indicates that volatility has decreased compared to ADR (DbU).(⬇)
Calculations:
1. Calculate ADR:
- Average the high prices over the specified period.
- Average the low prices over the same period.
- Find the difference between these average values in %.
2. Current ADR vs. ADR (DbU):
- Calculate the ADR for the current bar.
- Calculate the ADR (DbU).
- Compare the two values to determine if volatility has increased or decreased.
By using the ADR filter, the strategy ensures that trades are only taken in favorable market conditions where volatility meets the user's defined threshold, thus optimizing entry conditions and potentially improving the overall performance of the strategy.
>: Minimum required ADR for entry | %: Current ADR comparison to ADR of 14 days ago.
-----
What's the probability filter? What are the underlying calculations?
The probability filter is designed to enhance trade entries by using buyside liquidity and probability analysis to filter out unfavorable conditions.
This filter helps in identifying optimal entry points where the likelihood of a profitable trade is higher.
Calculations:
1. Understanding Swing highs and Swing Lows
Swing High: A Swing High is formed when there is a high with 2 lower highs to the left and right.
Swing Low: A Swing Low is formed when there is a low with 2 higher lows to the left and right.
2. Understanding the purpose and the underlying calculations behind Buyside, Sellside and Equilibrium levels.
3. Understanding probability calculations
1. Upon the formation of a new range, the script waits for the price to reach and tap into equilibrium or the 50% level. Status: "⏸" - Inactive
2. Once equilibrium is tapped into, the equilibrium status becomes activated and it waits for either liquidity side to be hit. Status: "▶" - Active
3. If the buyside liquidity is hit, the script adds to the count of successful buyside liquidity occurrences. Similarly, if the sellside is tapped, it records successful sellside liquidity occurrences.
5. Finally, the number of successful occurrences for each side is divided by the overall count individually to calculate the range probabilities.
Note: The calculations are performed independently for each directional range. A range is considered bearish if the previous breakout was through a sellside liquidity. Conversely, a range is considered bullish if the most recent breakout was through a buyside liquidity.
Example - BSL > 50%
-----
What's the sentiment Filter? What are the underlying calculations?
Sentiment filter aims to calculate the percentage level of bullish or bearish fluctuations within equally divided price sections, in the latest price range.
Calculations:
This filter calculates the current sentiment by identifying the highest swing high and the lowest swing low, then evenly dividing the distance between them into percentage amounts. If the price is above the 50% mark, it indicates bullishness, whereas if it's below 50%, it suggests bearishness.
Sentiment Bias Identification:
Bullish Bias: The current price is trading above the 50% daily range.
Bearish Bias: The current price is trading below the 50% daily range.
Example - Sentiment Enabled | Bullish degree above 50% | Bullish sentimental bias
>: Minimum required sentiment for entry | %: Current sentimental degree in a (Bullish/Bearish) sentimental bias
-----
What's the range length Filter? What are the underlying calculations?
The range length filter identifies the price distance between buyside and sellside liquidity levels in percentage terms. When enabled, the script only looks for entries when the minimum range length is met. This helps ensure that trades are taken in markets with sufficient price movement.
Calculations:
Range Length (%) = ( ( Buyside Level − Sellside Level ) / Current Price ) ×100
Range Bias Identification:
Bullish Bias: The current range price has broken above the previous external swing high.
Bearish Bias: The current range price has broken below the previous external swing low.
Example - Range length filter is enabled | Range must be above 5% | Price must be in a bearish range
>: Minimum required range length for entry | %: Current range length percentage in a (Bullish/Bearish) range
-----
What's the day filter Filter, what does it do?
The day filter allows users to customize the session time and choose the specific days they want to include in the strategy session. This helps traders tailor their strategies to particular trading sessions or days of the week when they believe the market conditions are more favorable for their trading style.
Customize Session Time:
Users can define the start and end times for the trading session.
This allows the strategy to only consider trades within the specified time window, focusing on periods of higher market activity or preferred trading hours.
Select Days:
Users can select which days of the week to include in the strategy.
This feature is useful for excluding days with historically lower volatility or unfavorable trading conditions (e.g., Mondays or Fridays).
Benefits:
Focus on Optimal Trading Periods:
By customizing session times and days, traders can focus on periods when the market is more likely to present profitable opportunities.
Avoid Unfavorable Conditions:
Excluding specific days or times can help avoid trading during periods of low liquidity or high unpredictability, such as major news events or holidays.
Increased Flexibility: The filter provides increased flexibility, allowing traders to adapt the strategy to their specific needs and preferences.
Example - Day filter | Session Filter
θ: Session time | Exchange time-zone
-----
What tables are available in this script?
Table Type:
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades, Compound Annual Growth Rate (CAGR), MAR and more.
CAGR: It calculates the 'Compound Annual Growth Rate' first and last taken trades on your chart. The CAGR is a notional, annualized growth rate that assumes all profits are reinvested. It only takes into account the prices of the two end points — not drawdowns, so it does not calculate risk. It can be used as a yardstick to compare the performance of two strategies. Since it annualizes values, it requires a minimum 4H timeframe to display the CAGR value. annualizing returns over smaller periods of times doesn't produce very meaningful figures.
MAR: Measure of return adjusted for risk: CAGR divided by Max Drawdown. Indicates how comfortable the system might be to trade. Higher than 0.5 is ideal, 1.0 and above is very good, and anything above 3.0 should be considered suspicious and you need to make sure the total number of trades are high enough by running a Deep Backtest in strategy tester. (available for TradingView Premium users.)
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most trend-following successful strategies have a percent profitability of 15-40% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- OFF: Hides the performance table.
Labels:
- OFF: Hides labels in the performance table.
- PnL: Shows the profit and loss of each trade individually, providing detailed insights into the performance of each trade.
- Range: Shows the range length and Average Day Range (ADR), offering additional context about market conditions during each trade.
Profit Color:
- Allows users to set the color for representing profit in the performance table, helping to quickly distinguish profitable periods.
Loss Color:
- Allows users to set the color for representing loss in the performance table, helping to quickly identify loss-making periods.
These customizable tables provide traders with flexible and detailed performance analysis, aiding in better strategy evaluation and optimization.
-----
User-input styles and customizations:
To facilitate studying historical data, all conditions and rules can be applied to your charts. By plotting background colors on your charts, you'll be able to identify what worked and what didn't in certain market conditions.
Please note that all background colors in the style are disabled by default to enhance visualization.
-----
How to Use This Algobuilder to Create a Profitable Edge and System:
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker or prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 100 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade value is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, MAR (Mar Ratio), CAGR (Compound Annual Growth Rate), and net profit with minimum drawdown. Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
Automation:
- Once you’re confident in your strategy, you can use the automation section to connect the algorithm to your broker or prop firm.
- Trade a fully automated and backtested trading strategy, allowing for hands-free execution and management.
-----
What makes this strategy original?
1. Incorporating direct integration of probabilities into the strategy.
2. Leveraging market sentiment to construct a profitable approach.
3. Utilizing built-in market structure-based trailing stop-loss mechanisms across various timeframes.
4. Offering both investing and trading strategies, facilitating optimization from different perspectives.
5. Automation for efficient execution.
6. Providing a summary table for instant access to key parameters of the strategy.
-----
How to use automation?
For Traders:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Enter your PineConnector License ID in the designated field.
3. Specify the desired risk level.
4. Provide the Metatrader symbol.
5. Check for chart updates to ensure the automation table appears on the top right corner, displaying your License ID, risk, and symbol.
6. Set up an alert with the strategy selected as Condition and the Message as {{strategy.order.alert_message}}.
7. Activate the Webhook URL in the Notifications section, setting it as the official PineConnector webhook address.
8. Double-check all settings on PineConnector to ensure the connection is successful.
9. Create the alert for entry/exit automation.
For Investors:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Choose "Investing" in the user-input settings.
3. Create an alert with a specified name.
4. Customize the notifications tab to receive alerts via email.
5. Buying/selling alerts will be triggered instantly upon entry or exit order execution.
----
Strategy Properties
This script backtest is done on 4H COINBASE:BTCUSD , using the following backtesting properties:
Balance: $5000
Order Size: 10% of the equity
Risk % per trade: 1%
Commission: 0.04% (Default commission percentage according to TradingView competitions rules)
Slippage: 75 ticks
Pyramiding: 2
-----
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
[Support and Resistance with Trend Lines] with Backtest (TSO) with Backtest (TSO)
===========================================================================
===========================================================================
This indicator serves as a comprehensive full-cycle trading system, providing alerts at each stage of the trade, from opening to closure. The algorithm uses most recent and historical S&R (Support and Resistance) levels with most recent and historical Trend Lines, generating signals for trades when Breaks/Bounces occur (Trade Open Signal triggers can be configured via very customizable indicator Input "Signal Trigger Matrix" settings). With signal for trade open, TP (Take Profit and SL (Stop Loss) levels are calculated as well and marked on the chart including alerts for each action of the trade. The indicator offers a variety of automated approaches for TP (Take-Profit) and SL (Stop-Loss) settings. These include static current/historical S&R (Support and Resistance) levels or S&R/Trend Lines dynamic breaks for TP (Take-Profit) and various SL (Stop-Loss) approaches, including ATR Trailing SL, opposite S&R (Support and Resistance) levels SL, opposite Trend Lines SL and more. This diverse set of tools ensure flexibility in tailoring TP (Take-Profit) and SL (Stop-Loss) parameters to different market conditions, contributing to a more adaptive and robust trading system. Additionally, a series of signal analysis tools, including market sentiment, candle bar analysis, divergence, and volume, enhance the precision of trading signals.
* Works with popular timeframes: 1M, 3M, 5M, 15M, 30M, 45M, 1H.
* Works well with Futures and Indices, can be used to trade Stocks, Crypto and FOREX.
* Includes LIVE alert/labels Breakouts and Bounces signal trigger feature, which can be used for scalping (NOTE: This approach cannot be backtested).
* Every action of the trade is calculated on a confirmed closed candle bar state (barstate.isconfirmed), so the indicator will never repaint.
==============================================================
Indicator examples:
---------------------------------------------------------------------------
Strategy Config: SRTL_MES_15M3Y_EODoff_ALL
Here is a nice example of MES (Micro E-Mini S&P 500 Index Futures) configuration, which uses S&R (Support and Resistance) breakouts as signal trigger with Elliot Wave confirmation and previous S&R historical levels for TP (Take-Profit).
---------------------------------------------------------------------------
An example of an intraday Tesla trade. Also the green arrows will be displayed IMMEDIATELY when Breakout/Reverse Bounce occurs (same an Alert will be triggered immediately).
===========================================================================
Trading open/close/TP/SL labels, plots and colors explanations:
---------------------------------------------------------------------------
>>> S&R (Support and Resistance) levels/lines: orange - support, blue - resistance (can be hidden).
>>> Trend Lines: yellow - support, green - resistance (can be hidden).
>>> Blue labels show resistance breakouts and bounces, light-blue - bullish, dark-blue - bearish
>>> Yellow labels show resistance breakouts and bounces, light-yellow - bullish, dark-yellow - bearish
>>> Green/Red arrows on top/bottom of candle bar will show LIVE breakouts (if turned on)
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
STATS TABLE ///////////////////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading STATS table on the chart showing current trade direction, Last TP (Take-Profit) Taken, Current Trade PL (profit/loss in price difference from trade open to the very current state).
---------------------------------------------------------------------------
CUSTOM TRADING DATE RANGE /////////////////////////////////////////////////
---------------------------------------------------------------------------
>>>>> This feature can be used to manually set indicator trading range from and to a specific date and time. NOTE: This is not intended for a very long date range backtesting, utilize TradingView Strategy Tester for that.
* Use TradingView “Strategy Tester” to see Backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case - manually check “Start”/“End” dates or use “Deep Backtesting” feature!
---------------------------------------------------------------------------
INTRADAY ACTIVE TRADING SESSION CONFIGURATION /////////////////////////////
---------------------------------------------------------------------------
>>> Regional Active Trading Session Hours Schedule: If selected - trades will only open during regional active trading session, if 'OFF', there will be no trading schedule and trades will open 24/7.
>>> EOD(End of Day) Close - On/Off: Close the trade if it's still open at the end of active trading session (on the very last candle bar). NOTE: If no region is selected at 'Regional Active Trading Session Schedule' - there will be no EOD(End of Day) Close and trades will run overnight until either SL(Stop-Loss) or TP(Take-Profit) is hit!
>>>>> EOD(End of Day) Close - 1 candle bar before last: This is specifically for stocks as while usually indices can be closed 15minutes after the market closes, for stocks - the last candle bar closes at the same time with the market active trading session, which if closed - trades can't be closed until next day/session! Enable this setting for the trade to close/alert 1 candle bar before the last one, so there is still time to close the trade at the Broker (NOTE: depending on the timeframe, 1 candle bar can be: 15sec, 30sec, 1min, 3min, 5min, 15min, 30min, 45min, 1h).
---------------------------------------------------------------------------
SIGNAL TRIGGER MATRIX ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading Engine: This setting turns on TradingView Strategy trading engine for backtesting.
>>> Market Session Only: With this setting turned on, all signal trigger Breaks/Bounces will be hidden during Pre/Post market time.
>>> Plot S&R Levels/Lines: Plot S&R (Support and Resistance) on chart. Note: historical levels/lines will only be plotted if hit (Break/Bounce).
>>> Plot Trend Lines Levels/Lines: Plot Trend Lines levels/lines on chart. Note: historical levels/lines will only be plotted if hit (Break/Bounce).
>>> Use S&R Current Levels | Use S&R Historical Levels | Use Trend Lines Current Levels | Use Trend Lines Historical Levels |: Choose which levels should be used for Breaks/Bounces to be captured on. If all triggers are turned on/checked - whatever happens 1st wins the trigger.
>>> Breaks | Bounces: 'Breaks': Turn on Breaks through levels/lines signal trigger. | 'Bounces': Turn on Bounces off levels/lines signal trigger.
>>> Signal: Regular | Signal: S&R Combo | Signal: TL Combo | Signal: S&R + TL Combo | Signal: Repeat Action |: Trade open signal trigger execution approach MATRIX (If 1 or more turned on at the same time - whatever comes first will be the trade signal trigger). 'Regular': A single Break/Bounce must occur on a closed bar for signal trigger. 'S&R Combo': A combination of 2 Current + Historical S&R (Support and Resistance) Break/Bounce must happen in the same direction on same bar for signal trigger. 'TL Combo': A combination of 2 Current + Historical Trend Lines Break/Bounce must happen in the same direction on same bar for signal trigger. 'S&R + TL Combo': a combination of ANY S&R and Trend Line Break/Bounce must happen in the same direction on same bar for signal trigger. 'Repeat Action': Initial and then confirmation (2nd/3rd/etc. consecutive occurence) Break/Bounce must occur on same level/line for signal trigger.
>>> Historical - Look Back (# of days): How far back (in # of days) will historical S&R/Trend Lines will be used for Trade Open signals/TP/SL/etc.
>>> Historical - Look Back Invalidation (# of days): IF THERE IS TOO MUCH HISTORICAL LEVELS/LINES ON CHART - LOWER THIS SETTING + MAKE SURE IT'S SMALLER THAN 'Historical - Look Back (# of days)'. With big Look back period (5+ days) - it can become very messy with too many historical levels/lines. To clear oldest historical levels/lines - set Look Back Invalidation # of days to less than Historical Look Back # of days. (After X # of Look Back Invalidation days - older levels/lines will become invalidated and no longer used for opening trades/TP (Take-Profit)/SL (Stop-Loss), while newer levels/lines will still be discovered.
>>> S&R/Trend Lines - Support/Resistance combined into 1 entity: Every level or a line becomes simply a level or a line, regardless if it originally was a support or resistance. By default, depending on the level/line originally being support or resistance - the signal direction will be such as: Resistance is broken > LONG / bounced > SHORT; Support is broken > SHORT / bounced > LONG; with this setting on, either level or line can be both broken or bounced off in ANY direction, trade open direction will depend on current market sentiment only.
---------------------------------------------------------------------------
S&R CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> S&R Search - Left Bars (current): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars).
>>> S&R Search - Right Bars (current): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars).
>>> S&R Search - Custom Resolution (current): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> S&R Search - Left Bars (historical): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars).
>>> S&R Search - Right Bars (historical): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars).
>>> S&R Search - Custom Resolution (historical): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> S&R - Historical S&R Levels - Extend to the right: Extend all S&R lines to the right.
>>> S&R (Current/Historical) - Live Breakout/Bounce - ALERT/SHOW: NOTE: Alert wlil trigger immediately at price Breaking thru or Bouncing off level/line and an arrow above /below the bar will show the direction of breakout/bounce. If on that same live bar - price comes back causing the Breakout/Bounce become no longer valid - the arrow will disappear as the condition of the Break/Bounce will no longer be valid.
---------------------------------------------------------------------------
TREND LINES CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Show: Trend Line development (where it 'did not exist' yet): It takes 2 pivots to develop a trend line, pivot is established at least 3 candle bars later from where the pivot is. With this setting turned on - it will plot dashed lines where trend lines originated connecting the 1st and 2nd pivot point up to where the trend line became established (where in reality you would now be able to draw a certain trend line). Established already generated trend line are plotted with a solid line.
>>> Trend Lines - Line Slope Confirmation: LONG breakout will only be shown if trend line is goind downslope \. SHORT breakout will only be shown if trend line is goind upslope /.
>>> Trend Lines - Search - Left Bars (current): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Search - Right Bars (current): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Custom Resolution (current): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> Trend Lines - Search - Left Bars (historical): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Search - Right Bars (historical): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Custom Resolution (historical): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> Trend Lines - Historical Trend Lines - Extend to the right: Extend all Trend Lines to the right.
>>> Trend Lines (Current/Historical) - Live Breakout/Bounce - ALERT/SHOW: NOTE: Alert will trigger immediately at price Breaking thru or Bouncing off level/line and an arrow above /below the bar will show the direction of breakout/bounce. If on that same live bar - price comes back causing the Breakout/Bounce become no longer valid - the arrow will disappear as the condition of the Break/Bounce will no longer be valid.
---------------------------------------------------------------------------
TAKE-PROFIT/STOP-LOSS CONFIGURATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> TP (Take-Profit) System: 'S&R Static Current/Historical': TP (Take-Profit) is calculated using current/historical S&R (Support & Resistance) levels at trade open and remains static. 'S&R/Trend Lines Dynamic Breaks': TP (Take-Profit) is fully dynamic and will be trigger at price above trade open price and with Breakout occurence (S&R or Trend Line current/historical breakout).
>>> TP (Take-Profit) # of targets: It is wise to divide the trade into several profit targets. With this setting - up to 5 TP (Take-Profit) targets can be approached. The trade will be equally divided up by the selected # of TP (Take-Profit) targets.
>>> SL (Stop-Loss) System: 'ATR-Trailing-SL': SL (Stop-Loss) is trail-following the ATR (Average True Range) line, NOTE: If at signal trigger, ATR will be against the trade direction - trade open signal will be skipped; 'S&R-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent S&R level and remains there until trade closes; 'TrendLines-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent trend line and remains there until trade closes; 'TrendLines-Dynamic-SL': SL (Stop-Loss) will be set per current opposite trend line and follow it until trade is open.; 'Oppos-Sig-Trd-in-Loss': SL (Stop-Loss) will trigger at opposite signal with trade currently at loss.
>>> SL (Stop-Loss) - On/Off: Without SL (Stop-Loss), unless EOD (End of Day) Close is turned on - there will be no SL (Stop-Loss) at all!
---------------------------------------------------------------------------
MARKET SENTIMENT CONFIRMATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> Market Sentiment: Signal is confirmed per Market Sentiment direction. If Market Sentiment is turned off - whatever signal comes 1st will be the trade open trigger.
---------------------------------------------------------------------------
SIGNAL ANALYSIS AND CLEANUP ///////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Signal Cleanup - Bar Color: Include Bar Color (bullish/bearish) confirmation, LONG signal will only be opened if signal bar is green/bullish, SHORT if red/bearish.
>>> Signal Cleanup - Bar Directional Structure: Skip opposite bar structure types signals (For example: bearish green hammer).
>>> Signal Cleanup - Bar Doji Skip: Skip doji (indecisive) candles signals.
>>> Signal Cleanup - EWO (Elliott Wave Oscillator): Include EWO (Elliott Wave Oscillator), LONG will only be opened if EWO is bullish / SHORT if EWO is bearish.
>>> Signal Cleanup - VWAP (Volume-Weighted Average Price): Include VWAP (Volume-Weighted Average Price), LONG will only be opened if price is above VWAP / SHORT if price is below VWAP.
>>> Signal Cleanup - MA (Moving Average) Confirmation: Include MA (Moving Average), LONG will only be opened if MA is bullish / SHORT if MA is bearish.
>>> Signal Cleanup - ATR (Average True Range): Include ATR (Average True Range) confirmation, LONG will only be opened if ATR is bullish / SHORT if ATR is bearish.
>>> Signal Cleanup - Divergence(RSI + MACD): Include Divergence (RSI + MACD ) confirmation, LONG will only be opened if Divergence is bullish / SHORT if Divergence is bearish.
>>> Signal Cleanup - Volume % Strength: Include Volume strength/percentage confirmation, LONG/SHORT will only be opened with strong Volume matching the signal direction | By default, strong Volume percentage is set to 150% and weak to 50%.
>>> Signal Cleanup - Volume Above Average: Include Volume Above Moving Average (Volume closing bar closes above volume moving average) confirmation, LONG/SHORT will only be opened with Volume above average - Volume closed bar color must match the closed price color (bullish/bearish direction) + Volume bar must be closed above volume MA line).
---------------------------------------------------------------------------
===========================================================================
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
TP System - VERY IMPORTANT INFO!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" - amount by which current trade/position needs to be reduced/partially closed/sold.
-------------------------------------------------------------------------------------------------------------------
TP System: Dynamic
"TP PERCENTAGE" - will always be the same amount (trade/position size divided by the # of take-profit(TP) targets) and percentage to be closed will always be of the ORIGINAL trade/position.
-------------------------------------------------------------------------------------------------------------------
TP System: Static
"TP PERCENTAGE" - will always be the same amount IF take-profit(TP) targets are hit 1-by-1 (TP1 > TP2 > TP3 > TP4 > TP5), otherwise it will vary and unless it is a 1st take-profit(TP1), the REMAINING trade/position size will always be smaller than original and therefore the percentage to be closed will always be of the REMAINING trade/position and NOT the original one!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" CheatSheet (these are the only percentages you may see)
-----------------------------------------------------------------------
TP PERCENTAGE---Close/Sell Amount-------------Example (trade size: 50 stocks)
20%-------------trade size * 0.2--------------50 * 0.2 = 10 stocks
25%-------------trade size * 0.25-------------50 * 0.25 = 12.5(~13) stocks
34%-------------trade size * 0.34-------------50 * 0.34 = 17 stocks
40%-------------trade size * 0.4--------------50 * 0.4 = 20 stocks
50%-------------trade size * 0.5--------------50 * 0.5 = 25 stocks
60%-------------trade size * 0.6--------------50 * 0.6 = 30 stocks
66%-------------trade size * 0.66-------------50 * 0.66 = 33 stocks
75%-------------trade size * 0.75-------------50 * 0.75 = 37.5(~38) stocks
80%-------------trade size * 0.8--------------50 * 0.8 = 40 stocks
100%------------trade size--------------------50 = 50 stocks
-----------------------------------------------------------------------
If for any reason a portion of the current/remaining trade closed at such occurrence was slightly wrong, it is not an issue. Such occurrences are rare and with slight difference in partial TP closed is not significant to overall performance of our algorithms.
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like.
NOTE: Each label , , etc. is customizable, you can change the text of it within indicator Input settings.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
TP4: 22500
TP5: 23500
SL: 19000
Leverage: 0
---------------------------------------------------------------------------
Here is how a TP1 alert will look with 5 TPs breakdown of the trade.
NOTE1: Next to TP1 taken it will show at which price it was triggered.
NOTE2: Next to "TP Percentage" it shows how much of the CURRENT/ACTIVE/REMAINING trade needs to be closed.
NOTE2: If TP2/3/4/5 comes before TP1 - the alert will tell you exactly how many percent of the trade needs to be closed!
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: TP1
TP1: 20500
TP Percentage: 20%
---------------------------------------------------------------------------
Here is how an alert will look for LONG - STOP-LOSS.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
ENTRY: 20000
LONG: SL
SL: 19000
---------------------------------------------------------------------------
Here is how an alert will look for LONG - EOD (End of Day) In Profit close.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: EOD-Close (profit)
ENTRY: 20000
EOD-Close: 21900
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Add indicator to chart and make sure the correct strategy is configured (check Backtesting results)
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "alert() function calls only", as other wise there will be 2 alerts for every alert!
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
---------------------------------------------------------------------------
NOTE: There seems to be a strange glitch when strategy is running live, it will show "double-take" take-profits labels on the chart. This is not affecting the script logic and backtesting results, if you simply change the timeframe real quick to something else then back - it will no longer show the duplicate orders... this must be some sort of a glitch as every alert was thoroughly tested to make sure everything is working!
Multi-Spectral RSI Deviations [AlgoAlpha]🌌 Multi-Spectral RSI Deviations by AlgoAlpha - Dive into Market Dynamics! 🌠
Dive deep into the essence of market trends with our 🚀 Multi-Spectral RSI Deviations indicator, a comprehensive tool designed by AlgoAlpha to enhance your trading strategy. By harnessing the power of multiple RSI lengths and innovative smoothing techniques, this indicator offers a unique perspective on market momentum and potential reversals.
🔍 Key Features:
🎨 Customizable up and down colors for immediate trend recognition.
🔢 Three RSI lengths for multi-layered market analysis.
🔄 Various Moving Average (MA) types including SMA, EMA, and more for tailored smoothing.
✅ Bullish and Bearish divergence plotting for spotting potential reversals.
🕵️♂️ Adjustable divergence sensitivity settings to fine-tune signal detection.
🔔 Built-in alerts for trend shifts and reversal conditions, ensuring you never miss a trading opportunity.
🚀 Quick Guide to Using the Multi-Spectral RSI Deviations Indicator
🛠 Add the Indicator: Search for "Multi-Spectral RSI Deviations" in TradingView's Indicators & Strategies. Adjust the RSI lengths and MA settings to suit your trading strategy.
🔍 Market Analysis: Keep an eye on the color changes for trend direction and use divergence plots to anticipate potential market reversals.
🔔 Alerts Setup: Activate the built-in alerts for trend shifts and reversals to stay ahead of the game without having to constantly monitor the charts.
🧠 How It Works:
At the core of the Multi-Spectral RSI Deviations indicator is its ability to analyze the market through various RSI lengths, providing a comprehensive view of momentum. The indicator calculates the Relative Strength Index (RSI) over three different periods, creating a spectrum of momentum insights. These RSI values are then compared to each other to identify the momentum shifts within the market.
To refine these insights, the differences between these RSI values are smoothed using a selected Moving Average type, such as SMA, EMA, etc., based on user preference. This smoothing process helps in highlighting the overall trend direction and potential reversal points with greater clarity.
Furthermore, the indicator employs a color-coding system, where the plotted line changes color based on the momentum's direction—shifting to an up color for positive momentum and a down color for negative momentum. This visual cue enables traders to quickly discern the market trend at a glance.
Divergences between the price action and the indicator's values are another cornerstone of this tool. By plotting potential bullish and bearish divergences, the indicator provides early signals of possible trend reversals, offering traders a strategic advantage.
Embrace the power of our 🌌 Multi-Spectral RSI Deviations and elevate your trading to stellar heights! 🌠✨
Arbitrage Spread v2 : 3 pairs + 3 charts [Arby.Trade]
This indicator allows you to track in real time the change in the spread (the difference in the exchange rate) between two assets for three trading pairs at the same time.
How does the indicator work?
In the indicator settings menu, the user selects two trading pairs, for example BTCUSDT on the Binance exchange and BTCUSDT on the Bybit exchange, after which the script will receive prices from both exchanges and compare them with each other, calculating the percentage deviation between prices (spread). This setting can be made for three trading pairs. Keep in mind that the script can only work with those assets and exchanges that are on board TradingView, and this is quite a lot.
According to the calculated value of spreads, the spread lines for three trading pairs are displayed on the screen. The spread lines move between values above zero and below. When the spread line is below zero, it means that the price of the asset on the first exchange is less than on the second. That is, by buying an asset on the first exchange and selling it on the second one, you can earn money (of course, it is important to take into account the commissions of the exchanges for these transactions). When the spread line is above zero, the opposite is true. When the spread is zero, the prices on both exchanges are the same and there is no arbitrage situation.
Indicator settings.
For a better visual representation of the current spread value, the indicator has the ability to set two threshold spread levels. The first threshold level is the level below which the spread is not interesting to the trader and he will not consider arbitrage deals. The second threshold level is the level of a particularly high spread. When the spread value exceeds the second threshold level, the spread values will be signed above the spread line, and the extreme values for the user-defined period of bars back will be additionally highlighted in a brighter color. Both threshold levels are displayed on the chart and the user can change their values in the indicator settings menu.
The script allows you to leave only one spread line on the chart for one of the three trading pairs, while maintaining the display of indicator tables for three trading pairs. The script also allows you to completely disable the display of unnecessary trading pairs.
If the volatility of the spread lines is too high and the spread lines from different trading pairs overlap each other, use the "Distance between charts" setting and increase its value until the display of all three charts becomes comfortable.
Alerts.
Additionally, you can set the threshold value of the spread, at which the script will send notifications from TradingView. We called it the Spread Signal Threshold. This threshold level has nothing to do with the visual thresholds described above. You can set a signal level exceeding the second visual threshold or make it lower, but it is important to understand that TradingView alerts will only be triggered if the Spread Signal Threshold is exceeded. This threshold level is common to all trading pairs, so notifications will be sent when this spread level is reached for any of the three trading pairs.
To set up alerts, open the "Alerts" tab in the TradingView menu on the right. Click the "Create Alert" button. Then, in the window that opens, select this indicator in the "Condition" line. After that, you can set a name for this alert and complete the notification setup by clicking the "Create" button.
We, the authors of this script, have been engaged in cryptocurrency arbitrage for a long time and, first of all, created it for ourselves and our daily arbitrage trading, but this does not prevent you from using it at your discretion for any types of assets and in any markets.
We have a lighter version of the indicator that allows you to track the spread for only one trading pair. If this indicator seems too heavy for you and your device, you can use a lighter version .
If, on the contrary, the capabilities of your hardware allow, do not forget that you can always add several copies of this indicator to your screen and simultaneously track not 3, but 6-9-12 and so on arbitrage pairs at the same time. ;)
--
Данный индикатор позволяет отслеживать в реальном времени изменение спреда (разницы в курсе) между двумя активами по трем торговым парам.
Как устроен индикатор?
В меню настроек индикатора пользователь выбирает две торговые пары, например BTCUSDT на бирже Binance и BTCUSDT на бирже Bybit, после чего скрипт получит цены с обеих бирж и сравнит их между собой, рассчитав процентное отклонение между ценами (спред). Такую настройку можно произвести для трех торговых пар. Учитывайте, что скрипт может работать только с теми активами и биржами, которые есть на борту TradingView, и это не мало.
По рассчитанному значению спредов на экран выводится линии спредов по трем торговым парам. Линии спредов двигаются между значениями то выше нуля, то ниже. Когда линия спреда ниже нуля это значит что цена на актив на первой бирже меньше, чем на второй. То есть, купив актив на первой бирже и продав его на второй можно заработать (конечно при этом важно учитывать комиссии бирж на совершение данных сделок). Когда линия спреда выше нуля - наоборот. Когда спред равен нулю - цены на обеих биржах одинаковы и арбитражная ситуация отсутствует.
Настройки индикатора.
Для лучшего визуального представления о текущем значении спреда индикатор имеет возможность задать два пороговых уровня спреда. Первый пороговый уровень – это уровень, ниже которого спред не интересен трейдеру и он не будет рассматривать арбитражные сделки. Второй пороговый уровень – это уровень особенно повышенного спреда. Когда значение спреда превышает второй пороговый уровень над линией спреда будут подписаны значения спреда, а экстремальные значения за заданный пользователем период баров назад будут дополнительно выделены более ярким цветом. Оба пороговых уровня отображаются на графике и пользователь может менять их значения в меню настроек индикатора.
Скрипт позволяет оставить на графике только одну линию спреда по одной из трех торговых пар, при этом сохранив отображение индикаторных таблиц по трем торговым парам. Также скрипт позволяет полностью отключить отображение ненужных торговых пар.
Если волатильность линий спреда слишком высока и линии спреда от разных торговых пар накладываются друг на друга воспользуйтесь настройкой «Distance between charts» и увеличивайте ее значение до тех пор пока отображение всех трех графиков не станет комфортным.
Уведомления.
Дополнительно можно настроить пороговое значение спреда, при достижении которого скрипт будет отправлять уведомления от TradingView. Мы назвали это Spread Signal Threshold. Этот пороговый уровень никак не связан с визуальными пороговыми уровнями, описанными выше. Вы можете задать сигнальный уровень превышающий второй визуальный пороговый уровень или сделать его ниже, но важно понимать, что оповещения TradingView будут срабатывать только от превышения именно Spread Signal Threshold. Этот пороговый уровень является общим для всех торговых пар, поэтому уведомления будут приходить при достижении этого уровня спреда по любой из трех торговых пар.
Для настройки оповещений откройте вкладку «Оповещения» в меню TradingView справа. Нажмите кнопку «Создать оповещение». Затем в открывшемся окне в строке «Условие» выберете данный индикатор. После чего вы можете задать название данному оповещению и завершить настройку оповещения, нажав кнопку «Создать».
Мы, авторы данного скрипта, давно занимаемся арбитражем криптовалюты и, в первую очередь, создавали его для себя и своей каждодневной арбитражной торговли, но это не мешает вам использовать его по своему усмотрению для любых видов активов и на любых рынках.
У нас есть более легкая версия индикатора, позволяющая отслеживать спред только по одной торговой паре. Если данный индикатор покажется для вас и вашего устройства слишком тяжелым вы можете воспользоваться более легкой версией .
Если, наоборот, возможности вашего железа позволяют, не забывайте, что вы всегда можете добавить себе на экран несколько копий этого индикатора и отслеживать одновременно не 3, а 6-9-12 и тд арбитражных пар одновременно. ;)
Enhanced Candle Sticks [AlgoAlpha]🚀🌟 Introducing the Enhanced Candle Sticks by AlgoAlpha, a Pine Script tool designed to provide traders with an enhanced view of market dynamics through candlestick analysis. This script aims to visualise if price has hit the high or low of the candle first, aiding in back-testing, and to identify smaller trends using market structure.📊🔍
Key Features:
Timeframe Flexibility: Users can select their desired timeframe for analysis, offering a range of options from M15 to H12. This flexibility allows for detailed and specific timeframe analysis.
Micro Trend Identification: The script includes an option to enable 'MicroTrends', giving traders insights into smaller movements and trends within the larger market context.
Customizable Visuals: Traders can customize the colors of bullish and bearish candlesticks, enhancing visual clarity and personalizing the chart to their preferences.
State Tracking: The script tracks the 'state' of the market on lower timeframes to detect if the high or the low was formed first.
Warning System: When the selected timeframe does not match the chart timeframe, the script generates a warning, ensuring accurate analysis and preventing potential misinterpretations.
Usages:
Enhanced Back-testing: Users can now get a more accurate interpretation of the candlesticks by know if the high or the low came first (denoted with ⩚ or ⩛), especially in scenarios where the high and the low of the larger timeframe candle is touching both the take-profit and stop-loss levels.
Squeeze Analysis: Users can identify squeezes in price when the microtrend shows both an uptrend and a downtrend, possibly giving more insight into the market.
Lower Timeframe Market Structure Analysis: Microtrends form when the low of the candle is consecutively increasing and the high is consecutively falling, which means on a lower timeframe, price is forming higher lows or lower highs.
Basic Logic Explanation:
- The script starts by setting up the necessary parameters and importing the required library. Users can customize the timeframe, colors, and whether to enable micro trends and candlestick plotting.
- It then calculates the lower timeframe (1/12th of the current timeframe) for more detailed analysis. The `minutes` function helps in converting the selected timeframe into minutes.
- The script tracks new bars and calculates the highest and lowest values within an hour, using `ta.highestSince` and `ta.lowestSince`.
- It determines the market 'state' by checking if the current high is breaking the previous high and if the current low is breaking the previous low on lower timeframes to determine if the high or the low was formed first.
- The script uses the `plotchar` and `plotcandle` functions to visually represent these trends and states on the chart. This visual representation is key for quick and effective analysis.
Alerts:
Alerts can be set for microtrend formations:
This script is a valuable tool for traders looking to deepen their market analysis with enhanced candlestick visualization and micro trend tracking. 📈🔶💡
Standardized Median Proximity [AlgoAlpha]Introducing the Standardized Median Proximity by AlgoAlpha 🚀📊 – a dynamic tool designed to enhance your trading strategy by analyzing price fluctuations relative to the median value. This indicator is built to provide clear visual cues on the price deviation from its median, allowing for a nuanced understanding of market trends and potential reversals.
🔍 Key Features:
1. 📈 Median Tracking: At the core of this indicator is the calculation of the median price over a specified lookback period. By evaluating the current price against this median, the indicator provides a sense of whether the price is trending above or below its recent median value.
medianValue = ta.median(priceSource, lookbackLength)
2. 🌡️ Normalization of Price Deviation: The deviation of the price from the median is normalized using standard deviation, ensuring that the indicator's readings are consistent and comparable across different time frames and instruments.
standardDeviation = ta.stdev(priceDeviation, 45)
normalizedValue = priceDeviation / (standardDeviation + standardDeviation)
3. 📌 Boundary Calculations: The indicator sets upper and lower boundaries based on the normalized values, helping to identify overbought and oversold conditions.
upperBoundary = ta.ema(positiveValues, lookbackLength) + ta.stdev(positiveValues, lookbackLength) * stdDevMultiplier
lowerBoundary = ta.ema(negativeValues, lookbackLength) - ta.stdev(negativeValues, lookbackLength) * stdDevMultiplier
4. 🎨 Visual Appeal and Clarity: With carefully chosen colors, the plots provide an intuitive and clear representation of market states. Rising trends are indicated in a shade of green, while falling trends are shown in red.
5. 🚨 Alert Conditions: Stay ahead of market movements with customizable alerts for trend shifts and impulse signals, enabling timely decisions.
alertcondition(ta.crossover(normalizedValue, 0), "Bullish Trend Shift", "Median Proximity Crossover Zero Line")
🔧 How to Use:
- 🎯 Set your preferred lookback lengths and standard deviation multipliers to tailor the indicator to your trading style.
- 💹 Utilize the boundary plots to understand potential overbought or oversold conditions.
- 📈 Analyze the color-coded column plots for quick insights into the market's direction relative to the median.
- ⏰ Set alerts to notify you of significant trend changes or conditions that match your trading criteria.
Basic Logic Explained:
- The indicator first calculates the median of the selected price source over your chosen lookback period. This median serves as a baseline for measuring price deviation.
- It then standardizes this deviation by dividing it by the standard deviation of the price deviation over a 45-period lookback, creating a normalized value.
- Upper and lower boundaries are computed using the exponential moving average (EMA) and standard deviation of these normalized values, adjusted by your selected multiplier.
- Finally, color-coded plots provide a visual representation of these calculations, offering at-a-glance insights into market conditions.
Remember, while this tool offers valuable insights, it's crucial to use it as part of a comprehensive trading strategy, complemented by other analysis and indicators. Happy trading!
🚀
Median Proximity Percentile [AlgoAlpha]📊🚀 Introducing the "Median Proximity Percentile" by AlgoAlpha, a dynamic and sophisticated trading indicator designed to enhance your market analysis! This tool efficiently tracks median price proximity over a specified lookback period and finds it's percentile between 2 dynamic standard deviation bands, offering valuable insights for traders looking to make informed decisions.
🌟 Key Features:
Color-Coded Visuals: Easily interpret market trends with color-coded plots indicating bullish or bearish signals.
Flexibility: Customize the indicator with your preferred price source and lookback lengths to suit your trading strategy.
Advanced Alert System: Stay ahead with customizable alerts for key trend shifts and market conditions.
🔍 Deep Dive into the Code:
Choose your preferred price data source and define lookback lengths for median and EMA calculations. priceSource = input.source(close, "Source") and lookbackLength = input.int(21, minval = 1, title = "Lookback Length")
Calculate median value, price deviation, and normalized value to analyze market position relative to the median. medianValue = ta.median(priceSource, lookbackLength)
Determine upper and lower boundaries based on standard deviation and EMA. upperBoundary = ta.ema(positiveValues, lookbackLength) + ta.stdev(positiveValues, lookbackLength) * stdDevMultiplier
lowerBoundary = ta.ema(negativeValues, lookbackLength) - ta.stdev(negativeValues, lookbackLength) * stdDevMultiplier
Compute the percentile value to track market position within these boundaries. percentileValue = 100 * (normalizedValue - lowerBoundary)/(upperBoundary - lowerBoundary) - 50
Enhance your analysis with Hull Moving Average (HMA) for smoother trend identification. emaValue = ta.hma(percentileValue, emaLookbackLength)
Visualize trends with color-coded plots and characters for easy interpretation. plotColor = percentileValue > 0 ? colorUp : percentileValue < 0 ? colorDown : na
Set up advanced alerts to stay informed about significant market movements. // Alerts
alertcondition(ta.crossover(emaValue, 0), "Bullish Trend Shift", "Median Proximity Percentile Crossover Zero Line")
alertcondition(ta.crossunder(emaValue, 0), "Bearish Trend Shift", "Median Proximity Percentile Crossunder Zero Line")
alertcondition(ta.crossunder(emaValue,emaValue ) and emaValue > 90, "Bearish Reversal", "Median Proximity Percentile Bearish Reversal")
alertcondition(ta.crossunder(emaValue ,emaValue) and emaValue < -90, "Bullish Reversal", "Median Proximity Percentile Bullish Reversal")
🚨 Remember, the "Median Proximity Percentile " is a tool to aid your analysis. It’s essential to combine it with other analysis techniques and market understanding for best results. Happy trading! 📈📉
Momentum Bias Index [AlgoAlpha]Description:
The Momentum Bias Index by AlgoAlpha is designed to provide traders with a powerful tool for assessing market momentum bias. The indicator calculates the positive and negative bias of momentum to gauge which one is greater to determine the trend.
Key Features:
Comprehensive Momentum Analysis: The script aims to detect momentum-trend bias, typically when in an uptrend, the momentum oscillator will oscillate around the zero line but will have stronger positive values than negative values, similarly for a downtrend the momentum will have stronger negative values. This script aims to quantify this phenomenon.
Overlay Mode: Traders can choose to overlay the indicator on the price chart for a clear visual representation of market momentum.
Take-profit Signals: The indicator includes signals to lock in profits, they appear as labels in overlay mode and as crosses when overlay mode is off.
Impulse Boundary: The script includes an impulse boundary, the impulse boundary is a threshold to visualize significant spikes in momentum.
Standard Deviation Multiplier: Users can adjust the standard deviation multiplier to increase the noise tolerance of the impulse boundary.
Bias Length Control: Traders can customize the length for evaluating bias, enabling them to fine-tune the indicator according to their trading preferences. A higher length will give a longer-term bias in trend.
Squeeze & Release [AlgoAlpha]Introduction:
💡The Squeeze & Release by AlgoAlpha is an innovative tool designed to capture price volatility dynamics using a combination of EMA-based calculations and ATR principles. This script aims to provide traders with clear visual cues to spot potential market squeezes and release scenarios. Hence it is important to note that this indicator shows information on volatility, not direction.
Core Logic and Components:
🔶EMA Calculations: The script utilizes the Exponential Moving Average (EMA) in multiple ways to smooth out the data and provide indicator direction. There are specific lengths for the EMAs that users can modify as per their preference.
🔶ATR Dynamics: Average True Range (ATR) is a core component of the script. The differential between the smoothed ATR and its EMA is used to plot the main line. This differential, when represented as a percentage of the high-low range, provides insights into volatility.
🔶Squeeze and Release Detection: The script identifies and highlights squeeze and release scenarios based on the crossover and cross-under events between our main line and its smoothed version. Squeezes are potential setups where the market may be consolidating, and releases indicate a potential breakout or breakdown.
🔶Hyper Squeeze Detection: A unique feature that detects instances when the main line is rising consistently over a user-defined period. Hyper squeeze marks areas of extremely low volatility.
Visual Components:
The main line (ATR-based) changes color depending on its position relative to its EMA.
A middle line plotted at zero level which provides a quick visual cue about the main line's position. If the main line is above the zero level, it indicates that the price is squeezing on a longer time horizon, even if the indicator indicates a shorter-term release.
"𝓢" and "𝓡" characters are plotted to represent 'Squeeze' and 'Release' scenarios respectively.
Standard Deviation Bands are plotted to help users gauge the extremity and significance of the signal from the indicator, if the indicator is closer to either the upper or lower deviation bands, this means that statistically, the current value is considered to be more extreme and as it is further away from the mean where the indicator is oscillating at for the majority of the time. Thus indicating that the price has experienced an unusual amount or squeeze or release depending on the value of the indicator.
Usage Guidelines:
☝️Traders can use the script to:
Identify potential consolidation (squeeze) zones.
Gauge potential breakout or breakdown scenarios (release).
Fine-tune their entries and exits based on volatility.
Adjust the various lengths provided in the input for better customization based on individual trading styles and the asset being traded.
Alpha Schaff [AlgoAlpha]Description:
The Alpha Schaff indicator is a proprietary technical analysis tool that incorporates a modified version of the Schaff Trend Cycle (STC) to generate trading signals. The indicator is designed to identify potential overbought and oversold conditions in the market. It utilizes a combination of exponential moving averages (EMAs) and price volatility to generate trading signals. The plot of the indicator is derived from the opening price adjusted by a factor that depends on the Alpha Schaff value. A color scheme is used to indicate whether the current value is higher or lower than the previous value.
What is Alpha Schaff?:
Alpha Schaff is a technical indicator used in trading to identify potential trend reversals and confirm the strength of a current trend. It combines multiple moving averages and oscillators to generate buy and sell signals. Traders use Alpha Schaff to make informed decisions about entering or exiting positions based on its indications of trend momentum and market conditions.
Calculation:
The Alpha Schaff indicator calculates the difference between fast and slow EMAs based on the specified input lengths. It then measures the highest and lowest values of the difference over a defined sensitivity period. The indicator normalizes these values to a percentage scale to provide insights into the current market conditions.
How to use it?:
Monitor the color of the indicator line. A change in color indicates a potential trend reversal. For example, a switch from white to a purple color suggests a possible bullish trend, while a switch from a purple color to white indicates a potential bearish trend. Points of reversal can also be indicated by distinctive arrows pointing upwards or downward as well as visualized in bullish/bearish colors. The Distance between the indicator plot and the source can be interpreted as a measurement of price volatility. The script includes alert conditions that trigger when specific criteria are met. These alerts can notify users of potential buying or selling opportunities based on the indicator's signals.
Utility:
The Alpha Schaff is a trend-following indicator suitable for traders operating in trending markets. It offers clear and precise signals that provide valuable insights into bullish or bearish price movements. Additionally, this indicator stands out by incorporating distinctive arrows, indicating potential retracement points and allowing traders to anticipate mean reversion.
Originality:
The Alpha Schaff indicator, developed by AlgoAlpha introduces a proprietary modification to the Schaff Trend Cycle (STC) by incorporating multiple moving averages and oscillators. While the concept of the Schaff Trend Cycle exists, the specific implementation and combination of elements in the Alpha vSchaff indicator are unique to this tool. The inclusion of color schemes, arrow indicators, and volatility measurements sets it apart from other technical analysis indicators. Traders can benefit from its originality by utilizing its distinctive features to make more informed trading decisions in trending markets.
[Opening Range Breakout] S&R Strategy with Backtest (TSO) S&R Strategy with Backtest (TSO)
===========================================================================
===========================================================================
This indicator serves as a comprehensive full-cycle trading system, providing alerts at each stage of the trade, from opening to closure. The algorithm initiates by calculating the Opening/Pre-Market Price Range, waiting for a breakout to generate signals, and establishing TP (Take Profit and SL (Stop Loss) levels. The Opening/Pre-Market range, known for its robust support and resistance levels, is a key element. To filter out false breakouts and capture valid ones, the indicator incorporates a Smart Breakout feature, requiring confirmation through an initial breakout, a confirmation bounce, and a subsequent confirmation breakout. The indicator offers a variety of automated approaches for TP (Take-Profit) and SL (Stop-Loss) settings. These include leveraging opening range levels, both the most recent and historical S&R (Support and Resistance) levels, and an ATR (Average True Range) trailing stop-loss. This diverse set of tools ensure flexibility in tailoring TP (Take-Profit) and SL (Stop-Loss) parameters to different market conditions, contributing to a more adaptive and robust trading system. Additionally, a series of signal analysis tools, including candle bar analysis, divergence, and volume, enhance the precision of trading signals.
* Works with popular timeframes: 1M, 3M, 5M, 15M, 30M, 45M, 1H.
* Works best with Indices, Stocks, and Commodities, since there is pre-market price movement, which is used to obtain support and resistance price range.
* Every action of the trade is calculated on a confirmed closed candle bar state (barstate.isconfirmed), so the indicator will never repaint.
==============================================================
Indicator visual examples with various instruments:
---------------------------------------------------------------------------
Strategy Config: ORB_AAPL(NASDAQ)_15M
Example of Signal Cleanup confirmations via SMA and ATR. Take-Profit is calculated per optimal S&R (resistance) most recent levels.
---------------------------------------------------------------------------
Strategy Config: ORB_AMD(NASDAQ)_5M
Example of optimal S&R (resistance) level from previous day for Take-Profit 1 target, which gets hit.
---------------------------------------------------------------------------
Strategy Config: ORB_META(NASDAQ)_5M
Example of dynamic SL (Stop-Loss), which reduces the risk by moving to the new support level, which is at the same time is below the current price. Also Signal Cleanup confirmations via SMA, ATR and VWAP
---------------------------------------------------------------------------
Strategy Config: ORB_MSFT(NASDAQ)_15M
Example of automated ATR Trail Stop-Loss activation at no optimal S&R (support) feature.
---------------------------------------------------------------------------
Strategy Config: ORB_NFLX(NASDAQ)_3M
Example of a skipped LONG trade due to no optimal S&R (support) for Stop-Loss (can be seen per chart that it would be a loss trade). On another side, a SHORT SMA Confirmed trade hits all 3 profit targets.
---------------------------------------------------------------------------
Strategy Config: ORB_NVDA(NASDAQ)_15M
Example of no optimal support for SHORT Take-Profit targets, with ATR Trail Stop-Loss.
---------------------------------------------------------------------------
Strategy Config: ORB_SPY(AMEX)_15M
Example of several signal confirmations at the same time (SMA, VWAP, EWO) and S&R-TP-Entry-SL SL (Stop-Loss) system, which at trade open sets SL (Stop-Loss) per optimal S&R (since this is a LONG trade - support) and then moves to Entry at first take-profit.
===========================================================================
Trading open/close/TP/SL labels, plots and colors explanations:
---------------------------------------------------------------------------
>>> Opening/Pre-Market range: White dashed lines show opening range/pre-market levels with dotted white line extend along the Trading Schedule (if Trading Schedule is turned off - it will extend until next day).
>>> Smart Breakout: 1) Initial Breakout: "init_Brekout" | 2) Confirmation Bounce: "conf_Bounce" | 3) Confirmation Breakout: "conf_Breakout" (additional lables on chart can be hidden with only Confirmation Breakout shown).
>>> Additional S&R (Support and Resistance) lines: yellow - support, blue - resistance (can be hidden).
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
STATS TABLE ///////////////////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading STATS table on the chart showing current trade direction, Last TP (Take-Profit) Taken, Current Trade PL (profit/loss in price difference from trade open to the very current state).
---------------------------------------------------------------------------
CUSTOM TRADING DATE RANGE /////////////////////////////////////////////////
---------------------------------------------------------------------------
>>>>> This feature can be used to manually set indicator trading range from and to a specific date and time. NOTE: This is not intended for a very long date range backtesting, utilize TradingView Strategy Tester for that.
* Use TradingView “Strategy Tester” to see Backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case - manually check “Start”/“End” dates or use “Deep Backtesting” feature!
---------------------------------------------------------------------------
INTRADAY/TRADING SCHEDULE | ET (EASTERN TIMEZONE) ////////////////////////
---------------------------------------------------------------------------
>>> Trading Schedule - On/Off: This is where an Intraday Session or any custom session can be turned on and then scheduled.
>>>>> Trading Schedule - Time: Trade open Signals/Alerts time zone Hours. | NOTE: US Market Active Hours: 09:30 - 16:00 ET / Power Hour: 15:00 - 16:00 ET)
>>> Trading Schedule - EOD(End of Day) Close - On/Off: Close trade if still open by certain hour (set below).
>>>>> Trading Schedule - EOD(End of Day) Close - Hour (ET): US trading session closes at 4PM ET > 16:00.
Here is when the trade will close with EOD(End of Day) Close/Trading Cut Off Hour set to 16, which is end of US trading session:
1/3/5min > will close at 15:55pm ET
15min > will close at 15:45pm ET
30min > will close at 15:30pm ET
45min > will close at 15:45pm ET
60min > will close at 16:00pm ET
Here is when the trade will close with EOD(End of Day) Close/Trading Cut Off Hour set to 15, which is 1 hour before the end of US trading session (right before power hour starts):
1/3/5min > will close at 14:55pm ET
15min > will close at 14:45pm ET
30min > will close at 14:30pm ET
45min > will close at 14:45pm ET
60min > will close at 15:00pm ET
---------------------------------------------------------------------------
TRADE SIGNAL CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Opening Range - Time Period (ET): Opening/Pre-Market Range time, which by default is set to US Session Pre-Market Range, can be customized to any time range as there are different market hours around the world and this setting can be customized to any time. Pre-Market Time/Price Range Hours(ET) | Pre-Market EU/Asia Hours: 4:00-9:30 ET | Pre-Market US (NY) Hours: 7:00-9:30 ET | Post-Market US Hours: 16:00-19:00 ET | First US Market Hour: 9:30-10:30 ET | Power Hour: 15:00-16:00)
>>> Opening Range - Levels Structure: determines how the price range is calculated, based on the highest/lowest price zones or based on the candle body bar.
>>> Opening Range - Breakout System: "Simple": bar close price has to simply break the opening range level | "Smart": After initial breakout (which is basically 'Simple' Breakout), a price come back is expected to the opening range level, a bounce, then a confirmation breakout with price closing ahead of the initial breakout.
>>>>> Opening Range - Smart Breakout: # of bars until Initial Breakout becomes invalid
>>>>> Opening Range - Smart Breakout: Bounce Settings, "Cross-Return" - LONG: Price has to cross down the initial breakout S&R, but never close below it; SHORT: Price has to cross up the initial breakout S&R, but then close above it; ||| "Cross-Close-Return" - LONG: At least 1 candle has to close below initial breakout S&R; SHORT: At least 1 candle has to close above initial breakout S&R.
>>>>> Alerts - Opening Range - Smart Breakout: Confirmation Bounce Alert. Trigger an alert at confirmation bounce. This is for live trading (especially scalping) Smart Breakout approach - to get ready to open the trade in the correct direction.
---------------------------------------------------------------------------
TAKE-PROFIT/STOP-LOSS CONFIGURATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> TP (Take-Profit) and SL (Stop-Loss): S&R Search - Left Bars: This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars) for S&R (Support and Resistance) TP (Take-Profit) levels calculations. NOTE: if at any point - there will be no available S&R (Support & Resistance) found for SL (Stop-Loss, 'S&R-Dynamic-SL' or 'S&R-Static-SL' setting, since both settings search for optimal SL (Stop-Loss) at trade open) or TP (Take-Profit, at any setting, since at trade open, an optimal TP (Take-Profit) level is searched) > SL (Stop-Loss) will automatically switch to trailing ATR-Trailing-SL and the trade will continue to run until it either hits ATR-Trailing-SL (Stop-Loss) or closes at EOD (End of Day).
>>> TP (Take-Profit) and SL (Stop-Loss): S&R Search - Right Bars: This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars) for S&R (Support and Resistance) TP (Take-Profit) levels calculations. NOTE: if at any point - there will be no available S&R (Support & Resistance) found for SL (Stop-Loss, 'S&R-Dynamic-SL' or 'S&R-Static-SL' setting, since both settings search for optimal SL (Stop-Loss) at trade open) or TP (Take-Profit, at any setting, since at trade open, an optimal TP (Take-Profit) level is searched) > SL (Stop-Loss) will automatically switch to trailing ATR-Trailing-SL and the trade will continue to run until it either hits ATR-Trailing-SL (Stop-Loss) or closes at EOD (End of Day).
>>> TP (Take-Profit) and SL (Stop-Loss): S&R Search - Custom Resolution: This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> TP (Take-Profit) and SL (Stop-Loss): # of Bars (5000 max) to search back for optimal Support and Resistance levels: This is how many candles will be searched backwards for previous S&Rs (Support and Resistance) to find the optimal levels for TP (Take-Profit) and SL (Stop-Loss). NOTE: If SL (Stop-Loss) System is set to 'ATR-Trailing-SL' - this setting is only relevant for searching TP (Take-Profit) levels.
>>> TP (Take-Profit) and SL (Stop-Loss): At Trade Open - No S&R (Support and Resistance) found behavior: 'Skip Trade': If at trade open there are no S&R (Support and Resistance) levels for TP1 (Take-Profit 1) or SL (Stop-Loss) - trade is skipped. 'Open/ATR-Trailing-SL': If at trade open there are no S&R (Support and Resistance) levels for TP1 (Take-Profit 1) or SL (Stop-Loss), the trade will still be open with SL (Stop-Loss) set to 'ATR-Trailing-SL'.
>>> TP (Take-Profit) System: Pre-Market-Range-TP: All TP (Take-Profit) targets are calculated at trade open using the distance between Support and Resistance per Opening Pre-market Range and then divided by TP (Take-Profit) Divider, which can be set below; S&R-Current-Optimal-TP1: TP1 (Take-Profit) level is set per currently available S&R (Support & Resistance), if none available - historical S&R (Support & Resistance) levels will be searched, remaining TP (Take-Profit) targets (if selected, up to 5 # of TPs) are searched through most recent closest historical S&R (Support & Resistance) levels; S&R-Historic-Optimal-TP1: TP1 (Take-Profit) level is set per historically most recent closest available S&R (Support & Resistance) to the Entry price, remaining TP (Take-Profit) targets (if selected, up to 5 # of TPs) are searched through historical S&R (Support & Resistance) levels as well.
>>> TP (Take-Profit, Pre-Market-Range-TP) Divider #: This is for 'Pre-Market-Range-TP' setting only, where TP (Take-Profit) level is the distance between top/bottom levels of the opening range. It can be reduced by the divider #. (1 - full distance; 2 - 1/2 distance; 3 - 1/3 distance; etc.
>>> TP (Take-Profit) # of targets: It is wise to divide the trade into several profit targets. With this setting - up to 5 TP (Take-Profit) targets can be approached. The trade will be equally divided up by the selected # of TP (Take-Profit) targets.
>>> TP (Take-Profit) target(s) Consumed: Signal Bar consuming Take-Profits - trade signal bar is big enough to 'consume'/close ahead of the first TP setting > the signal can either be skipped, or all Take-Profit targets pushed ahead by average bar size).
>>> TP (Take-Profit) Offset - On/Off: This is a feature where TP (Take-Profit) target will be considered taken even if the price never crosses the target(s), but comes close enough (based on the offset amount). Set the offset amount below.
>>>>> TP (Take-Profit) Offset - Amount: Some Examples: (for SPY 0.1 would be $0.10 offset - if TP1 is $400 and price hits $399.90 > TP1 considered taken/signal shown/alert) | NOTE: For EURUSD, it is very different and if wrong will show TP1 immediately at trade open, typical good offset for EURUSD is: 0.0005 | Similar for BTCUSD, for example: 10 - $10 offset, if TP is $15,000 > $14,990.
>>> SL (Stop-Loss) System: 'Pre-Market-Range-SL': SL (Stop-Loss) is set to the opposite market range level from trade direction; 'S&R-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent S&R level and remains there until trade closes; 'S&R-Dynamic-SL': SL (Stop-Loss) is set at a trade open per optimal S&R (Support and Resistance) level from the most recent AND historical S&Rs (Support and Resistance), with every bar closed it will check if there are new S&Rs (Support and Resistance) levels, if these levels appear closer to the current price then current level - it will move SL (Stop-Loss) to that level, therefore reducing the risk; 'ATR-Trailing-SL': SL (Stop-Loss) is trail-following the ATR (Average True Range) line, NOTE: If at signal trigger, ATR will be against the trade direction - trade open signal will be skipped; 'S&R-TP-Entry-SL': SL (Stop-Loss) initially is set per S&R, then moves to Entry price at the very first TP (Take-Profit) hit and remains there until trade closes; 'S&R-TP-Trail-SL': SL (Stop-Loss) initially is set per S&R, then moves to Entry at TP1 (Take-Profit 1) hit, then keeps trailing per previously taken profit targets (TP2 taken, SL moves to TP1 | TP3 taken, SL moves to TP2 | TP4 taken, SL moves to TP3). NOTE: 'ATR-Trailing-SL' will not switch automatically if 'S&R-Dynamic-SL', S&R-TP-Entry-SL', 'S&R-TP-Trail-SL' system is selected, as already the most optimal SL (Stop-Loss) level is calculated - it will switch automatically only with 'S&R-Static-SL' system.
>>> SL (Stop-Loss) - On/Off: Without SL (Stop-Loss), unless EOD (End of Day) Close is turned on - there will be no SL (Stop-Loss) at all!
---------------------------------------------------------------------------
SIGNAL ANALYSIS AND CLEANUP ///////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Signal Cleanup - Bar Color: Include Bar Color (bullish/bearish) confirmation, LONG signal will only be opened if signal bar is green/bullish, SHORT if red/bearish.
>>> Signal Cleanup - Bar Directional Structure: Skip opposite bar structure types signals (For example: bearish green hammer).
>>> Signal Cleanup - Bar Doji Skip: Skip doji (indecisive) candles signals.
>>> Signal Cleanup - EWO (Elliott Wave Oscillator): Include EWO (Elliott Wave Oscillator), LONG will only be opened if EWO is bullish / SHORT if EWO is bearish.
>>> Signal Cleanup - VWAP (Volume-Weighted Average Price): Include VWAP (Volume-Weighted Average Price), LONG will only be opened if price is above VWAP / SHORT if price is below VWAP.
>>> Signal Cleanup - MA (Moving Average) Confirmation: Include MA (Moving Average), LONG will only be opened if MA is bullish / SHORT if MA is bearish.
>>> Signal Cleanup - ATR (Average True Range): Include ATR (Average True Range) confirmation, LONG will only be opened if ATR is bullish / SHORT if ATR is bearish.
>>> Signal Cleanup - Divergence(RSI + MACD): Include Divergence (RSI + MACD ) confirmation, LONG will only be opened if Divergence is bullish / SHORT if Divergence is bearish.
>>> Signal Cleanup - Volume % Strength: Include Volume strength/percentage confirmation, LONG/SHORT will only be opened with strong Volume matching the signal direction | By default, strong Volume percentage is set to 150% and weak to 50%.
>>> Signal Cleanup - Volume Above Average: Include Volume Above Moving Average (Volume closing bar closes above volume moving average) confirmation, LONG/SHORT will only be opened with Volume above average - Volume closed bar color must match the closed price color (bullish/bearish direction) + Volume bar must be closed above volume MA line).
---------------------------------------------------------------------------
===========================================================================
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
TP System - VERY IMPORTANT INFO!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" - amount by which current trade/position needs to be reduced/partially closed/sold.
-------------------------------------------------------------------------------------------------------------------
TP System: Dynamic
"TP PERCENTAGE" - will always be the same amount (trade/position size divided by the # of take-profit(TP) targets) and percentage to be closed will always be of the ORIGINAL trade/position.
-------------------------------------------------------------------------------------------------------------------
TP System: Static
"TP PERCENTAGE" - will always be the same amount IF take-profit(TP) targets are hit 1-by-1 (TP1 > TP2 > TP3 > TP4 > TP5), otherwise it will vary and unless it is a 1st take-profit(TP1), the REMAINING trade/position size will always be smaller than original and therefore the percentage to be closed will always be of the REMAINING trade/position and NOT the original one!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" CheatSheet (these are the only percentages you may see)
-----------------------------------------------------------------------
TP PERCENTAGE---Close/Sell Amount-------------Example (trade size: 50 stocks)
20%-------------trade size * 0.2--------------50 * 0.2 = 10 stocks
25%-------------trade size * 0.25-------------50 * 0.25 = 12.5(~13) stocks
34%-------------trade size * 0.34-------------50 * 0.34 = 17 stocks
40%-------------trade size * 0.4--------------50 * 0.4 = 20 stocks
50%-------------trade size * 0.5--------------50 * 0.5 = 25 stocks
60%-------------trade size * 0.6--------------50 * 0.6 = 30 stocks
66%-------------trade size * 0.66-------------50 * 0.66 = 33 stocks
75%-------------trade size * 0.75-------------50 * 0.75 = 37.5(~38) stocks
80%-------------trade size * 0.8--------------50 * 0.8 = 40 stocks
100%------------trade size--------------------50 = 50 stocks
-----------------------------------------------------------------------
If for any reason a portion of the current/remaining trade closed at such occurrence was slightly wrong, it is not an issue. Such occurrences are rare and with slight difference in partial TP closed is not significant to overall performance of our algorithms.
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like.
NOTE: Each label , , etc. is customizable, you can change the text of it within indicator Input settings.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
TP4: 22500
TP5: 23500
SL: 19000
Leverage: 0
---------------------------------------------------------------------------
Here is how a TP1 alert will look with 5 TPs breakdown of the trade.
NOTE1: Next to TP1 taken it will show at which price it was triggered.
NOTE2: Next to "TP Percentage" it shows how much of the CURRENT/ACTIVE/REMAINING trade needs to be closed.
NOTE2: If TP2/3/4/5 comes before TP1 - the alert will tell you exactly how many percent of the trade needs to be closed!
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: TP1
TP1: 20500
TP Percentage: 20%
---------------------------------------------------------------------------
Here is how an alert will look for LONG - STOP-LOSS.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
ENTRY: 20000
LONG: SL
SL: 19000
---------------------------------------------------------------------------
Here is how an alert will look for LONG - EOD (End of Day) In Profit close.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: EOD-Close (profit)
ENTRY: 20000
EOD-Close: 21900
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Add indicator to chart and make sure the correct strategy is configured (check Backtesting results)
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "alert() function calls only", as other wise there will be 2 alerts for every alert!
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
If you have any questions or issues with the indicator, please message me directly via TradingView.
---------------------------------------------------------------------------
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
---------------------------------------------------------------------------
NOTE: There seems to be a strange glitch when strategy is running live, it will show "double-take" take-profits labels on the chart. This is not affecting the script logic and backtesting results, if you simply change the timeframe real quick to something else then back - it will no longer show the duplicate orders... this must be some sort of a glitch as every alert was thoroughly tested to make sure everything is working!
Session Breakout Scalper Trading BotHi Traders !
Introduction:
I have recently been exploring the world of automated algorithmic trading (as I prefer more objective trading strategies over subjective technical analysis (TA)) and would like to share one of my automation compatible (PineConnecter compatible) scripts “Session Breakout Scalper”.
The strategy is really simple and is based on time conditional breakouts although has more ”relatively” advanced optional features such as the regime indicators (Regime Filters) that attempt to filter out noise by adding more confluence states and the ATR multiple SL that takes into account volatility to mitigate the down side risk of the trade.
What is Algorthmic Trading:
Firstly what is algorithmic trading? Algorithmic trading also known as algo-trading, is a method of using computer programs (in this case pine script) to execute trades based on predetermined rules and instructions (this trading strategy). It's like having a robot trader who follows a strict set of commands to buy and sell assets automatically, without any human intervention.
Important Note:
For Algorithmic trading the strategy will require you having an essential TV subscription at the minimum (so that you can set alerts) plus a PineConnecter subscription (scroll down to the .”How does the strategy send signals” headings to read more)
The Strategy Explained:
Is the Time input true ? (this can be changed by toggling times under the “TRADE MEDIAN TIMES” group for user inputs).
Given the above is true the strategy waits x bars after the session and then calculates the highest high (HH) to lowest low (LL) range. For this box to form, the user defined amount of bars must print after the session. The box is symmetrical meaning the HH and LL are calculated over a lookback that is equal to the sum of user defined bars before and after the session (+ 1).
The Strategy then simultaneously defines the HH as the buy level (green line) and the LL as the sell level (red line). note the strategy will set stop orders at these levels respectively.
Enter a buy if price action crosses above the HH, and then cancel the sell order type (The opposite is true for a stop order).
If the momentum based regime filters are true the strategy will check for the regime / regimes to be true, if the regime if false the strategy will exit the current trade, as the regime filter has predicted a slowing / reversal of momentum.
The image below shows the strategy executing these trading rules ( Regime filters, "Trades on chart", "Signal & Label" and "Quantity" have been omitted. "Strategy label plots" has been switched to true)
Other Strategy Rules:
If a new session (time session which is user defined) is true (blue vertical line) and the strategy is currently still in a trade it will exit that trade immediately.
It is possible to also set a range of percentage gain per day that the strategy will try to acquire, if at any point the strategy’s profit is within the percentage range then the position / trade will be exited immediately (This can be changed in the “PERCENT DAY GAIN” group for user inputs)
Stops and Targets:
The strategy has either static (fixed) or variable SL options. TP however is only static. The “STRAT TP & TP” group of user inputs is responsible for the SL and TP values (quoted in pips). Note once the ATR stop is set to true the SL values in the above group no longer have any affect on the SL as expected.
What are the Regime Filters:
The Larry Williams Large Trade Index (LWLTI): The Larry Williams Large Trade Index (LWTI) is a momentum-based technical indicator developed by iconic trader Larry Williams. It identifies potential entries and exits for trades by gauging market sentiment, particularly the buying and selling pressure from large market players. Here's a breakdown of the LWTI:
LWLTI components and their interpretation:
Oscillator: It oscillates between 0 and 100, with 50 acting as the neutral line.
Sentiment Meter: Values above 75 suggest a bearish market dominated by large selling, while readings below 25 indicate a bullish market with strong buying from large players.
Trend Confirmation: Crossing above 75 during an uptrend and below 25 during a downtrend confirms the trend's continuation.
The Andean Oscillator (AO) : The Andean Oscillator is a trend and momentum based indicator designed to measure the degree of variations within individual uptrends and downtrends in the prices.
Regime Filter States:
In trading, a regime filter is a tool used to identify the current state or "regime" of the market.
These Regime filters are integrated within the trading strategy to attempt to lower risk (equity volatility and/or draw down). The regime filters have different states for each market order type (buy and sell). When the regime filters are set to true, if these regime states fail to be true the trade is exited immediately.
For Buy Trades:
LWLTI positive momentum state: Quotient of the lagged trailing difference and the ATR > 50
AO positive momentum state: Bull line > Bear line (signal line is omitted)
For Sell Trades:
LWLTI negative momentum stat: Quotient of the lagged trailing difference and the ATR < 50
AO negative momentum state: Bull line < Bear line (signal line is omitted)
How does the Strategy Send Signals:
The strategy triggers a TV alert (you will neet to set a alert first), TV then sends a HTTP request to the automation software (PineConnecter) which receives the request and then communicates to an MT4/5 EA to automate the trading strategy.
For the strategy to send signals you must have the following
At least a TV essential subscription
This Script added to your chart
A PineConnecter account, which is paid and not free. This will provide you with the expert advisor that executes trades based on these strategies signals.
For more detailed information on the automation process I would recommend you read the PineConnecter documentation and FAQ page.
Dashboard:
This Dashboard (top right by defualt) lists some simple trading statistics and also shows when a trade is live.
Important Notice:
- USE THIS STRATEGY AT YOUR OWN RISK AND ALWAYS DO YOUR OWN RESEARCH & MANUAL BACKTESTING !
- THE STRATEGY WILL NOT EXHIBIT THE BACKTEST PERFORMANCE SEEN BELOW IN ALL MARKETS !
Bollinger Bands Percentile + Stdev Channels (BBPct) [AlgoAlpha]Description:
The "Bollinger Bands Percentile (BBPct) + STD Channels" mean reversion indicator, developed by AlgoApha, is a technical analysis tool designed to analyze price positions using Bollinger Bands and Standard Deviation Channels (STDC). The combination of these two indicators reinforces a stronger reversal signal. BBPct calculates the percentile rank of the price's standard deviation relative to a specified lookback period. Standard deviation channels operate by utilizing a moving average as the central line, with upper and lower lines equidistant from the average based on the market's volatility, helping to identify potential price boundaries and deviations.
How it Works:
The BBPct indicator utilizes Bollinger Bands, which consist of a moving average (basis) and upper and lower bands based on a specified standard deviation multiplier. By default, it uses a 20-period moving average and a standard deviation multiplier of 2. The upper band is calculated by adding the basis to the standard deviation multiplied by the multiplier, while the lower band is calculated by subtracting the same value. The BBPct indicator calculates the position of the current price between the lower and upper Bollinger Bands as a percentile value. It determines this position by comparing the price's distance from the lower band to the overall range between the upper and lower bands. A value of 0 indicates that the price is at the lower band, while a value of 100 indicates that the price is at the upper band. The indicator also includes an optional Bollinger Band standard deviation percentage (%Stdev) histogram, representing the deviation of the current price from the moving average as a percentage of the price itself.
Standard deviation channels, also known as volatility channels, aid in identifying potential buying and selling opportunities while minimizing unfavorable trades. These channels are constructed by two lines that run parallel to a moving average. The separation between these lines is determined by the market's volatility, represented by standard deviation. By designating upper and lower channel lines, the channels demarcate the borders between typical and atypical price movements. Consequently, when the market's price falls below the lower channel line, it suggests undervaluation, whereas prices surpassing the upper channel line indicate overvaluation.
Signals
The chart displays potential reversal points through the use of red and green arrows. A red arrow indicates a potential bearish retracement, signaling a possible downward movement, while a green arrow represents a potential pullback to the positive, suggesting a potential upward movement. These signals are generated only when both the BBPct (Bollinger Bands Percentage) and the STDC (Standard Deviation Channel) indicators align with bullish or bearish conditions. Consequently, traders might consider opening long positions when the green arrow appears and short positions when the red arrow is plotted.
Usage:
This indicator can be utilized by traders and investors to effectively identify pullbacks, reversals, and mean regression, thereby enhancing their trading opportunities. Notably, extreme values of the BBPct, such as below -5 or above 105, indicate oversold or overbought conditions, respectively. Moreover, the presence of extreme STDC zones occurs when prices fall below the lower channel line or cross above the upper channel line. Traders can leverage this information as a mean reversion tool by identifying instances of peak overbought and oversold values. These distinctive characteristics facilitate the identification of potential entry and exit points, thus augmenting trading decisions and enhancing market analysis.
The indicator's parameters, such as the length of the moving average, the data source, and the standard deviation multiplier, can be customized to align with individual trading strategies and preferences.
Originality:
The BBPct + STDC indicator, developed by AlgoAlpha, is an original implementation that combines the calculation of Bollinger Bands, percentile ranking, the %Stdev histogram and the STDC. While it shares some similarities with the Bollinger Bands %B indicator, the BBPct indicator introduces additional elements and customization options tailored to AlgoAlpha's methodology. The script is released under the Mozilla Public License 2.0, granting users the freedom to utilize and modify it while adhering to the license terms.
Directional Bias [AlgoAlpha]The Directional Bias indicator is a premium script expertly crafted to enhance market trend visualization on trading charts. This sophisticated tool is designed to intuitively indicate the market's directional bias, aiding traders in making informed decisions on lower time frames.
Highlighted Features:
Intuitive Trend Visualization: The script employs a color-coded system for candles, simplifying the process of trend identification
Customizable Aesthetics: Users have the option to personalize the visual elements, including candle colors, to suit their preferences and enhance chart readability.
Advanced Logic: The script is built on a proprietary algorithm that analyzes candlestick patterns to determine the current trend direction.
Key Benefits:
Enhanced Decision Making: By offering a clear depiction of the market's directional bias, the indicator assists traders in making more informed entry and exit decisions, particularly suited for quick decision-making on lower timeframes.
Adaptability to Market Conditions: The script dynamically adjusts to changing market conditions, providing relevant and timely indications of trend changes or continuations.
Versatile Application: Suitable for various trading styles, the indicator can be effectively used in day trading, scalping, or even in longer-term trading strategies, depending on the timeframe selected.
Summary:
The "Directional Bias" indicator stands out as a vital tool for traders focusing on lower timeframes, offering an intuitive, customizable, and dynamic approach to trend visualization. Its advanced proprietary logic and user-friendly interface make it a valuable asset in a trader's toolkit, enhancing the ability to quickly interpret and react to market movements.
Gorb WallIntroduction:
Gorb Wall is a trading tool that offers a unique approach to market trend analysis. It extends the capabilities of the Gorb Algo indicator by presenting a multi-ticker, multi-timeframe dashboard, enabling traders to capture crucial market movements across various financial instruments without flipping through charts.
Overview:
Multi-Ticker Analysis: Monitor and analyze multiple financial instruments simultaneously.
Customizable Timeframes: Tailor the script to various timeframes to suit your trading strategy.
Gorb Algo Market Trend: An algorithm that adapts to market conditions, providing insights into trend changes.
User-Friendly Dashboard: Easily configure and customize the dashboard placement on your chart.
Color-Coded Trend Indicators: Visual cues to quickly assess bullish or bearish trends.
Optimized for Performance: Efficiently coded to ensure smooth running on TradingView without overloading resources.
How Gorb Wall Works:
The script utilizes Gorb Algo's market trend algorithm to process price and volume data across selected tickers and timeframes.
It applies a complex calculation to identify trends, using a combination of volatility analysis, momentum measurements, and trend strength indicators.
The output is a simplified visual representation on the dashboard, where colored circles indicate the trend direction, providing an at-a-glance market overview.
Unique Features:
Proprietary Algorithm: The heart of Gorb Wall lies in its unique Gorb Algo Market Trend algorithm. Unlike standard trend-following indicators, this proprietary algorithm integrates multiple technical analysis concepts (e.g., moving averages, volume data, price action, and oscillators) to provide a more comprehensive market trend analysis.
Multi-Dimensional Analysis: The script analyzes market trends by simultaneously processing data across multiple tickers and timeframes, offering a broader view of market movements than traditional single-ticker indicators.
We recommend exploring & choosing which tickers/timeframes best suits your needs and style of trading, and use that to combine with our suite of indicators.
Settings:
All skill-level friendly presets, easy to enable features with one-click
Dashboard Placement: Choose from top/bottom left/right for dashboard positioning.
Trend Speed Mode: Select the algorithm speed - Fast, Medium, Slow, Slowest.
Bullish/Bearish Trend Colors: Customize colors for trend indicators.
Additional Tickers: Input options for monitoring multiple financial instruments.
Timeframe Selection: Choose from a range of timeframes for each ticker.
How to Use
In the image below, we can see a basic example of how this indicator functions.
The dashboard displays up to three different tickers per the user's choice, with 4 different timeframes the user can choose. It that runs the algorithm line on the specified ticker & timeframe and plots a colored circle that identifies that tickers trend on the specified timeframes.
There are two colors, white for bullish trend and purple for bearish trend. These are the two consistent colors across our suit of indicators to help simplify trading by using simple color matching for confluence. Below is a continued breakdown on using this indicator:
Dynamic Trend Visualization in Real-Time Updates
The dashboard dynamically updates trend colors (white for bullish, purple for bearish) based on real-time market data, offering immediate insights into market sentiment. The next three images below these the live change in data as price action begins developing over multiple timeframes.
In the image above, we are on the 5min AAPL chart, we have SPY, QQQ, and VIX as our tickers on the dashboard with 1min, 2min, 3min, and 10min timeframes chosen. We begin to see VIX flip bullish, which can usually mean down side for indices.
We then see as AAPL's price begins to slow and reverse, we see SPY's trend following on the smaller timeframes first with VIX still leading the way indicating possible bearish change.
In the image above, we can see that price dips down and SPY & QQQ market trends have flipped bearish on all timeframes, while VIX continues to be bullish(validating the downwards price action)
Customizable Settings
Users can adjust settings such as dashboard placement, trend speed mode, and color themes to suit individual trading styles.
In the image below, we can see the dashboard placement setting offers four different locations the user can move the dashboard. Just like in Gorb Algo , the user can choose which trendline speed they want to use to best fit their trading strategy.
In the image below, we can see the "bullish trend" & "bearish trend" colors setting. These colors by default match the rest of our suite of indicators, white is bullish and purple is bearish. Users can change these color settings to meet their preferences.
In the image below, we can see there are three market ticker options that the user can change. This allows users to monitor their favorite tickers across or easily flip through multiple tickers in order to gauge their current market trends without having to change their chart
In the image below, we can see the 4 timeframes that are on the dashboard. The user has the ability to change each of those four, to whatever timeframe best suits their trading needs. There are 12 different timeframe options to choose from.
Quick Dashboard Review
Using color-coded trend detection, this quickly gauges market trends and provides a visual to easily identify these changes in real-time across multiple timeframes. When a circle changes color, this means that price has flipped that direction, causing a change in the Gorb Algo market trendline. As stated above, white is for bullish trend and purple is for bearish trend, but these colors can be changed to fit the users trading strategy and style. Each timeframe the user chooses will be updated in real-time, including the higher time frames like the daily & weekly. They have been modified to pull data a same speed the lower timeframes are.
This helps provide quick visual identification of real market trend changes as price action develops. It is best used in conjunction with other forms of technical analysis for a holistic trading approach.
Conclusion:
This indicator is designed to streamline market trend analysis, offering traders an innovative, efficient, and easy-to-use tool for making informed trading decisions. This tool complements our suite of indicators, providing unique market insights that are not typically available in traditional open-source scripts.
How to get access:
You can see the Author's instructions to get access to this indicator
RISK DISCLAIMER
All content, tools, scripts & education provided by Gorb Algo are for informational & educational purposes only. Trading is risky and most lose their money, past performance does not guarantee future results.
Gorb DNAIntroduction:
Gorb DNA is a versatile indicator using classic technical analysis components such as moving averages, stochastic oscillator, and histogram blending call/put flow analysis with our proprietary DNA algorithm. This indicator is designed to provide traders with useful market direction, volume, and momentum change visual cues.
Overview:
The Gorb DNA Indicator isn't just another momentum tool; it's a complex integration of innovative market analysis techniques.
By combining moving averages, stochastic oscillator, with proprietary algorithms, this indicator offers a multi-layered view of market trends, by merging call/put flow analysis with traditional market flow assessment.
This is designed for all kinds of traders, using a simple method to deliver visual changes in flow, volume, and momentum.
Core Features: Call/Put Flow & DNA
Call/Put Flow Analysis: This component examines the strength of market buying and selling pressures. It analyzes call (buying) and put (selling) flows using price range movements, providing insights smoothed over a defined period for analysis of market sentiment.
DNA Algorithm: A central feature of this indicator, the DNA algorithm utilizes a specialized moving average and oscillator technique to discern market trends. It presents an innovative approach, calculating the difference between bullish and bearish indicators to offer a detailed analysis of market momentum.
Visualization and Color Coding: The indicator employs a color-coded system for ease of interpretation, with distinct colors indicating different market conditions: white for upward/bullish movement and purple for downward/bearish movement. This feature translating complex data into a visual format that is simple to understand.
How Call/Put Flow Works:
Moving averages are used with volume and candlestick highs/lows over a specific range to help determine the overall flow. It then plots a colored line area that looks like a colored wave using just two colors to provide traders with a visual of the current market flow. This can help traders identify changes in sentiment with simple color cues.
How DNA Works:
A stochastic oscillator is used to measure the current price level relative to its price over a specific range period to analyze the momentum for the two DNA strands. Additionally moving averages are used to confirm trend and identify any divergences relative to the momentum. This is then plotted as two lines(DNA Strands) following the same color scheme as Call/Put Flow. When momentum is picking up in a specific direction, the lines will change colors and cross each other, this gives a visual of momentum now being fully on one side until it starts to change colors and flip that direction.
Custom Algorithm Elements:
Gorb DNA isn't just common tools combined into one indicator. It includes proprietary algorithmic elements tailored to enhance technical analysis and timing. These are the reasons what set this indicator apart from common momentum, sentiment, and volume methods.
We recommend experimenting with these features to choose what best suits your trading style.
Settings:
All skill-level friendly presets, easy to enable features with one-click
Call Flow: allows the user to plot a colored area that looks like waves showing increases/decreases in bullish volume (not to be followed blindly)
Put Flow: allows the user to plot a colored area that looks like waves showing increases/decreases in bearish volume (not to be followed blindly)
DNA Strand 1: allows the user to plot one of the algorithm lines to visualize momentum direction (not to be followed blindly)
DNA Strand 2: allows the user to plot one of the algorithm lines to visualize momentum direction (not to be followed blindly)
DNA Strength: allows the user to a histogram displaying momentum volume bars in the background
Flow Threshold: allows users to plot a dotted line to identify when call/put flow is now above average flow range
All colors are changeable for the user to customize to their liking
Call/Put Flow & DNA Demonstration
In the image below, we can see a basic illustration of how these core features function.
As stated above, call/put flow carefully monitors changes in moving averages, volume, and price action. If the market sentiment is shifting one direction, the call/put flow will plot those changes. If market is bullish, call flow should rise and put flow should decrease. The same goes for the opposite if the market is bearish.
As is the same for the DNA strands, if markets momentum is becoming bullish, the lines will change color and then cross to signify a change in momentum and the call flow in the background should match this change. This creates two layers of confluence in an easy understandable visual method.
Using Call/Put Flow
In the image below, we disabled everything but call flow to demonstrate usage.
On the left side of the image, you can see call flow matched price increase, then started to decline. This created a flow divergence, identifying a possible change in price action coming. This happened once flow crossed back below the threshold line and price then beginning to move lower. On the right side of the image, you can see call flow rising and price increasing. This is a good confluence showing there is bullish sentiment building in the market.
In this next image, we disabled everything but put flow to demonstrate usage.
The left side shows a put flow divergence. Put flow is slowly rising just like price is, this can help a trader identify a possible shift in sentiment coming. And on the right side, we have put flow rising above the threshold line and price beginning to decrease. Now we have confluence of bearish sentiment building in the market.
The image below shows only call & put flow enabled, to display what the above two images combined look like.
As you can see in the image above, these flow visuals help identify the underlying market sentiment. And when they cross, it leads to a change in price action in the direction of the sentiment over the threshold line.
Using DNA Strands
The image below has just DNA strands enabled to demonstrate usage.
On the left is a box highlighting bearish momentum cross. In the circles is the change in momentum shifting from bullish to bearish. The move gets stronger as the DNA strands get closer to cross over signifying strength in the move. On the right side is a box highlighting a bullish momentum cross. The circles again, show the change from bearish to bullish momentum. Like previously said, the move gets stronger as the DNA strands get closer to crossing over, signifying strength in that direction.
The next image shows call/put flow and DNA strands enabled for a full complete picture.
The circles labeled (1) are showing the change in momentum from bullish to bearish. Circle (2) shows call flow decreasing and put flow rising above calls. Finally the arrow points to the DNA strands crossing over and put flow rising above the threshold line. This is 3 levels of easy visual confluence showing a change in sentiment, volume, and momentum to the downside.
The next image will be showing the bullish side with call/put flow and DNA strands enabled.
The circles that are labeled (1), show the visual change in momentum on the DNA strands from bearish to bullish. Circle (2) is the crossing of call flow over put flow and the arrow points to the DNA strands crossing over and call flow above the threshold line. Three simple to use visual confluences to identify change in sentiment, volume, and momentum to the upside.
Conclusion:
Our goal is to provide a unique, yet simple approach to market sentiment & momentum analysis. It's a tool developed for traders seeking user-friendly and easy to use tools that provide easy visual insights of market dynamics. We believe in simplicity, effectiveness, and creating tools to support decision making for all traders.
How to get access:
You can see the Author's instructions to get access to this indicator
RISK DISCLAIMER
All content, tools, scripts & education provided by Gorb Algo are for informational & educational purposes only. Trading is risky and most lose their money, past performance does not guarantee future results.