Custom Time Frame (CTF)This indicator allows users to create their own arbitrary time frames for chart analysis. It features a moving average, providing an additional layer of analysis, and offers flexibility through various open settings.
In terms of user settings and usage, the indicator provides several options. Users can choose their interval style, opting for either tick-based or time-based intervals. This flexibility allows for a more granular approach to data analysis, catering to different trading strategies and preferences. The number of ticks or the amount of time for each candle can be adjusted, enabling traders to set the granularity of the data to their liking. Color settings are also customizable, with options for setting colors for bullish and bearish indicators, adding a visual dimension to the analysis.
The average line parameters are an important aspect of this indicator. Users can adjust the length, ripple, type, color, and line width of the average line. The ripple setting, in particular, impacts the smoothness of the filter. With type II setting, the smoothing is increased, making it suitable for traders who prefer a more smoothed out moving average. Conversely, the type I setting decreases the smoothing, which might be preferred by those who want a more responsive indicator.
The use of the Chebyshev filter is a significant feature of this indicator. This filter is chosen for its high-performance smoothing capabilities with minimal data requirements. This ensures that the moving average appears quickly and accurately, which is crucial in real-time chart analysis. An important point to note is that when the moving average is enabled, it decreases the maximum number of candles that can be displayed on the chart. However, this is offset by the enhanced analytical precision provided by the moving average.
In summary, this indicator is especially beneficial for traders without access to premium accounts. It offers the capability to create low or custom time frame charts. The flexibility in settings, coupled with the inclusion of a Chebyshev filter for the moving average, makes it a versatile and valuable tool for detailed market analysis. It caters to a wide range of trading styles and strategies, making it a useful addition to any trader's toolkit.
Candlestick analysis
RSI and MACD Crossover SignalsBest for Short-Term/Intraday Trading on SPY, TSLA, NVDA
Strategy Concept:
This strategy is designed for short-term trading across various assets and timeframes (Recommend: 1min, 5min, 15min, 1hr, 4hr, 1day). It leverages the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) to identify potential buy and sell signals. The strategy aims to capture moments where the asset's price is likely to experience a reversal or a significant momentum shift.
By combining the RSI and MACD indicators, the strategy seeks to increase the accuracy of identifying potential trend reversals or continuations, taking into account both the momentum and the trend direction of the asset.
RSI (Relative Strength Index) Parameters:
The RSI period is set to 14
Overbought and oversold levels are set at 70 and 30, respectively
The RSI is used to identify potential reversal points when the asset is overbought or oversold
MACD (Moving Average Convergence Divergence) Parameters:
The MACD settings are configured with a fast length of 8, a slow length of 34, and a signal smoothing of 8
The MACD line crossing over or under the signal line is used to confirm the potential buy or sell signals indicated by the RSI
Signal Generation Logic:
Buy Signal:
Triggered when the RSI crosses above the oversold level (30).
Confirmed if the MACD line crosses above the signal line within a delay period of up to 4 candles after the RSI signal.
Sell Signal:
Triggered when the RSI crosses below the overbought level (70).
Confirmed if the MACD line crosses below the signal line within a delay period of up to 4 candles after the RSI signal.
Additional Features:
The script includes a notification system that alerts the trader when either a buy or sell signal is detected. The alert signal is combined with both the buy and sell signal in 1 so people without premium can be alerted when any signal appears.
Buy signals are visually represented on the chart below the price bars with a green "BUY" label.
Sell signals are indicated above the price bars with a red "SELL" label.
Usage and Application:
This strategy is versatile and recommended to be played with scalps and day trades. I prefer SPY 0DTE on the 1 and 5 minute timeframe and looking for bigger trend reversals on the 1hr, 4hr, and 1 day timeframe.
Intraday FIB ScalpingThe Intraday Fibonacci Levels Indicator is a powerful tool designed to enhance trading decisions in intraday markets. Leveraging the dynamic nature of Fibonacci retracement levels, this indicator utilizes the high and low prices observed within the first 15 minutes of the trading session to plot key levels and establish potential entry and exit zones.
Key Features:
Automatic Calculation: The indicator swiftly calculates Fibonacci retracement levels based on the highest high and lowest low recorded during the initial 15 minutes of the trading day. This ensures a quick and accurate representation of potential support and resistance levels.
Zone Marking for Precision: The indicator marks specific zones on the chart, providing traders with clear visual cues for potential entry and exit points. These zones are strategically aligned with Fibonacci levels, offering a systematic approach to decision-making.
User-Friendly Interface: With a user-friendly interface, the Intraday Fibonacci Levels Indicator is suitable for both novice and experienced traders. The intuitive design allows for easy interpretation of signals and levels.
By harnessing the power of Fibonacci retracement levels and incorporating them into an intraday context, this indicator empowers traders with a systematic and data-driven approach to decision-making. Whether identifying entry points, setting stop losses, or planning exit strategies, the Intraday Fibonacci Levels Indicator serves as a valuable ally in navigating the complexities of intraday trading.
How to Trade using these Levels?
With this indicator, you can see all the levels between whole number and its corresponding 0.272 were highlighted. That is where we need to look for intraday trade entry. If any of the level broken on either side and the bar closes below ore above the highlighted area, we should enter the trade in that direction with immediate next FIB level as TP1 and subsequent level as TP2. And, an opposite directional close above or below the highlighted level will be considered as stop loss exit.
We prefer to trade in 3 minutes or 5 minutes timeframe for intraday trading.
How we plot the levels?
We are incorporating ORB into Fibonacci to plot intraday trading levels. We use high and low of first 15 minutes candle of each new trading session to arrive the levels for that session.
When market is trading above or below initially plotted levels, user can extend the levels by enabling extentions provided in user settings
Bias DailyThis indicator shows in a different way how to evaluate the BIAS Daily.
Evaluate yesterday's closed candle and that of the day before yesterday
The conditions are:
LONG BIAS =
Candle closed above High Candle [2 ]
- In this condition a long continuation can be considered
SHORT BIAS =
The candle closed below the low candle [2 ]
- In this condition a short continuation can be considered
IN THE RANGE =
The candle did not close below or above the Low and High candle
- In this condition it is better not to risk it
The user has the possibility to:
- Choose to show high or low BIAS levels
- Shows the Table in which the BIAS D is marked
The indicator should be used as TTrades shows in its videos, it can also be implemented in ICT strategies.
The indicator takes into consideration the last 2 candles already closed, so on the candle that is forming you can expect reactions in the Pd Array of the Candle Range , below I show examples of how to use it in Multitimeframe
BIAS LONG =
BIAS SHORT =
Period SeparatorA useful indicator designed to display vertical line separators at specified periods, for example every hour or every 4 hours.
To use this indicator, you must be in a timeframe lower than the specified timeframe on the indicator.
I haven't found any other scripts that allow for custom time frames so I created my own :)
Let me know if you have any suggestions.
ORB With Buffer, Target & Stop LossThe "ORB With Buffer" is a comprehensive technical analysis tool designed to identify, plot, and visualize key levels associated with price breakouts. It offers a dynamic representation of breakout zones, buffer areas, target levels, and stop-loss levels on both sides of the market.
Key Features:
ORB Levels (Opening Range Breakout):
The indicator identifies and plots the Opening Range Breakout levels, marking the high and low points of the initial trading period. In our case the ORB range is locked to 15 Minutes irrespective of the chart's timeframe.
Buffer Areas for Breakout:
Buffer zones are displayed around the ORB levels, representing a range where traders cant wait to join the direction to counter fake ORB breakouts
Targets:
The indicator calculates and visualizes target levels. Approximately 1% of instrument's price from entry point
Stop Loss Levels:
Stop-loss levels are indicated on both sides of the market, offering traders a clear reference point to manage risk.
HL range by durgaThe script we've been working on is an indicator designed to display the high-low range of the last candlestick on a TradingView chart. It does so by plotting two lines: one for the high and another for the low of the last completed candlestick.
Additionally, the script includes a label that shows the numerical value of the high-low range. This label is positioned between the plotted lines, showing the difference between the high and low prices of the last candlestick.
The script operates in real-time, updating dynamically as new candlesticks form. Furthermore, it automatically removes the label after the close of the candlestick, maintaining a clean and clutter-free chart.
This indicator can help traders quickly visualize and assess the range of the last completed candlestick, aiding in their analysis of price action.
Crypto Candlestick Patterns - CN VersionIntroduction:
The candlestick chart has been used for centuries since the Japanese applications. Based on the candlestick charting, people developed candle pattern analysis. Now we have tons of books or articles illustrating the usage of reversal patterns and continuation patterns, and computers provide a faster and preciser way to recognize these pattern.
Originally we have a common *All Candlestick Patterns* indicator to use. This indicator works well for most of the markets or commodities including stocks and futures. However, for cryptocurrency market, quite a few patterns are not suitable anymore. For example, crypto markets are continuously running 7x24hrs and the big coins with good volume tend to have almost continuous price in commonly used time periods. Hence, original patterns with "window" or "jump" concepts are usually not applied to crypto.
For these issues, I modified the original *All Candlestick Patterns* indicator and introduced the Chinese version for people speaking such language.
Like most of the other indicators, I personally do not recommend anyone to simply follow the patterns it shows to enter the market. You may take these recognized patterns as a reference, and further actions on trading should be done with several other tools, such as MACD, RSI, Stochastic and etc.
Usage:
The application of this indicator is basically the same as the original *All Candlestick Patterns* and you will get an automatically generated pattern recognition by your computer system.
There are a few parameters to adjust for the indicator:
Trending Detection Settings: Here you can choose SMA-Fast, SMA-Fast/Slow or None detecting options to recognize the current market trend. This is a minor improvement from the original indicator and you can choose your preferred trending detecting settings by changing the length of SMA.
Candlestick Settings: You may adjust the rules to recognize the properties of candlesticks. I add a "perturbation" parameter here, which actually is an error tolerance for pattern recognition. Some seemingly pattern may not fulfill the strict rules of classic candlestick patterns, but we may recognize them by watch the charting on our own. Hence this error tolerance may show more potential patterns from the charting.
Plot Settings: It is the usually colour choice and providing options for bullish/bearish.
Pattern Settings: Here you can select the patterns that you would like to see from the charting. You can pick the preferred reversal patterns or choose to show all the patterns. It's all up to you!
Features:
Language Translation: Since this is a Chinese language version. I have replaced all the English explanation of patterns to Chinese ones. Move your mouse to the label, you will find a brief intro of the pattern and a notice about bullish or bearish signals it indicates.
Alerts: As the same as the original one, we will have the alert options from this indicator. All the alerts and their messages are Chinese. You can activate alerts based on this indicator from the alert management section, as the same as many other indicators you have used before.
Future Improvements:
For now I am satisfied with the work I have done, and I may apply it to several charts. It's welcome for any users to take a look at the codes and put modifications or improvements towards it. Currently most of the comments in the code are in Chinese language, since basically it's for Chinese speaking users, while the code itself and the parameter names should be pretty easy to understand in English. (I have been using English for writing in the past 8 years, hence this introduction is in English as well.)
Lot Size Calculator (CZ) This is upgraded version of existing Lot size Calculator from melodicfish.
I added CZK as a new base currency and translated the whole user interface into Czech language, so this version is made mainly for people from Czech Republic.
Here is the original code description from the original creator:
This is a public release of my Lot Size Calculator. I received a request for the code from a user so I am republishing the script so I can make it public (TV doesn't seem to give me the option to simply make it public once published ).
This is a very simple script to use. Simply choose your entry level and stop level on the chart and the indicator will calculate the lots. You can change your account risk and base currency units in the settings along with changing the scaling of the calculation to adjust the results with the lot sizing units of your broker. This allows the calculator to be used with CFDs, forex, Gold, etc.. Hope it helps in your trading it has been the single most useful tool in my trading as it has helped me always keep my risk locked up and on point that is why I released it.
One final quick note: Remember you can save your settings for your own account size and risk so you do not always have to modify the defaults when loading the script. Just a ease of use tip. I only add the script to my chart when I am about to take a trade so it is helpful to have everything set up in advance.
As i said, the whole user interface is in Czech language, but you can find exactly the same indicator in english language under the name Lot Size Calculator by melodicfish. So i hope i don´t need to provide english translation here.
I hope this time it won´t get taken down :( :D
FreedX Backtest█ Our strategy template empowers TradingView users to effortlessly backtest any indicator, enhancing their trading strategy's effectiveness. In addition, users can create automated webhook alerts from the template. This document details our template's features and how to utilize them effectively.
█ TRADE DATE SETTINGS
The Trading Date Settings feature in our TradingView script allows you to refine their backtesting parameters by specifying trading dates and hours. This feature enhances the accuracy of the backtest by aligning it with specific time frames and days, ensuring that the strategy is tested under relevant market conditions.
Features:
⚙️ Enable Trading Between Specific Dates:
🎯 Purpose:
→ Allows you to limit the backtesting of their strategy to a specific date range.
💡 How to Use:
→ Input the Start Date and End Date for the backtest period.
→ The script will execute the strategy only within this specified date range.
⚙️ Enable Trading Between Specific Hours:
🎯 Purpose:
→ Allows you to limit the backtesting of their strategy to a specific hour range.
💡 How to Use:
→ Input the start and end hour for in Trading Session section.
→ The script will execute the strategy only within this specified hour range.
⚙️ Enable Trading on Specified Days of the Week:
🎯 Purpose:
→ Gives you the option to conduct backtesting on selected days of the week, tailoring the strategy to particular market behaviours that may occur on these days.
💡 How to Use:
→ Select the days of the week for the backtest.
→ The script will activate the trading strategy only on these chosen days.
█ BUY/SELL TRIGGER SETTINGS
The Buy/Sell Trigger Settings feature is designed to provide users with flexibility in defining the conditions for 'LONG' and 'SHORT' signals based on various indicator types. This customization is crucial for tailoring strategies to different trading styles and market conditions.
Features:
⚙️ Single-Line Plotted Indicators :
🎯 Purpose:
→ Enables you to select a single-line plotted indicator as a source for backtesting. You can define specific levels to trigger 'LONG' or 'SHORT' signals.
💡 How to Use:
→ Choose a Single-Line Plotted indicator as the source.
→ Set the top and bottom levels for the indicator.
→ The script triggers 'LONG' signals at the bottom level and 'SHORT' signals at the top level.
⚙️ Two-Line Plotted Indicators :
🎯 Purpose:
→ Allows backtesting with two-line cross plot sources. Signals are generated based on the crossover of these lines.
💡 How to Use:
→ Select two lines as 'Source 1' and 'Source 2' for the indicator.
→ The script triggers a 'LONG' signal when 'Source 1' crosses above 'Source 2'.
→ Conversely, a 'SHORT' signal is triggered when 'Source 2' crosses above 'Source 1'.
⚙️ Custom Signals :
🎯 Purpose:
→ This setting enables users to define their own criteria for LONG, SHORT, and CLOSE signals based on custom indicator outputs.
💡 How to Use:
→ Select the custom source for your signals.
→ Define the output values that correspond to each signal type (e.g., “1” for 'LONG', “-1” for SHORT, and “0” for CLOSE).
→ The script will trigger signals according to these custom-defined values.
█ TP/SL SETTINGS
The TP/SL (Take Profit/Stop Loss) Settings feature is designed to give users control over their profit securing and risk mitigation strategies. This feature allows for setting custom TP and SL levels, which can be critical in managing trades effectively.
Features:
Custom TP/SL Levels for Long/Short Signals:
🎯 Purpose:
→ Enables users to set specific percentage levels for Take Profit and Stop Loss on long and short signals.
💡 How to Use:
→ In the TP/SL Settings, input the desired percentage for Take Profit (TP) and Stop Loss (SL).
→ For example, to secure a profit at a 10% price increase on LONG signals, set the “Long TP Percentage” to “10”.
█ STRATEGY SETTINGS
Strategy Settings provide a range of options to customize the trading strategy. These settings include leverage, drawdown limits, position direction changes, and more, allowing users to tailor their strategy to their risk tolerance and market view.
Features:
⚙️ Enable Leverage :
🎯 Purpose:
→ Allows users to apply leverage to their trades.
☢️ Caution:
→ High leverage can significantly increase the risk of liquidation.
→ High leverage and a high stop-loss price may override your fixed stoploss percentage, adjusting the stop-loss to the liquidation price.
💡 How to Use:
→ Set the desired leverage ratio in the Strategy Settings.
⚙️ Enable Drawdown Limit:
🎯 Purpose:
→ Sets a maximum drawdown limit, automatically halting the strategy if this limit is reached, thereby controlling risk.
💡 How to Use:
→ Input the maximum drawdown limit (default: 100, min: 0, max: 100).
⚙️ Enable Reverse Position:
🎯 Purpose:
→ Automatically closes a current position and opens a new one in the opposite direction upon detecting a signal for a market trend change.
🎯 Example:
→ If a LONG signal is received while in a SHORT position, the script will close the SHORT position and open a LONG position.
💡 How to Use:
→ Activate this feature in the Strategy Settings.
⚙️ Enable Spot Mode:
🎯 Purpose:
→ Disables short orders, using short signals only for closing long positions.
💡 How to Use:
→ Select the 'Spot Mode' option in the Strategy Settings.
⚙️ Enable Invert Signals:
🎯 Purpose:
→ Inverts all indicator signals, changing LONG signals to SHORT and vice versa.
💡 How to Use:
→ Opt for the 'Invert Signals' feature in the Strategy Settings.
⚙️ Enable Trailing Stop:
🎯 Purpose:
→ Triggers a trailing stop order on the exchange instead of a standard stop market order.
☢️ Caution:
→ The backtesting of this feature on TradingView may not accurately reflect actual strategy performance due to discrepancies between TradingView and exchange mechanisms.
💡 How to Use:
→ Select 'Trailing Stop' in the Strategy Settings.
█ ADVANCED STRATEGY SETTINGS
Advanced Strategy Settings offer sophisticated methods for managing Stop Loss (SL) and Take Profit (TP) using the Average True Range (ATR). These settings are ideal for traders who want to incorporate volatility into their exit strategies.
Features:
⚙️ Enable ATR Stop Loss:
🎯 Purpose:
→ Automatically sets the Stop Loss price using the Average True Range at the time of entry.
💡 How to Use:
→ Activate 'ATR Stop Loss' to have the SL price calculated based on the current ATR.
⚙️ Enable ATR Take Profit:
🎯 Purpose:
→ Sets the Take Profit price based on the Average True Range at the time of entry.
💡 How to Use:
→ Choose 'ATR Take Profit' for TP price determination using ATR.
⚙️ Enable ATR Trailing Stop:
🎯 Purpose:
→ Dynamically updates the Stop Loss price with each new bar, according to the Average True Range.
💡 How to Use:
→ Activate 'ATR Trailing Stop'.
→ Set the ATR Period to define the number of bars for ATR calculation.
→ Adjust the ATR SL Multiplier to determine the stop loss distance.
→ Modify the ATR TP Multiplier for setting the take profit distance.
█ TREND FILTERING SETTINGS
Trend Filtering Settings are designed to align trading strategies with the prevailing market trend, enhancing the precision of trade entries and exits. These settings utilize moving averages for trend analysis and decision-making.
Features:
⚙️ Enable Trend Filtering:
🎯 Purpose:
→ Limits trades based on moving average trends, blocking short trades in an uptrend and vice versa.
💡 How to Use:
→ Enable 'Trend Filtering'.
→ Set Fast and Slow MA Lengths for trend analysis.
→ Select the Timeframe for moving averages.
→ Choose the Moving Average Type for trend filtering.
🎯 Note:
→ Be cautious with timeframe selections; lower timeframes than the base may cause inconsistencies.
⚙️ Enable Exit on Trend Reversal:
🎯 Purpose:
→ Automatically closes a position when a market trend reversal is detected.
💡 How to Use:
→ Turn on 'Exit on Trend Reversal' in the settings.
⚙️ Enable Trend Drawing On Chart:
🎯 Purpose:
→ Visually represents the trend filter directly on the chart for easy reference.
💡 How to Use:
→ Activate 'Trend Drawing On Chart' to see the trend filter overlaid on the trading chart.
█ AUTOMATED ALERT SETTINGS
Automated Alert Settings are designed to integrate your TradingView script with webhook alerts. These settings allow for enhanced strategy execution and management.
Features:
Enable Webhook Alerts:
🎯 Purpose:
→ Trigger BUY, SELL, CHANGE_DIRECTION or MOVE_STOP_LOSS .
💡 How to Use:
→ Enable 'Webhook Alerts' in the settings.
→ Enter your Strategy ID.
→ Optionally, activate 'Override Allocation Percentage' to bypass the preset allocation percentage.
☢️ Caution:
→ Overriding the allocation percentage may result in trade entry errors due to misalignment between entry cost and available balance.
█ DEBUGGING SETTINGS
Debugging Settings are crucial for users who want to analyze and optimize their strategies. These settings provide tools for visualizing alerts on charts and accessing detailed data outputs.
Features:
⚙️ Enable Alert Plotting:
🎯 Purpose:
→ Allows users to visualize trading alerts directly on the chart, aiding in strategy analysis and refinement.
💡 How to Use:
→ Activate 'Alert Plotting' to draw alerts on the chart.
☢️ Caution:
→ It is recommended to disable this feature when creating actual trading alerts, as it can cause latency in signal processing.
⚙️ Enable Debugger Mode:
🎯 Purpose:
→ Facilitates strategy debugging by providing detailed data output in the TradingView Data Window.
💡 How to Use:
→ Turn on 'Debugger Mode' to access real-time data and metrics relevant to your strategy.
█ ADDITIONAL SETTINGS
⚙️ Enable Bar Magnifier
⚙️ Enable Using standard OHLC
Megabar Breakout (Range & Volume & RSI)Hey there,
This strategy is based on the idea that certain events lead to what are called Megabars. Megabars are bars that have a very large range and volume. I wanted to verify whether these bars indicate the start of a trend and whether one should follow the trend.
Summary of the Code:
The code is based on three indicators: the range of the bar, the volume of the bar, and the RSI. When certain values of these indicators are met, a Megabar is identified. The direction of the Megabar indicates the direction in which we should trade.
Why do I combine these indicators?
I want to identify special bars that have the potential to mark the beginning of a breakout. Therefore, a bar needs to exhibit high volume, have a large range (huge price movement), and we also use the Relative Strength Index (RSI) to assess potential momentum. Only if all three criteria are met within one candle, do we use this as an identifier for a megabar.
Explanation of Drawings on the Chart:
As you can see, there is a green background on my chart. The green background symbolizes the time when I'm entering a trade. Only if a Megabar happens during that time, I'm ready to enter a trade. The time is between 6 AM and 4 PM CET. It's just because I prefer that time. Also, the strategy draws an error every time a Megabar happens based on VOL and Range only (not on the RSI). That makes it pretty easy to go through your chart and check the biggest bars manually. You can activate or deactivate these settings via the input data of the strategy.
When Do We Enter a Trade?
We wait for a Megabar to happen during our trading session. If the Megabar is bullish, we open a LONG trade at the opening price of the next candle. If the Megabar is bearish, we open a SHORT trade at the opening price of the next candle.
Where Do We Put Our Take Profit & Stop Loss?
The default setting is TP = 40 Pips and SL = 30 Pips. In that case, we are always trading with a risk-reward ratio of 1.33 by default. You can easily change these settings via the input data of the strategy.
Strategy Results
The criteria for Megabars were chosen by me in a way that makes Megabars something special. They are not intended to occur too frequently, as the fundamental idea of this strategy would otherwise not hold. This results in only 37 closed trades within the last 12 months. If you change the criterias for a megabar to a milder one, you will create more Megabars and therefore more trades. It's up to you. I have adapted this strategy to the 30-minute chart of the EURUSD. In the evaluation, we consider a period of 12 months, which I believe is sufficient.
My default settings for the indicators look like this:
Avg Length Vol 20
Avg Multiplier Vol 3
Avg Length Range 20
Avg Multiplier Range 4
Value SMA RSI for Long Trades 50
Value SMA RSI for Short Trades 70
IMPORTANT: The current performance overview does not display the results of these settings. Please change the settings to my default ones so that you can see how I use this strategy.
I do not recommend trading this strategy without further testing. The script is meant to reflect a basic idea and be used as a tool to identify Megabars. I have made this strategy completely public so that it can be further developed. One can take this framework and test it on different timeframes and different markets.
Doji Candle _ ThaerAbusalahIdentify doji candles in heikin ashi .
the indicator will search for a doji candles that are same in upper and lower wick by 50% and more .
Breakout Probability Indicator (FinnoVent)The Breakout Probability Indicator is a cutting-edge tool designed for traders looking to gauge the likelihood of price breakouts above or below current levels. This indicator intelligently combines Average True Range (ATR) and recent price action to provide a probabilistic insight into potential future price movements, enhancing strategy formulation and risk management.
Core Features:
Volatility Assessment: Utilizes the Average True Range (ATR) to measure market volatility, a critical component in identifying potential breakout scenarios.
Dynamic Price Levels: Calculates and plots potential breakout levels based on recent highs and lows, adjusted for current market volatility.
Probability Estimation: Provides an estimation of the probability of reaching these breakout levels, using a responsive logarithmic scale for improved sensitivity.
Real-time Updates: Continuously updates probabilities and levels as new price information becomes available, ensuring traders have the most current data at their fingertips.
Usage:
Add this indicator to any chart in TradingView to see the upper and lower breakout levels, each accompanied by a dynamically calculated probability percentage. These probabilities help traders understand the potential for price movement in either direction, forming a basis for entry or exit decisions, stop-loss placement, and strategy adjustments.
Compliance and Guidelines:
This script is shared for educational purposes, offering a novel approach to understanding market dynamics. It does not constitute financial advice and should be used as part of a comprehensive trading strategy. Traders are encouraged to backtest and paper-trade any new tool before live implementation to ensure it aligns with their trading style and risk tolerance.
NITS - NIFTY INTRADAY TRADING SYSTEMNSE:NIFTY
Hello Traders..!
This is another indicator / system to make use for NIFTY & BANK NIFTY Intra day trading.
This is my Gift to the traders for this New Year 2024. Use this to your Edge and make some profits. All explained below.
NIFTY INTRA-DAY TRADING SYSTEM
Explanation of Arrays:
-------------------------------
## FIRST 15 MIN SESSION BOX ##
From 09:15 to 09:30 where the initial orders will get collected and Auction takes place.
DO NOT engage into any trade in this session. Let the Box develop.
## INITIAL HIGH / LOW FORMATION SESSION ##
This session is from 09:15 to 10:30.
We can observe the Initial High or Low being formed for the day, that is VALID TILL 11:30.
## NO-TRADE ZONE / ACC. AREA / DAY’S H OR L CONFIRMATION SESSION ##
From 11:30 to 12:30
90% of time this is the session where the whole Day’s High or Low will get confirmed. Sometimes the market may violate this Session!
DO NOT engage into any fresh trade in this area.
Once the box is developed, you can see the Mid price line will be formed which is valid for the afternoon Trading session till 15:30.
## SIGNAL LINE, MIDDLE PRICE LINE, SESSION HIGH LOW LINES ##
Middle Price Line – the dotted line (Red colour) is Mid Price Line for the Initial session box. This acts as an important price level for the whole day.
Signal Line – the Solid line that will form after 10:30. Consider this price line as very important price line to which the price reacts with a good momentum, either break through or rejection and valid for the whole trading day.
Session High Low price line – high and low prices of the Initial session box which acts as a good Support / Resistance / Target / Stop loss. Even previous session’s price lines can also be used for the current day too.
## TREND BOX ##
Multi-Time frame trend box will show the real-time trend on different time frames. This box will be very helpful in trade decision. Please note that at least THREE HIGHER TIME FRAME TRENDS must be in the same direction to support your trade criteria for the better confirmation.
## VOLUME IMBALANCE ##
These orange coloured boxes are very tiny imbalances between prices that were formed during price movements. Algorithm will try to fill these imbalances on its way of filling orders. These price imbalances can be used for our edge while taking trades.
SOME TIPS:
---------------------------
1) Avoid Break out trades
2) Always trade the pull backs
3) Keep your Stops above / below the KEY LEVELS
4) Always follow the Higher Time frame trend while taking a trade.
If you trade in 1m TF consider 5m trend
If you trade in 5m TF consider 1H or 15m trend
5) Consider the higher TF closure of prices only, to validate the break out.
6) Trade what you see, market can do anything it wants.
7) Do not worry about losses. It happens and that is the business.
8) End your trading week in green no matter how big or small the profit is. Consistency is the key this business.
9) Keep in mind that the Market does two things only, either it will FILL THE GAP or GRAB THE LIQUIDITY. Just plan your trades accordingly. Liquidity levels like Previous Session / Day / Week / highs and lows.
10) The Market is a continuous business. It does not end for the specific day. It will not end its Buy or Sell model unless it completes its cycle, hence TRADE WHAT YOU SEE and not WHAT YOU THINK!
11) Unless the key swing high / low is broken and closed, DO NOT consider that move as a reversal. Consider that as a Liquidity grab. And it will continue in its previous trend.
HOW TO TAKE TRADE USING NITS: (one of the Techniques)
--------------------------------------------------------------------------------
As explained above, Do not engage in trade for the first 15 minutes.
Once the 15m box forms then look for divergence between NIFTY and BANK NIFTY.
Both Indices are supposed to trade in the same direction but at key levels and times, these instruments will make DIVERGENCE with its Highs and Lows.
Ex: one Index will make LOW AND LOWER LOW and at the same time other will make LOW AND HIGHER LOW. This deflection can be used for taking Buy Trades.
Ex:
If the Divergence forms at the Bottom then the market will move upwards.
If the Divergence forms at the Top then the market makes down move.
To confirm this divergence, the price will move away from that deflected Lows or Highs.
-----------------------------------
POINTS TO OBSERVE
------------------------------------
Mostly the first 15 min range that forms will either be very large candles or normal candles with rejection wicks or Shaved bar (open and H/L same)
Whenever you observe a very large wide range bars within the 15min range, consider the Day’s high and Low is already formed. And the market will be hovering inside that range only. Very useful for taking 50 points scalping here and there by using the signal line and middle line or Acc box mid line. In this scenario you have three important info of the day, OPEN HIGH & LOW established already, The market will only look for its close.
Ex:
If the market trades with normal candles, then consider your trades in two parts.
From 09:30 to 11:30 and from 12:30 to 15:30 as 11:30 to 12:30 will confirm the current day’s High / Low hence do not take a fresh position within that time.
1) Initial session trade – If the price does not break and close the 15 min range high/low, consider it is going to reverse and continue its trend till 10:30
Ex:
2) Mid session Trade – mostly the market accumulates positions and collects orders between 11:30 to 12:30 for the afternoon session. Once the session box is developed, the middle price line will form. Wait for the market breakout and close off this session’s high or low in Higher TF. The market will continue in the direction of breakout from this session and continue till 15:30. Hence wait for pull back till its mid price / high or low price lines of this Acc box and take trade in the initial breakout direction keeping stop above or below the session’s high or low.
Ex:
## Fixed Range Volume Profile as a Tool ##
-----------------
Note:
-----------------
Kindly do not ask for any codes or script details. The one technique what I explained (Divergence method) is more than enough for making a consistent earnings. Please study and back test / forward test for yourself for atleast 2 weeks time. Every traders aspect and mindset is different in seeing the market movements. Please design your own methodology and CONSIDER this as a BUSINESS..!
JUST.....
Believe the System
Be patient
Be Disciplined &
Be a Successful Earner..!!
LET YOUR ENDS MEET
(Hope I explained well)
THE SQUID 1.0Introduction
Quickly test a goldfish strategy over hundreds of sessions at once.
Goldfish is based on a rejection off the open or close line after price has confirmed in a direction. the expectation is that price will continue to trend after rejecting the open/close line (also called the M7 box).
Rules and triggers
The Squid is a highly specific variation of the goldfish with more defined rules, it works like this:
1. Wait for a breakout out of a 1-hour range (DR) to provide directional bias.
2. Wait for price to return to the open/close line (the M7 box)
3. To trigger a setup price must:
a. Touch or wick through the open/close line. Then 2 subsequent closes outside the box.
b. Close inside the box and then 2 subsequent closes outside the box.
Exceptions and inclusions
1. The confirmation candle can also reject the M7 box and therefore counts as a trigger. This only counts if the confirmation candle is rejecting it with the wick (not the open).
2. Anand limit: If price triggers a setup, but doesn't provide enough RR, this feature places a limit order at the required R that is specified in the settings.
3. False session is when price has wicked or closed into one direction (confirming direction), but then later wicks into the other side of the DR. Once that happens, setups are avoided.
4. Target reached is when price has reached the specified target within the session. It's possible to exclude setups after target reached.
5. News days are possible to filter out. They include big economical events like: FOMC, Powell speeches, CPI, PPI and NFP.
Tips
- Default settings are optimized for ES. When trying on different assets, make sure to play with the settings as different assets prefer different targets, stop losses, closing times, etc.
- Soon I will release a guide on the best settings for different sessions and assets like CL, NQ and 6E, and also share all the knowledge I gained while optimizing the Goldfish setup over the past months.
Bullish Candle Highlighter by MalviyaOverview:
The Bullish Candle Highlighter is a comprehensive and user-friendly TradingView indicator designed to assist traders in identifying individual bullish candles, facilitating the recognition of potential bullish trends and reversal patterns. This tool is meticulously crafted to enhance the precision of your technical analysis, making it an essential addition to your trading arsenal.
Key Features:
Bullish Candle Identification:
The indicator meticulously scans price action, pinpointing individual candles with a bullish bias.
Each identified bullish candle is distinctly marked on the chart for easy recognition.
Minimum Body Size Filter:
To refine the selection of signals, the indicator incorporates a minimum body size filter.
This filter ensures that only candles with a significant body size are considered, reducing noise and enhancing the reliability of bullish signals.
Visual Highlighting:
Bullish candles are visually highlighted with a vibrant green background, ensuring they stand out on your chart.
The visual cues simplify the process of identifying potential entry points during bullish market conditions.
How to Use:
Bullish Candle Identification:
Keep an eye on the chart for instances where the indicator marks a candle with the label "Bullish Candle."
Each marked candle signifies a potential bullish reversal or continuation pattern.
Buy Signal:
Consider entering a long position when the current candle closes above the high of the identified bullish candle.
The indicator's signals can be used to align your trading decisions with emerging bullish trends.
Advanced Tips:
Confirmation with Other Indicators:
Boost the accuracy of your trades by combining Bullish Candle Highlighter signals with other technical indicators or trend analysis tools.
Risk Management:
Implement sound risk management strategies to protect your capital and optimize your trading performance.
Important Note:
The Bullish Candle Highlighter is a valuable tool, but no indicator guarantees profits. Always conduct thorough analysis and consider multiple factors before making trading decisions.
Disclaimer:
This indicator is provided for educational purposes and is not financial advice. Trading involves risk, and past performance is not indicative of future results.
Feel free to tailor the description to match any specific features or nuances of your indicator. Providing detailed information and usage guidance will help users understand and maximize the benefits of your Bullish Candle Highlighter.
Smallest Swing [Truth Indie]This indicator is designed to test the smallest swing draw using the swing capture concept of the Pivot Points High Low indicator, setting the length to 1 for all periods, and combining it with price action that I think makes sense.
Example of a valid swing high.
Example of a valid swing low.
Inside Bars/Candles [CodeCraftedTrading]This Pine Script indicator is designed to identify and visually represent inside bars or candles. Here's a breakdown of its features and functionality:
1. Inputs:
insideCandlesColor: Color of the inside bars or candles.
highColor: Color of the horizontal line representing the high of the inside bar.
lowColor: Color of the horizontal line representing the low of the inside bar.
showHighLowLabel: Option to display labels for the high and low prices.
2. Logic:
The script checks for the conditions of an inside bar:
high < high and low > low
If an inside bar is detected and is not already in the range:
* Stores the high and low prices of the previous bar.
* Records the parent bar index and sets the broken flag to false.
If the current bar's high exceeds the stored high or the low falls below the stored low, the broken flag is set to true.
If the current bar is within the stored high and low range, it is considered in-range.
The script then dynamically plots horizontal lines at the high and low prices of the parent bar until the inside bar is broken.
3. Visualization:
The inside bars are colored based on the insideCandlesColor.
Horizontal lines are drawn at the high and low prices of the parent bar within the inside bar.
Optional labels display the rounded values of the high and low prices.
4. Usage:
Apply the script to your chart.
Adjust the input parameters according to your preferences.
The indicator will highlight inside bars with colored bars and draw lines representing the high and low prices. Labels are optional.
5. Note:
Inside bars are bars where the entire price range is within the high and low of the previous bar.
The script uses historical bar information and visualizes the inside bars dynamically on the chart.
Imbalance indicator (Multi-TimeFrame)(USA) Imbalance Indicator (Multi-TimeFrame) is an indicator designed to visualize the imbalance between two adjacent candles on a chart by drawing rectangles. It helps identify the dominance of buyers or sellers during the price's impulsive movement in an uptrend or downtrend.
Here's how the indicator works:
It determines the trend direction (up or down) based on the closing prices of the last three candles. An uptrend is identified if all three candles closed above their openings, and a downtrend if they closed below.
Depending on the trend direction, the indicator calculates the imbalance between candles. The imbalance is expressed as the difference between the low of the next candle and the high of the previous candle for an uptrend or the low of the previous candle and the high of the next candle for a downtrend. The imbalance value should be greater than 0.
When an imbalance is detected, the indicator draws a rectangle on the chart. The rectangle starts at the candle with the detected imbalance, the upper border is at the top of the imbalance, and the lower border is at the bottom of the imbalance.
The color of the rectangle depends on the trend direction: green for an uptrend and red for a downtrend.
The rectangle continues dynamically to the right until it is intersected by the next candles by 50% or more (by default). The intersection can occur in various combinations (shadow, body, or shadow + body of the candle). Once this happens, the rectangle ends on the last overlapping candle. The height overlap percentage is adjustable in the range of 1 to 100, with a default value of 50%.
Use the Imbalance Indicator to identify potential price reversal zones. Algorithms aim to cover the imbalance and trade the range in which it formed, representing a potential magnet for the price.
In the multi-timeframe version of the indicator, along with the current timeframe, rectangles from timeframes: 15 minutes, 1 hour, 4 hours, and 1 day are displayed by default (and can be adjusted in settings). Other timeframes (e.g., 1 week and 1 month or 30 minutes) can be selected in the settings.
You can activate/deactivate the display of imbalances from different timeframes of your choice by setting the corresponding checkbox.
Additionally, rectangles from different timeframes have different default levels of transparency, decreasing with increasing timeframe.
Frames on additional timeframes are disabled by default in transparency settings; adjust as needed in color settings.
Like in the previous version, you can customize the color scheme of rectangles for each timeframe individually.
Information display about timeframes other than the current one on imbalances is available and can be disabled in settings for each timeframe individually.
For your convenience, in the buyers' interest zone, a label is placed at 50% of the rectangle's width, spanning 3 candles. Now you can set a limit order right at the label without relying on Fibonacci retracements.
(RUS) Imbalance indicator (Multi-TimeFrame) - это индикатор, предназначенный для визуализации имбаланса между двумя соседними свечами на графике путем рисования прямоугольников. Он помогает определить доминирование покупателей или продавцов во время импульсного движение цены на восходящем или нисходящем тренде.
Вот как работает индикатор:
Он определяет направление тренда (вверх или вниз) на основе закрытия последних трех свечей. Тренд вверх определяется, если все три свечи закрылись выше своих открытий, а тренд вниз - если ниже.
В зависимости от направления тренда, индикатор вычисляет имбаланс между свечами. Имбаланс выражается в виде разницы между низом следующей свечи и верхом предыдущей свечи для восходящего тренда или между низом предыдущей свечи и верхом следующей свечи для нисходящего тренда. Значение имбаланса должно быть больше 0.
Если имбаланс обнаружен, индикатор рисует прямоугольник на графике. Прямоугольник начинается на свече с найденным имбалансом, верхняя граница прямоугольника находится на верхней границе имбаланса, а нижняя граница - на нижней границе имбаланса.
Цвет прямоугольника зависит от направления тренда: зеленый для восходящего тренда и красный для нисходящего тренда.
Прямоугольник продолжается вправо динамически, пока его не пересекут следующие свечи на 50% или более (по умолчанию). Пересечение может произойти различными комбинациями (тень, тело или тень + тело свечи). Как только это происходит, прямоугольник заканчивается на последней перекрывающей его свече. Процент перекрытия по высоте настраивается в интервале от 1 до 100, по умолчанию значение 50%.
Используйте Imbalance Indicator для определения зон вероятного возврата цены. Алгоритмы стремятся перекрыть имбаланс и проторговать диапазон, в котором он образовался, это потенциальный магнит для цены.
В мульти-таймфреймной версии индикатора, наряду с текущим таймфреймом, при первом запуске (и до момента, пока вы не измените это в настройках), отображаются прямоугольники с таймфреймов:
15 минут,
1 час,
4 часа,
1 день.
При этом другие таймфреймы (например 1 неделя и 1 месяц или 30 минут) можно выбрать в настройках.
Вы можете активировать/деактивировать отображение имбалансов с разных таймфреймов по вашему выбору, установив соответствующую галочку.
Кроме того, прямоугольники с разных таймфреймов по умолчанию имеют различную степень прозрачности, которая уменьшается по мере увеличения таймфрейма
Рамки на дополнительных таймфреймах, по умолчанию отключены настройками прозрачности, при необходимости измените это в настройках цвета.
Как и в предыдущей версии, вы можете настраивать под себя цветовую схему прямоугольников, причём для каждого таймфрейма в отдельности.
На имбалансах с отличных от текущего таймфреймов, доступно отображение информации о таймфрейме, данная опция отключается в настройках для каждого таймфрейма в отдельности.
Для вашего удобства, в зоне интереса покупателей, на 50% прямоугольника сделана метка шириною в 3 свечи, теперь не нужно натигивать фибо, можете сразу выставить лимитку по метке.
[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!
Back Week For BacktestIt is Backtest Calculator For Essential and Plus plan holders, the length of available intraday data is calculated as follows: from now to 6 weeks back multiplied by timeframe(in minutes), i.e. you can go 6 weeks back on the 1-minute chart, 12 weeks back on the 2-minute chart, 30 weeks back on the 5-minute chart, 90 weeks back on the 15-minute chart and so on. The higher timeframe is selected, the more intraday data is available.
This show creates a weekday label based on the data in the plans allowed by TradingView. This show creates a weekday label based on the data in the plans allowed by TradingView. How much data is available for Bar Replay? According to the article, we can replay 6 weeks backwards for a 1-minute chart. This indicator is a label that shows how far we can go back, consisting of multiplying each minute by 6 between 1 minute and 60 minutes.
1 minute => 6 week backtest
2 minutes => 12 week backtest
.....
15 minutes => 90 week backtest
...
59 minutes => 354 week backtest
ICT Handle CounterThe "Handle Counter" is a unique TradingView script designed for ease and effectiveness in tracking price movements. It's particularly useful for traders who follow ICT methodologies. Users manually input their trade entry price, and the script then dynamically calculates and displays the number of Handles, or price changes, in a clear box above the latest candle on the chart. This real-time updating feature provides traders with crucial, current data on price movement, aiding in informed decision-making and a better understanding of market dynamics.
The "Handle Counter" script operates in the following way:
User Input: It starts by allowing you to input your trade's entry price. This is the price level from which the script will measure price movement.
Handles Calculation: The script calculates "Handles," which represent the price difference from your entry point to the current market price. This is done using a mathematical formula that finds the absolute value of this difference.
Display Mechanism: The calculated Handles are then displayed in a box, which is positioned above the latest candle on your trading chart. This box updates in real-time, giving you an ongoing view of how many Handles (price changes) have occurred since your entry point.
This script is designed to be straightforward and easy to use, providing clear, real-time information.
How to use:
Add the Indicator.
Open the Menu by clicking on the 'Settings' icon.
Navigate to the 'Inputs' tab and enter your entry price.
Click 'OK.' The indicator should immediately place a box above the latest candle, showing the current handles.
Additional Settings
Change Color of the Box
Change Color of the Font
[F][IND] - Candle Range SizeDescription:
Understanding market volatility is paramount for making informed trading decisions, and the Candle Range Histogram Indicator is designed to provide traders with a visual representation of price volatility over time.
Key Features:
1. Histogram Display:
The indicator presents a histogram on your TradingView chart, offering a clear visualization of the range of each candle, calculated as the difference between the high and low prices.
2. Volatility Insight:
Easily identify periods of heightened or subdued volatility. Larger histograms indicate greater price ranges, suggesting increased volatility, while smaller histograms signify lower volatility.
3. Intraday Analysis:
Intraday traders can benefit from monitoring the Candle Range Histogram to gauge volatility patterns throughout the trading day. This information is valuable for setting realistic profit targets and adjusting risk management strategies.
4. Breakout Opportunities:
Recognize potential breakout opportunities by observing significant increases in candle range. Traders often associate expanded ranges with potential strong price movements.
5. Trend Confirmation:
Confirm the strength of trends by assessing consecutive candles with expanding or contracting ranges. This can aid trend-following traders in making more informed decisions.
It's important to note that while the histogram provides valuable information, it's usually more effective when used in conjunction with other technical indicators and analysis methods. Traders often combine multiple tools to gain a comprehensive understanding of the market and make well-informed trading decisions.
Alerts:
You can enable alerts on this indicator to receive timely notifications.
Disclaimer:
This indicator is provided for educational purposes only. Trading involves risk, and users should consult with a financial professional before making any trading decisions.
Your Feedback Matters!
Please feel free to comment or reach out if you have any improvement suggestions or if you would like to request the development of a specific indicator. Your feedback is invaluable!