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!
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!
Rename
Well yes, StartDate is a read only property that returns the first DateTime in the BarHistory Dates list.
Your Response
Post
Edit Post
Login is required