I need some help creating code in thinkscript
For example:
I have 3 watchlists with different tickers as a result of one trade.
I need to program a code in thinkscript, which declares a variable x of global access in a list1 and goes cyclically through each ticker and puts, for example, in the variable x the value one for each ticker in that list1,
Then I can go to list 2 and check each ticker and add 1 to variable x, that way I can get the ticker that variable x adds 2 because it is present in both lists.
And so on with list 3.
The idea here would be to obtain in a new watchlist the tickers of the companies that appear repeated in the 3 previous lists or at least in two of them.
Any ideas? Thanks
For example:
I have 3 watchlists with different tickers as a result of one trade.
I need to program a code in thinkscript, which declares a variable x of global access in a list1 and goes cyclically through each ticker and puts, for example, in the variable x the value one for each ticker in that list1,
Then I can go to list 2 and check each ticker and add 1 to variable x, that way I can get the ticker that variable x adds 2 because it is present in both lists.
And so on with list 3.
The idea here would be to obtain in a new watchlist the tickers of the companies that appear repeated in the 3 previous lists or at least in two of them.
Any ideas? Thanks
Last edited by a moderator: