Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
just thought the following code could be of interest for someone. It is a representation of zigzag, not in form of the well-known lines, but exactly the value of this indicator on each bar. Therefore you can follow its move during the forming of the most recent span, not only after a reversal occurs. The indicator uses two data streams: data1 is used for plotting and data2 — for determining the swing criterion. By default if is equal to 1 ATR of data2. The other lines on the chart are 2 standard errors from the uppermost or lowermost line (depending on the direction) and target levels for upwards and downwards movements. I hope the parameters are self-explanatory, but if you're in trouble please feel free to ask.
The indicator uses a function named __zigzagtrue_stddev__, please make sure the name is exactly that.
Now the indicator itself:
If this stuff is apt for anyone please share your experience, would love also to hear about how this behaves on other instruments, in particular on index futures.
Hope I haven't dubbed someone else's work here on the forum.
No, I hadn't seen your code before posting mine, no kidding Seriously, the idea is the same except that I use separate data streams which sometimes allow for using interesting solutions like mixing up instruments or using artificial indices, etc.