- ago
#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):
CODE:
    ChartThemeFactory cp = ChartThemeFactory.SelectedTheme; // WPF Colors - use this extension method to convert WLColor upBarColor = cp.ColorUpBar.ToGdiColor(); WLColor downBarColor = cp.ColorDownBar.ToGdiColor();
0
664
Solved
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 10.62% )
- ago
#1
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; }
0
Best Answer

Reply

Bookmark

Sort