ATR based Pivots mcbwHey everyone this is an exciting new script I have prepared for you.
I was reading an old forex bulletin article some time ago when I came across this: solar.murty.net (or you can download the full bulletin with lots of other good articles here: www.forexfactory.com).
You can already buy this for metatrader (www.mql5.com) so I figured to make it for free for tradingview.
This bulletin suggested that you can reasonably predict daily volatility by adding or subtracting multiples of the daily ATR to the daily opening. Using this you can choose multiples to use as price targets and alternatively as stop losses. For example, if you already have a sense of market direction you can buy at market open place a stop loss at - 1 daily ATR and a profit target at + 3 ATRs for a risk to reward ratio of 3. If you are looking for smaller/quicker moves with a ratio of 3 you can have a stop loss at -0.25 ATR and a take profit at +0.75 ATR.
Alternatively this article also suggests to use this method to catch volatility breakouts. If price is higher than the + 1 ATR area then you can safely assume it will be going to the +2 ATR area so you can put a buy stop at + 1 ATR with a profit target at + 2 ATR with a stop loss at +0.5 ATR to catch a volatility breakout with a risk to reward ratio of 2!
Even further there are methods that you can use with ATRs of multiple window sizes, for example by opening two copies of this indicator and measuring recent volatility with a 1 week window and long term volatility within a 1 month window. If the short term volatility is crossing the long term volatility then there is a high probability chance that even more price movement will occur.
However I have found that this method is good for more than daily volatility , it can also be used to measure weekly volatility , and monthly volatility and use these multiples as good long term price targets.
To select if you want daily, weekly, or monthly values of the ATR of volatility you're using go to the settings and click on the options in the "Opening period". The default window of the ATR here is 14 periods, but you can change this if you want to in "ATR period". Most importantly you are able to select which multiples of the ATR you would like to use in the settings in "ATR multiple 1" which is the green line, "ATR multiple 2" which is the blue line, and "ATR multiple 3" which is the purple line. You can select any values you want to put in these, the choice of 0.25, 0.5, and 1 is not special, some people use fibonacci numbers here or simply 0.33, 0.66, and 0.99.
Repainting issue: This script uses the daily value of the Average True Range (ATR), which measures the volatility that is happening today. If price becomes more volatile then the value of the ATR can increase throughout the day, but it can never decrease. What this means is that the ATR based pivots are able to expand away from the opening price, which should not affect the trades that you take based on these areas. If you base your take profit on one of these ATR multiples and the daily volatility increase this means that your take profit area will be closer to your entry than the ATR multiple. Meaning that your trades will be more conservative.
While this all may sound very technical it is super intuitive, throw this on your chart and play around with it :)
Happy trading!
Индикаторы ширины рынка
FREE TRADINGVIEW FOR TIMEFRAMESWhen doing i.e the 3 minute timeframe turn on the closest timeframe available for you or the candles and wicks will be fucked up.
So if you're doing the 5 hour timeframe candles turn on the 4hr chart on your main chart.
To View the candles in full screen double click the windows with the candlesticks
If you don't have TradingView premium and want to look at custom timeframes you can use this.
For the ticker/coin/pair you want to show enter it like this:
For stocks, only the ticker i.e: MSFT, APPL
For Crypto, "Exchange:ticker" i.e: BITFINEX:BTCUSD, BINANCE:AGIBTC, BITMEX:ADAM19
When setting up the timeframe write i.e:
For minutes/hourly: 5, 240 (4 hour), 360 (6 hour)
For daily/weekly/monthly: 1D, 2W, 3M
When doing i.e the 3 minute timeframe turn on the closest timeframe available for you or the candles and wicks will be fucked up.
So if you're doing the 5 hour timeframe candles turn on the 4hr chart on your main chart.
stock gain% vs index gain %This shows the relative strength or weakness of a stock vs an index on any given candle price movement.
Negative stock candle and relative strength shows accumulation
Positive stock candle and relative weakness shows distribution
accumulation will plot an 'A'
distribution will plot a 'D'
SHIT35 Alt Index (ROC or Volume) [LucF]SHIT35 is an index of 35 Binance alt/BTC pairs. It provides traders with a more reliable read of BTC pairs price movement than the often uncorrelated USD market cap standard.
Because it must read data coming from 35 markets, SHIT35 is painfully slow and should be kept hidden most of the time. Its features will hopefully seduce traders in using it nonetheless for market analysis.
Features
The Index can be calculated using 4 different modes:
1. Total of instant rate of change for all 35 markets ,
2. Cumulative total of ROCs,
3. Average of ROCs,
4. Plus/Minus volume (an aggregate OBV, if you will).
Select only one of the methods at a time to prevent confusion between modes.
An option allows showing the correlation between the Index as it is configured, and another instrument (CRYPTOCAP:TOTAL2 by default).
Markers can be used to identify abnormal movements in the Index. They are generated using Index exits from Bollinger bands.
The chart shows the Index with, from top to bottom, the default mode with BTC pairs, with USDT pairs, then mode 2 and 4 for BTC pairs.
Index Components
The Index is not weighed. The 35 instruments composing the index all have equivalents in the USDT quote currency on Binance, so you can easily change to those pairs using the Settings. Choosing another exchange or quote currency will require modifications to the list of instruments in the indicator’s code, since if one of the markets cannot be found, the indicator will not work. If the instrument exists but has no history for some bars, zero values will be used for them.
Watchlists
I have created a watchlist for the 35 markets in each of the BTC and USDT quote currencies. To import the watchlists, save the text you’ll find at these links in a file named the way you want your watchlist to be named and import them using the “Import Watchlist…” function.
BTC Watchlist: pastebin.com
USDT Watchlist: pastebin.com
Alerts
You can define alerts on any combination of markers you configure. After defining the markers you want the alert to trigger on, make sure you are on the interval you want the alert to be monitoring at, then create the alert, select the indicator, use the default alert condition and choose your triggering window (usually “Once Per Bar Close”). Once the alert is created, you can change the indicator's inputs with no effect on the alert.
Pivot High Low Pointsby using this script you can find Pivot High-Low Points. This script works like Tradingview pivothigh & pivotlow functions.
If you find my works useful, please consider a donation
BTC: 16XRqyS3Vgh1knAU1tCcruqhUrVm4QWWmR
by LonesomeTheBlue
Crypto McClellan OscillatorMcClellan Oscillator for cryptocurrency, taking into account only the top 40 cryptos.
Original code was by LazyBear.
WT_BTC_Dow Jones_2019[wozdux]Comparison of two trading instruments using the indicator. Visual comparison often does not provide complete information. The scale and amplitude of the fluctuations of the two trading pairs are very different. Therefore, it is better to compare indicators from these pairs. I have used for this purpose, the speed indicator of price movement wt. The red line is the wt indicator from the trading instrument that is in the main window. The blue line is an indicator from the pair, which is written in the indicator settings. In addition, the calculation periods for each pair can be taken as the same or different. Often, trading pairs do not fluctuate synchronously, so it is necessary to select the periods of calculation of the wt indicator individually. In this example, Dow Jones and bitcoin were used.
-----------------------
Сравнение двух торговых инструментов с помощью индикатора. Визуальное сравнение часто не дает полной информации. Масштаб и амплитуда колебаний двух торговых пар бывают сильно различаются. Поэтому сравнивать лучше индикаторы от данных пар. Я использовала для этой цели индикатор скорости движения цены wt. Красная линия это индикатор wt от того торгового инструмента, который находится в главном окне. Синяя линия это индикатор от пары, которая прописывается в настройках индикатора. Кроме того, периоды вычислений для каждой пары можно брать как одинаковые, так и разные. Часто торговые пары колеблются не синхронно, поэтому стоит подбирать периоды вычислений индикатора WT индивидуально. В данном примере использовался Доу Джонс и биткоин.
Delta longs-shorts. BITFINEX:BTCUSDFor any timeframe. Use for the BTC/USD pair. It is calculated by the formula: longs - shorts. Used data from Bitfinex. To smooth the values, you can use the EMA embedded in the indicator.
52 Week High/Low to YesterdayThis script adds the 52 weeks (one year) high/low to the chart but it wouldn't update the value on the current trading day, so that it would remain at the same level for the whole trading day. It can come really handy for day trading the day of the 52 weeks high/low breakout/breakdown.
McClellan Oscillator [LazyBear ~ modified]The McClellan Oscillator is a market breadth indicator developed by Sherman and Marian McClellan.
It is calculated from Net Advances, which is the number of advancing issues minus the number of declining issues. Subtracting the 39-day exponential moving average of Net Advances from the 19-day exponential moving average of Net Advances forms the oscillator.
The McClellan Oscillator can be traded with breadth thrusts, centerline crossovers and divergences.
The original code was written by LazyBear - I just modified it to add together all advancing and declining issues from all stock exchanges (NYSE + NASDAQ + others), to make it available on the hourly time frame and also add alerts.
Highs & LowsHigh and Lows Script.
For all the price action lovers out there.
Hope you all enjoy.
Thanks
ADVN-DECLAdvancing - Declining issues indicator which you can use for Bitcoin trading if you, like me, believe that cryptocurrency is highly correlated with the activity on the stock exchanges (yes, the PROs are here, we just didn't know it yet)
This indicator is based on showing the data, as much as possible, as it is, and not messing it up by calculating stuff. Calculation should be used to better understand what the data represents, and not to show beatiful things which are, in fact, not present.
You could, for example, take ADVN and DECL, calculate rma() moving averages and make a RSI out of it. The result is very interesting when applied on the daily time frame, but not as useful for trading.
By the way, I recommend enabling this option:
Right click - Settings - Timezones / Sessions
Please check "Extended hours (Intraday Only)"
I could do it in code with the ticker() function, but I'm under the impression that then, free TV users would not be able to use the indicator.
TA-Money Flow-v2, Stochastic OBVNot sure where I originally got this (somewhere off Tradingview several years ago, thanks to the person who shared), just publishing because of a request.
This is basically a stochastic OBV movement indicator. It is good to work with both price and volume. I've updated to be able to display either as positive only, or both sides (50/-50), also included an invert function. It works great on any time frame, but you need to have volume data.
Enjoy.
I've got a version 3 if you're interested.
Opening range plus essential indicators all in oneThese are some essential indicators I use which do not clog up too much of the window.
Volume Ticks - Increasing Volume Bar Count [LucF]Volume Ticks is a zero-lag market sentiment indicator. It works by providing a cumulative count of increasing volume columns.
A one count is added for each increasing volume column where close>open, and one is subtracted on an increasing volume column if close<open. That’s it. The count does not change when volume hasn’t increased compared to the previous bar’s volume, nor when price does not change. Price movement during the bar, whether 0.001% or 100%, is irrelevant to Volume Ticks; it only moves by 1 at a time.
Given that price is not used in Ticks, it is intriguing how well it tracks—or often leads—price movement. The fact that it doesn’t use price also makes it an ideal companion to most indicators that do use price, whether in momentum or mean-reversion based strategies.
As with my TLD indicator , the postulate behind Ticks is that price movement occurring on increasing volume is more significant than otherwise. In my opinion, the usefulness of Ticks tends to validate this.
Features
The averages can be turned on and off.
A long-term sentiment marker can be turned on.
Markers for BB exits and pause-reversals can be turned on, with the option of showing only long or short markers.
9 alerts can be defined on markers, with the option of choosing only long or short markers.
Use cases
Provides perspective when reading momentum indicators.
Helps identify false momentum tops or bottoms.
Comes in handy in detecting subtle sentiment in consolidations. Instances where slight price movement is accompanied by more important Ticks movements often predate more important price movements.
Helps detect exhaustion in trends.
Things to keep in mind
Volume Ticks show sentiment—not price nor trend. Because it so often mimics price, this is easy to forget.
Volume Ticks is not bound. Its position with regards to the zero line is not particularly useful either; position relative to and interplay between the MAs is much more useful.
Readings are more reliable with many data points. When used on monthly, weekly or daily charts, readings should be validated at shorter intervals. Over the same length of time, a compressed view of a shorter interval will usually provide more reliable readings than the longer interval view.
Being zero-lag, Ticks is inherently noisy. You will see this when using the Pause-Reversal markers.
The signal line will not move if no increasing volume is accompanying price movement, however important that movement may be.
Linear regressions are used in lieu of MAs, except the slow long MA (T5) which uses a simple moving average. The fast MA (T2) is double-smoothed.
Markers 2 are brighter when T3 and T4 are in the direction of the marker. The markers are not this indicator’s most useful feature.
Here is Ticks in action on a chart also using TLD:
Intelligent Moving AverageFor 4 simple moving averages, the script tests every single combination for maximum profitability and finds the best pair.
Combinations:
sma1 and sma2,
sma1 and sma3,
sma1 and sma4,
sma2 and sma3,
sma2 and sma4,
sma3 and sma4
And then paint the pair which get best performance. sma lengths are optional, so you can change lengths as you wish.
You will see in some charts that for example sma1 and sma2 pair was best perfrmance and colored on the chart but then sma2 and sma3 pair got better performance, so script starts to paint sma2 and sma3. so it's dynamic based on best performance.
keep in mind => length1 < length2 < length3 < length4 will be better
I didn't have enough time to test the script, so please comment when you test it.
by LonesomeTheBlue