#WealthLab8
Good Morning...
I recall your mention that the current chart preferences would be reorganized in WL8. Help please, I can't seem to find the instance.
Otherwise, the migration tools did a fantastic job uplifting my code. A couple of obvious tweaks was all it has taken.
Rick
For reference... In WL7 an instance of the SelectedTheme lived in the factory. This is that code (as scrubbed by the migration tool):
Good Morning...
I recall your mention that the current chart preferences would be reorganized in WL8. Help please, I can't seem to find the instance.
Otherwise, the migration tools did a fantastic job uplifting my code. A couple of obvious tweaks was all it has taken.
Rick
For reference... In WL7 an instance of the SelectedTheme lived in the factory. This is that code (as scrubbed by the migration tool):
CODE:
ChartThemeFactory cp = ChartThemeFactory.SelectedTheme; // WPF Colors - use this extension method to convert WLColor upBarColor = cp.ColorUpBar.ToGdiColor(); WLColor downBarColor = cp.ColorDownBar.ToGdiColor();
Rename
Here's how it would work in WL8:
CODE:
//create indicators and other objects here, this is executed prior to the main trading loop public override void Initialize(BarHistory bars) { ChartPreferences cp = ChartThemeFactory.Instance.SelectedTheme; WLColor upBarColor = cp.ColorUpBar; WLColor downBarColor = cp.ColorDownBar; }
Your Response
Post
Edit Post
Login is required