OPEN-SOURCE SCRIPT

[EmreKb] Custom Pattern

已更新
Custom Pattern

With this indicator, you can create and display as many patterns as you want on the chart. The indicator works by taking two inputs. We can start the explanation by describing these inputs.

Inputs

  1. Zigzag Length: Length for zigzag legs.
  2. Patternscript Code: Patternscript code. (But what is patternscript?)


Explanation Of Patternscript

Patternscript (it's a completely fictional script language) is a scripting language that allows you to write your own patterns, and it operates within Pinescript). Let's take a look at the syntax of this language.



This means that the Fibonacci levels drawn from the from_point to the to_point must have the target_point between the min_fib_level and max_fib_level.

Let's see a few practical examples.

Patternscript Code For ABCD Pattern



ABC(0.618, 0.886): Fibonacci drawn from the A to B, must have the C between the 0.618 and 0.886
BCD(1.272, 1.618): Fibonacci drawn from the B to C, must have the D between the 1.272 and 1.618

Patternscript Code For Multiple Pattern



Notes:
  • You can set the pattern name as you like, this is not related to the pattern rules.
  • There is no limit for pattern count, but remember pine limits.

版本注释
Changed default values of inputs.
customeducationalHarmonic Patternspatternxabcd

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明