[DN]5 virtical lineThis script draws five vertical lines.
you could detect your own time period easily. you would better to use this script with other indicators like moving average.
5本の縦線を描くだけのシンプルスクリプトです。一定期間過去の値動きがどのような状態であったかを識別するための手助けになります。
Анализ свечей
Two Fractals TrendlinesThis study draws a trend line for the last two Bill Williams up-fractals and down-fractals.
Trend line break signals and alerts can optionally be added.
Candles for VSACandles in which the open is equal to the previous close. (For VSA theory)
Свечи в которых открытие равно предыдущему закрытию. (Сделано для анализа по ВСА).
Candlestick Pattern FinderThis script identifies common candlestick patterns and marks them with a tool-tip on the chart. It is a compilation of Tradingview's built-in candlestick finding scripts so it uses the same rules defined by Tradingview to identify the patterns. Instead of using a separate indicator for each candlestick pattern, you can use this script to find all the candlestick patterns with a single indicator.
By default, the script does not mark any of the detected patterns on the chart. You will have to open the indicator settings and enable the patterns you would like to see on the chart. There are also three tick-boxes that let you to enable/disable all the selected bearish/bullish/neutral patterns at once, i.e. if you would like to only see bearish patterns, you can disable all the bullish and neutral patterns at once with the corresponding tick boxes. When you enable bullish patterns again, the script will show your selection of bullish patterns again on the chart.
When you hover on the tool-tips with your cursor, a short description about the pattern will be displayed.
Zidni BullEngulf BearEngulfBullish Engulfing candle that considers the length of the candle and the position of the candle in a downtrend.
Bearish Engulfing candle that considers the length of the candle and the position of the candle in an uptrend.
Bullish Piercing ScannerA piercing pattern is known in technical analysis to be a potential signal for a bullish reversal. The formation in its strictest form is rather rare, but tends to perform better the longer the downtrend in front of it. When technical studies such as RSI, Stochastic or MACD are showing a bullish divergence at the same time a piercing pattern appears, it strengthens the likelihood that this two-day pattern is meaningful.
This is a two-candle pattern. The previous candle must be bearish, the recent candle must open below the close of the previous candle, the recent candle must close above the middle of the previous candle. You can adjust the closing and opening gap between the two candles within this scanner's settings (price).
Kicker ScannerThe kicker pattern is deemed to be one of the most reliable reversal patterns and usually signifies a dramatic change in the fundamentals of the company in question.
It is a 2-candle pattern, whereby there is a significant gap between the body of the most recent candle and the previous candle.
A bullish kicker is one in which the most recent candle is bullish, and the previous candle is bearish.
A bearish kicker is one in which the most recent candle is bearish, and the previous candle is bullish.
I notice this works best for stocks, as there are many gaps in a stock chart. Currencies have few gaps, and thus few kickers.
From within the settings, you can set the minimum permitted gap between the two candles, specified in price, accurate to 6 decimal places; 0.000001.
Harami ScannerThis script searches for the popular Bullish and Bearish Harami patterns. This pattern is characterised by having a pregnant appearance; the doji is the pregnant body, and the taller candle is the mother. I've written this script to be as lenient as possible with the detection, so its still up to you to determine if it looks like an actual Harami, or perhaps it looks more like an engulfing or Marubozu!
Three Stars In The South ScannerAn extremely rare candlestick pattern, that's supposed to be bullish when occurring at the end of a downtrend. Personally, I've only managed to detect partial patterns with candles three and two. After adding the first candle, which is basically a Marubozu, the pattern is impossible to find. This was a request from one of my followers however, so you guys are free to examine the code and go treasure hunting!
I followed the rules from investopedia the best I could, whilst being as lenient as possible - and yet, still no detection. Super rare pattern guys.
8020 Momentum and Pin CandleWe know the 80-20 Rule works very well in real life. It works well in technical analysis and price action as well.
This script identifies strong or momentum candles applying the rule body should be 80% or more of the range This is 80% body and 20% shadow.
Then there are pin candles where there is a 80% shadow and open and close is in one extreme and body is 20% or less.
If we can trade these 8020 candles effectively our trading will improve dramatically.
Use Momentum Candles for entry, stop loss, watching follow through etc
Use Pin Candles to look for reversals.
Works best in direction of trend.
In bullish market, green momentum candles are more powerful and pin candles after retracement is more powerful and vice versa.
Bitcoin Block Height (Total Blocks)Bitcoin Block Height by RagingRocketBull 2020
Version 1.0
Differences between versions are listed below:
ver 1.0: compare QUANDL Difficulty vs Blockchain Difficulty sources, get total error estimate
ver 2.0: compare QUANDL Hash Rate vs Blockchain Hash Rate sources, get total error estimate
ver 3.0: Total Blocks estimate using different methods
--------------------------------
This indicator estimates Bitcoin Block Height (Total Blocks) using Difficulty and Hash Rate in the most accurate way possible, since
QUANDL doesn't provide a direct source for Bitcoin Block Height (neither QUANDL:BCHAIN, nor QUANDL:BITCOINWATCH/MINING).
Bitcoin Block Height can be used in other calculations, for instance, to estimate the next date of Bitcoin Halving.
Using this indicator I demonstrate:
- that QUANDL data is not accurate and differ from Blockchain source data (industry standard), but still can be used in calculations
- how to plot a series of data points from an external csv source and compare it with another source
- how to accurately estimate Bitcoin Block Height
Features:
- compare QUANDL Difficulty source (EOD, D1) with external Blockchain Difficulty csv source (EOD, D1, embedded)
- show/hide Quandl/Blockchain Difficulty curves
- show/hide Blockchain Difficulty candles
- show/hide differences (aqua vertical lines)
- show/hide time gaps (green vertical lines)
- count source differences within data range only or for the whole history
- multiply both sources by alpha to match before comparing
- floor/round both matched sources when comparing
- Blockchain Difficulty offset to align sequences, bars > 0
- count time gaps and missing bars (as result of time gaps)
WARNING:
- This indicator hits the max 1000 vars limit, adding more plots/vars/data points is not possible
- Both QUANDL/Blockchain provide daily EOD data and must be plotted on a daily D1 chart otherwise results will be incorrect
- current chart must not have any time gaps inside the range (time gaps outside the range don't affect the calculation). Time gaps check is provided.
Otherwise hardcoded Blockchain series will be shifted forward on gaps and the whole sequence become truncated at the end => data comparison/total blocks estimate will be incorrect
Examples of valid charts that can run this indicator: COINBASE:BTCUSD,D1 (has 8 time gaps, 34 missing bars outside the range), QUANDL:BCHAIN/DIFF,D1 (has no gaps)
Usage:
- Description of output plot values from left to right:
- c_shifted - 4x blockchain plotcandles ohlc, green/black (default na)
- diff - QUANDL Difficulty
- c_shifted - Blockchain Difficulty with offset
- QUANDL Difficulty multiplied by alpha and rounded
- Blockchain Difficulty multiplied by alpha and rounded
- is_different, bool - cur bar's source values are different (1) or not (0)
- count, number of differences
- bars, total number of bars/data points in the range
- QUANDL daily blocks
- Blockchain daily blocks
- QUANDL total blocks
- Blockchain total blocks
- total_error - difference between total_blocks estimated using both sources as of cur bar, blocks
- number_of_gaps - number of time gaps on a chart
- missing_bars - number of missing bars as result of time gaps on a chart
- Color coding:
- Blue - QUANDL data
- Red - Blockchain data
- Black - Is Different
- Aqua - number of differences
- Green - number of time gaps
- by default the indicator will show lots of vertical aqua lines, 138 differences, 928 bars, total error -370 blocks
- to compare the best match of the 2 sources shift Blockchain source 1 bar into the future by setting Blockchain Difficulty offset = 1, leave alpha = 0.01 =>
this results in no vertical aqua lines, 0 differences, total_error = 0 blocks
if you move the mouse inside the range some bars will show total_error = 1 blocks => total_error <= 1 blocks
- now uncheck Round Difficulty Values flag => some filled aqua areas, 218 differences.
- now set alpha = 1 (use raw source values) instead of 0.01 => lots of filled aqua areas, 871 differences.
although there are many differences this still doesn't affect the total_blocks estimate provided Difficulty offset = 1
Methodology:
To estimate Bitcoin Block Height we need 3 steps, each step has its own version:
- Step 1: Compare QUANDL Difficulty vs Blockchain Difficulty sources and estimate error based on differences
- Step 2: Compare QUANDL Hash Rate vs Blockchain Hash Rate sources and estimate error based on differences
- Step 3: Estimate Bitcoin Block Height (Total Blocks) using different methods in the most accurate way possible
QUANDL doesn't provide block time data, but we can calculate it using the Hash Rate approximation formula:
estimated Hash rate/sec H = 2^32 * D / T, where D - Difficulty, T - block time, sec
1. block time (T) can be derived from the formula, since we already know Difficulty (D) and Hash Rate (H) from QUANDL
2. using block time (T) we can estimate daily blocks as daily time / block time
3. block height (total blocks) = cumulative sum of daily blocks of all bars on the chart (that's why having no gaps is important)
Notes:
- This code uses Pinescript v3 compatibility framework
- hash rate is in THash/s, although QUANDL falsely states in description GHash/s! THash = 1000 GHash
- you can't read files, can only embed/hardcode raw data in script
- both QUANDL and Blockchain sources have no gaps
- QUANDL and Blockchain series are different in the following ways:
- all QUANDL data is already shifted 1 bar into the future, i.e. prev day's value is shown as cur day's value => Blockchain data must be shifted 1 bar forward to match
- all QUANDL diff data > 1 bn (10^12) are truncated and have last 1-2 digits as zeros, unlike Blockchain data => must multiply both values by 0.01 and floor/round the results
- QUANDL sometimes rounds, other times truncates those 1-2 last zero digits to get the 3rd last digit => must use both floor/round
- you can only shift sequences forward into the future (right), not back into the past (left) using positive offset => only Blockchain source can be shifted
- since total_blocks is already a cumulative sum of all prev values on each bar, total_error must be simple delta, can't be also int(cum()) or incremental
- all Blockchain values and total_error are na outside the range - move you mouse cursor on the last bar/inside the range to see them
TLDR, ver 1.0 Conclusion:
QUANDL/Blockchain Difficulty source differences don't affect total blocks estimate, total error <= 1 block with avg 150 blocks/day is negligible
Both QUANDL/Blockchain Difficulty sources are equally valid and can be used in calculations. QUANDL is a relatively good stand in for Blockchain industry standard data.
Links:
QUANDL difficulty source: www.quandl.com
QUANDL hash rate source: www.quandl.com
Blockchain difficulty source (export data as csv): www.blockchain.com
RK's 03 - Candlestick PatternThis code is just a combination of all TradingView's Candlestick Pattern.
I mix all the TV Candlestick Patterns Indicator from the TradingView in Indicator.
Candlestick Patterns by Dipak V2I am really excited to publish my work, I know its at the beginning but there is a lot to come in the future. I am writing a script to identify the candlestick patterns. In this version, I have added Hammer and Hanging Man Pattern in the first version, I know its less but its a beginning, I will keep adding the new information in my script in upcoming versions.
This script is for only learning purpose and not for treading realtime. In this script, it only identifies the pattern and does not check for its confirmation or does not provide any stop-loss, Also it does not check the prior trend before the pattern. These things really matter in the live trade. But in future, I am planning to add these things.
If you like my work, please like or comment your ideas I will try to include those in upcoming versions.
Hanging Man:
Hanging man is a bearish reversal candlestick pattern that signals about the uptrend or advancing phase are over and bulls have lost their control. Color of the candle is not important.
Identity:
1) Comes after a significant up rally or uptrend or advancing phase.
2) Small real body at the top.
3) Long lower shadow at least twice the real body.
4) Very small or no upper shadow.
Confirmation:
Immediate next candle’s close should be below the hanging man’s real body.
StopLoss:
There is a potential resistance level above the top of the hanging man. Stoploss should be above the resistance area or at the high of the hanging man.
Hammer:
Hammer is a bullish reversal candlestick pattern that signals about the downtrend or declining phase are over and bears have lost their control. Color of the candle is not important.
Identity:
1) Comes after significant down rally or downtrend or declining phase.
2) Small real body at the top.
3) Long lower shadow at least twice the real body.
4) Very small or no upper shadow.
Confirmation:
Immediate next candle’s close should be above the hammer’s low.
StopLoss:
There is a potential support level below the low of the hammer. Stoploss should be below the support area or at the low of the hammer.
Note: The candle is the same for Hanging Man and Hammer , Difference is where they appear in the uptrend or in the downtrend that makes the real difference.
NRD Sessions Basic FunctionsThis script is an extension and modification of a popular BackGround color script.
Added
1. Style and programming standards to make is easier to read and modify
2. broke out Asia to Sydney and Tokyo Sessions
3. added override to show ICT Kill zones for London and New York
4. Made all this configurable via settings Menu
Enjoy
watch this space as I intend to do more complex session scripts to allow for High and Lows and Mondays too :-)
Candlestick Pattern IdentifierMy script builds upon another user-submitted script by rebuilding the logic used to identify candlestick patterns. The logic in my script is a mix of strict and lax guidelines to mitigate false flags and present valid buy and sell signals.
-To use this indicator, simply add it to any chart. It will identify trends on any time frame although the lower you go, the more signals you'll see and the higher probability of those signals being false flags. You can also disable any candlestick patterns that you feel are not as useful.
- This indicator works best with Stocks and also with Forex markets to a lesser extent.
- This indicator works the best on the Daily chart and also works (with varying degrees of success) on any timeframe at or above 1 hour. I've found that this indicator works the best when used in tandem with the Daily and Hourly charts with the Hourly chart being used to determine an entry point while the Daily chart is used for long term trend analysis.
Forex Market OpenThis script is to highlight the first candle of weekly forex market open. Only works at UTC-4 Exchange.
Crypto Trader X Candelstick PatternsCrypto Trader X Candelstick Patterns
this andicator contain all candelstick patterns
Bullish & Berash Engulf Candel, Doji & Dragonfly Doji Candel, Hammer Candel, Hanging Man Candel
inverted Hammer Candel, Shooting Star Candel, Marabuzo black & White Candel, Spinning top black & White candel
Abandoned Baby Bearish, Abandoned Baby Bullish, Gravestone Doji Candel, Harami Bearish Candel, Harami Bullish Candel
Kicking Bearish Candel, Kicking Bullish Candel, Long Lower Shadow Bullish Candel, Long Lower Shadow Bearish Candel
Morning Star, Three White Soldiers, Three Black Crows, Tri-Star Bearish & Bullish, Engulf bar color, Reversal bar , bar color
Bollinger Band Reversal StudyThis strategy was inspired by ParallaxFX.
This strategy attempts to predict when a price reversal will happen. It uses bollinger bands, stochastics and candle formations.
The idea is that when an indecision candle, such as a doji, crosses outside the bollinger bands, then is followed by another candle that pushed sharply back inside the bands, you have a setup.
These setups are marked with green arrows to go long and red arrows to go short. Wait until the next candle begins before acting. The arrow may come and go as the price fluctuates, so wait until the candle closes.
Another play is when the same setup occurs, but on the middle bollinger band instead of the outer band.
These setups are marked with blue arrows to go long and yellow arrows to go short. Wait until the next candle begins before acting. The arrow may come and go as the price fluctuates, so wait until the candle closes.
Closing can happen a number of ways. You can use a predetermined risk-reward or look to sell when the price reaches another band.
In summary.
Go long when a green or blue arrow appears.
Go Short when a red or yellow arrow appears.
Green arrows show signs of reversal from lower BB.
Blue arrows show signs of reversal from middle BB.
Red arrows show signs of reversal from upper BB.
Yellow arrows show signs of reversal from middle BB.
Wait for candle with arrow to close before taking trade.
SOT INDICATOR for VSARussian language
SOT бар для VSA (Volume spread analysis)
Индикатор обозначает бары указывающие на остановку цены и возможный разворот.
Индикатор в первую очередь написан для таймфреймов от одного часа. На таймфреймах менее 1 часа сигнал будет приводить к неверным результатам, поскольку вечерние объемы существенно ниже дневных.
условие 1: закрытие текущего бара близко к закрытию предыдущего (достигается путём сравнения среднего диапазона последних 5 баров)
sma(high-close,5) - это средний диапазон за 5 баров
итого получается разница между закрытиями меньше 1/2 среднего диапазона за последние 5 баров.
Условие 2: должен быть хвост продаж или покупок (критерий - составляет не менее 2/3 от всего диапазона бара)
Условие 3: объемы должны быть увеличивающиеся (я взял, что текущей объем должен быть больше среднего за последние 5 баров)
Индикатор следует использовать совместно с теорией VSA.
English language (Google Translate)
SOT bar for VSA
The indicator indicates bars indicating a stop of the price and a possible reversal.
The indicator is primarily written for time frames from one hour. On time frames of less than 1 hour, the signal will lead to incorrect results, since evening volumes are significantly lower than daily volumes.
Condition 1: closing the current bar is close to closing the previous one (achieved by comparing the average range of the last 5 bars)
sma (high-close, 5) is the average range for 5 bars
total, the difference between closures is less than 1/2 of the average range for the last 5 bars.
Condition 2: there must be a tail of sales or purchases (the criterion is at least 2/3 of the entire range of the bar)
Condition 3: volumes must be increasing (I took that the current volume should be more than the average for the last 5 bars)
The indicator should be used in conjunction with VSA theory.
Demo Price Action in RSI Overbought/Oversold zoneCatch Pinbar/Fakey in RSI Overbought/Oversold zone.
Candlestick Patterns - BisayaTCThe script displays a label when a candle stick pattern is detected based on Trends. This is related to the latest Candlestick patterns released in TradingView. I've created this to have all candlestick patterns in one indicator.
Candlestick Patterns can be one of confirmation of a trend you're following or a reversal.
DISCLAIMER: For educational purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR