Is there a way to create a function in thinkscript?


New member
How can I create a function in thinkscript.

e.g - zigzagtrendsign study cycles between 1 and -1 . I want to convert this study to a function so that it will return me 1 or -1 rather than plotting it. Any help ?

Similar threads