- ago
How can I get the "current" data sets in WL?
For example DOW30-current, S&P100-current ......
0
529
Solved
3 Replies

Reply

Bookmark

Sort
- ago
#1
So you're saying you can't get the Portfolio Backtest menu below to select the circled datasets?

1
- ago
#2
QUOTE:
For example DOW30-current, S&P100-current ......

1. The beauty of Wealth-Data is that it makes every such DataSet (that you see on superticker's screenshot) "current" at any moment of time. Even though they include historical components, if they've left the index they are not processed "today".

2. The "World Indices" DataSets that you see in that dropdown box are "current" i.e. up to date. A bot updates them every Friday according to index changes made by its creators and/or the exchange. W-D is always actual as well.

Assume everything you see there is "current".
1
Best Answer
Cone8
 ( 26.65% )
- ago
#3
But if you really want to see a list of the current symbols, you can run this script and check the Debug Log -

CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using System.Collections.Generic; using System.Linq; namespace WealthScript1 { public class MyStrategy : UserStrategyBase { public override void Initialize(BarHistory bars) {          } public override void Execute(BarHistory bars, int idx) { } public override void BacktestBegin() { WriteToDebugLog(ExecutionDataSetName, false); } public override void PreExecute(DateTime dt, List<BarHistory> participants) {          if (dt.Date >= DateTime.Now.Date.AddDays(-1))             WriteToDebugLog(string.Join(", ", participants.Select(x => x.Symbol)), false); } } }
2

Reply

Bookmark

Sort