Put/Call ratio indicators from November 2011 S&C
Author: ecorderob
Creation Date: 12/14/2011 11:09 AM
profile picture

ecorderob

#1
Hi,

I was trying to reproduce the code that is included in Stock & Commodities (November 2011) related to the Put/Call ratio indicators, but I am getting an error that I don't know where it comes from.

This is the code related to the first indicator. Really simple one, but I get "Plotted Dataseries has fewer bars than the symbol being charted". Any idea of the root cause?

CODE:
Please log in to see this code.
profile picture

Eugene

#2
How about adding Synchronize()?
profile picture

ecorderob

#3
It does not seem to help. It returns "Index was out of range. Must be non negative and less than the size of the collection" :(

profile picture

Eugene

#4
Change the wrong EQUITYCP to EQUITYPC.
profile picture

ecorderob

#5
Thanks a lot... Sometimes those stupid errors are difficult to find :)
profile picture

thodder

#6
I'm curious, what data provider did you use for this?
profile picture

Eugene

#7
profile picture

thodder

#8
Thanks!