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
Candlestick analysis
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!
CFX - Plot HTF BarIf you lose track of what's going on while being on the lower timeframes, you can use this indicator in order to plot the higher timeframe bar to the right hand side of the chart.
Supports multiple timeframes
Supports different colors
Supports different color for inside bars
Supports toggle-able pip range
SILVER Midnight Candle Color Strategy 1-Hour Delay and SL/TP Overview:
The "Midnight Candle Color Strategy with 1-Hour Delay and SL/TP" is a unique trading strategy designed for the Forex market. This strategy capitalizes on the color of the midnight candle based on New York time, making trade decisions one hour later, at 1:00 AM.
Key Features:
Time Zone Adjustment: Automatically adjusts to New York time (UTC-5 or UTC-4 during Daylight Saving Time).
Midnight Candle Analysis: Utilizes the color of the midnight candle to gauge market sentiment.
Trade Execution at 1 AM: Trades are executed one hour after midnight based on the previous day's candle color.
Strategic SL/TP: Incorporates predefined stop loss (SL) and take profit (TP) levels for each trade.
How It Works:
The script first determines whether the current bar represents 12:00 AM or 1:00 AM in New York time.
At midnight, it records the color of the candle (green for bullish, red for bearish).
At 1:00 AM, the strategy:
Enters a long position if the midnight candle was green, with specific TP and SL settings.
Enters a short position if the midnight candle was red, again with defined TP and SL.
Visualization:
Optional markers are plotted on the chart for easy visualization of the strategy's entry points at midnight and 1 AM.
Usage Tips:
Ideal for traders focusing on overnight price movements and early morning trends.
Best suited for SILVER trading due to the 24-hour trading cycle.
We recommend backtesting the strategy with historical data to evaluate performance.
Disclaimer:
This strategy is provided for educational purposes and should not be considered as financial advice. Users should conduct their own research and exercise caution while trading. Past performance is not indicative of future results.
I´m not a signal service, however I´m sharing my signals. For free. If you wish to buy something, contact some other signalist, preferably with 5-10-15-20K followers, selling signals on the premium channel, but in reality not trading them themselves. If you will realise after few blown account that something is wrong, ask yourself why is that. Trading is not pushing the buy-sell button and drinking tequila on the beach. If you want to learn, you know what to do.
Candlestick Patterns [NAS Algo]Candlestick Patterns plots most commonly used chart patterns to help and understand the market structure.
Bullish Reversal Patterns:
Hammer:
Appearance: Small body near the high, long lower shadow.
Interpretation: Indicates potential bullish reversal after a downtrend.
Inverted Hammer:
Appearance: Small body near the low, long upper shadow.
Interpretation: Signals potential bullish reversal, especially when the preceding trend is bearish.
Three White Soldiers:
Appearance: Three consecutive long bullish candles with higher closes.
Interpretation: Suggests a strong reversal of a downtrend.
Bullish Harami:
Appearance: Small candle (body) within the range of the previous large bearish candle.
Interpretation: Implies potential bullish reversal.
Bearish Reversal Patterns:
Hanging Man:
Appearance: Small body near the high, long lower shadow.
Interpretation: Suggests potential bearish reversal after an uptrend.
Shooting Star:
Appearance: Small body near the low, long upper shadow.
Interpretation: Indicates potential bearish reversal, especially after an uptrend.
Three Black Crows:
Appearance: Three consecutive long bearish candles with lower closes.
Interpretation: Signals a strong reversal of an uptrend.
Bearish Harami:
Appearance: Small candle (body) within the range of the previous large bullish candle.
Interpretation: Implies potential bearish reversal.
Dark Cloud Cover:
Appearance: Bearish reversal pattern where a bullish candle is followed by a bearish candle that opens above the high of the previous candle and closes below its midpoint.
Continuation Patterns:
Rising Three Methods:
Appearance: Consists of a long bullish candle followed by three small bearish candles and another bullish candle.
Interpretation: Indicates the continuation of an uptrend.
Falling Three Methods:
Appearance: Consists of a long bearish candle followed by three small bullish candles and another bearish candle.
Interpretation: Suggests the continuation of a downtrend.
Gravestone Doji:
Appearance: Doji candle with a long upper shadow, little or no lower shadow, and an opening/closing price near the low.
Interpretation: Signals potential reversal, particularly in an uptrend.
Long-Legged Doji:
Appearance: Doji with long upper and lower shadows and a small real body.
Interpretation: Indicates indecision in the market and potential reversal.
Dragonfly Doji:
Appearance: Doji with a long lower shadow and little or no upper shadow.
Interpretation: Suggests potential reversal, especially in a downtrend.
FalconRed 3 Candlestick LevelsThis Pine Script indicator is designed to enhance price action analysis by identifying specific candle patterns that signal potential buying and selling levels. The analysis is based on the characteristics of the current candle and its two immediate predecessors.
For identifying buying levels, the script examines the wicks of the candles, highlighting areas where buying and selling struggle is evident. The indicator recognizes significant breaks above wick levels, especially when followed by a subsequent candle with a lower wick. This combination suggests that previous selling pressure has been challenged and overcome.
Buy breakout and retest levels are highlighted with green color, providing a clear visual indication of potential buying opportunities. The indicator draws horizontal lines that extend to the right, offering insights into the frequency of retests and the recurrence of similar patterns in specific price zones, thereby confirming and reinforcing the observed price action.
Similarly, the indicator scrutinizes the selling side, pinpointing breakdown and retest levels. These areas are highlighted with red color, aiding in the identification of potential selling opportunities.
This indicator serves as a valuable tool for analyzing price action levels and visualizing buying and selling areas. It can be effectively combined with other technical indicators to enhance confidence in trading decisions. Gain deeper insights into market dynamics and improve decision-making by integrating this candle pattern analysis indicator into your trading strategy.
Dual Moving Average with DotsOverview:
The Dual Moving Average with Dots is a powerful technical analysis tool designed to assist traders in identifying potential trend reversals and confirming trend strength. This indicator combines the simplicity of dual moving averages with visual markers in the form of dots above candles, providing clear signals for both trend following and reversal opportunities.
Key Features:
Dual Moving Averages:
Choose between Simple Moving Average (SMA) and Exponential Moving Average (EMA) for two distinct moving averages.
Customize the source for each moving average, including options such as open, close, high, low, and more.
Adjust the periods for both moving averages to suit your trading preferences.
Visual Signals:
Green Dot: A green triangle-up dot appears above candles where the closing price is greater than both selected moving averages. This signals potential bullish strength and trend continuation.
Red Dot: A red triangle-down dot appears above candles where the closing price is lower than either of the selected moving averages. This signals potential bearish weakness and trend reversal.
Flexible Configuration:
Tailor the indicator to your trading strategy by adjusting parameters such as moving average type, source, and period for each average.
Gain insights into market dynamics by visually interpreting the relationship between closing prices and moving averages.
How to Use:
Trend Confirmation:
Confirm a bullish trend when the green dot appears above a candle, suggesting that the closing price is above both moving averages.
Confirm a bearish trend when the red dot appears above a candle, suggesting that the closing price is below either of the moving averages.
Reversal Signals:
Watch for potential trend reversals when red dots appear, signaling that the closing price is below one of the moving averages.
Customization for Strategy:
Experiment with different combinations of moving average types, sources, and periods to align the indicator with your unique trading strategy.
Usage Tips:
Combine the Dual Moving Average with Dots with other technical indicators for comprehensive market analysis.
Look for confluence with support/resistance levels or chart patterns to enhance the robustness of your trading decisions.
MTF EMA Monitor CQENGLISH
This Dashboard allows you to monitor the Dollar difference between EMAS, if the Dollar difference between EMAS is around $200 on all 3, it is a good entry point for the time frame in which it is happening. It allows you to monitor 15M, 1H, 4H, 1D and 1W timeframes.
SPANISH
Este tablero permite monitorear la diferencia en Dolares entre EMAS, Si la diferencia es de alrededor de $200 en las 3 EMAS, podria ser una buena entrada para la temporalidad en que esta sucediendo. Permite monitorear temporalidades de 15M, 1H, 4H, 1D y 1S.
G2RIntroducing G2R – The Universal Indicator! Unlock the secret to trading success with G2R an extraordinary indicator that provides automatic signals across every time frame and market, from forex, crypto, stocks, & options with over 80% signal accuracy. Say goodbye to guesswork and hello to precision as G2R empowers you with real-time insights , giving you the edge to seize opportunities in any market condition . Elevate your trading strategy and conquer the financial world with G2R – your ultimate guide to profitable trading!
Features
• Bollinger bands
• 2 exponential moving averages
• Automatic buy and sell signals
• Works for Forex, Crypto, Indices, Stocks, & Options
• Tailored for all Timeframes
Trading Tips
• Trading Signals
• 30 Secs - 1 Min | SCALPING
• 3 Min - 5 Min | DAY TRADING
• 15 Min - 1 Hr | SWING & POSITION
• Take signal trades during London, New York, & Asia sessions
• Take Profits are found on the 15 Min, 30 Min, & 1 Hr timeframe at the trend channel or Moving Averages
• Stop loss are found above or below trend channel or moving averages
Warning
Never blindly take a trade on a G2R - wait for a proper market structure to occur before considering a trade.
MTF Market Structure - SMC IndicatorsThe Multi Timeframe Market Structure helps understand and identify bullish or bearish Market Structure by highlighting “KEY” Highs and Lows. It also identifies changes in market direction by identifying a “Shift in Market Structure” (See Point 2 below) or “Break in Market Structure” (See Point 3 Below).
What are Key Highs and Lows?
Not every high or low is a “Key” high or low. “Key” highs and lows are specific highs and lows that form the structure of the market and have significance in understanding the current trend in the market (see point 1 below).
The indicator identifies these “Key” highs and lows on multiple time frames, allowing the trader to keep a perspective of the Market Structure with multiple timeframes simultaneously (see point 5 below).
The key highs and lows identified by the indicator are as follows:
Key Lows : Identify significant Swing Lows, Short-term lows “STL”, Intermediate-Term Lows “ITL”, and Long-Term Lows “LTL”.
Key Highs : Identify significant Swing Highs, Short-term highs “STH”, Intermediate-Term Highs “ITH”, and Long-Term Highs “LTH”.
Significant Swing High : This is a price swing with one lower candle to the right and one lower candle to the left of it.
Significant Swing Low : This is a price swing with one higher candle to the right and one higher candle to the left of it.
Short-Term High “STH” is a price swing with one lower Significant Swing High to the right and one lower Significant Swing High to the left of it.
Short-Term Low “STL” is a price swing with one higher Significant Swing Low to the right and one higher Significant Swing Low to the left of it.
Intermediate-Term High “ITH” is a price swing with one lower STH to the right and one lower STH to the left of it.
Intermediate-Term Low “ITL” is a price swing with one higher STL to the right and one higher STL to the left of it.
Long-Term High “LTH” is a price swing with one lower ITH to the right and one lower ITH to the left of it.
Long-Term Low “ITL” is a price swing with one higher ITL to the right and one higher ITL to the left of it.
By identifying key highs and lows using the Market Structure Indicator, it can be used in multiple ways by using those reference points as follows:
1. Identifying Market Trends by Connecting Key Highs and Lows.
Bullish trend identification is when the indicator is making higher ITLs and ITHs.
Bearish Trend identification when the indicator is making lower ITLs and ITHs.
PS: it’s essential to understand the underlying market trend on multiple timeframes to use the next features correctly. Always use the Shifts and Breaks in Market Structures in line with the 1H or higher timeframes Market Trend for higher probability trade opportunities. This is because, generally, higher timeframes have more importance than lower timeframes.
2. Shift In Market Structure - SMS for Entries
A Shift in Market Structure “SMS” identifies potential reversal in short-term market trend relative to the timeframe where the SMS is identified.
This occurs after a run of any Significant Swing High or Low and then reversing, creating a Fair Value Gap “FVG”.
There can be Bullish and Bearish Market Structure Shifts.
When a Bullish Shift in Market Structure occurs, the indicator identifies an opportunity for the price to change from Bearish to Bullish, as seen in the image below.
When a Bearish Shift in Market Structure occurs, the indicator identifies an opportunity for the price to change from Bullish to Bearish.
3. Break In Market Structure - BMS for Entries
A Break in Market Structure “BMS” has a similar function to the Shift in Market Structure “SMS”; however, when it occurs, it identifies a potential longer-term trend reversal (compared to the SMS) relative to the timeframe where the BMS is identified.
Unlike “SMS”, the BMS occurs after a run only after a run on Key Highs or Lows.
Similar to the SMS, there can be Bullish and Bearish Breaks in Market Structure.
When a Bullish Break in Market Structure occurs, the indicator identifies an opportunity for a longer-term trend change from Bearish to Bullish, as seen in the image below.
The FVG must occur in the lower 50% of the impulse price leg (at Discount).
When a Bearish Break in Market Structure occurs, the indicator identifies an opportunity for a longer-term trend change from Bullish to Bearish.
The FVG must occur in the upper 50% of the impulse price leg (at Premium).
4. Inversion Break and Shift in Market Structure for Early Entries
Inversion “BMS” and “SMS” are similar to the normal SMS and BMS, but they occur:
Bullish: When the FVG of the Bearish BMS/SMS forms in the lower 50% of the impulse price leg (at Discount).
We use the FVG that forms from the Bearish SMS/BMS as an inversion FVG for potential entry after market trend change from Bearish to Bullish.
Bearish: When the FVG of the Bullish BMS/SMS forms in the upper 50% of the impulse price leg (at Premium).
We use the FVG that forms from the Bullish SMS/BMS as an inversion FVG for potential entry after market trend change from Bullish to Bearish.
5. Multi Time Frame analysis
The indicator allows multiple timeframe perspectives to be considered when using it.
The key Highs and Lows have significance not only on the current timeframe they are identified but also on lower or higher timeframes simultaneously.
This is because a ITL/ITH on the 1H means
It’s a LTL/LTH on one or more timeframes lower (15Min, 5M, and 1Min).
And at the same time, it’s a STL/STH on one timeframe higher (4H)
Also, it’s a Significant Low/High (marked with a dot) on two timeframes higher (Daily).
The same logic applies to all other Key Highs and Lows.
Another example is a Significant Low/High (swing marked with a dot below or above it) on the current timeframe (1D) means it’s a STL/STH on one timeframe lower (4H) and an ITL/ITH on two timeframes lower (1H) and a LTH/LTH on three timeframes lower or more (15M, 5M, 1Min, 30 Seconds, etc…).
This Multi-time frame analysis is a great way to help traders understand Market Structure and Market trend on multiple timeframes simultaneously, and it also assists in Top-down analysis.
PS: Note that this multi-timeframe analysis approach and logic can be applied to any timeframe and for any type of trading (swing trading, day trading, scalping, or short-term trading) because the price is fractal.
For example, if a trader is a swing trader, then it’s best to identify trader opportunities on the 1H or higher; however, lower timeframes Market Structure can still be used to help the traders refine their entries and target key highs and lows in the opposite direction.
If a trader is a day trader or a scalper, the trader could use Market Structure on 15M or lower to identify trader opportunities and target key highs and lows in the opposite direction.
6. Setting Targets
The indicator can also be used to identify potential targets after the SMS or BMS occurs. Targets can be chosen above Key Highs or Lows depending on the trade objective and timeframe where the trade idea is identified.
Bonus Features
Highlight Market Structure Trend
This feature is an excellent backtesting visual tool to look at changes in market trends highlighted in colours. These changes are based on the Shift or Break in of Market Structure depending on the selection option.
When "Shift/Break" in Market Structure" is selected, a Bullish trend is highlighted in blue when a Bullish Shift/Break in Market Structure Occurs and in Red when a Bearish Shift/Break in Market Structure Occurs.
Notifications
Sends notifications when there is a Shift or Break in Market Structure on the current timeframe of choice.
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.