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)
need help with a plot in EasyLanguage with knowledge of ThinkScript
lets say I want to plot a trendline on bar number 10 ago to bar number 11. Now when I say 10 ago I mean last bar on chart (current bar that has not closed yet - 9) total 10, using currentbar in the last configuration will do the same, except counting from the 1st bar on chart up, and not last bar on chart down. , so the the other one should be( lastbaronchart - 10) It does not work this way.
Sorry, not at home right now.
Can you help answer these questions from other members on NexusFi?
My interpretation of what you're trying to do is the following:
Which draws the line from High[10] to Low[11], and then updates the trend line on each bar so that the old bar 10 becomes the new bar 11. I'm not sure if this interpretation is correct, because I can also read your screenshot as meaning to say 'keep the trend line on the same bar'.
Here's what the above code looks like:
Then when the code updates, the trend line moves with it, reflecting the 'old bars' becoming 'new bars':