DisDev

[DisDev] Level by Level

DisDev 업데이트됨   
This indicator's main objective is to provide you with the ability to chose the levels you are interested in, with the added functions of:

Level-by-Level Chart Reducer – This allows you to choose how many levels are above and below the current closing price to display.

Level-by-Level Table – This allows you to display all the levels within a table onto the chart.

The basis of this indicator is to provide you with a toolbox of levels that you can add to your trading plans.


Psychological Levels
A weekly range established each Saturday evening that can be thought of as a weekly "IB" or initial balance.


Average Daily Range ("ADR") & Average Weekly Range ("AWR")
In Forex, the International Monetary Fund ("IMF") controls the allowable weekly swings of a currency's price. The "AWR" and "ADR" perform calculations and dynamically adjust until the range is exceeded, at which time the levels will lock into place for the remainder of the day or week. The accepted theory is that price (even in Stocks and Crypto) will adhere to and remain within these levels, and, if exceeded, will revert back to them.


Initial Balance ("IB")
In Crypto trading, it is generally accepted that the High and Low of the first hour of each day (00:00 - 01:00 UTC) is the Initial Balance. The IB generally thought of as a zone that sets the tone for the rest of the trading session. It is often a time of high volume and volatility, with Stop Hunts at the highs and lows of a range before price moves in one direction or the other. The IB is a Market Profile concept introduced by Peter Steidlmayer. There is plenty of information on the Internet to learn more about IB's and how to implement them -- please do your own research.


Daily Open
Since Crypto is traded 24 hours per day, the generally accepted open is 00:00 UTC, the Tokyo open. Please refer to Part 1 for more details on sessions, starting times, conversions, and Daylight Savings Time.


Volume Weighted Average Price (VWAP's)
VWAPs are important areas on a chart. Institutional traders generally do not want to move price too far as they enter large buy or sell orders. So they wait for price to reach a tight zone around the VWAP where the majority of transactions occur on the Daily, Weekly, or Monthly timeframes. In these areas, there will be plenty of supply and demand for the institutional trader to execute their trades.

Weekly Open
The weekly open is Monday at 00:00 UTC.


Pivot Points (Support & Resistance)
This indicator calculates pivot levels based on a tested formula that calculates past and subsequent bars or candles. It displays the two closest to price pivot levels. The pivot formula takes a window of left bars and right bars, and then finds the highest or lowest value in that window. The window marches across the bar-set to discover the pivots.
We coded the script to label the levels and colors dynamically, either Support (Green) or Resistance (Red), depending on whether they are above or below price. The primary level line stays with the same color scheme:
Blue = Daily / Yellow = Weekly / Violet = Monthly
As price crosses the level:
1 - The label will switch from Support to Resistance and Resistance to Support
2 - The extender line will switch from Green to Red and Red to Green
3 - The same changes will take place in the Level-by-Level Coordinates Table


A Note on Levels and Data

Understanding How Data is Calculated and Presented
Calculating levels requires going back in time through a symbol or asset’s historical data. Time is measured by bars (candles), so depending on the chart's resolution (timeframe or TF) you are viewing, a different number of bars would be required to measure the same level.

For example, if we want to mark the Daily High and Low on the daily TF, we would be measuring 1 bar or candle. If we drop down to the 1-hour TF, we would need to measure 24 bars. For the 15-Minute TF it would be 96 bars (1hr/15min=4 bars per/hour and 4 x 24 = 96), and on the 1-Min TF, it requires 1,440 bars (1hr=60 Min and 6 x 24 = 1,440).
Hopefully, you get the idea and can see that the number of bars required increases exponentially as we move to weekly, monthly, and yearly levels.


TradingView Data
Please note this statement from TradingView's website:
"The length of historical data for any intraday interval (i.e. chart timeframe) is 5,000 bars/candles (for Pro and Pro+ account holders it is doubled to 10,000 bars/candles and for Premium holders it's quadrupled to 20,000) + additionally several bars/candles back to the beginning of the week, month or year (depending on the resolution). Unfortunately, this limit cannot be extended for now due to technical reasons. At lower resolutions (<30Min) Yearly and Monthly VWAPs may not show, but to overcome this issue the “Plot Save” function has been added to the settings to allow the user to manually input these levels. This concept is the same for Daily, Weekly, and Monthly pivots.

If you change the chart interval to daily or daily-based, you will see a longer date range. We display all available data for daily-based intervals."


How we Handled Data Limitations
The Plot Level Feature in the Level by Level Indicator
We have written this script to always show levels at the lowest time frame allowable by TradingView.

If you do not see specific Support or Resistance levels, switch to a higher time frame, enter the corresponding values in the provided fields on the input panel, and check the Plot box. This will hard code the level in and will print on any TF. Additionally, we coded it so that when the Plot feature is enacted, the calculated level will be disabled so that there are no overlaps of two levels being printed.


Legend
The logic behind the line styles:
Solid = Static or established
Dashed = Static but previous week or day
Dotted = Dynamic or still developing -- will turn solid once the values are locked in
*VWAPs would technically be a dotted line since they are fluid, however, TV does not handle the dots or dashes of a curved line well so we chose to keep this solid


Level-by-Level Table
We designed this table to provide the user with a view of the levels in the correct price sequence on the chart at all times since, depending on the resolution and zoom levels, it would typically not be possible. The levels are equidistant and do not align with the actual price.
The current price will move vertically through the table according to the actual price and its relative position to the other various levels. The levels will change price and line styles dynamically as well.

The current price rectangle and the border can be in sync with High Volume Candle colors to draw more attention to the chart during climatic volume events.




Settings & Options - Levels & Labels
Levels will show a faint line through price to the point of origin.
Labels will show a brighter line extended to the right of price.
The values (10, 20, 30) are the length of the extensions; they are staggered to avoid overlaps.


Settings & Options - Level Reducer
The Level Reducer gives you the ability to declutter your chart, but still have the indicator track all the selected levels.

With four Lines selected, for example, the indicator will give you the nearest four lines above price and the nearest four below price. The Table runs independently of the chart, so if you want to see eight levels as an example, the Table will show eight above and eight below price.
As the current price changes, the lines will dynamically change accordingly.
릴리즈 노트:
Calculation for the ADR/AWR updated to not include current day/week, which was resulting in various levels being printed on different time frames until the range was locked in.
릴리즈 노트:
Author's Instruction update.
릴리즈 노트:
Author's Instruction Update
릴리즈 노트:
Code updates
릴리즈 노트:
Author Instructions Update.
릴리즈 노트:
Script update due to array.from() not resolving arguments.

New version number v1.13.

초대 전용 스크립트

이 스크립트에 대한 접근은 작성자가 승인한 사용자로 제한되며, 일반적으로 지불이 필요합니다. 즐겨찾기에 추가할 수 있지만 권한을 요청하고 작성자에게 권한을 받은 후에만 사용할 수 있습니다. 자세한 내용은 DisDev에게 문의하거나 아래의 작성자의 지시사항을 따르십시오.

트레이딩뷰는 당신이 스크립트 작성자를 100% 신뢰하고 스크립트의 작동 방식을 이해할 때까지 스크립트 비용을 지불하고 사용할 것을 권장하지 않습니다. 대부분의 경우 트레이딩뷰의 커뮤니티 스크립트 에서 무료로 좋은 오픈 소스 대안을 찾을 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

작성자 지시 사항

이 스크립트의 작성자는 더 이상 액세스 승인할 수 없습니다. 액세스를 요청하지 마십시오.

차트에 이 스크립트를 사용하시겠습니까?

경고: 액세스를 요청하기 전에 읽으십시오 .