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)
Hello, I am trying to accomplish something that should be easy to do without any code modification.
I simply want 2 ATR lines drawn in one indicator window so that I can compare the behavior of a longer and shorter term reading. The problem is that the scaling of the chart changes the positioning of the lines relative to each other as you scroll forward or backward in time. I need the ATR lines to be static, so a numerical scale might do the trick instead of the default % scale.
Here's what I mean:
the overlapping is done in the edit studies window:
Below is 2 pics of the same data, but in the 2nd one i scrolled forward one day so you can see what I mean about the positioning of the lines changing relative to each other.
I want the lines to remain static, not float up and down to fit to the scaling.
Can anyone help with this?
Thanks
Can you help answer these questions from other members on NexusFi?
It looks like in order to display two plots that properly maintain their relative y-scaling, they must be in the same study.
In TOS, the ATR is done in a built-in "TrueRange" function, so the study is one line of code, at the top level.
So here's a dual ATR for you . Not a general solution or setting, but I think it will work the way you want, in this case.
(In Edit Studies, click Create, paste in this code, give it a name and click OK.)
Hey that works great! Seeing how simple that scripting was I think it might be worth it for me to finally dig into this stuff. I have other indicator ideas I wanted to implement like cumulative volume for zig zags and volume profile broken up into multiple time periods.
You win the award for the coolest person I interacted with today!
Thanks! I accept this award, and I'd like to thank the Academy.
The learning curve for thinkscript is probably the easiest. The error messages that you get in the code editor can be cryptic sometimes, but the thinkscript online docs have gotten a lot better recently.
Maybe this would help with the volume studies you are working on.
It's from a well known ThinkScript blog.
yes! that looks like about 3/4 of the puzzle for the zig zag thing. I'll definitely be perusing these. That RSI divergence indicator would be handy too.