Discussing the article: "DoEasy. Service functions (Part 1): Price patterns"

 

Check out the new article: DoEasy. Service functions (Part 1): Price patterns.

In this article, we will start developing methods for searching for price patterns using timeseries data. A pattern has a certain set of parameters, common to any type of patterns. All data of this kind will be concentrated in the object class of the base abstract pattern. In the current article, we will create an abstract pattern class and a Pin Bar pattern class.

For each pattern, we will provide the ability to display it graphically on a chart. In order not to overload the chart with pattern icons, we will make it possible to display these icons according to program instructions. Each pattern can have different settings for searching for it. We will have the opportunity to create patterns of the same type, but different in their set of parameters - these will be two or more different patterns of the same type. This approach will allow you to search for a specific pattern, indicating its various parameters. All lists of all found patterns will be saved in the program for quick access according to the specified parameters. This will make it possible to find all patterns of the same type with the first type of parameters, and then find the same pattern but with different parameters, and then compare what was found. I think it will be convenient not to set the required ratios of the bar proportions rigidly, but to do it more flexibly - to give the opportunity to "play with the parameters".

All found patterns on any symbol and chart period will be stored in one list of patterns so that we can use the common list to search for any common properties of different patterns on different price data without first transferring them from different lists to one.

Author: Artyom Trishkin

 

Yeah. That's not weak!

Waiting for the test

 
How do you divide patterns into Candle and Price Action? And what is the purpose of this division? As for me, Pin Bar is also a candlestick pattern.
 
Ivan Titov candlestick pattern.

I just opened the search results for "Price Action" in Google and I see that Pin-bar is a formation from Price Action.

In general, all the shapes formed on the Japanese candlestick chart are candlestick formations, patterns. But someone once made their classification and did a great job. So, we proceed from this generally accepted classification.

However, we can proceed from any inferences and any own classifications. It's not important. More important is how to interpret and use it. And you can call it anything you want and refer it to any group of belongings.

 
Renat Akhtyamov #:
Waiting for the test

It's still a long way off....

 
Artyom Trishkin #:
Just opened google search results for "Price Action" and I see that a pin bar is a formation from Price Action.

Google gives out that dojis, hammers and stars are also Price Action.

Artyom Trishkin #:
However, you can proceed from any inferences and any own classifications. It is not important. More important is how to interpret and use it.

That's why I'm asking how this division is planned to be used. I don't like it when already voluminous code is cluttered with unnecessary functionality.

 
Ivan Titov #:
how this division is planned to be used
Everything that belongs to the Price Action category will be located in this category. Other patterns - in the category of candlestick patterns.
Ivan Titov #:
already voluminous code is cluttered with unnecessary functionality.
Very often you can read headings like Price Action Trading. Accordingly, it is allocated in a separate category. If I come across another category with frequent references, it will be there too.