public class symbolList : List
public IndexHelper(string folder, string index, Bars bars)public DateTime FirstIndexDate(int bar) public DateTime LastIndexDate(int bar) public symbolList WatchList(int bar)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { IndexHelper ih = new IndexHelper( @"C:\Data\", "DAX", Bars ); DateTime firstDateAvailable = ih.FirstIndexDate(); for(int bar = 1; bar < Bars.Count; bar++) { if (IsLastPositionActive) { //code your exit rules here } else { // Test it if( Bars.Datebar >= firstDateAvailable ) { symbolList sl = ih.WatchList( bar ); if( sl != null ) { foreach (string s in sl.symbols ) PrintDebug (s); } } } } } } }