- ago
Hi,
I was experimenting with this very useful Build 135 feature:
○ Calls to GetHistory in a C# Strategy will no longer request a full history, but will instead will request data with a start date pegged to the BarHistory. This will remove bottlenecks especially with intraday data.
BarHistory _spy;
_spy.StartDate = DateTime.Now;
_spy = GetHistory(bars, "SPY");
But had this error message:
Compiled at 9/10/2025 10:18:41
16: Property or indexer 'DateSynchedList<double>.StartDate' cannot be assigned to -- it is read only
16: Use of unassigned local variable '_spy'
Thanks!
0
227
Solved
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 8.86% )
- ago
#1
Well yes, StartDate is a read only property that returns the first DateTime in the BarHistory Dates list.
0
Best Answer

Reply

Bookmark

Sort