Relative Strength Mansfield
Author: ecorderob
Creation Date: 10/11/2010 12:07 PM
profile picture

ecorderob

#1
Hi,

I have this indicator (Relative Strength Mansfield) to compare the relative strength of one value with the S&P500

CODE:
Please log in to see this code.


It is executed in WEEKLY scale and it usually works ok, but when I try to run it against some of the futures imported from PiTrading or TradingBlox, I get one exception: The given key was not present int the dictionary.

Why can this be happening? Could I solve it somehow?

Thanks a lot,

Enrique
profile picture

Eugene

#2
I'm afraid it might be slightly more than a PiTrading thing. Try this:
CODE:
Please log in to see this code.

where ds = your DataSet containing ^GSPC.

Do you still get the error message in runtime?

The key here is that the DataSet is a non-PiTrading/non-TradingBlox one.
profile picture

ecorderob

#3
That seems to work!

Not many times we thank you enough for being fast and helpful, so...
Thanks a lot! You are great!
profile picture

Eugene

#4
I think we might have hit an issue. Without the overload with a DataSet name, GetExternalSymbol should work properly. If you could enter a support ticket, it would be appreciated.
profile picture

ecorderob

#5
Ticket created :)
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).