n00btraders

ICT New Week Opening Gap

n00btraders ที่อัปเดต:   
Display the Current New Week Opening Gap (NWOG) on your Futures Market charts.

Disclaimer: this indicator is completely built from scratch, which is why not many features are added yet.
This indicator is 100% UNIQUE in the way that the NWOG remains accurately drawn on the chart, regardless of which chart settings are modified (for example, Settlement-as-Close, RTH/ETH, Back-Adjustment, etc.), unlike other NWOG plotting indicators.
Additionally, the NWOG can be plotted on a large variety of timeframes, from the Weekly chart, all the way down to the 1-second chart.

The NWOG is defined as Friday's closing price (e.g., at 4:59pm New York Time for ES1!) and Sunday's opening price (e.g., at 6:00pm New York Time for ES1!) on a new week.
This indicator draws a Box at these levels and extends it out in time to the most recent bar so that it can be visualized how price reacts to and gyrates around these levels.
Basically, the Box that is drawn on the chart by this indicator can be used as dynamic support & resistance levels. The actual price levels are shown at the top-right of the chart in a small table, for anyone wanting to remove the indicator and draw the levels themselves.
Only the current week's opening price and the previous week's closing price will be drawn on the chart.

The indicator settings are only used to change the visuals such as box colors and text colors/size. The actual calculations are performed as mentioned above and cannot be changed by the Style/Settings Input.

Note: it is recommended to toggle ON the "Scale Price Chart Only" chart option if using auto-scaling on charts because TradingView by default will force indicator drawings to display on the chart area even if an NWOG is far away from the current price action.

This is a bare bones indicator (1st version) that will only draw the current NWOG. Future updates will add support for displaying historical NWOGs.
For support of additional markets or indicator settings/features, please leave a comment on this script.
เอกสารเผยแพร่:
  • Removed "futures" market restriction. This indicator can now be applied to other markets.
  • Updated NWOG label to show the date of the new week opening.
  • Do not show NWOG if the closing price and opening price are equal.
  • Added alternate version of NWOG to use Monday's RTH Opening price instead of Sunday's opening price.
  • Added option to show the 25%, 50%, and 75% levels of the NWOG.
เอกสารเผยแพร่:
With this release, the indicator displays up to 5 New Week Opening Gaps instead of only 1.
The table on the right displays the NWOG prices from most recent (top row) to oldest (bottom row).
Note: in the next update, the number of NWOGs to display will be configurable.

This example shows the 5 most recent Actual NWOGs, with the "Use Actual Weekly Opening Price" option selected.

In the chart above, the "Use Actual Weekly Opening Price" option is toggled OFF, so the indicator plots the first RTH opening of the week instead of the Sunday opening price.
  • Note: Regular Trading Hours (RTH) for the latest week had not begun yet, therefore only 4 of the 5 NWOGs are actually drawn on the chart (hence the opening price for the latest week being displayed as "N/A").

As a tip/reminder, when the price data becomes too scrunched, you can enable Scale price chart only.
เอกสารเผยแพร่:
  • Display more details about a New Week Opening Gap (NWOG) by hovering over its text label (or hovering over its respective row in the Table).
  • Added toggle to show previous New Week Opening Gaps, up to 25 weeks ago.
  • Added option to hide the most recent New Week Opening Gap.
  • Easier to visualize the most recent NWOG by drawing it with a unique set of customizable colors.
  • Added option for hiding or showing the table containing the NWOG price levels (previously, it was permanently visible on the top-right).
  • Introduced the option for customizing the position, size, and colors of the Table.
  • Added the ability to hide or show specific NWOGs by typing a comma-separated list of integers.
  • Additional formatting options for things like Dates/Time Zones.

Besides the simple formatting Settings, the 3 Key Settings added in this release will be shown below:

