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)
I use volume charts, but it's hard to tell when an individual bar hits a high/lo during its oscillation period. I wanted a visual horizontal line that plotted the high/lo of each bar and then removes the previous horizontal line at the start of the next bar...and the process repeats all over again. I've been tinkering with some ideas and here's what I found:
TS has a built-in indicator "Line at Price". Set to high/low, it begins it range calculation immediately upon a new bar forming and as the price oscillates so do the high/low points, which makes it difficult to tell if its really hit a high/low for the active bar. It was confusing to use so scratch! I was actually thinking more like this:
If the current price is GREATER than the MIDPOINT of the developing bar then
show (LOW plus Maximum Bar Range minus Current Price).
If the current price is EQUAL to the MIDPOINT of the developing bar then
show the MIDPOINT value as dot.
If the current price is LESS THAN the MIDPOINT of the developing bar then
show (High minus Maximum Bar Range plus the Current Price).
So here's the code that:
And here's the code to add the horizontal line to Range High and Low. But the TL_Delete would have be used to remove the previous horizontal line. I think these trend lines can be deleted with a statement like:
As much as I like this code, I don't think it works on a volume based chart. Please correct me if I'm wrong!
So then I thought instead of deleting previously drawn trend lines, a better approach would be to update the beginning and ending points as new bars are formed. Hmm, so I gave this some thought and with some help instead of using trend-lines, how about Displace Horizontal Plots? A benefit to this approach is that the line values can be set to appear in the price axis.
Would like some feedback on what you guys think of this study:
If you plan to use this code, be sure to set scaling at 1.