I have an error with
I have in my code:
using WealthLab.Backtest;
using System;
using WealthLab.Core;
using WealthLab.Indicators;
using System.Drawing;
using System.Collections.Generic;
using WealthLab.Data;
Please, any help will be appreciated
CODE:
public BarHistory getTickerExterno(BarHistory bars, string ticker, string dataset) { DataSet ds = DataSetFactory.Instance.Find(dataset); GetHistoryControlBlock cb = new GetHistoryControlBlock(); cb.DataSet = ds; BarHistory TickerExterno = WLHost.Instance.GetHistory(ticker, HistoryScale.Daily, DateTime.MinValue, DateTime.MaxValue, 0, cb); TickerExterno = BarHistorySynchronizer.Synchronize(TickerExterno, bars); return TickerExterno; }
I have in my code:
using WealthLab.Backtest;
using System;
using WealthLab.Core;
using WealthLab.Indicators;
using System.Drawing;
using System.Collections.Generic;
using WealthLab.Data;
Please, any help will be appreciated
Rename
The equivalent is DataRequestOptions.
1. Since your code already has this using clause...
2. All it takes to replace GetHistoryControlBlock with DataRequestOptions:
1. Since your code already has this using clause...
CODE:
using WealthLab.Data;
2. All it takes to replace GetHistoryControlBlock with DataRequestOptions:
CODE:
public BarHistory getTickerExterno(BarHistory bars, string ticker, string dataset) { DataSet ds = DataSetFactory.Instance.Find(dataset); DataRequestOptions cb = new DataRequestOptions(); cb.DataSet = ds; BarHistory TickerExterno = WLHost.Instance.GetHistory(ticker, HistoryScale.Daily, DateTime.MinValue, DateTime.MaxValue, 0, cb); TickerExterno = BarHistorySynchronizer.Synchronize(TickerExterno, bars); return TickerExterno; }
Thanks Eugene, as I always say: Wonderful software, wonderful team!!
Your Response
Post
Edit Post
Login is required