Hi all, I have an Indicator created on MT4 using DTW and correlation to classify the time series data. There is an issue I found related to the DTW algorithm. When the pattern is long, the DTW score will become bigger and bigger. Also, the distance metric I am using is Euclidean Distance, when I am measuring the distance between 2 chart bar, (Open High Low Close), that is a 4 dimension space. It turns out that it is harder to distinguish the similarity between different patterns since a small change of the value can represent a big different. I would like to see if there is a better way to implement the DTW algorithm for similar pattern finding purpose. Or even there is another algorithm other than DTW. Here are some screen shot to show how my indicator works: Step 1 - Build the database for pattern recognition Select the indicator mode Select the pattern Database created Step 2 - Pattern checking Change Indicator mode User can check the pattern Step 3 - Live Change Indicator mode Live classifying
I researched dynamic time warping in 2019 and found this was the fastest one, and the site includes free relatively-portable C++ source code for it. http://sites.labic.icmc.usp.br/prunedDTW/
Thanks @ph1l This is interesting to make the comparison faster. My question is that currently I may need to compare and identity which DTW result is the best. The issue is that the input chart pattern is 4 dimensions (Open, High, Low, Close). A small difference of the the DTW score will make a big impact to the result. Is there a way to improve that?
In this post, I found increasing the warping window proportion with dynamic time warping improved the precision and resulted in better predictions. For that test, I'm not sure if the inputs had multiple dimensions.