IBKR TWS can do this (natively). TD/Schwab ToS can do this with scripting.
Can find a script here.
https://jshingler.github.io/TOS-and-Thinkscript-Snippet-Collection/TOS & Thinkscript Collection.html
It's under the "C-MULTIPLE INSTRUMENTS COMPARISON" header.
Can find a script here.
https://jshingler.github.io/TOS-and-Thinkscript-Snippet-Collection/TOS & Thinkscript Collection.html
It's under the "C-MULTIPLE INSTRUMENTS COMPARISON" header.
Last edited: