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" was (last bar compared to price). That's easy enough, but I also need to take a peek at "LowLine."
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.
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