AddFutureBars in WL5?
Author: haytac
Creation Date: 9/17/2008 9:34 PM
profile picture

haytac

#1
I use AddFutureBars( CBars ); in my WealthLabPro 4.x program.

This allows me to do what ifs for the next few bars that have not become real yet.

Is there a similar function in WL Pro 5.x?

Thanks and Regards,
profile picture

Eugene

#2
No. Although formally there's a method Bars.Add, actually it does not allow to modify the existing Bars object.
profile picture

haytac

#3
I tried:
for(int bar = 20; bar < ( Bars.Count + 10 ); bar++)
to see if it adds 10 bars. It compiled but with no visible effect on the Chart window.

When will Bars.Add be enabled?
What is the correct syntax for Bars.Add?

Thanks and Regards,
profile picture

Eugene

#4
QUOTE:
When will Bars.Add be enabled?
What is the correct syntax for Bars.Add?

Bars.Add is used internally, there's no correct syntax since Fidelity decided not to document its usage in the QuickRef. They probably have a good reason not to allow editing the Date property of the Bars object. Please contact Fidelity directly regarding these questions.
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).