OPEN-SOURCE SCRIPT

Previous N Days/Weeks/Months High Low

Japanese below / 日本語説明は下記

This indicator displays previous N days/weeks/months’ highs and lows simultaneously.
N is user input and users can separately input different N for highs and lows.
For instance, if you would like to show past 20days high and 10days low, you specify 20 for high and 10 for low.

ảnh chụp nhanh

Similar to highs and lows of yesterday, last week and last month which I previously developed a indicator for(see the link below), highs and lows of specific terms such as quarters are also respected as supports and resistances.
A legendary trader group, Turtles also uses 20days high/low break as one of their strategies.

Alerts can be set with the conditions below.

-Crossing over previous day’s high
-Crossing under previous day’s low
-Crossing over previous week’s high
-Crossing under previous week’s low
-Crossing over previous month’s high
-Crossing under previous month’s low


Please note that when we say past 2 days in this indicator, past 2days mean yesterday and day before yesterday, so “today” is not included as “today’s” high/low have yet to be fixed.


Related indicator: High/Low Yesterday&Last week&Last month&Last Year
By combining with this indicator, you can highlight important support and resistance.

High Low Yesterday & Last week & Last month


—————————————————————

過去N日/N週間/Nヶ月の高値·安値を同時に表示することのできるインジケーターです。
Nはパラメーターとなっており、また高値と安値で異なる期間を指定することができます。
例えば、過去20日間の高値と過去10日間の安値という指定が可能です。

ảnh chụp nhanh


昨日、先週、先月の高値·安値と同様に、四半期などの過去一定期間の高値·安値はサポート·レジスタンスとして良く意識されます。
伝説のトレーダー集団タートルズも20日間の高値·安値のブレイクを取引ルールの一つとして使用していたことで有名です。


また、以下の条件でアラート設定が可能です。
-過去N日高値の上方ブレイク
-過去N日安値の下方ブレイク
-過去N週間高値の上方ブレイク
-過去N週間安値の下方ブレイク
-過去Nヶ月高値の上方ブレイク
-過去Nヶ月安値の下方ブレイク


このインジケーターで過去2日間の高値·安値といった場合、過去2日間とは昨日と一昨日の2日間を指します。まだ高値·安値の確定していない本日は含まないことに注意してください。


関連インジケーター: High/Low Yesterday&Last week&Last month&Last Year
当インジケーターと合わせて使用することで、主要なサポートレジスタンスを表示することができます。

High Low Yesterday & Last week & Last month

Phát hành các Ghi chú
Fixed a repainting issue.

In the previous version, even if the current candle is not yet fixed, previous highs/lows are sometimes calculated using that unfixed candles.

New version resolves this issue. Take a look at the charts below with an example of 6 month high.

Before
ảnh chụp nhanh

When candle "0" is not fixed(we are still in this month), 6month high is calculated using candle 5 to 0.(so it is repainting as long as the high of the month keeps changing)

After
ảnh chụp nhanh

When candle "0" is not fixed(we are still in this month), 6month high is calculated using candle 6 to 1.

============================
N期間高値・安値計算時のリペイント問題を修正しました。

以前のバージョンでは、最新のバーが未確定の時に、その未確定のバーを使用して過去N期間の高値・安値が計算されるケースがありました。
新バージョンではこの問題を解決しています。以下のチャートは6ヶ月高値がどのように計算されるかの前後比較です。


Before
ảnh chụp nhanh

バー0が未確定の場合、6ヶ月高値は0から5のバーを用いて計算されていました。


After
ảnh chụp nhanh

バー0が未確定の場合、6ヶ月高値は1から6のバーを用いて計算されています。
highlowpreviousdayhighpreviousdayhighlowpreviousdaylowprevioushighlowpreviousmonthhighlowpreviousweekhighlowSupport and Resistance

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


■”なぜ”がわかる相場分析
・チャートの動きというファクトを元に
・客観的かつロジカルに
・初心者でもわかるように
相場展望を解説

Followすると投稿の度に通知が届きます。
bit.ly/3s888QI

■Editor's Pick
bit.ly/3pkLCEl

■Blog
bit.ly/2VPAMJk

■Indicator
bit.ly/3lmWYFk

■Membership
bit.ly/3zvLkPG
Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm