OPEN-SOURCE SCRIPT

Adaptive MFT Extremum Pivots [Elysian_Mind]

Adaptive MFT Extremum Pivots

Overview:

The Adaptive MFT Extremum Pivots indicator, developed by Elysian_Mind, is a powerful Pine Script tool that dynamically displays key market levels, including Monthly Highs/Lows, Weekly Extremums, Pivot Points, and dynamic Resistances/Supports. The term "dynamic" emphasizes the adaptive nature of the calculated levels, ensuring they reflect real-time market conditions. I thank Zandalin for the excellent table design.

---

Chart Explanation:

The table, a visual output of the script, is conveniently positioned in the bottom right corner of the screen, showcasing the indicator's dynamic results. The configuration block, elucidated in the documentation, empowers users to customize the display position. The default placement is at the bottom right, exemplified in the accompanying chart.

The deliberate design ensures that the table does not obscure the candlesticks, with traders commonly situating it outside the candle area. However, the flexibility exists to overlay the table onto the candles. Thanks to transparent cells, the underlying chart remains visible even with the table displayed atop.

In the initial column of the table, users will find labels for the monthly high and low, accompanied by their respective numerical values. The default precision for these values is set at #.###, yet this can be adjusted within the configuration block to suit markets with varying degrees of volatility.

Mirroring this layout, the last column of the table presents the weekly high and low data. This arrangement is part of the upper half of the table. Transitioning to the lower half, users encounter the resistance levels in the first column and the support levels in the last column.

At the center of the table, prominently displayed, is the monthly pivot point. For a comprehensive understanding of the calculations governing these values, users can refer to the documentation. Importantly, users retain the freedom to modify these mathematical calculations, with the table seamlessly updating to reflect any adjustments made.

Noteworthy is the table's persistence; it continues to display reliably even if users choose to customize the mathematical calculations, providing a consistent and adaptable tool for informed decision-making in trading.

This detailed breakdown offers traders a clear guide to interpreting the information presented by the table, ensuring optimal use and understanding of the Adaptive MFT Extremum Pivots indicator.

---

Usage:

Table Layout:

The table is a crucial component of this indicator, providing a structured representation of various market levels. Color-coded cells enhance readability, with blue indicating key levels and a semi-transparent background to maintain chart visibility.

1. Utilizing a Table for Enhanced Visibility:

In presenting this wealth of information, the indicator employs a table format beneath the chart. The use of a table is deliberate and offers several advantages:

2. Structured Organization:

The table organizes the diverse data into a structured format, enhancing clarity and making it easier for traders to locate specific information.

3. Concise Presentation:

A table allows for the concise presentation of multiple data points without cluttering the main chart. Traders can quickly reference key levels without distraction.

4. Dynamic Visibility:

As the market dynamically evolves, the table seamlessly updates in real-time, ensuring that the most relevant information is readily visible without obstructing the candlestick chart.

5. Color Coding for Readability:

Color-coded cells in the table not only add visual appeal but also serve a functional purpose by improving readability. Key levels are easily distinguishable, contributing to efficient analysis.

Data Values:

Numerical values for each level are displayed in their respective cells, with precision defined by the iPrecision configuration parameter.

Configuration:



The code includes a configuration block where users can customize the following parameters:

Precision of Numerical Table Data (iPrecision):



This parameter (iPrecision) sets the precision of the numerical values displayed in the table. The default value is 3, displaying numbers in #.### format.

Position of the Table (iPosition):



This parameter (iPosition) sets the position of the table on the chart. The default is position.bottom_right.

Color preferences

Table borders (iBorderColor):



This parameters (iBorderColor) sets the color of the borders everywhere within the window.

Table Background (iTableColor):



This is the background color of the table. If you've got cells without custom background color, this color will be their background.

Title Cell Background (iTitleCellColor):



This is the background color the title cells. You can set the background of data cells and text color elsewhere.

Text (iCharColor):



This is the color of the text - titles and data - within the table window. If you change any of the background colors, you might want to change this parameter to ensure visibility.

Data Cell Background: (iDataCellColor):



The data cells have a background color to differ from title cells. You can configure this is a different parameter (iDataColor). You might even set the same color for data as for the titles if you will.

---

Mathematical Background:

Monthly and Weekly Extremums:

The indicator calculates the High (H) and Low (L) of the previous month and week, ensuring accurate representation of these key levels.

Standard Monthly Pivot Point:

The standard pivot point is determined based on the previous month's data using the formula:
PivotPoint = (PrevMonthHigh + PrevMonthLow + Close[1]) / 3

Monthly Pivot Points (R1, R2, R3, S1, S2, S3):

Additional pivot points are calculated for Resistances (R) and Supports (S) using the monthly data:
R1 = 2 * PivotPoint - PrevMonthLow
S1 = 2 * PivotPoint - PrevMonthHigh
R2 = PivotPoint + (PrevMonthHigh - PrevMonthLow)
S2 = PivotPoint - (PrevMonthHigh - PrevMonthLow)
R3 = PrevMonthHigh + 2 * (PivotPoint - PrevMonthLow)
S3 = PrevMonthLow - 2 * (PrevMonthHigh - PivotPoint)

---

Code Explanation and Interpretation:

The table displayed beneath the chart provides the following information:

Monthly Extremums:

(H) High of the previous month
(L) Low of the previous month



Weekly Extremums:

(H) High of the previous week
(L) Low of the previous week



Monthly Pivots:

Pivot: Standard pivot point based on the previous month's data



Resistances:

R3, R2, R1: Monthly resistance levels



Initializing and Populating the Table:

The myTable variable initializes the table with a blue background, and subsequent table.cell functions populate the table with headers and data.



Dynamic Data Population:

Data is dynamically populated in the table using the calculated values for Monthly Extremums, Weekly Extremums, Monthly Pivot Points, Resistances, and Supports.



---

Conclusion:

The Adaptive MFT Extremum Pivots indicator offers traders a detailed and clear representation of critical market levels, empowering them to make informed decisions. However, users should carefully analyze the market and consider their individual risk tolerance before making any trading decisions. The indicator's disclaimer emphasizes that it is not investment advice, and the author and script provider are not responsible for any financial losses incurred.

---

Disclaimer:

This indicator is not investment advice. Trading decisions should be made based on a careful analysis of the market and individual risk tolerance. The author and script provider are not responsible for any financial losses incurred.

Kind regards,
Ely
levelsmftaMonthly ChartsmultitimeframepivotPivot points and levelsresistancesSupport and ResistancesupportstableWeekly Chartswindow

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer