Session Breakout/Sweep with alertsThis indicator is based on popular London breakout strategy. but as I noticed that it don't work good with breakouts so I made it to be used as reversal entries as well. By default the timing is set for asian session but you can change it according to your need.
Use as breakout
Use as liquidity sweep
Note:
On some pairs the timing changes automatically (I don't know why), if you face this issue , go to settings and set the timing accordingly and save it as templet so that you don't have to change it every time you load the chart with timing issue.
I hope you guys find it useful. Do share your though and feedback in comments.
Chart patterns
Top and Bottom Identifier [digit23]This indicator is designed to identify potential market tops and bottoms based on customizable conditions. It employs price action analysis, considering candlestick patterns, body size, and recent price history. Traders can adjust parameters like the threshold multiplier and body size multiplier to fine-tune sensitivity.
Features:
Identifies potential tops and bottoms.
Customizable threshold and body size multipliers.
Utilizes price action analysis exclusively.
User-friendly and visually represented on the chart.
Usage:
Red Triangles: Indicate potential market tops.
Green Triangles: Indicate potential market bottoms.
Parameters:
Threshold Multiplier: Adjusts sensitivity.
Body Size Multiplier: Controls the significance of candlestick body size.
Note:
This indicator is for traders preferring price action analysis to identify potential reversals. It's recommended to use alongside other technical analysis tools for comprehensive trading decisions.
Disclaimer:
Trading involves risk; thorough analysis is crucial before making decisions. This indicator is a tool for technical analysis and should be part of a broader trading strategy.
PhantomFlow RangeDetectorPhantomFlow RangeDetector analyzes the current price action of the market and draws ranges depending on the minimum number of bars in the zone of one candle you specify. Each range is colored depending on the closing direction of the candle outside this range. Accordingly, in trend trading, it is advisable to look for long trades from the green zones, and short trades from the red zones (with standard color settings).
If you have a basic understanding of the market context, you can consider such zones in a mirror retest to find trades with higher RR.
Engulfing with TrendThe script above is a trading strategy with rules based on the Engulfing candlestick pattern within the context of the trend. Some key elements of this script include:
1. ATR (Average True Range) settings to measure market volatility.
2. Supertrend settings to identify the market trend.
3. Conditions for determining uptrend and downtrend.
4. Determination of Bullish (Engulfing pattern during uptrend) and Bearish (Engulfing pattern during downtrend).
5. Calculation of Stop Loss (SL) and Take Profit (TP) levels based on the Engulfing pattern.
6. Entry conditions based on the Engulfing pattern and the corresponding trend.
7. Exit conditions based on price crossovers with SL and TP levels.
8. Plotting of the Engulfing patterns on the chart.
This strategy is used to identify trading opportunities based on Engulfing candlestick patterns that align with the direction of the market trend. Additionally, stop loss and take profit levels are calculated based on the Engulfing pattern, and trading signals are displayed on the chart.
It's important to note that this script can be customized according to your trading preferences and strategy.
Z Score CANDLE and Exciting candle signal [DJ D]This script paints candles when their zscore reaches above 2 standard deviations in price from the mean. The blue candle represents up candle above 2. Magenta candle below -2. The candles can signal the beginning of a move and also importantly exhaustion.
The script also signals when a candle has volatility above 6. The higher the sensitivity the less frequent it will paint. These are real time paints and signals. You can adjust for higher time frames by adjusting the length of the z score and adjust the sensitivity of the volatility candles.
The yellow candle is a mean candle and can signify consolidation and/or indecision. Drawing a Darvis type box around around mean candles can give you a zone to watch.
These settings are for 1 minute scalping. The volatility sensitivity range between 1- 2 is good for 15, 30, (ie 1.0 or 1.2) and your discretion....
AMD-PO3-Goldbach levels [promuckaj]This script is developed on time & price, algorithmic market theory that is well explained in the book "Demystifying ICT" by Hopiplaka.
Indicators main features:
*PO3 - Goldbach(IPDA) levels which is based on the size of a price range (dealing range) as a factor of power of three (3^n).
There is PO3 numbers starting from 3 to 177147 as predefined, but also there is field for custom one so that users can experiment.
By selecting the PO3 number script calculate range low and range high using PO3 formula based on the current price and represent it on the chart into multiple levels of Goldbach numbers. At each this levels it is expected to see price that form block, fair value gap etc..., as defined in concept by ICT.
Levels:
Ext => External range
Low => Range low
High => Range high
FVG => Fair value gap
RB => Rejection block
OB => Order block
LV => Liquidity void
BR => Breaker
MB => Mitigation block
*AMD (Accumulation, Manipulation, Distribution) cycles, that can be modified by changing timings and colors.
Using PO3-Goldbach levels to identify where at the current time profile price is, there can be done trades in line with AMD cycles.
Default timings are set for Forex pairs.
*FVG, HIPPO, Displacement is well known parts of a market structure, so those three are also implemented here with some possible changes for them (colors, extension, labels...).
FVG => Fair value gap, imbalances in the market, or when buying and selling are not equal, in most cases can become a magnet for the price.
HIPPO => Hidden interbank price point objective, invention by Hopiplaka to demonstrate meaning of this "hidden" order block. It basically take the wicks of 2 consecutive bars that create a fair value gap.
DISPLACEMENT => It is practically similar to FVG but with option to measure length and strength, where in combination it will calculate and mark candle by looking back to the bars to determine the candle range standard deviation.
FEATURES:
-Multiple PO3 numbers, including special option to set your custom one
-Color and style customization
-Main levels mode, only Low, High and Equilibrium levels
-PO3 table with all PO3 calcs from multiple numbers, and mark the same levels from multiple
-Option to shift DR up or down
-Option to show you always upper/lower main DR levels (Low/High/Eq.)
NOTE:
-First of all special thanks to fxdmn that gives me idea from his indicator, how to present this through my own script.
-GB levels requires the correct symbols price calculation to work properly, everything is done by auto calc, tested well on EURUSD,SP500,DXY,Gold and BTC.
NormInvTargetSeekerNormInvTargetSeeker
The NormInvTargetSeeker is a trading tool designed to aid traders in identifying and capitalizing on Distribution and Accumulation zones, highlighting specific price levels that could serve as targets for future price movements. Although the indicator itself is not multi-timeframe, an effective trading strategy might involve signal validation across multiple timeframes.
🔶 USAGE
The indicator identifies Distribution and Accumulation zones, providing potential targets for future price moves.
Traders are encouraged to use these zones as profit targets or potential reversal points.
Confluence Zones
These zones are identified as regions where various factors or levels converge, signaling an increased probability of price reaction.
They can be used to reinforce signals or identify levels where price might encounter significant resistance or support.
🔹 Trading Strategy
First, identify a signal on your primary trading timeframe.
Manually check higher timeframes to ensure the signal aligns with them.
Use the identified zones, whether Distribution or Accumulation, as target zones for your trades.
🔶 Order Blocks
The NormInvTargetSeeker identifies "Order Blocks" by examining a specified number of consecutive candles with a specific condition: the current candle must completely engulf the previous candle. This means that both the high and low of the current candle are higher and lower, respectively, than the high and low of the previous candle, signifying a dominant move in the direction of the current candle.
🔹 Trading Strategy
Target Confirmation: Order Blocks can serve to confirm target points, providing additional validation for identified levels.
Market Insight: They offer crucial insights into whether "big hands" or institutional players are positioned as buyers or sellers in the market.
Traders can use Order Blocks as a means to validate targets or key price levels, observing if the price reacts significantly upon reaching these blocks.
They can also provide insights into the general market direction or underlying market strength by identifying where the major market players are placing their orders.
🔶 SETTINGS
The indicator allows users to adjust various parameters to customize the display and logic of the tool to fit their needs.
🔹 Display Settings
Users can customize the colors and displays of various zones and labels to match their preferences.
🔶 LICENSE AND CREDITS
This work is licensed under Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). More information here: creativecommons.org
This indicator utilizes a TypeScript implementation of the Normal Inverse function as a reference, which can be found here : github.com
Special thanks to the authors of the referenced code for providing a foundation upon which this indicator was built.
🔶 UPDATES
Current Version: 1.0.0
For future updates, please check the comment section.
🔶 CONTACT
For any questions or suggestions, please feel free to contact @RickSimpson on TradingView.
Market Structure [TFO]The purpose of this indicator is to provide a simple approach to Market Structure. When price is closing over swing highs, we may categorize that as bullish structure; and when price is closing below swing lows, we may categorize that as bearish structure.
We can easily find swing highs and lows via the following built-in Pine Script functions:
ta.pivothigh()
ta.pivotlow()
We can pass in our Pivot Strength parameter to determine the size/significance of these pivots. The lowest value of 1 will validate a swing high when a given high is larger than that of 1 bar to the left and right of it. A pivot strength of 3, for example, would validate a swing high only when a high is larger than that of the 3 bars to the left and right of it, making it much more selective.
In any case, we can simply track the most recent swing highs and lows and check for when price through them. Enabling the Show Pivots option will mark all the swing highs and lows that are being considered for future structure breaks.
If the trend is bearish and we begin closing over swing highs, that would mark a Market Structure Shift (MSS). If the trend is already bullish and we are closing over swing highs, that would mark a Break of Structure (BOS), and vice versa for bearish conditions. MSS essentially signifies reversals in Market Structure while BOS signifies continuations.
Users may also create alerts for Any/Bull/Bear BOS or MSS. Simply create a new alert, select this indicator, and select the desired BOS or MSS criteria.
Liquidity Hunter [ChartPrime]The Liquidity Hunter helps traders identify areas in the market where reversals may occur by analyzing candle formations and structures.
█ Wick-to-Body Analysis:
The Liquidity Hunter analyses each candlestick to identify those with distinctive wick-to-body ratios. By focusing on candles with significant wick imbalances, it can reveal potential liquidity absorption zones that may influence market behavior. Users can fine-tune this ratio to their preferences through customizable body% and wick% inputs, allowing for tailored analysis.
█ Body Size Significance:
To ensure the relevance and impact of its findings, this indicator evaluates the size of the candle body.
Only candles with bodies meeting a certain size threshold are considered, eliminating noise and highlighting candles of significance.
█ Dynamic Target Setting:
The Liquidity Hunter employs the Average True Range (ATR) as a foundation for target calculation. Users can adjust their trading targets by specifying a multiplier, offering flexibility in capturing potential profit or managing risk. Customizable target inputs ensure adaptability to your trading strategy.
█ Stop Loss Protection:
In addition to setting your profit targets, the Liquidity Hunter incorporates stop loss levels, safeguarding your investments from excessive risk. By implementing a well-balanced risk-reward ratio, users may be better at navigating market fluctuations.
█ Market Character Labels:
The Liquidity Hunter Indicator goes beyond basic analysis by detecting changes in market character. It identifies shifts in sentiment providing traders with invaluable insights into evolving market conditions.
█ Candle Color Highlighting:
To enhance user-friendliness and visualization, the indicator employs distinctive candle colors between trades. These color cues help you easily spot and interpret trading opportunities, drawing your attention to potential entry and exit points.
Overall this indicator is designed to help simplify liquidity analysis and give visual targets in a market.
IPDA Standard Deviations [DexterLab x TFO x toodegrees]> Introduction and Acknowledgements
The IPDA Standard Deviations tool encompasses the Time and price relationship as studied by @TraderDext3r .
I am not the creator of this Theory, and I do not hold the answers to all the questions you may have; I suggest you to study it from Dexter's tweets, videos, and material.
This tool was born from a collaboration between @TraderDext3r, @tradeforopp and I, with the objective of bringing a comprehensive IPDA Standard Deviations tool to Tradingview.
> Tool Description
This is purely a graphical aid for traders to be able to quickly determine Fractal IPDA Time Windows, and trace the potential Standard Deviations of the moves at their respective high and low extremes.
The disruptive value of this tool is that it allows traders to save Time by automatically adapting the Time Windows based on the current chart's Timeframe, as well as providing customizations to filter and focus on the appropriate Standard Deviations.
> IPDA Standard Deviations by TraderDext3r
The underlying idea is based on the Interbank Price Delivery Algorithm's lookback windows on the daily chart as taught by the Inner Circle Trader:
IPDA looks at the past three months of price action to determine how to deliver price in the future.
Additionally, the ICT concept of projecting specific manipulation moves prior to large displacement upwards/downwards is used to navigate and interpret the priorly mentioned displacement move. We pay attention to specific Standard Deviations based on the current environment and overall narrative.
Dexter being one of the most prominent Inner Circle Trader students, harnessed the fractal nature of price to derive fractal IPDA Lookback Time Windows for lower Timeframes, and studied the behaviour of price at specific Deviations.
For Example:
The -1 to -2 area can initiate an algorithmic retracement before continuation.
The -2 to -2.5 area can initiate an algorithmic retracement before continuation, or a Smart Money Reversal.
The -4 area should be seen as the ultimate objective, or the level at which the displacement will slow down.
Given that these ideas stem from ICT's concepts themselves, they are to be used hand in hand with all other ICT Concepts (PD Array Matrix, PO3, Institutional Price Levels, ...).
> Fractal IPDA Time Windows
The IPDA Lookbacks Types identified by Dexter are as follows:
Monthly – 1D Chart: one widow per Month, highlighting the past three Months.
Weekly – 4H to 8H Chart: one window per Week, highlighting the past three Weeks.
Daily – 15m to 1H Chart: one window per Day, highlighting the past three Days.
Intraday – 1m to 5m Chart: one window per 4 Hours highlighting the past 12 Hours.
Inside these three respective Time Windows, the extreme High and Low will be identified, as well as the prior opposing short term market structure point. These represent the anchors for the Standard Deviation Projections.
> Tool Settings
The User is able to plot any type of Standard Deviation they want by inputting them in the settings, in their own line of the text box. They will always be plotted from the Time Windows extremes.
As previously mentioned, the User is also able to define their own Timeframe intervals for the respective IPDA Lookback Types. The specific Timeframes on which the different Lookback Types are plotted are edge-inclusive. In case of an overlap, the higher Timeframe Lookback will be prioritized.
Finally the User is able to filter and remove Standard Deviations in two ways:
"Remove Once Invalidated" will automatically delete a Deviation once its outer anchor extreme is traded through.
Manual Toggles will allow to remove the Upward or Downward Deviation of each Time Window at the discretion of the User.
Major shoutout to Dexter and TFO for their Time, it was a pleasure to collaborate and create this tool with them.
GLGT!
SMC Order Block [Truth Indie]Smart Money Concept (SMC)
For me, SMC is a trading philosophy that stems from those with knowledge and understanding of the structure of the Smart Money group's trading system. It is developed through the observation of price behavior.
SMC is related to the Smart Money group or those entities that can influence the market, such as financial institutions, banks, or funds. Market movements are often driven by market fundamentals or economics. The Smart Money group possesses extensive research data for analyzing the market's fundamentals and has the ability to steer the market in various directions based on market and economic fundamentals at a given time.
The SMC concept is adapted from the ICT concept, and it was developed and shared by The Inner Circle Trader.
I have been studying and trying to understand SMC for some time, and I have many questions I would like to explore. The challenge lies in the fact that different sources of knowledge on this topic often have varying teachings, and my proficiency in the English language is limited. As a result, I haven't had the opportunity to study from the primary source, The Inner Circle Trader.
This indicator was created for the purpose of researching Market Structure and Order Blocks, which are integral parts of the SMC Concept.
The fundamental principle for identifying Order Blocks is as follows:
1.Locate swings that create candlestick imbalances.
2.An imbalance refers to a candlestick that is larger than the preceding one and contains a Fair Value Gap (FVG).
This indicator categorizes Order Blocks into four types, and you are encouraged to customize them to suit your preferences.
OB Type1
1.The closing price of candle has an opposite direction to the candle .
2.Candle has a wick longer than its body, by at least 1 times or more (adjustable).
3.Candle has a wick longer than candle , by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type1_HTF
-This condition is the same as OB Type1, but it involves analyzing 6 candles instead. This means looking at a larger time frame, twice as big as the original one.
OB Type2
1.The closing price of candle has the opposite direction to candle .
2.Candle has a body larger than its wick by at least 1 times or more (adjustable).
3.Candle has a body larger than candle by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type2_HTF means observing a larger time frame, specifically twice as big as the previous one.
OB Type3
1.The closing price of candle has the same direction as candle .
2.Candle has a wick longer than its body, by at least 1 times or more (adjustable).
3.Candle has a wick longer than candle , by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type3_HTF means observing a larger time frame, specifically twice as big as the previous one.
OB Type4
1.The closing price of candle has the same direction as candle .
2.Candle has a body larger than its wick by at least 1 times or more (adjustable).
3.Candle has a body larger than candle by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type4_HTF is an indicator that involves looking at a larger time frame, specifically twice as big as the original one.
Order Block Setting
1.Click to activate the OB search in different Types.
2.Adjust the body of the candle .
3.Adjust the strength of the candle or the Imbalance candle.
4.You can change the name of OB.
5.Adjust the font size and color.
6.Adjust the color of the OB BOX and History BOX.
7.Adjust the font of OB HTF.
1.It refers to the value of W for a specific candle.
2.It refers to the value of Im for a specific candle.
3.It refers to the values of W and Im in the HTF.
4.For OB Type1 and Type3, a higher W value will search for candles with a larger wick and a smaller body. When the W value is lower, it will search for candles with a smaller wick and a larger body, moving from low to high.
5.For OB Type2 and Type4, a lower W value will search for candles with a smaller wick and a larger body. When the W value is higher, it will search for candles with a larger wick and a smaller body, moving from high to low.
Market Structure
Comprising the process of breaking the price structure, resulting in BOS (Breakout of Structure) or CHoCH (Change of Character High), and creating new High or Low based on the price structure.
1.When the market forms a price structure with High and Low, when the price moves to disrupt the structure in either direction, it will lead to BOS or CHoCH, resulting in a new High or Low. You can adjust the method of breaking the structure using the close, high, or low.
2.When you break the price structure, a High or Low will be formed on one side, and it will lead to an Inducement Swing. When the price moves and collides, it will create a price range of High and Low. You can adjust the method of breaking the structure using the close, high, or low.
3.There is an option for testing Fibonacci (Fibo). Its function is similar to the Inducement Swing. You can adjust the Fibonacci settings.
Premium & Discount Zone
1.The Premium & Discount Zone will appear based on the current price structure. It helps you see the price zones you are interested in.
2.You can adjust the %Premium & Discount as needed.
3.The OB (Order Block) will be displayed when a price structure of High and Low forms within the Premium & Discount Zone. The OB in this indicator is not a recommendation to buy or sell. You need to research and test various conditions before making trading decisions.
Everyone's trading strategies are different, and it comes down to backtesting and selecting the strategy that suits your individual needs. Hopefully, this indicator will assist the TradingView community of traders in their trading endeavors.
Bullish vs. Bearish Candle CounterFollowing an exhaustive analysis of the most recent 50,000 candles within a given currency pair, a notable equilibrium between bearish and bullish candles has emerged as a persistent market phenomenon. This equilibrium, indicative of the market's continuous endeavor to establish parity, has spurred the development of the following indicator.
The indicator meticulously scrutinizes the preceding 100 candles, promptly triggering an on-chart marker when either bullish or bearish candle counts surpass the threshold of 60%. This marker serves as an invaluable tool, providing traders with a potential signal for the initiation of a trend reversal.
As such, this indicator serves as a valuable asset in a trader's toolkit, offering insights into shifts in market sentiment and the prospect of emerging trends.
Key Features:
- Customizable Candle Count: Traders can set the number of candlesticks to be analyzed in the input parameters, allowing flexibility in their analysis.
- Bullish and Bearish Percentage: Users can define their desired percentage for both bullish and bearish candles in the indicator's settings. The indicator calculates the percentage of each candle type within the specified range.
- Arrow Signals: The indicator plots arrows above or below the current candle, indicating bullish or bearish conditions based on the defined percentage thresholds. A green arrow signifies bullish sentiment, while a red arrow denotes bearish sentiment.
How to Use:
- Adjust Parameters: In the indicator settings, users can customize the number of candlesticks to be analyzed, as well as set their preferred percentages for both bullish and bearish conditions.
- Interpret Arrows: The indicator generates arrows above or below the current candle, reflecting the prevailing market sentiment. A green arrow suggests a bullish bias, while a red arrow indicates a bearish bias.
- Trade with Confidence: Traders can use this indicator as a tool to gauge market sentiment and make informed trading decisions. It helps identify potential entry and exit points based on the chosen percentage thresholds.
Enio_SPX_Accumulation/DistributionThis indicator handles the same inputs used for classic Accumulation and Distribution indicators, but performs the calculations in a different way.
This indicator is used to compare the positive volume (up volume) and the number of advancing stocks against the negative volume (down volume) and the number of declining stocks.
This indicator only measures SPX market breadth (Advancing issues, Declining issues) and SPX volume (Up and down volume)so it is for use only with SPX, SPY or MES. It can also be used with ES, but data outside of regular trading hours is not provided, the indicator in those cases will print a block of the same height and same color as the last RTH bar.
When the histogram is positive or green, the bars change to a lighter color if the current bar is less than the average of the last 3 bars. A continued set of bars with a lighter color could mean that the trend is about to change.
When the histogram is negative or red, the bars change to a lighter color if the current bar is greater than the average of the last 3 bars. A continued set of bars with a lighter color could mean that the trend is about to change.
When the histogram height is low, could signal a choppy market (SPX).
The histogram can help indicate a trending market when the opening trend is maintained and the color of the bars does not change, for example, a solid green increasing histogram can indicate a bullish trending market, while a solid red decreasing histogram will indicate a strong bearish trend.
In intraday trading the indicator can signal if the SPX price changes are supported by volume and market breadth and also allows you to see when these changes or trend are weakening.
The change from green (positive) to red (negative) and vice versa should not be taken alone as a buy/sell signal but as a confirmation of signals from other indicators you trust.
Due to the great specific weight that some stocks have within the SPX price calculation, the divergences of this indicator with SPX, can be taken as warning signals, but should not become an element of trading decisions. . You could see a negative histogram while SPX is positive and vice versa.
Order Block v1Hello Traders :)
I am Only Fibonacci.
While coding this indicator, I examined many concepts and decided to blend them.
I took the method shared by most traders and added different perspectives and options.
First of all, you can choose how many order block regions you want to see on the screen.
Note: The levels displayed on the screen are the sum of bears and bulls.
You can also choose whichever you want to see, bearish or bullish.
You can specify the precision of pivot points.
Whether you want to select a zone with a body or a zone with a wick, you can see this in the settings.
You can extend the regions infinitely with the right extension option.
Breakout mode patterns [yohtza]This indicator detects three kinds of price action patterns:
ii - consecutive inside bars ( high and low inside of the previous bar), triangle on a lower timeframe
oo - consecutive outside bars ( high above the high of the previous bar and the low below the low of the previous bar), expanding triangle on a lower timeframe
ioi - inside outside inside, diamond pattern on a lower timeframe
Traders that trade these patterns are entering on breakouts above/below .When they appear in a trending market, they are good setups for both continuation and reversal swing trades. When they appear in ranging market, they are not nearly as powerful since most breakouts fail in this context. To achieve the highest probability, it is best to trade in the direction of the trend on the last bar in the pattern with a stop loss on the other side and going for a reward that is at least twice the risk.
ZigZag++ FibonacciAuto Fibonacci tools are powerful ways designed to simplify your technical analysis by automatically drawing Fibonacci retracement and extension levels on your chart. This indicator is built to enhance your trading experience with clearer market moves and informative insights.
You can easily spot your waves and patterns when the percentages are moving with you.
Key Features:
Automated Fibonacci Levels: Plots Fibonacci retracement and extension levels based on recent price movements.
Multi-Timeframe Support: This indicator is your versatile companion, offering multi-timeframe functionality. You can seamlessly track Fibonacci levels across different resolutions, providing a comprehensive view of the market.
Two Types of Fibs: Retracement and Timeframe extension Fibonacci levels. Use retracements to identify potential reversal points and extensions to anticipate price targets, giving you a well-rounded perspective on market movements.
Benefits:
Save Time: No more manual Fibonacci drawing; It does this for you in real-time.
Enhanced Analysis: Gain a deeper understanding of potential support, resistance, and price targets.
User-Friendly: Suitable for traders of all levels, this indicator simplifies complex technical analysis.
For the math lovers
I started creating the ZigZag++ based on the MT4 calculation as I found it better performing than the tradingview inbuilt one. I have revised the calculation couple of times and now the final calculation is simple yet more accurate for my analysis.
First, I observe the market direction for the last Depth setting by comparing the rate at which high values reduce and low values increase. When the number of ticks set by Deviation is crossed and the last cross is more than the Backstep candles, then we have our ZigZag points.
These are the points we use in our Fibonacci calculation.
Checkout ZigLib below to use the same logic in your scripts.
Sample usage
This is a 4 Hour configuration with the default settings.
When the trend reversed, some key points I watch are 0.618 and 0.5. The market retraced back and formed the new point for the next ZigZag line on that level. This market behaviour happens quite often on these Fibonacci points. I would be looking for reversal or a break in this zone to know the next step.
Resources
ZigZag++ Lib by me; for retrieving the line points.
Fibonacci Toolkit by Lux Algo; For drawing the Timeframe Fibs. Very Amazing script.
OKX: OriginalStrategy Name: Original
Automated trading strategy for OKX Exchange. The strategy sends orders through alerts and webhooks installed in them to your OKХ account for automated trading.
The strategy tries to determine the range of market movement and makes trades within this range. You can set the maximum take and stop at which the strategy will close the position. Parameter 1 is used to adjust the strategy to the symbol and timeframe you need.
Parameters for OKX signals:
Signal Token - your signal token created on OKX
Order Type - order type Limit, Market
Order Price Offset - In the case of a Limit order, how much it will be offset relative to the current price.
Investment Type - How to calculate the order volume. We recommend using percentage_investment and Amount no more than 50% with 5 leverage.
Amount - Order volume. Depends on the Investment Type field. For percentage_investment we recommend no more than 50%
Strategy parameters:
Take Profit % - The size of the maximum profit in % of the price movement, upon reaching which the strategy will close the position.
Stop Loss % - The size of the maximum loss in % of the price movement, upon reaching which the strategy will close the position.
Param 1 - Strategy parameter for adjusting to the current symbol or timeframe.
Current Backtest:
Account 1000$
Commission 0.1%
OKX: OxygeneStrategy Name: Oxygene
Automated trading strategy for OKX Exchange ready to use. . The strategy sends orders through alerts and webhooks installed in them to your OKХ account for automated trading.
The strategy looks for turning points and enters the market with your specified stop loss and automatically calculated take profit. You can set the maximum stop at which the strategy will close the position. You can use any time frames.
Parameters for OKX signals:
Signal Token - your signal token created on OKX
Order Type - order type Limit, Market
Order Price Offset - In the case of a Limit order, how much it will be offset relative to the current price.
Investment Type - How to calculate the order volume. We recommend using percentage_investment and Amount no more than 50% with 5 leverage.
Amount - Order volume. Depends on the Investment Type field. For percentage_investment we recommend no more than 50%
Recommended:
Use Percentage investment not more than 50.
Leverage not more than 5x
Strategy parameters:
UseTPSL - will strategy use Take and Stop.
Settings Buy|Sell - What kind of logic for looking for the entries. 1 or 2
Stop Loss % - The size of the maximum loss in % of the price movement, upon reaching which the strategy will close the position.
Signals Filter % - Skip signals if it less than filter size
Current Backtest:
Account 1000$
Commission 0.1%
Highlight Day of WeekA simple indicator that highlights certain days of the week by changing the background color of the chart to a specified color. Each day can be highlighted its own respective color.
This can be used to visually search for patterns based on day of the week.
Worm *Public*This Pine Script code is designed to create a custom technical indicator called "Worm" that helps identify trends in the market based on momentum. Let's break down the code and its settings:
Indicator Title and Overlay:
The indicator is named "Worm (Clean)" and is set to be overlaid on the price chart.
Input Settings:
The code defines various input settings, which can be customized by the user. These settings include:
Indicator Settings (e.g., Alpha, Gap)
Backtest Settings (e.g., HighlightCrossovers, ApplyNorm)
Color Settings (e.g., Buy Color, Sell Color, Wait Color)
Location Settings for displaying the indicator above, below, or at the price.
Toggleable Inputs:
These settings allow you to choose whether the momentum indicator should be displayed above, below, or at the price chart. You can also specify the colors for buy, sell, and wait signals.
Indicator Calculations:
The code calculates momentum using various formulas involving the source price data (e.g., open, high, low, close). Momentum values are stored in variables L0, L1, L2, L3, and lrsi.
It also calculates the Color values for the indicator based on certain conditions and user-defined settings.
Bcolor and Scolor are used to determine the color of the plotted indicator based on buy and sell conditions.
Bollinger Bands (BB) and Keltner Channels (KC) Calculation:
The code calculates Bollinger Bands (UpperBB and LowerBB) and Keltner Channels (UpperKC and LowerKC) using the source price data.
It also determines whether the market is in a squeeze (SqzOn) or not (NoSqz) based on the relationship between BB and KC.
Signal Generation:
Buy and sell signals are generated based on various conditions, including momentum values and the squeeze state.
The color of the indicator line is determined based on the buy and sell signals.
LagF Calculation:
The LagF variable is calculated based on certain formulas involving the L0Line, L1Line, L2Line, and L3Line values.
Control Color:
The Color variable is used to control the color of the LagF indicator line based on certain conditions.
Plotting:
The momentum indicator (Val) is plotted on the chart with the specified colors and style.
The LagF indicator (Worm) is also plotted with a dynamic color based on market conditions.
Alerts are triggered when buy or sell signals are generated.
Experimental Section:
This section appears to be left for experimentation and may contain additional code or features.
Overall, this Pine Script code calculates and displays a custom momentum-based indicator called "Worm" on a price chart. It generates buy and sell signals based on momentum and squeeze conditions and allows users to customize various settings, including indicator location and colors. The code is designed for technical analysis and trend identification in financial markets.
TrendLine CrossThis indicator "TrendLine Cross", is designed to plot trend lines so you can spot potential trend reversal points on the charts. The main function is to draw several lines on the chart and identify the crossings between these lines, which can be significant indicators for trading. The lines are based on different periods which can be changed in the settings tabs.
Let's see the characteristics of the trend lines:
_Low Line Color(Green Line): This line connects the lowest point of low prices in the "low_time" period with the lowest point of low prices in the "high_time" period. Indicates a possible short-term support level on the chart.
_Liquidity Up Line Color (Golden Line): This line connects the lowest point of low prices in the "low_time" period with the highest point of low prices in the same period. It represents a liquidity zone and an important resistance in the chart.
_Lower Line Color (Blue Line): This horizontal line connects the lowest point of low prices in the "LowerLine_period" with the lowest point of low prices in the "high_time" period. Indicates a possible long-term support level.
_Upper Line Colorr: This line represents a connection between the highest points of the "high_time" period and the lowest point of the "LowerLine_period". Indicates a possible long-term resistance level.
_Up Line Color (Red Line): This line connects the highest point of high prices in the "high_time" period with the highest point of high prices in the "LowerLine_period". It represents a possible long-term resistance level.
_Liquidity Down Line Color(Golden Line): This line connects the highest point of high prices in the "high_time" period with the highest point of low prices in the "low_time" period. It represents a liquidity point and an important support zone.
The indicator becomes particularly interesting when the lines make crossings. These crossovers could suggest a potential trend change in the market. For example:
Change from Bearish to Bullish: If the "long-term" line (black) crosses the "short- or long-term" line (green or blue) from top to bottom, it could indicate a shift from a bearish to a bullish market , suggesting the opportunity for long positions.
_Changing from Bullish to Bearish: If the "long-term" line (blue) crosses the "short-term" line (red or black) from bottom to top, it could indicate a shift from a bullish to a bearish market, suggesting the opportunity for short positions.
Generally speaking, crossings between these lines can be key points of interest for traders, as they can signal significant changes in price direction.
TREND LINES B/O By Vintage Trader_ The Analytical skillsThis indicator is based on trend lines breakout setup
382 Detector with ArrowsThis indicator searches for all 382 candles on the chart.
For a bullish 382 candle, it means that the body of the candle (open to close) are on the top 38.2% of the entire candle (including the wick). Such candlestick pattern displays a bullish pattern because the buyers are in control and pushed for higher prices at the close of the bar.
On the other hand, a bearish 382 candle, the body of the candle (close to open) are on the bottom 38.2% of the entire candle (including the wick). Such candlestick pattern displays a bearish pattern because the sellers are in control and pushed for lower prices at the close of the bar.
If a bullish 382 candle is detected, a light blue arrow will be displayed on the bottom of the candlestick.
If a bearish 382 candle is detected, a pink arrow will be displayed on the top of the candlestick.
Please note that these are only candlestick pattern detectors and are by no means bullish or bearish trade signals. An upward arrow does not represent any long trade opportunity and similarly a downward arrow does not represent any short trade opportunity. These are just visual representation of candlestick patterns. Please trade at your own risk.