- ago
I have an error with
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
0
762
2 Replies

Reply

Bookmark

Sort
- ago
#1
The equivalent is 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;       }
1
- ago
#2
Thanks Eugene, as I always say: Wonderful software, wonderful team!!
2

Reply

Bookmark

Sort