The number of NWOGs to show can now be configured under "Previous NWOGs". Note: this number does not include the current NWOG, so the total amount of NWOGs will always be + 1 (in this case, 12 + 1 = 13 NWOGs displayed).
The checkbox on the left can also be toggled OFF to quickly disable the previous NWOGs (which is the exact same effect as changing the numerical value to Zero).

This is the same chart as shown previously, but now using the option to specifically choose which NWOGs to hide, using the "Overlap Handling" functionality. This can help clean the chart up if there are a lot of overlapping New Week Opening Gaps.
The comma-separated list uses the # of the NWOG, which can be found by either changing the settings to display the # on the label, or by hovering over the label (a pop-up will appear and the NWOG # will be shown at the top).
Note: for this to work, the "Choose a Strategy" drop-down must be changed to Custom, since it is None by default.
Also, if the drop-down in "Option 1" is switched from Hide to Show, then it would just flip the NWOGs that are currently hidden (in this example, only NWOG #s 6, 7, 8, and 13 would be shown if Show is selected in the drop-down).

There is also the option to hide the current NWOG. This was not added for any particular reason. It's just there in case anybody wants to use it for whatever reason. Note: the price levels will still be visible in the table on the right, but the box won't be plotted on the chart.

Tip: if you make a lot of customizations to the indicator and wish to save it, you can use the "Save as default" option on the bottom-left drop-down of the Settings.

In summary, this release added much more customization options. Most are self-explanatory; for the ones that are not, be sure to look at the tooltips that are available in the Settings.
เอกสารเผยแพร่:
Added more options for filtering New Week Opening Gaps (NWOGs).

Option 1: Gradients.
This option will not hide any NWOGs; it will only change the transparency of the previous NWOGs. The current NWOG (#1) will not be altered because it uses a different style. Starting from NWOG #2, the "Max" opacity percentage will be applied to it. Each subsequent NWOG will become more transparent, until it reaches the last NWOG which will have the "Min" opacity percentage that was specified.
This overlap handling strategy can be useful to focus your eye on the more recent NWOGs if there are multiple on the chart, because the older NWOGs will be less visible due to their increased transparency.

Option 2: Hide nested NWOGs.
This option can help clean up the chart by hiding some of the NWOGs that may be nested within another NWOG. If an NWOG is "nested" within another, that means its high and low are fully contained inside of any other NWOG (these are the NWOGs that will be hidden in "Strict" mode). "Lenient" mode will consider multiple overlapping NWOGs to be a single range, and if any NWOG is nested within that single range, it will also be hidden.
In the example above, if "Lenient" mode were selected, it would additionally hide NWOG #8. This would occur because NWOGs #5, #8, and #12 are overlapping, therefore it would be considered a single range from the price of 5161.50 to 5225.50, which encapsulates the range of NWOG #8 (5166.50 to 5211.25).

Option 3: Hide intersecting NWOGs.
This option is similar to the previous one, but it only requires NWOGs to have a single intersection point in order to be hidden from view. The drop-down allows choosing the priority of which NWOGs to hide. In the example above, "Oldest" is chosen in the drop-down, meaning that if some NWOGs are found to be intersecting, the indicator will begin hiding the older ones until there are no more intersecting NWOGs.
Regardless of the value chosen in the drop-down, the end result is that the chart will only display separated NWOGs, meaning that there will not be any NWOGs that overlap with each other.

Option 4: Minimum and Maximum NWOG range.
This filtering option is pretty straightforward. It will just hide any NWOGs that are outside of the boundaries. In the example above, any NWOGs that are smaller than 5.00 points of range will be hidden, as well as any NWOGs that are larger than 30.00 points. For a reference of the width of the NWOGs that are currently on the chart, hover over its NWOG label or its table row; the width will be shown next to "Total Range".
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้เผยแพร่แบบปิดและคุณสามารถใช้มันได้อย่างอิสระ คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้แต่คุณจะไม่สามารถดูหรือแก้ไขซอร์สโค้ดได้
คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?