Dividing 2 separate issues such as /ZN and /YM on TOS platform?


Category:
0
0

Hi there,

I’m wondering if anyone knows how to divide 2 separate issues such as /ZN divided by /YM on the TOS trading platform. Or, can it be done in excel after exporting from TOS. I’m interested in ratios, and this info would be good to have. Thank you.

**It’s easy to divide single issues on TOS, but dividing separate issues seem to be a problem.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on April 7, 2020 10:40 am
89 views
0
Private answer

I think the issue you are experiencing is related to the forward slashes in those ticker symbols, yes? Because you should be able to divide normal stock tickers by entering the following in the ticker symbol box of the chart: QQQ / AAPL

If this is what you are trying to work around, we do have to create a custom chart study. When we do this it will only be able to plot the value as a single line rather than a series of candles with open, high, low and close.

In order to plot a single line of the close from /ZN divided by the close of /YM we have the following:

declare lower;
plot data = close("/ZN") / close("/YM");

You can do the same for the other data points by substituting the close for open, high or low.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 7, 2020 5:30 pm
0
Thank you Pete. This is the info I needed!
( at April 7, 2020 9:24 pm)