Calling LoadFromFile to load data from file
Author: jimcrist
Creation Date: 10/12/2009 1:19 PM
profile picture

jimcrist

#1
I'm trying to display a chart of the S&P500 closes above a chart. Why are the S&P prices changing when I display different symbols in the bottom half of the chart?
CODE:
Please log in to see this code.
profile picture

Cone

#2
You should not load secondary data in this manner. LoadFromFile returns an unsynchronized Bars object. It's for advanced programming, not for scripts.

Use the GetExternalSymbol method(s) instead.
profile picture

Eugene

#3
Looks like you've implemented Danton Long's MBars? While all of the above is true, for advanced programs it's possible to synchronize the loaded MBars object with the help of:
CODE:
Please log in to see this code.

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).