OPEN-SOURCE SCRIPT

Dynamic Pivot Box for Month and Year

تم تحديثه
The basic idea of the ‘Dynamic Pivot Box’ [Month and Year pivots] is to show only the Pivots that are closer to the Price. This is, the nearest pivots acting as support and resistance; thus hiding all other pivots which are further away from the price and also hiding the pivots from previous periods… Pivots will be hidden until price breaks out from the current box and moves to the next one. Hopefully, with this change you can focus more on the actual price action/ price patterns on the chart rather than on several/ noisy lines on the screen.

**Please note that the recommended use for this indicator is on the daily or higher timeframes if you want to see Year pivots... Monthly pivots can be still seen on the hourly chart, but I am afraid that lower timeframes will not plot the indicator properly.**

The Pivots are taken from Frank Ochoa’s book ‘Secrets of a Pivot Boss’, so if you are not familiar with them, I would recommend you to first take a look at the theory behind them.

The Pivots in this indicator are divided in two groups: ‘Standard pivot’ [CPR and surrounding pivots] and ‘Camarilla’ pivots.; and then this latter is group is divided in two also: the ‘Main Camarilla’ [created by High 3 and Low 3] and ‘Regular Camarilla pivot’. You can select which groups of pivots are taken into account for the ‘Dynamic Pivot Box’.

If you decide to select all Three Groups: ‘Standard Pivot’, ‘Main Camarilla’ and ‘Regular Camarilla pivot’ you will see ALWAYS 4 pivots surrounding the price. My recommendation is to select only ‘Standard Pivot’ and ‘Main Camarilla’ so that you see only between 2-3 pivots on the screen. This recommended view is actually the default settings.

In addition, if you want to further reduce noise from the chart, you can unselect the ‘Lines’ option within the SETTINGS/ STYLE menu.

What you see on the chart/sample is actually this indicator plotted twice:
1. Year Pivots which have the default settings and are shown as white ines
2. Month Pivots have also the default settings BUT I also selected the option ‘Previous Pivots’ to show the pivots from previous period [month], and also I unselected the ‘Lines’ options as mentioned above to reduce noise.

You are more than welcome to enhance the current version, my only ask is to please share the enhanced version back with the community. I wish I could make amends or modify the current version myself but I actually just came up with the idea and I paid a coder in Fiverr to develop it.

[By the way, the colors for this indicator were set as default values thinking on a dark theme, so if you have a white theme, remember to change the colors, otherwise you will not see the standard pivots which are white!]
[Likewise, please ignore the yellow/ purple arrows, they are not part of the indicator. They are just some random drawings I had on the chart]
ملاحظات الأخبار
Changes when compared to prev. version/ This new version now allows to:

1) Plot CPR/Pivots for lower timeframes. This is the Daily and the Weekly
2) Improves visibility by simplifying the labels previously displaying value for pivot. This is still available but as a tool-tip.
3) Got rid of pivots (Normal Camarilla) which are not oftentimes considered. Still the main Camarilla (S3, L3) can still be displayed.

Please be aware that the lower timeframe CPR (Daily and Weekly) will display correctly in Minute or Hour bars/charts. Conversely, higher time CPR (Monthly and Year) will display better on Daily bars and higher timeframes.
Camarilla Pivot PointsCPRcprdailycprweeklyfloorpivotsochoapivotpivotesPivot Points

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


يعمل أيضًا:

إخلاء المسؤولية