Daily Levels Suite + Market Breadth

mcthatsme Обновлено   
There are many levels suites out there but many of them use the line series and/or label series to create multiple levels. Pine v5 provides the capability to use line arrays and labels so I wanted to create some code that is extensible to add additional lines/levels and labels to an array of lines with very little effort.

There is also some Market Breadth info that can be shown in the corners of the chart to allow a user to understand how the broader markets are moving compared to the security they are charting.

Current Levels provided are as follows:
Today's Open
Previous Days Close
Previous Days High/Low
Previous Days 50%
T+2 High/Low

All levels and the market breadth table is configurable to be hidden or shown based upon the user's desire.
Информация о релизе:
Fixed the issue when ETH is on the levels lagging by a day
Added new levels for futures That will only show up if you are looking at a futures chart
Globex Open
Regular Trading Hours Open (RTH Open)

Added Overnight High/Low (Need ETH on to see these levels)

Modified the setting box to make it a bit cleaner by moving on/off inline with color selection.

There is one outstanding issue with the close price when on a futures ticker, need to do some more research but there is plenty of good updates that I didn't want to delay the update.
Информация о релизе:
- Overnight Low/High are now populated even with ETH off (limitation is these levels cannot be seen above 30 min timeframe due to current implementation)
- Added Weekly and Monthly Levels
- Overhauled Input Settings
- User can now determine how many previous daily, weekly, and monthly sessions to display
- Customize daily, weekly, and monthly levels with different line styles, thicknesses, and label offsets
- Added TRIN.NY and TICK to Market Breadth Table
- Added column for current TPO session and time left in current TPO for all you market profile enthusiasts
Информация о релизе:
- Fixed various bugs related to timeframes (ETH vs. RTH) that were giving incorrect levels and/or labeling on various tickers
- Added more descriptive labels for weekly and monthly levels. They now state the actual month or date of the start of week instead of "Previous Month" or "Previous Week"
- Added option for VIX and VXN to the market breadth table
- Added Daily, Weekly, Monthly, Quarterly, and Yearly VWAPs each with up to 3 configurable standard deviations
Информация о релизе:
Version 5 Update
This is a pretty large update and a long time coming for many of the folks requesting feature updates/bug fixes so here it goes!
- Added support for every type of ticker (i.e. Futures, Forex, Crypto, Stocks, Indices/Funds)
- Refactored code to add the feature of having lines go all the way back to the bar where the level was created. This was done to provide a better visual for the user
- Some caveats to the above are that on RTH type charts, the Overnight High/Low and Globex Open (if looking at a futures chart with RTH enabled) will start at RTH open since that data is not available from the chart.
- Levels will now update automatically as new levels are created
  • For RTH charts all levels will update at market open (9:30 AM EST)
  • For ETH charts (except futures) Overnight High/Low and RTH Open will be updated at New York RTH Open (9:30 EST) the
    rest of the levels will update at RTH close (4:00 PM EST)
  • For Futures charts, levels will be updated at Globex Open (6:00 PM EST) apart from Overnight High/Low and RTH Open as
    mentioned above
  • Weekly and Monthly Levels follow the same criteria but only updating when a new Month or Week is expected on the next
    trading day.
- Added OC2 (Open + Close/2) to the daily levels
- Added RTH Open, OC2 (Open + Close / 2), RTH Close to both the Weekly and Monthly Levels
- Added the ability to change the text size of the labels
- Added the ability to add up to 5 different tickers to the market breadth table. The green/red shading changes based on if the current price is greater then the previous bar close.
- Took out the VWAP Indicators as the script inputs section was getting very long with those in there. I am working on creating a "VWAP Suite" indicator that will have all the same VWAPs that were in this script plus some extra ones.
- Various bug fixes reported in the comments throughout the past several months.

As I said before, this update is a very large one and testing all the different tickers by myself was extremely time consuming so I would not be surprised if there are some bugs left in the code somewhere. If you see any issues or if you have any additional feature requests you would like to see, please do not hesitate to leave a comment with a description of the issue/feature request and I will try to take them into consideration for the next update.
Информация о релизе:
Version 6 Update
- Refactored code to be a bit more readable
- Fixed an issue with labeling being incorrect on Weekly/Monthly Levels in some instances
- Added T+2 Open/Close to daily levels
- Added prior weeks weekly VWAP
Информация о релизе:
Version 7 Updates
- Allow users to modify names of levels. Current names are fairly verbose so I wanted to provide users a way to modify them to their liking.
- Added Midnight Open and London Open to the Daily Levels
- Added the ability to keep all previous day high/low/close on the chart until they are tested
- Added the ability to also keep tested previous day high/low/close on chart as well (mostly for backtesting purposes)
Информация о релизе:
- Made some optimizations to reduce calculation timeouts
- Weekly VWAP only counts US RTH (9:30-4PM) towards its calculation
Информация о релизе:
Version 9 Update
- Fixed Issue with certain Daily levels causing script to error out
- Optimized processing of arrays to reduce the number of calculation timeouts
- Added Current Day High/Low per user request (disabled by default)
- Added a table entry to indicate if current day is an inside day or outside day (disabled by default)
- Did some general code clean up to make it a bit more readable
Информация о релизе:
v10 Update
- Optimized the code about as much as I can to further reduce any calculation timeout issues observed when changing timeframes/tickers.
- Changed the function of Overnight High/Low. It will now reset at RTH close and track the overnight high/low until RTH open. At that point it will stay in place until RTH close.
- Added support for London and Midnight Open to display with just RTH on on futures tickers.
- Other code optimizations to improve readbility
- Several bug fixes as I was going through the code for these other updates.
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?