- ago
Is there any method? Or maybe a variant of WLHost.Instance.GetHistory whitch accepts DataRange?
0
296
Solved
3 Replies

Reply

Bookmark

Sort
- ago
#1
Can you tell us what your objective is with this?
0
- ago
#2
CODE:
<wpf:DataRangeDropDown Height="20" Margin="0,4,4,4" Name="cmdDataRange" Width="90"/>

Added this component to my extension GUI and want to load bar history like this
CODE:
BarHistory bars = WLHost.Instance.GetHistory(symbol, cmbSelector.SelectedHistoryScale, cmdDataRange.DataRange.StartDate, cmdDataRange.DataRange.EndDate, 0, cb);

But start and end date not representing what I have selecteed from the DataRangeDropDown
Searched for method to convert DataRange to start-end date and haven't found it.
0
Glitch8
 ( 9.00% )
- ago
#3
The method is DataRange.SetRangeParameters.
1
Best Answer

Reply

Bookmark

Sort