Ghekonator

Mandelbrot Set

The Mandelbrot set represents a set of complex numbers with distinctive and very well known intricate geometric properties. Here I have attempted to implement it in Pinescript leveraging tables.

The defining formula for the set is:
Zn+1 = Zn2 + C

If, after a certain number of iterations, the magnitude of the complex number remains bounded (does not diverge to infinity), the point is considered part of the Mandelbrot set.

The Mandelbrot set exhibits intricate and infinitely detailed fractal patterns, characterized by self-similarity at different scales. Due to limitations in Pinescript and the number of possible table cells (Pinescript is not designed for this at all and this is merely a showcase of how flexible & great Pinescript can be it is) the resolution over this set is low.

Users can zoom in and out of the set via the provided inputs.

The values in each cell represent the number of iterations required for the corresponding point in the Mandelbrot set to escape a certain threshold.
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?