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)
Is there any way to "z-order" the various elements in a study? More specifcally, I want to bring the yellow line and the white baseline "forward" so they lay on top of the green and red histograms, if possible. Currently, the histograms are "on top" and make the yellow line and white baseline look like they are dashed lines, as seen in the sample image below...
Any help/assistance would be greatly appreciated. Thanks in advance...
Can you help answer these questions from other members on NexusFi?
The plot order is according to which one is first on the code. You have to move the plot text for the avg and zero line before the histogram plot in the thinkscript.
Thanks for your reply, rmejia. I understand. Unfortunately, since the yellow "avg" line is derived from the histograms, the plots cannot be reordered...
Can you put the histogram formula on the avg plot ? I have a study where the avg was = ((h+l+c/3),ema period), the h and l being the histogram so I substituted those for instead of just using h to using what h was equal to.
So to move it infront of the histogram plot the formula changed to:
plot ave = expAverage((high("$TICK")+low("$TICK")+close("$TICK"))/3,emaPeriod);
Thank you, rmejia, for your reply and continuing assistance. It is certainly appreciated. As for the element ordering, I received the answer I needed from a fellow scripter on another forum...
It turns out that the plots can be reordered as necessary, but it requires defining (def) certain plots ahead of time, so to speak. I hope that makes sense, but if not, below are code snippets that hopefully do a better job than I