Charting ratios in ThinkorSwim

In ThinkorSwim can we chart the ratio of the price of two securities?
Is it in one of the Studies?

And more advanced, can we chart weight2*stock1-weight2*stock2 in order to visualize the payoff of a long short trade? (we can do that with combined contracts in IB.)
 
As in a pairs trade?

Type the pair into the chart box -- ie "/ES-/NQ" or "SPY-QQQQ" with the symbol you're buying as the first symbol and the one you're shorting for the second.
 
Intriguing.
Anyway, division wouldn't work because they use '/' to indicate a future. You'd need a way of 'escaping' the character. I tried '\//', where the '\' indicates that the next character should be 'escaped', that is, used for its general purpose rather than as the first character of a futures symbol, but it didn't like that.
 
As an update I have found the way to do it which is (SPY/QQQ).


Can anyone help me with the other question on the board (Where to download generic xth futures contract price histories)?

Thanks a lot.
 
Quote from Cyrix:

As an update I have found the way to do it which is (SPY/QQQ).


Can anyone help me with the other question on the board (Where to download generic xth futures contract price histories)?

Thanks a lot.


I just tried that. Got an error message. Thoughts, anyone?
 
Back
Top