n00btraders

ICT New Week Opening Gap

n00btraders Telah dikemas kini   
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.
Nota Keluaran:
  • 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.
Nota Keluaran:
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.
Nota Keluaran:
  • 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.
Skrip dilindungi
Skrip ini diterbitkan secara sumber tertutup dan anda boleh menggunakannya dengan bebas. Anda boleh menyukainya untuk menggunakannya pada carta. Anda tidak dapat melihat atau mengubah kod sumbernya.
Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?