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)
Hi. I have a question about Thinkscript. I am not optimistic that anyone can help me, because I don't think what I want to do is possible. My strategy is a kind of swing method. I have a condition (unimportant at this point, to go into detail), and then this condition is met I want to draw two horizontal lines above and below the signal bar. I want these lines to continue until price breaks either line. I want to ignore additional signals while this signal is still in play (see picture).
Here is the problem...
When I create the "HighLine" I need to look back and see what "HighLine[1]" was (last bar compared to price). That's easy enough, but I also need to take a peek at "LowLine[1]."
The problem is this hasn't been defined in my code yet, so I can't reference it. Thinkscript does not give you any way to define a variable at the top of the code and then change it towards the bottom of the code. So for instance, if I could drop myself a little breadcrumb in ThinkScript and tell myself that the two lines had been 30 ticks apart, I'd be fine--so long as I could reference this at the top of my code later.
Maybe I am missing something. Is there anybody who has figured out a way to do something similar?
Any help is appreciated. I have a feeling I may need to draw two dots and fill the lines in manually. What a drag that will be, since I could code this whole strategy in NT is less than an hour.
Can you help answer these questions from other members on NexusFi?
Here's another ThinkScript reference site:
www(DOT)share-tos.blogspot(DOT)com
The original post asked about drawing lines above/below breakout levels. Have you looked at the TOS DarvasBox Study for ideas?
I've not posted enough here to include a link, sorry.
Hello I have a custom nt indicator fairly simple one. Is it possible to get it translated so I can see if it will work well with TOS? Itshould its not auto execute just sort of rollingaversge I dictator. Thnc