Percentage of direction alternationThis is just an idea I had and I have no idea whether it will be useful but I thought I would “toss it out into the wild” because if someone finds it of benefit then all the better.
How it works is really simple. It looks at a number of bars/candles back and if two bars next two each other close where one is higher than its open and the other closes lower (a bullish and bearish candle next to each other) then it adds one to the count of alternations. So, if you are looking 10 (adjustable of course) bars back then you can have 9 compares (number of bars subtract one).
If all nine compares are opposite closes of each other then you get a 100% alternation.
I’m not sure if this is useful for anyone but my original thought was the more alternation the more likely you are in ranging and the less you should consider entering a trade or the more you should consider exiting a trade. It might also reflect choppiness to some extent as well.
I also noticed in a couple of spots when I was looking at the results that good trends came just after the alternation peaked around 100% so it might be a bit of an indicator to enter a trade before the move happens.
It shows the alternation percentage but also the “weighted alternation” percentage which I think looks more useful as it give more credence to the alternations closer the live trading.
For visual usefulness you can invert the output so that maximum alternation is 0 instead of 100.
I’ve set it up as being displayed as area but as normal lines is also good.
Let me know if you find a way that it shows something useful for entering or exiting your trades. The more feedback I get the more I’ll throw my crazy notions out there!
The code is structured to easily drop into a bigger system so use it as a lone indicator or add the code to some bigger project you are creating. If you do integrate it into something else then send me a note as it would be nice to know it's being well used.
Enjoy and good luck!
Candlestick analysis
Glan Nilly candle TrendThis script is based on Nilly River Theory, and shows up, down, inner and outer bars according that concept.
it can be used for trend recognition. blue after blue candles show continuation of an upward trend.
red after red candles show continuation of a downward trend. gray candles are members of the trend they are within.
An opposite candle color to previous candles shows minor trend reversal. high of the last candle of a blue after blue candles shows a new up(grey candles within the way are part of that trend).
low of the last candle of a red after red candles shows a new down(grey candles within the way are part of that trend).
if the new up is upper and new down is upper than previous ones, then this is real upward trend. if the new up is lower than and new down is lower than previous ones, then this is real downward trend. it is not allowed to trade in opposite direction of a trend and this indicator help us to recognize the trend.
Pullback by Candle BodyThe Pullback Indicator version 0.2
Identifies pullbacks by checking if the current candle's body is lower than the previous candle's low for a bearish pullback or higher than the previous candle's high for a bullish pullback. Once a pullback has been identified, the Indicator marks the lowest low or highest high of the trend with a circle.
NOTE it's not fully working as expected as it lacks trend analysis in its code, resulting in it indicating pullbacks in the opposite direction of the trend, such as bullish pullbacks in a bullish trend or bearish pullbacks in a bearish trend. This is a work in progress, maybe it will be "improved" in the future.
Price Swing Detection - Smart Money ConceptSince my own style is Smart Money Concept and these days I have seen a lot of my friends who are having trouble identifying structures for their indicators and strategies. I wrote this code so they could use it in their strategy . In fact, this type of structure, as one of the strongest technical structures, can increase the success of your strategy according to your personalization.
The script detects swings (i.e. significant highs and lows) in a financial instrument's price action over a specified period. The user can set the lookback period (number of candles to consider) and the colors of the lines representing bullish and bearish trends.
The script has two functions: detectSwing and pivot high. The detectSwing function calculates the swing highs and lows for the specified number of candles. The function uses the ta.highest and ta.lowest functions to find the highest and lowest prices, respectively, over the lookback period. The function also determines the swing state (high or low) of the current candle and returns the calculated swing values.
The pivot high function calculates the pivot high, which is an important step in detecting bullish structures in the market. If a new top (i.e. swing high) is found, the script updates the pivot high values and creates a line from the recent top to the last bar. The script also updates the trailing maximum values, which are used to extend the top extension line.
For Strategy :
The variable "trendDirection" in the code is used to keep track of the trend state, either bullish (up trend) or bearish (down trend), in the market. The variable is initialized to 0 which represents a downtrend. The value of this variable is updated later in the code based on the calculations of swing highs and lows, pivot crosses, and the trailing maximum. If a bullish structure is detected, the value of "trendDirection" is set to 1, indicating an uptrend.
Orders Blocks [TK]This indicator draw only valid orders blocks on your 1 minute Chart
An order block is created when :
A bullish candle engulf a previous bearish candle
A bearish candle engulf a previous bullish candle
Once the order block is created, a zone is stretched to the actual bar
If the price goes into the order block zone, the zone is reduced accordingly
If the price cross the order block zone, the order block and its zone are deleted
This way, you will have on your screen only the orders blocks nevers crossed
You can choose the color of the bearish and of the bullish order block zone in the settings
NB :
Order block older that 5000 bars are deleted
This indicator works only in the 1 minute timeframe
Weekly Opening Gap (cryptonnnite)In the context of general equities, opening price that is substantially higher or lower than the previous day's closing price, usually because of some extraordinarily positive or negative news. Opening gap using as a potential target which market usually trades to.
OHLC [TFO]Keep higher timeframe OHLC in mind by watching the candle form on LTF charts. Inspired by ICT concepts, specifically concerning the daily OHLC.
Setup 123 ScalperSetup 123 Scalper is characterized by a bottom (buy pattern formed by 3 candles where the 2nd has the lowest minimum) or a top (sell pattern formed by 3 candles where the 2nd has the highest maximum). It has a filter that only shows the signal when the asset is trending. Setup popularized by trader Alexandre Wolwacz (Stormer).
Na linguagem do autor:
O Setup 123 Scalper é caracterizado por um fundo (padrão de compra formado por 3 candles onde o 2º tem a menor mínima) ou um topo (padrão de venda formado por 3 candles onde o 2º tem a maior máxima). Possui um filtro em que só mostra o sinal quando o ativo está em tendência. Setup popularizado pelo trader Alexandre Wolwacz (Stormer).
NET BSP NET BSP derived from Buying & Selling Pressure which is a volatility indicator that monitors average metrics of green and red candles separately.
We could navigate more confidently through market with projected market balance.
BSP allowed us to track and analyze the ongoing performance of bullish and bearish impulsive waves and their corrections.
Due to unintuitive way of measuring decline with SP going up, I decided to remake it into more intuitive version with better precision.
When we encounter the fall it's better to have declining values of tool to be able to cover it visually with ease.
One of the solutions was to create a sense of balance of Buying Pressure against Selling Pressure.
Since we are oriented by growth, it'd be more logical to summarize the market balance with BP - SP
Comparison:
When Buying and Selling Pressure are equal, NET BSP would be at 0.
NETBSP > 0 and NETBSP > NETBSP = 🟢
NETBSP > 0 and NETBSP < NETBSP = 🟡
NETBSP < 0 and NETBSP < NETBSP = 🔴
NETBSP < 0 and NETBSP > NETBSP = 🟡
Hence, we get visualized stages of uptrends and downtrends which allows to evaluate chances and estimations of upcoming counter-waves.
Also, it is worth to note that output clearly shows how one wave is derived from another in terms of sizing.
Feel free to adjust NET BSP arguments to adapt sensitivity to the timeframe you're working on.
Fibonacci Breakout Target LevelsFibonacci Extension
Fibonacci Extension is a powerful technical analysis tool that traders use to predict where the market might find support and resistance. It is based on the Fibonacci sequence and uses levels that are found by extending the 23.6%, 38.2%, 50%, 61.8%, and 100% Fibonacci ratios from a swing high or low. These levels can be used to find possible areas of support and resistance, and traders often use them to figure out when to get into or get out of a trade.
What does this indicator do?
This indicator gets five levels of the Fibonacci Extension and uses it for both the low and the high. The default lookback period is 10 days, and it checks for the highest and lowest price in that period. Then it calculates the extension levels and plots them, and it also adds a line that shows you the current breakout target levels.
How to use?
The primary use intended for this indicator is to be used to determine possible breakout target levels. Let's say you are trading a range and a breakout happens. You can use this indicator to determine possible take-profit zones and possible support and resistance zones.
Features:
Change the lookback period for the Fibonacci Extension levels.
Disable the Fibonacci Bands if you just want to see the FIB levels.
You can also change the 5 levels and add different Fibonacci numbers.
In this image, you can see how you can use this indicator to determine take-profit levels. The Fibonacci Extensions will determine potential support and resistance levels, which could be good places to exit your long or short positions.
Composite Cosmetic CandlesThis is effectively version 2 of my script "Candle Fill % Meter", with a few different/more options available in a more compact form. Choose between multiple oscillator sources, # of dividing lines, and solid or gradient candle fill. Once again this script is intended for use with hollow candles! This script enables you to see more information with less screen space taken up, not to mention it looks nice. Labels by last bar also toggleable in the settings.
Liquidity Hunter - FattyTradesThis indicator is used to automatically identify and plot two forms of liquidity that will be targeted by market makers.
The first form of liquidity is based on multi-time fame highs and lows. It plots 1H, 4H, D, W, & M liquidity on an intraday chart to make it easier to identify. I believe hat liquidity is what drives the market and the most common form of this liquidity can be identified through higher time frame highs and lows. You can use whatever method you prefer to determine which liquidity pool will be targeted. When the liquidity is purged, it will be shown as dotted lines. This should not be used as traditional support/resistance, but rather as targets for the market.
The second form of liquidity is in the form of imbalances or fair value gaps. You can select a higher time frame to be plotted along with the current time frame you're viewing to identify imbalances that will likely be targeted intraday. We know that higher time frame fair value gaps work equally well as targets for market makers. When a higher time frame FVG is broken into, it can also act as a very powerful form of support and resistance. By default, when a fair value gap has been mitigated it will be removed from the chart, however this can be disabled.
Between these two forms of market maker liquidity targets on the chart, it will be easier to formulate a thesis intraday to determine where the market will move. It can help minimize the amount of switching between higher time frames that needs to be done, allowing you to identify targets while trading on your favorite intraday time frame for optimal risk/reward.
In the near future, I will build in alerting mechanism to alert when liquidity on higher time frames as been purged/mitigated.
WRBHG with visual gap blockCredit to AkifTokuz
I would like to give the credit to AkifTokuz, I built this indicator based on AkifTokuz's WRBHD indicator code.
What is added?
I have added the visual block to show the hidden gap (HG). The visual dovetailed the full range of the hidden gap. The size of the block give you a good idea on the strength of the hidden gap, namely a bigger block, a stronger support/resisdence encoutnered. I have also added the direction color code to the indicator, Green block is bull hidden gap and red block is bear hidden gap.
How to use the indicator?
Refer to the chart.
After a hidden gap appear, it has to be tested before placing a trade. Say if a green block appear, the price action tell some bullish traders want to move up the price by creating the price up thrust, however whether those traders are strong enought to continue or whether the market would agree that movement, it has to be tested.
The Test - if the hidden gap can withhold the retracement without being broken, it passed the test and order can be placed accordingly.
Hopes you find this indicator useful and my help you to develop a good winning strategy.
HTF Tool 2HTF Tool 2: Because the previous version was removed for being too powerful.
HTF Tool allows Users to display Higher Timeframe(HTF) Candles on their Chart with retracement lines drawn from the (High/Low) range of the HTF candle, as well as a live HTF MA.
This indicator perfectly handles Requested data to display a non-lagging HTF Moving Average(MA) by bridging a solid historical data stream with the live data stream.
This is done by offsetting plot data backwards to the middle of the last HTF candle, and then drawing a line from the last candle middle, to the live candle middle.
I have manipulated the data display to give the appearance that it consists of only 1 plot line, Whereas in reality, The HTF MA consists of 3 different processes:
- 1 historical plot value, to display the (correct) historical EMA with the same plot points you would see on the HTF chart from the same ema.
- 1 live line, re-drawn at every tick to mimic the way plot values move around while the bar is live.
- 1 live plot value, that is only displayed as a number on the status line and price scale to make it look like these are the outputs from the constantly redrawing line.
Because of this, This indicator displays the exact same way you would see this data on the requested timeframe's chart .
Note: You will see 2 values on the status line, these are the Historic MA, and Live MA values (Left, Right).
When hovering over historic values, a Historic MA value will only display in the middle of the HTF bars (same bar as the HTF wick)
This indicator include:
- HTF Candles, Drawn in the Traditional Candlestick Fashion.
- A User Adjustable HTF EMA / SMA , This Moving Average is accurate the the display you would see on a HTF chart.
- User Adjustable Retracement lines, up to 3 levels. These levels dynamically delete when price crosses them.
- Adjustable Display Range to display more or less HTF candles.
- Toggleable "Safe Mode" to keep the indicator display looking clean at all times.*
All Colors are Customizable to fit your layout style (Candle, Levels, HTF MA)
*Safe mode checks that your current chart's timeframe cleanly multiplies into your requested timeframe an odd number of times. This keeps the HTF candle wicks perfectly centered, and keeps the candle body width perfectly consistent.
If you choose to turn safe mode off here are some things to consider:
All Vertical data is consistent with the HTF requested , ONLY the horizontal alignment of the indicator will be thrown off.
When on low timeframes requesting other relatively low timeframes these issues are extremely more apparent than when requesting substantially larger timeframes.
Example: Safe Mode will likely need to be turned off for any 4h chart request, but as seen in the following image, the bars still look very normal.
Note: If you ONLY want to see the Levels and Moving Average... You ARE capable of requesting the current chart's timeframe. If you do this, the indicator will stop drawing the HTF candles, since your chart already shows that timeframe's candles.
Enjoy!
DR/IDR Case Study [TFO]This indicator was made to backtest the DR / IDR concept (Defining Range / Implied Defining Range). There is only one built in DR session, but it can be changed to fit whatever session you like. Just make sure that the beginning time of the Session parameter matches the end time of the Defining Range parameter.
I'm not trying to validate or invalidate the claims of the DR concept, as the sample size of the success rate from this indicator is likely significantly smaller than that of the backtests where the initial success rates were derived. I'm simply sharing this indicator to encourage others to do their own due diligence by collecting their own data before implementing new concepts in their trading. Likewise I'm also making this open source for those who wish to do different kinds of backtesting and extract more value from this concept - for example, what percentage of the time does the session actually close further from the DR after initially closing through the range? Data like this could be good to track for those looking to make a trading model out of the DR concept.
Please note that all times are set to the "America/New_York" time zone by default. Besides the fact that the input times will use New York local time, this also means that they automatically adjust for Daylight Savings (this only impacts areas that do not observe Daylight Savings).
TICK Divergence + Heikin Ashi [Pt]This indicator identifies divergence between NYSE TICK and price, displays TICK in line, bar, or Heikin Ashi format, calculates various types of moving average lines and shows moving average crossovers.
What is TICK
NYSE TICK, also known as the TICK index, is a technical analysis indicator that shows the number of stocks on the New York Stock Exchange (NYSE) that are trading on an uptick or a downtick in a particular period of time. The TICK index is calculated by subtracting the number of stocks trading on a downtick from the number of stocks trading on an uptick. A reading of +1000 on the TICK index, for example, would indicate that there are 1000 more stocks trading on an uptick than on a downtick. The TICK index is often used as a measure of market sentiment, as it can provide insight into whether there is more buying or selling pressure in the market at a given time. A high TICK index reading may suggest that there is strong buying pressure, while a low TICK index reading may indicate that there is more selling pressure in the market.
The TICK index is usually very volatile, so this indicator is best suited for lower timeframes, such as 1 to 5 min charts.
Features
1) Shows bullish, bearish, hidden bullish and hidden bearish divergences
2) Three display modes for TICK data: Line, Bar, Heikin-Ashi
3) Plot various moving average lines and crossovers. Overall background
4) Configurable significant zones. Background colors will change based on closing TICK value.
Odd_Custom Candle Calendar DayEver wonder how candles would look on a chart if they were tracked by calendar day instead of market days?
Option(s)-
📅Custom start date for candle formation
✖️Candle multiplier
🌈Up / Down Colors
Features-
📋Displays candle data with invisible plots
Use Move to Existing Pane to Overlay on chart.
Can only display a max of 500 candles!
Chart Time and Price Range It is easy to loose track of time and price volatility when the chart automatically scales to the bars on the chart. This helps you keep track.
This is a very simple indicator that is designed to ensure that you're looking at a segment of the chart that is relevant to the trade you're considering in both price distance and time.
The Problem:
When looking at a chart the lowest price is at the bottom of the screen, the highest price is at the top. The time at the beginning of the chart is based on how many bars and what timeframe you're looking at.
But is the price difference between the two wide or narrow? Are you seeing minutes, hours, or days of price action?
You can get the measure tool out, but you'll change the zoom level and now its different. You change the timeframe and its different.
This Solution:
This indicator puts a table on the screen that will tell you the X/Y distance of everything that is on your chart. If your hold period is 5 minutes, why would you be looking at 3 days of price action to find s/r or make a decision on a trade?
This will show you how much price opportunity was available in the amount of time you are currently viewing. Using the PineCoders VisibleChart library, we're retrieving the time and bar_index of the beginning of the chart so that everything that is currently on the chart is measured and it adapts as that changes.
It will work with light and dark themes (you can change the colors) and can be positioned wherever you prefer to see the information.
Disclaimer: This was a quick release script. I wrote it and published the same day. There could be bugs, so send me a message or add a comment to report anything that isn't behaving correctly.
Consecutive Candles lite | Multi Timeframe
Choose to display numbers from 6, 7, 8 or only 9, showing a colored dot until the last number is reached to reduce the clutter
Support and resistance
Customizable labels, several styles are available
Identifies turning point in the trending price of an asset or an index.
Consecutive Candles | Multi Timeframe
Display all numbers or choose from 6, 7, 8 and 9 to reduce the clutter
Support and resistance
Customizable labels, several styles are available
Identifies turning point in the trending price of an asset or an index.
Simple STRAT Tool by nnamWhat this Indicator Does
This indicator is a very simple tool created specifically for experienced Straters. It was created for those Straters who fully understand the 1-2-3 Strat Scenarios, are in need of an easy to use tool, and do not want or need a lot of messy markings on their chart.
The indicator simply allows the user to color code the Strat 1, 2 ,3 (Inside /Outside /Up / Down) Bars as desired and by default extends lines to the right of the chart from the Highs and Lows of the previous 2 Bars giving the user a simple reference for Strat scenario structure breaks.
As shown above, the bars are color coded, but the original bar color is maintained via the border and wick.
If a bar is an Outside Bar or an Inside Bar, it is still easy to identify whether or not the bar was a Bullish or Bearish 1 or 3.
The same goes for 2UP and 2Down Bars - It is easy to identify Bullish or Bearish UP or DOWN Bars.
Optionally, as show in the screenshot below, the user can extend the lines in both directions to get an "at a glance" better understanding of where price is currently vs previous support and resistance areas.
For Straters that prefer to trade only INSIDE BAR BREAKOUTS there is an optional input setting labeled "Trade Inside Bars ONLY".
This setting turns OFF the lines that extend from the 2nd previous bar back and only displays and extend lines from the previous bar IF and ONLY IF the current bar is an INSIDE (one) bar. .
The User Input settings allow for the following customizations:
1. Custom Outside Bar Color
2. Custom Inside Bar Color
3. Custom 2 Up Bar Color
4. Custom 2 Down Bar Color
5. Turn ON or OFF color coded bars
6. Trade only INSIDE Bar Breakouts
7. Extend Lines Both Directions
8. Hide all Lines
The customizable settings above allow the user to hide all lines and turn OFF color coding without having to fully remove the indicator from the chart. This is convenient when the user has another indicator that uses color coded bars or the lines conflict with another indicator and they need to be temporarily disabled.
If you have any questions regarding this indicator please let me know. If you have any suggestions for minor tweaks to the indicator do not hesitate to ask for them.
I hope you enjoy this indicator and get some usefulness from it... HAPPY TRADING!!
Reversal pickerIs a tool used to determine market reversals, this tool is built of RSI and Moving Averages. Main aim of this tool is to help make market analysis easier by catching market reversal zones and alerting traders and investors about the market reversing and whether they should buy or sell.
What the tool do
- The tool catches market reversals
- The tool draw new support and resistance line for that period
- The tool alert you whether to buy or sell
How to use the tool
- Sell below resistance line and buy above support line
- The labels will guide you whether to buy or sell
- By default a red line is a resistance line and a green line is a support line
- By default a red label tells you to place a sell position and a green label tells you to place a buy position
RLT GapsThis tool is meant to help you learn the different types of gaps:
GNG = Gap N Go (flag icon). This occurs
RTG = Retest Gap (x icon)
SETTINGS
Gap Size: Will display a green(bullish) or red(bearish) icon. The 2% (default) gap size will highlight gaps that are greater than the configured setting (2% up or 2% down).
NOTES
The gap size is measured from the previous day CLOSE to the current day OPEN and ignores the current days movement.