I'm working on an intraday code and would like to access the stocks of my DataSet as well as the Nasdaq Composite Index on a daily scale. Is the following code the right way to do it?
CODE:
Please log in to see this code.
Size:
Color:
Right, although if you have .ixic in more than one DataSet/Scale, then you should use the parameter overload for GetExternalSymbol to specify the DataSet's name (5.4 and up). Also, I'm not certain that it makes a difference for a symbol name, but to be safe you should use the same case (.ixic or .IXIC) as the symbol in the DataSet.
Size:
Color:
Thanks.
Size:
Color:
By the way, if you're accessing a Daily source directly, SetScaleDaily/RestoreScale should not be required.
Size:
Color: