- ago
I'm not sure if this is a feature request or bug report. Please assign it accordingly.

Sometimes I need to disable IQFeed which uses SPX.XO to designate the S&P 500. When that happens, I want the S&P 500 lookup to default to the Yahoo provider as ^SPX instead. For Yahoo streaming symbols, I've designated this as shown below.


However, when I attempt to open a Chart requesting the S&P 500, I get the following error dialog below. How can this problem be fixed?
10
613
6 Answers

Reply

Bookmark

Sort
- ago
#1
This is what I expect would happen. You’re requesting a symbol that Yahoo cannot deliver. The mapping is for Historical symbol -> Yahoo Streaming, not Yahoo Historical. Cant you just enter the Yahoo symbol when you’re using Yahoo?
0
- ago
#2
QUOTE:
Can't you just enter the Yahoo symbol when you’re using Yahoo?

No, that's hard coded in a library routine. I decorrelate all stocks with the S&P 500 as a preprocessing operation. My only real option is to not let IQFeed stay disabled for too long because I need it.

I'm wondering if there's a tricky way (that's not too complicated) around this problem? The hassle of disabling IQFeed in the first place to prevent WL7 from acquiring linked Yahoo mutual fund data from IQFeed (which I'm not subscribed to) is also a nuisance. I need a trickier solution to both problems.

I suppose if Q-Data provided S&P 500 data at 1-minute resolution under a different symbol (than SPX.XO), that would work. But Q-Data isn't trying to provide real-time data like this. That's IQFeed's job.
0
- ago
#3
The only solution I can think of would require an enhancement, add Symbol Mappings for Historical Providers. If you like, I can tag this topic a #FeatureRequest?
0
- ago
#4
QUOTE:
If you like, I can tag this topic a #FeatureRequest?

That sounds like a plan. But let's add another requirement. The symbol substitution shouldn't go more than one-substitution deep without throwing an error when the symbol substitution table is submitted. That feature is to prevent inadvertent circular references from putting WL into an infinite loop. :(
1
- ago
#5
I will also like to have this feature. In addition, I will like to have access to the original symbol and the mapped symbol both from the script.
CODE:
var symbolAfterMapping = bars.Symbol; var symbolBeforeMapping = bars.OriginalSymbol;

This will allow me to pass two symbols to the script - one for primary chart and one for the secondary chart. Reference this thread - https://www.wealth-lab.com/Discussion/Changing-symbol-for-the-secondary-chart-7556
I can type "SPX|#RUT%MA50" in the symbol box which will plot "SPX" as the primary symbol and "#RUT%MA50" as the secondary symbol.

It will open lot of possibilities to be creative. One can pass some other parameters also to the script like some number or other text :-)
0
- ago
#6
Be sure to vote for this request.
0

Reply

Bookmark

Sort