ZigZag Indicator Metastock Formula to Python
问题 I would like to create a zigzag indicator for stocks in Python. I have this Metastock Formula. I dicided to publish this problem here because I don't know any other foro. I saw 2 stackoverflow posts with something like this but they are wrong. As you can see, the indicator tooks the close prices. Thanks for your help. Python code: from __future__ import division import matplotlib.pyplot as plt import numpy as np def islocalmax(x): """Both neighbors are lower, assumes a centered window of size