thank you for converting to NT8 (10/03/2015) the spreadoscillator indicator posted on the ninjatraderecosystem.
By looking the arithmetic of its script and if I consider the case it is applied to ES and RTY, I understand it first calculates the difference of the dollar values of these two futures and then it calculates such difference as a percent of the sum of the two futures’ dollar values.
So for the two ES and RTY micro futures the two values compared should approximately be
SP500 2977 * 5 = $14885
RTY 1531 * 5 = $7655.
(.. I tried to check this using the print action of the strategy builder. but I was unable to find out how to tell the SB to print just the: double FirstValue and the double SecondValue @ lines 63 and 64 of the indicator)
So the spreadoscillator is plotting the (14885 – 7655) / ((14885 + 7655)*100)
If I want to compare the two spreads vs the ES, say the spread ES-RTY and the spread ES-NQ (for ex., because I wish to know which one of these two spreads is bigger, or because when one trades a spread between two futures, usually makes sense entering two opposing positions with the same dollar values for the two instruments) wouldn’t it be more correct to calculate the spreads comparing similar $ values for the two futures, ie using the spread ES-2*RTY (RTY dollar value is nearly half of ES dollar value) and the spread ES-NQ (ES and NQ are almost of the same size) ?
If this is correct, is it possible to modify the script of the spreadoscillator indicator so that it can measure the spreads between same size dollar values?
I tried to find out whether the correlation indicator uses same size dollar values for its calculations, but I cannot understand by looking at the script how such correlation calculations are executed by the indicator. I was going to find out whether these two indicators can be used together for more informed spread trades.
thx
Comment