Price Correction to fix data manipulation and mispricingPrice Correction corrects for index and security mispricing to the extent possible in TradingView on both daily and intraday charts. Price correction addresses mispricing issues for specific securities with known issues, or the user can build daily candles from intraday data instead of relying on exchange reported daily OHLC prices, which can include both legitimate special auction and off-exchange trades or illegitimate mispricing. The user can also detect daily OHLC prices that don’t reflect the intraday price action within a specified percent deviation. Price Correction functions as normal candles or bars for any time frame when correction is not needed.
On the 4th of October 2022, the AMEX exchange, owned by the New York Stock Exchange, decided to misprice the daily OHLC data for the SPY, the world’s largest ETF fund. The exchange eliminated the overnight gap that should have occurred in the daily chart that represents regular trading hours by showing a wick connecting near the close of the previous day. Neither the SPX, the SP500 cash index that the SPY ETF tracks, nor other SPX ETFs such as VOO or IVV show such a wick because significant price action at that level never occurred. The intraday SPY chart never shows the price drop below 372.31 that day, but there is a wick that extends to 366.57. On the 6th of October, they continued this practice of using a wick that connects with the close of the previous day to eliminate gaps in daily price action. The objective of this indicator is to fix such inconsistent mispricing practices in the SPY, NYA, and other indices or securities.
Price Correction corrects for the daily mispricing in the SPY to agree with the price action that actually occurred in the SPX index it tracks, as well as the other SPX ETFs, by using intraday data. The chart below compares the Price Correction of the SPY (top) to the SPX (middle) and the original mispriced SPY (bottom) with incorrect wicks. Price correction (top) removes those incorrect wicks (bottom) to match the SPX (middle).
The daily mispricing of the SPY follows after the successful deployment of the NYSE Composite Index mispricing, NYA, an index that represents all common stocks within the New York Stock Exchange, the largest exchange in the world. The importance of the NYA should not be understated. It is the price counterpart to NYSE’s market internals or statistics. Beginning in 2021, the New York Stock Exchange eliminated gaps in daily OHLC data for the NYA by using the close of the previous day as the open for the following day, in violation of their own NYSE Index Series Methodology. The Methodology states for the opening price that “The first index level is calculated and published around 09:30 ET, when the U.S. equity markets open for their regular trading session. The calculation of that level utilizes the most updated prices available at that moment.” You can verify for yourself that this is simply not the case. The first update of the NYA price for each day matches the close of the previous day, not the “most updated prices available at that moment”, causing data providers to often represent the first intraday bar with a huge sudden price change when an overnight price change occurred instead. For example, on 13 Jun 2022, TradingView shows a one-minute bar drop 2.3%. With a market capitalization of roughly 23 trillion dollars, the NYSE composite capitalization did not suddenly drop a half-trillion dollars in just one minute as the intraday chart data would have you believe. All major US indices, index ETFs, and even foreign indices like the Toronto TAX, the Australian ASXAL, the Bombay SENSEX, and German DAX had down gaps that day, except for the mispriced NYSE index. Price Correction corrects for this mispricing in daily OHLC data, as shown in the main chart at the top of this page comparing the original NYA (top) to the Price Corrected NYA (bottom).
Price Correction also corrects for the intraday mispricing in the NYA. The chart below shows how the Price Correction (top) replaces the incorrect first one-minute candles with gaps (bottom) from 22 Sep 2022 to 29 Sep 2022. TradingView is inconsistent in how intraday data is reported for overnight gaps by sometimes connecting the first intraday bar of the day to the close of the previous day, and other times not. This inconsistency may be due to manually changing the intraday data based on user support tickets. For example, after reporting the lack of a major gap in the NYA daily OHLC prices that existed intraday for 13 Jun 2022, TradingView opted to remove the true gap in intraday prices by creating a 2.3% half-a-trillion-dollar one-minute bar that connected the close of the previous day to show a sudden drop in price that didn’t occur, instead of adding the gap in the daily OHLC data that actually took place from overnight price action.
Price Correction allows users to detect daily OHLC data that does not reflect the intraday price action within a certain percent difference by changing the color of those candles or bars that deviate. The chart below clearly shows the start of the NYSE disinformation campaign for NYA that started in 2021 by painting blue those candles with daily OHLC values that deviated from the intraday values by 0.1%. Before 2021, the number of deviating candles is relatively sparse, but beginning in 2021, the chart is littered with deviating candles.
If there are other index or security mispricing or data issues you are aware of that can be incorporated into Price Correction, please let me know. Accurate financial data is indispensable in making accurate financial decisions. Assert your right to accurate financial data by reporting incorrect data and mispricing issues.
How to use the Price Correction
Simply add this “indicator” to your chart and remove the mispriced default candles or bars by right clicking on the chart, selecting Settings, and de-selecting Body, Wick, and Border under the Symbol tab. The Presets settings automatically takes care of mispricing in the NYA and SPY to the extent possible in TradingView. The user can also build their own daily candles based off of intraday data to address other securities that may have mispricing issues.
Educational
Simple Sessions - [TTF]In working with a lot of new traders, one of the most common hurdles that they tend to encounter is properly identifying the various major trading sessions around the world. While it's pretty intuitive to grasp the basic concept, the biggest struggle is around the time conversion. Most people are pretty familiar with the trading session most local to them (e.g. US residents are generally pretty familiar with when the US session is relative to their local timezone), but tend to have much more difficulty in determining when exactly the start and end times are of "foreign" sessions (e.g. Europe or Tokyo). This can be even more challenging when trying to account for regional time differences (like Daylight Savings Time), and larger global time differences (e.g. seasons in opposite hemispheres are reversed). It was with these things in mind that we took to making this version of a sessions indicator to help people better visualize and interact with the various sessions in a more intuitive manner.
Key features include:
Individual settings and configuration for each major session (America/New York, Europe/London, and Asia/Tokyo), along with customizable highlighting color for the Europe/US Mixed session
Session start and end times are configured as the local time for those session (e.g. America/New York session time is configured relative to the US Eastern timezone)
The indicator will automatically handle the timezone conversion and correctly display the sessions on chart regardless of the user's on-chart configured timezone
Users can customize which days of the week that they want the sessions to include or exclude based on their personal preferences and trading schedule (e.g. exclude Fridays since that is when most news events occur)
There is an additional fully-customizable session that can be configured (including reference timezone) for a fully-custom trading window visualization (helpful for people with constraints in their trading availability and can't align with one of the "major" sessions)
We hope that the community finds this as helpful as we hope, and feedback is always welcome!
Liquidity RaidsA raid/sweep occurs when price takes out a previous high/low i.e., price sweeps a level, grabs liquidity and reverses. When this occurs in higher time frames (HTF) like 1h, 4h, daily, etc., there's a greater chance for minor/major reversal/pullback in lower time frames (LTF). For clarification, this is not my concept - ICT students and price action traders call it "liquidity grab", some call it "stop hunt", some call it "evil market maker", etc. There are some indicators which plot this already, but none of them have what I need (multi-timeframe support and filtering swing points).
Typically, we look for raids in HTF, which is set to the timeframe parameter of the indicator. Then, we go into LTF for execution, and we'll see HTF raids plotted there (which greatly eases backtesting and execution). We can also check "filter swing points" to only show raids of swing points (3-candle pattern).
The above chart shows this indicator in action (1m chart showing raids from 15m with swing point filter enabled).
This indicator also supports setting alerts for raids.
Capital Asset Pricing Model (CAPM) [Loxx]Capital Asset Pricing Model (CAPM) demonstrates how to calculate the Cost of Equity for an underlying asset using Pine Script. This script will only work on the monthly timeframe. While you can change the default inputs, you should study what CAPM is and how this works before doing so. This indicator pulls various types of data from SPY from various timeframes to calculate risk-free rates, market premiums, and log returns. Alpha and Beta are computed using the regression between underlying asset and SPY. This indicator only calculates on the most recent data. If you wish to change this, you'll have to save the script and make adjustments. A few examples where CAPM is used:
Used as the mu factor Geometric Brownian Motion models for options pricing and forecasting price ranges and decay
Calculating the Weighted Average Cost of Capital
Asset pricing
Efficient frontier
Risk and diversification
Security market line
Discounted Cashflow Analysis
Investment bankers use CAPM to value deals
Account firms use CAPM to verify asset prices and assumptions
Real estate firms use variations of CAPM to value properties
... and more
Details of the calculations used here
Rm is calculated using yearly simple returns data from SPY, typically this is just hard coded as 10%.
Rf is pulled from US 10 year bond yields
Beta and Alpha are pulled form monthly returns data of the asset and SPY
In the past, typically this data is purchased from investments banks whose research arms produce values for beta, alpha, risk free rate, and risk premiums. In 2022 ,you can find free estimates for each parameter but these values might not reflect the most current data or research.
History
The CAPM was introduced by Jack Treynor (1961, 1962), William F. Sharpe (1964), John Lintner (1965) and Jan Mossin (1966) independently, building on the earlier work of Harry Markowitz on diversification and modern portfolio theory. Sharpe, Markowitz and Merton Miller jointly received the 1990 Nobel Memorial Prize in Economics for this contribution to the field of financial economics. Fischer Black (1972) developed another version of CAPM, called Black CAPM or zero-beta CAPM, that does not assume the existence of a riskless asset. This version was more robust against empirical testing and was influential in the widespread adoption of the CAPM.
Usage
The CAPM is used to calculate the amount of return that investors need to realize to compensate for a particular level of risk. It subtracts the risk-free rate from the expected rate and weighs it with a factor – beta – to get the risk premium. It then adds the risk premium to the risk-free rate of return to get the rate of return an investor expects as compensation for the risk. The CAPM formula is expressed as follows:
r = Rf + beta (Rm – Rf) + Alpha
Therefore,
Alpha = R – Rf – beta (Rm-Rf)
Where:
R represents the portfolio return
Rf represents the risk-free rate of return
Beta represents the systematic risk of a portfolio
Rm represents the market return, per a benchmark
For example, assuming that the actual return of the fund is 30, the risk-free rate is 8%, beta is 1.1, and the benchmark index return is 20%, alpha is calculated as:
Alpha = (0.30-0.08) – 1.1 (0.20-0.08) = 0.088 or 8.8%
The result shows that the investment in this example outperformed the benchmark index by 8.8%.
The alpha of a portfolio is the excess return it produces compared to a benchmark index. Investors in mutual funds or ETFs often look for a fund with a high alpha in hopes of getting a superior return on investment (ROI).
The alpha ratio is often used along with the beta coefficient, which is a measure of the volatility of an investment. The two ratios are both used in the Capital Assets Pricing Model (CAPM) to analyze a portfolio of investments and assess its theoretical performance.
To see CAPM in action in terms of calculate WACC, see here for an example: finbox.com
Further reading
en.wikipedia.org
HMA w/ SSE-Dynamic EWMA Volatility Bands [Loxx]This indicator is for educational purposes to lay the groundwork for future closed/open source indicators. Some of thee future indicators will employ parameter estimation methods described below, others will require complex solvers such as the Nelder-Mead algorithm on log likelihood estimations to derive optimal parameter values for omega, gamma, alpha, and beta for GARCH(1,1) MLE and other volatility metrics. For our purposes here, we estimate the rolling lambda (λ) value used to calculate EWMA by minimizing of the sum of the squared errors minus the long-run variance--a rolling window of the one year mean of squared log-returns. In practice, practitioners will use a λ equal to a standardized value put out by institutions such as JP Morgan. Even simpler than this, others use a ratio of (per - 1) / (per + 1) to derive λ where per is the lookback period for EWMA. Due to computation limits in Pine, we'll likely not see a true GARCH(1,1) MLE on Pine for quite some time, but future closed source indicators will contain some very interesting industry hacks to get close by employing modifications to EWMA. Enjoy!
Exponentially weighted volatility and its relationship to GARCH(1,1)
Exponentially weighted volatility--also called exponentially weighted moving average volatility (EWMA)--puts more weight on more recent observations. EWMA is calculated as follows:
σ*2 = λσ(n - 1)^2 + (1 − λ)u(n - 1)^2
The estimate, σn, of the volatility for day n (made at the end of day n − 1) is calculated from σn −1 (the estimate that was made at the end of day n − 2 of the volatility for day n − 1) and u^n−1 (the most recent daily percentage change).
The EWMA approach has the attractive feature that the data storage requirements are modest. At any given time, we need to remember only the current estimate of the variance rate and the most recent observation on the value of the market variable. When we get a new observation on the value of the market variable, we calculate a new daily percentage change to update our estimate of the variance rate. The old estimate of the variance rate and the old value of the market variable can then be discarded.
The EWMA approach is designed to track changes in the volatility. Suppose there is a big move in the market variable on day n − 1 so that u2n−1 is large. This causes our estimate of the current volatility to move upward. The value of λ governs how responsive the estimate of the daily volatility is to the most recent daily percentage change. A low value of λ leads to a great deal of weight being given to the u(n−1)^2 when σn is calculated. In this case, the estimates produced for the volatility on successive days are themselves highly volatile. A high value of λ (i.e., a value close to 1.0) produces estimates of the daily volatility that respond relatively slowly to new information provided by the daily percentage change.
The RiskMetrics database, which was originally created by JPMorgan and made publicly available in 1994, used the EWMA model with λ = 0.94 for updating daily volatility estimates. The company found that, across a range of different market variables, this value of λ gives forecasts of the variance rate that come closest to the realized variance rate. In 2006, RiskMetrics switched to using a long memory model. This is a model where the weights assigned to the u(n -i)^2 as i increases decline less fast than in EWMA.
GARCH(1,1) Model
The EWMA model is a particular case of GARCH(1,1) where γ = 0, α = 1 − λ, and β = λ. The “(1,1)” in GARCH(1,1) indicates that σ^2 is based on the most recent observation of u^2 and the most recent estimate of the variance rate. The more general GARCH(p, q) model calculates σ^2 from the most recent p observations on u2 and the most recent q estimates of the variance rate.7 GARCH(1,1) is by far the most popular of the GARCH models. Setting ω = γVL, the GARCH(1,1) model can also be written:
σ(n)^2 = ω + αu(n-1)^2 + βσ(n-1)^2
What this indicator does
Calculate log returns log(close/close(1))
Calculates Lambda (λ) dynamically by minimizing the sum of squared errors. I've restricted this to the daily timeframe so as to not bloat the code with additional logic required to derive an annualized EWMA historical volatility metric.
After the Lambda is derived, EWMA is calculated one last time and the result is the daily volatility
This daily volatility is multiplied by the source and the multiplier +/- the HMA to create the volatility bands
Finally, daily volatility is multiplied by the square-root of days per year to derive annualized volatility. Years are trading days for the asset, for most everything but crypto, its 252, for crypto is 365.
MapMap - an indicator that shows the highest and lowest points on the price movement road.
The calculation is based on the type of price data specified in the "Source" parameter and the length of the time interval specified in the "Length" parameter.
The indicator helps to visually find a local trend and rebound points.
Thanks for your attention!
Average Volume ProfileAverage Volume Profile is an abstract based on a user suggestion.
The information displayed could be summed up as a volume profile divided by a market profile.
This indicator is a profile which displays the average volume of an area (of price).
It also calculates and displays the highest average volume point (HAV) and the relating value zones (calculated in the similar fashion to a volume profile).
Most of the code is directly from my "Volume/Market Profile" Indicator
I am not entirely sure of how to make use of the information displayed in this indicator or how useful it is.
However, I have added some things I figured would be useful to comprehend this information, such as:
- Read-out for highest average volume
- Read-out for current price average volume
- Read-out for current candle distributed volume (labeled as: "Vol")
- Floating line to visualize the current distributed volume in relation to the rest of the profile.
- Color changing labels for when the current distributed volume is higher than the current price avg volume.
Enjoy!
Visual Range Quarter Points [dasanc]Introduction
This tool can be used in multiple ways:
explore a Symbol's historical volatility for DCA and Grid trading strategies.
combine with Order Blocks as confluence before entering trades
intra-trade management - partial exits and moving SL into profits
Features
Draw Quarter Point levels on chart based on the visible range. Interval between levels is automatically calculated by default to have ~10 levels on chart.
As you scroll through the chart or change timeframes, the interval and levels are updated.
Change the color, width of levels as a percentage of the interval, and draw additional levels as needed.
Choose to display a dashboard with relevant information on levels:
Price range - High and Low on visible range
Interval - display as Currency or PIPs for Forex pairs
Number of Levels drawn
-Cheers, DasanC
Hussarya compare DJI SPX BTCScript shows relations between DJI downJones SPX and BTC:USD.
DJI chart must be set from candlestick to line
Red line is price (close). x 8
Green line ist te price BTCUSD from Binance price (close) x 1.5
Volume/Market ProfileVolume/Market Profile is a 2 in 1 Volume Profile and Market Profile Indicator.
This indicator is my own calculations for compiling a volume profile and market profile.
The profile is progressively calculated live as the chart develops.
I have made use of both Boxes AND Lines to allow me to display a finer granularity profile by displaying up to twice the max amount of lines allowed in tradingview.
I have spent a lot of time to make sure the values are getting appended exactly as intended so that I can assure this profile is operating as precisely as possible within the limitations of the data available.
To make my calculations easier to use in other places, I have made my volume profile a function that can be extracted and used whenever you need values from a volume profile.
Feel free to read through the script if you don't understand how this profile is developed. I have made a commentary of my volume profile function to help you understand what exactly happens to compile the profiles.
As mentioned before, This indicator doubles as a market profile. To view both at the same time you will need to add the indicator on your chart twice.
I have built in comprehensive customizations to allow you to display your profiles however fits your needs.
Timeframe: The aggregation period for profiles, to see a 1 week profile, change the timeframe to 1 week.
Note: You can add custom timeframes by adding a custom timeframe in your chart timeframe dropdown menu. When you add timeframes in this area, they appear as options within indicators with the timeframe input.
Sensitivity: Allows for greater or less granularity changes. The calculation method for granularity automatically changes depending on the range of your chart.
Note: Multiply this value by 100 and that will be the max range (in ticks) of your price before the indicator automatically adjusts to make the profile less granular. (ex. If price ranges $1, and 1 tick is $0.01, granularity will be 0.01 with a sensitivity of 1+)
Value Area %: % of total volume to display as the value zone. (_% of total profile values are contained within the value zone)
Calculate as Market Profile: Uses a 1 Instead of the candle volume, to display a Market Profile. (If selected POC -> TPOC)
Display Size: Sets the # of bars from the profile axis to the profile's max value. If set negative, profile will be displayed left of axis, if positive, profile will be displayed to the right of the axis.
Display Offset: Sets the # of bars in front(or behind) the current chart bar to set the axis of the profile. If negative, the axis will be to the left of the current chart bar, if positive the axis will be right of the current chart bar.
Display Historical POC/VAH/VAL: Choose to display historical poc,vah,val lines.
Colors: I'm not explaining colors.
Enjoy!
Sector RotationThis script is attempt to create and observe the real-time and historical performance of the all major sectors of Indian Market in one screen.
for Data Presentation I used Short sector names so that I can manage to get space and efficient presentable data.
Short Names and Actual Sector Names
BNF : CNX-BANKNIFTY
IT : CNX-IT
PRMA : CNX - PHARMA
FMCG : CNX-FMCG
AUTO : CNX-AUTO
MTAL : CNX-METAL
MDIA : CNX-MEDIA
RLTY : CNX-REALTY
IFRA : CNX-INFRA
ENGY : CNX-ENERGY
PSU-B : CNX-PSU-BANK
PVT-B : NIFTY-PVT-BANK
F-SRV : CNX-FINANCE
CONSM : CNX-CONSUMPTION
C-DUBL : NIFTY_CONSR_DURBL
You can use this script in 30-min, Daily, Weekly and Monthly Time Frames.
The green Square denotes the current Symbol Performance.
The Blue Border boxes are created when one sector intersects other sector.
In this Update following features are added
Now users have control over sectors, what are all the sectors you wanted to plot you can select from the input menu.
Currently user can highlight any one sector in different border color so that user can easily spot and track particular sector.
This thicker blue line denotes lowest and highest point of the current timeframe.
[FriZz]Watermark -- Watermark by FriZz | FrizLabz --
Lets you Customize a watermark how ever you would like
There are 4 Textboxes in the settings window 2 for your inputs
There's 1 with instructions/examples and 1 with Special Characters (there are tons more online)
-- The options you can type into Textbox 1 and 2 --
- Volume
- Open
- Close
- High
- Low
- Ticker [ Chart ticker ]
- Ticker2 [ Optional 2nd ticker that can be set in the settings will also display close ]
- TF
- Day
- Date
- Time
- Session
- SessionTime
-- Important --
These options need to be spelled and Case matched correctly or it will simply just display the word
You can add anything around a word or between two words you would like
If you want a new line simply press [ ENTER/RETURN ] and continue
-- Tooltip --
Tooltip appears when you mouse over the watermark
There are options to change the session times if you need too
The Sessions will be listed on the tooltip with Session times
I think that pretty much covers most of it if you have any questions or suggestions on this or anything else I've made
or if I missed a bug.. feel free to comment or DM me
Enjoy! - FriZz
SPX and Federal Net Liquidity differenceScript for applying Federal Net Liquidity to the SPX post-2020 monetary policy. Original indicator from jlb05013 with adjustments to make it more readable and usable. When the indicator is above 250 the SPX is overbought and when it's below -250 the SPX is oversold.
It's not perfect, I'm just publishing because I didn't see it already out there.
Supertrend, MA 44|6, EMA FIBS 13|21|34I have this indicator based on my strategy. This indicator is based on existing functions available in the system. I haven't added anything new. This indicator uses Supertrend, MA44|6, EMA fibs 13|21|34 combining to find a profitable trade.
- Supertrend : Indicator uses supertrend strategy with default ATR period of 10 and Factor value 3. These values can be customized based on your preferences. Uptrend is denoted by green color and downtrend by red color. You can change the colors based on your preferences.
- MA 44|6: Indicator plots moving averages of 44 and 6. These values can be customized based on your preferences. Although it is highly recommended to keep 44 as is. Value 6 can be adjusted based on your preference. Default color for uptrend is green and for downtrend is red. You can change the colors based on your preferences.
- FIBS EMA 13|21|34: Indicator plots EMA of fibbonacci numbers 13, 21,34 to identify consolidation and breakout. The periods can be adjusted but it is highly recommended not to do so. Default colors for 13,21 and 34 is Aqua, Blue and Navy respectively. You can change the colors based on your preferences.
When to take trade?
To take a trade all conditions needs to be fulfilled.
Supertrend : Always take a trade in the direction of Supertrend. It is always advisable to take trade if the trend is changing or price is taking support of resistance.
MA 44|6: Moving average 44 indicates average price of 44 last candles and 6 for last 6 candles. Price crossing MA 44 indicates change in trend. It is advisable to take trade at crossing the line above or below. If many candles closing near MA 44 then it indicates consolidation. The more far the candle closes from MA44 the better. MA 6 is used to identify when to enter or exit the trade. If candle closes away from MA 6 then you can wait for candle to start near the MA 6 line. If candle closes above/below MA 6 you can exit your trade.
Fibonacci 13|21|34: When all lines are closed it indicates consolidation. When price breakouts to either direction you can take a trade in that direction with following conditions.
Bullish Trade:
When to enter?
If candle closed above MA 44, Supertrend is uptrend and EMA Fibs are moving away and are above MA 44. The price is near to MA 6 line then you can enter into bullish trade. If price is away from MA 6 then you should wait until the price/line comes near to avoid loss.
When to exit?
Price moving in opposite direction:
You should set a stop loss when you enter the trade. The stop loss can be set below the low of the previous candle or any other strategy you have. But it is really important to set the stop loss. If price moves in opposite direction then your stop loss will hit and you will be out of the trade.
Price moving in same direction:
Once you enter the trade you can exit based on two conditions whichever suits you.
1. Exit the trade if candle closes below MA6. The drawback is you may exit too early. You can also adjust the period based on your preferences.
2. Exit the trade if candle closed below low of previous candle. The drawback is you may book less profit but you can capture the movement very well.
Bearish Trade:
When to enter?
If candle closed below MA 44, Supertrend is downtrend and EMA Fibs are moving away and are below MA 44. The price is near to MA 6 line then you can enter into bearish trade. If price is away from MA 6 then you should wait until the price/line comes near to avoid loss.
When to exit?
Price moving in opposite direction:
You should set a stop loss when you enter the trade. The stop loss can be set below the low of the previous candle or any other strategy you have. But it is really important to set the stop loss. If price moves in opposite direction then your stop loss will hit and you will be out of the trade.
Price moving in same direction:
Once you enter the trade you can exit based on two conditions whichever suits you.
1. Exit the trade if candle closes below MA6. The drawback is you may exit too early. You can also adjust the period based on your preferences.
2. Exit the trade if candle closed below low of previous candle. The drawback is you may book less profit but you can capture the movement very well.
When not to take trade?
1. If MA 44 is completely horizontal and EMA Fibs are very close to each other. This indicates that the market is consolidated and if you enter the trade you may hit stop loss very often.
Note: Please note that I am not expert and I don't take any responsibility of your profits or losses. I have created this indicator based on my knowledge and it is for study purpose. Use of this indicator is totally your responsibility. Use all your knowledge and expertise and don't totally depend on the indicator. Don't forget to use stop loss and do money management.
Happy Trading!
HOTW/LOTW frequencyThis indicator plots a table of the frequency of which day the week the high-of-the-week and the-low-of-the week are formed.
You will need to manually update the symbol open days in the settings (FX = 5, crypto = 7)
Make sure you are on the Daily timeframe to get the correct results
Invest-Long : Script for quick checks before investingA simple script to verify RSI, SMAs, VWMA, and Pivots on Daily, Weekly, and Monthly time frames.
In case if you are not interested in SMA's or want to add different cheks -- simply copy the script to local and edit.
Happy investing.
Add the script to any chart and table values remain the same irrespective of current chart resolution, as it checks on Daily, Weekly, and Monthly time frames.
The table has multiple columns.
1st column checks on RSI value on all 3 timeframes. Ideally, look for all green and D>W>M
2nd Column: Check current Close is above 20 SMA and 50 SMA on Daily / Weekly / Monthly time frames
3rd Column: Check SMA 13> SMA 34, SMA 34 > SMA 55 and SMA 20 > SMA 50 on Daily / Weekly time frames
4th Column: Check Current close is above Weekly Pivot and Monthly Pivot. And also verify Close is above 4 Week High.
5th Column: Verify Close is above Daily VWMA. Also Daily VWMA is > Weekly VWMA and Weekly > Monthly.
// Similarly you can add more checks based on different time frames
Feel free to trouble me incase if need help.
Crypto Map Dashboard v1.0🔰Overview
Charts are an essential part of working with data, as they are a way to condense large amounts of data into an easy to understand format. Visualizations of data can bring out insights to someone looking at the data for the first time, as well as convey findings to others who won’t see the raw data. There are countless chart types out there, each with different use cases. Often, the most difficult part of creating a data visualization is figuring out which chart type is best for the task at hand.
What are the types of metrics, features, or other variables that you plan on plotting? Although it depended on some multiple factors!
But my choices of the chart type for this Crypto datas was Pie chart or Donut char for crypto dominances ,and Colum (Bar) chart for Total MarketCaps .
The audiences that I plan on presenting this for them could be all tradingviewrs , especially crypto lovers ,or those who just aim to have an initial exploration for themselves ,like me!
so this indicator mostly could be an educational indicator script for pine coders !
We can use the " Crypto Map Dashboard " indicator to Get an quick overview of the crypto market and monitor where the smart money Flow changing by comparing the dominances and totals Caps .
In general, it consists of 4 parts:
✅1 =>> Table1 : If you like to see and compare and monitor the changes of dominances of (Bitcoin, Ethereum, Usdt , Usdc , etc.) and their market cap in different times you can see the table on The upper-right corner.
✅2 =>> Table2: Also, in the table lower-right corner, you can see the changes of the totals(Total, Total2 , Total3 and TotalDefi) in the same time periods.
✅3 =>> pie chart or donut chart: By viewing this , you understand better about Table1 Datas, that it depicts exactly how Dominance is distributed and specialized.
✅4 =>> column chart (bar chart) : And in the last you can clearly compare the total marketcaps and see how far they are from their ATHs.
You also can even notice the entry and exit of liquidity from the crypto market!
I must also mention that I am definitely still a beginner compared to more experienced pine coders, and there may be some bugs in my codes and calculations, but I am an open person and I welcome your comments ,Also Let me know if you have any questions.
Lots of Love to all tradingviewers and pineCoder ,Cheers!💚❤️💙
SMA 10/20/50 by Bull Bear Investing BabyThis script basically is a combination of 3 different simple moving averages line to determine the trend of the assets
The colour indicating which moving averages are as per following:
1) Green- 10MA
2) Red- 20MA
3) Blue- 50MA
When the moving averages are aligned as per following, the trend is indicating towards an uptrend:
---> 10ma > 20ma > 50ma
Likewise when the moving averages are aligned as per following, the trend is indicating towards a downtrend:
---> 10ma < 20ma < 50ma
Dollar Cost Averaging (Portfolio)
You can use it in daily, weekly and monthly candles. It can be used on multiple assets(10). All assets must have data and make sure they all use the same currency. See style in settings for plot titles If you are interested in passive investing, I hope it helps.
------------------
Günlük, haftalık, aylık mumlarda kullabilirsiniz. Birden fazla varlıkta kullanılabilir. Çoklu kullanım için hepsinin verisi olmalı ve aynı para birimini kullanmalı. Ayarlardan stilde grafik başlıklarını bulabilirsiniz. Pasif yatırım ile ilgiyseniz umarım yardımcı olur.
BTMM OFJ FOR BEST RESULTS PLEASE SWITCH TO LINE CHART OR DISABLE THE CHART CANDLES. BELOW IS A LINE WITH OPACITY TURNED DOWN TO 15%
ASIA, LONDON, AND NEW YORK SESSIONS CAN BE CUSTOMIZED (1ST 3 HRS DEFAULT)
VOLUME CANDLES CAN BE APPLIED WITH SUPPLY AND DEMAND OR MARKET MAKER METHOD. IN A STRONG TREND YOU WANT TO SEE REPEATED HIGH VOLUME CLUSTERS IN THE DIRECTION OFTHE TREND AND FADING LOW VOLUME ON THE RETRACE
BASICK KEY LEVELS WEEKLY INITIAL BALANCE (MONDAY+TUESDAY HIGHEST HIGH AND LOWEST LOW) YESTERDAY AND LASY WKHI/LO
QUICK APPLICATON
TradingWolf Premium PatternsThe TradingWolf Premium is a one of a kind indicator which can identify charting patterns unlike any others. Standard Chart patterns take 10+ candles to recognise where as ares are almost instant without repainting!
Within this one indicator you will have access to Break Out Levels , Dynamic Support and resistance, Bull Flag, Bear Flag, Rising Wedge, Falling Wedge, Inverse Head & Shoulders, Head & Shoulders, Double Top, Double Bottom, Trend Lines, Ascending Triangle, Descending Triangle, Parallel Channel & Linear Regression Channels.
Below each indicator is explained along with its enhancements to help you understand it better.
This script comes with the 'TradingWolf Premium' to get access, read the Author’s Instructions below.
There are extensive explanations on how to use this indicator in our documentation on the website but we will give a simple overview here.
Break Out Levels
Break out levels are great for breakout traders, this indicator is scanning for strong points of support & resistance, it does this by finding pivot points where price has had a noticeable pull back. From there it will monitor that level and display a signal soon as price breaks it.
Another use case for this indicator is helping identify the market structure direction. If we are breaking up and getting Green triangles, this suggests we are in a bullish up-trending structure and vice versa for red bearish signals.
Support & Resistance
There are lots of ways of deciding how to mark up support and resistance, we like to use ATR values related to daily price action. Marking levels up on lower timeframes tend not to give such good levels to play whereas calculating values from the Higher time frames gives us levels we know are more like to be respected.
Although they are calculated from the daily timeframe you will notice these levels will adjust to the daily price action to make sure they are keeping up to date on levels you need to keep an eye on.
Flags
Flags show signs of continuation, they are confirmed when price breaks the upper resistance for bull flags and lower support for bear flags. They are commonly used in trading but with this indicator, it will help you spot ones you may normally miss. Everyone judges flags differently so we have given you the ability to decide how strict you would like the flags to be with the correlation setting, if you set it to 100% the top and bottom lines of the flag must be going at the exact same angle to count as a valid flag.
Wedges
A wedge pattern is typically a reversal pattern, you would normally use these in correlation with volume. For a confirmed wedge you want declining volume as the price reaches the wedge end. You can either try entering at the top/bottom of the wedge pattern or wait until price breaks into the opposite trending direction.
Head & Shoulders
These are reversal patterns, for a confirmed Head and shoulder pattern you want to pair it with declining volume or momentum
You will notice you have a HF option, when enabled this will scan multiple different lengths of pivots to try spot more patterns which the regular settings may miss. If you think you are getting enough you may want to disable this.
Triangles
Triangles help us identify areas where price starts consolidating in a narrow range, once we reach roughly ¾ of the way through the triangle, we will see a break out in either direction, normally confirmation just requires 1 close out of the triangle along with increased volume. If you miss the initial move you may be able to catch a retest if you are lucky!
Double Tops & Bottoms
These patterns are considered reversal patterns. They are confirmed on the break of the neck line with increased volume.
Trend Lines
These are as simple as the name suggests, the lines are calculated slightly differently to other support and resistance points but they will work the same spotting potential areas where price will bounce or reject.
Channels
Similar to Trend lines but these are looking for trend lines at the same angle forming channels where price tends to range between. You have several options to edit these in the settings including the correlation % of the channel lines, how many candles are allowed outside of the channel (fake outs), sensitivity/ frequency the channels appear and whether you use the Wicks or candle Closes to determine where to calculate the channels from.
Linear Regression Channels
Linear regression is the analysis of two separate variables to define a single relationship and is a useful measure from a technical and quantitative point of view.
As seen in the image above, these can be used to help determine key levels in the chart where price is likely to react. In the settings you will be able to adjust its sensitivity to the levels you like to trade.
Tick StatisticsTick Statistics:
I have seen many questions/queries related to tick data in TV telegram channels. This script will help pine scripts to understand how ticks work, how to capture and process tick data.
This is an educational indicator script for pine scripters.
The indicator shall work only on real time candles. Tick data capture is initiated as soon as indicator is loaded on the chart. You might not get correct statistics on 1st candle in case indicator is loaded when real time candle is in progress, in such case you can monitor the statistics generated for subsequent candles.
Generated statistics is shown on the chart by placing 2 diamond shapes above and below the candle.
Diamond shape below the candle will have candles ‘tick data’ listed in a table. This can be view by placing mouse pointer on the diamond shape. Refer to point 1 below for more details.
Diamond shape above the candle will have statistics as mentioned in point no 2 onwards. To view the statistics place the mouse point on the diamond shape. The shape will appear in green color when both tick price and tick volume are both moving in the same direction. The diamond shape in red color means tick price and tick volume are moving in opposite direction.
The script captures tick by tick data and generate statistics below:
1. List of tick data with details below: (this is stored in the diamond shape placed below the candle)
a. Tick no
b. Tick type – Up tick (Up), Down tick (Dn), No change (--)
c. Tick price
d. Volume
e. Price difference (as compared to previous tick price)
f. Volume difference (as compared to previous tick volume)
2. Tick statistics
a. Total ticks
b. Number of up ticks
c. Number of down ticks
d. Number of No change ticks
3. Volume Statistics
a. Total volume
b. Up tick volume
c. Down tick volume
d. Volume associated with ticks where there is no change
e. Candle volume (just for reconciliation purpose)
4. Max-min statistics
a. Max volume = <> at price = <> at tick no = <>
b. Min volume = <> at price = <> at tick no = <>
c. Max price = <> at volume = <> at tick no = <>
d. Min price = <> at volume = <> at tick no = <>
5. Candle summary
a. Price << Up >> (if price is up as compared to 1st tick <> otherwise
b. Volume <> (if up tick volume is more than down tick volume <> otherwise