INVITE-ONLY SCRIPT
已更新 [CP]Structural Pivots v2.0

This script marks structural pivots on a chart.
Script marks namely 4 types of pivots,
SPL (Blue circles at bar low) is marked by finding a combination of 3 bars, an Anchor Bar, Bar 1 and Bar 2.
Bar 1 and Bar 2 should have a higher high and a higher close relative to the Anchor Bar in order to qualify as a legitimate SPL .
Reverse conditions are required for a point to be marked as SPH (Blue circles at bar high).
The complication happens for the fact that Anchor Bar, Bar 1 and Bar 2 need not be consecutive.
They can be far apart from themselves.
To solve this problem, the script generates 3-bar Combinations of all the bars from the last pivot to the current bar.
LPH are marked when an SPL gets broken (price goes below the previously marked SPL).
LPL are marked when an SPH gets broken (price goes above the previously marked SPH).
Unlike 'regular' methods of quantifying breakouts and trailing stops by optimizing various parameters of indicators, this method essentially
finds out swing highs, swing lows and S/R breaks.
One way to use the pivots is to go long when the LPH is broken, and trail the price with SPLs.
Vice-versa for shorts.
PM me on TradingView to obtain access.
Please don't ask for access in the comments section.
Script marks namely 4 types of pivots,
- Structural Pivot High (SPH)
- Structural Pivot Low (SPL)
- Large Pivot High (LPH)
- Large Pivot High (LPL)
SPL (Blue circles at bar low) is marked by finding a combination of 3 bars, an Anchor Bar, Bar 1 and Bar 2.
Bar 1 and Bar 2 should have a higher high and a higher close relative to the Anchor Bar in order to qualify as a legitimate SPL .
Reverse conditions are required for a point to be marked as SPH (Blue circles at bar high).
The complication happens for the fact that Anchor Bar, Bar 1 and Bar 2 need not be consecutive.
They can be far apart from themselves.
To solve this problem, the script generates 3-bar Combinations of all the bars from the last pivot to the current bar.
LPH are marked when an SPL gets broken (price goes below the previously marked SPL).
LPL are marked when an SPH gets broken (price goes above the previously marked SPH).
Unlike 'regular' methods of quantifying breakouts and trailing stops by optimizing various parameters of indicators, this method essentially
finds out swing highs, swing lows and S/R breaks.
One way to use the pivots is to go long when the LPH is broken, and trail the price with SPLs.
Vice-versa for shorts.
PM me on TradingView to obtain access.
Please don't ask for access in the comments section.
發行說明
The new release contains two visualization improvements. 1. Pivot markings in the previous version were quite large and taking up a lot of chart space.
This has been solved in this version.
You get three options, Auto, Large and Small.
The default option, 'Auto', gives the best results as it automatically increases or decreases the size of pivot markings depending upon your zoom level.
2. The shape of the small pivots can now be changed. Circle and Triangle are the two options.
發行說明
Removed some unnecessary debug information that was showing up in the Data Window. This should speed up the code compilation times.
Indicator is now ready for the prime time!
發行說明
Minor change in the values shown in the Data Window. No change in the indicator or the user interface.
僅限邀請腳本
只有經作者授權的使用者才能訪問此腳本,且通常需付費。您可以將此腳本加入收藏,但需先向作者申請並獲得許可後才能使用 — 點擊此處了解更多。如需更多詳情,請依照作者說明或直接聯繫pranjalchaubey。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者授權的使用者才能訪問此腳本,且通常需付費。您可以將此腳本加入收藏,但需先向作者申請並獲得許可後才能使用 — 點擊此處了解更多。如需更多詳情,請依照作者說明或直接聯繫pranjalchaubey。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。