Проблема с импортом данных
Atom
20.03.2014


Есть csv в таком формате:

#RIC Date[G] Time[G] GMT Offset Type Open High Low Last Volume
ESH4 20140302 23:00:00.000 -6 Intraday 1Sec 1846 1846.25 1845 1845.75 3958

Как мне заполнить поля в настройках импорта?
1. Столбцы имеют нумерацию с 0 или 1?
2. Дата формата YYYYMMDD не распознается:
01:31:56 System.InvalidCastException: Cannot convert Time[G] with format YYYYMMDD to DateTime. ---> System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
at Ecng.Common.Converter.ToDateTime(String value, String format)
--- End of inner exception stack trace ---
at Ecng.Common.Converter.ToDateTime(String value, String format)
at StockSharp.Hydra.Panes.ImportPane.FieldMapping.ApplyValue(Object instance, Object value)
at StockSharp.Hydra.Panes.ImportPane.<>c__DisplayClass13b.<OnDoWork>b__13a()
at Ecng.Common.Converter.<>c__DisplayClassf.<DoInCulture>b__e()
at Ecng.Common.Converter.DoInCulture[T](CultureInfo cultureInfo, Func`1 func)
at StockSharp.Hydra.Panes.ImportPane.OnDoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Теги:


Спасибо:


< 1 2 
devruss

Фотография
Дата: 21.03.2014
Ответить


Стандартные свечки из Reuters Database, с тиками такая же проблема

CSV файл с такой вот структурой:

#RIC,Date[G],Time[G],GMT Offset,Type,Open,High,Low,Last,Volume
ESH4,01/12/2013,23:00:00,-6,Intraday 1Sec,1799.5,1799.75,1799.5,1799.75,7
ESH4,01/12/2013,23:00:05,-6,Intraday 1Sec,1799.5,1799.5,1799.5,1799.5,1
Спасибо:

devruss

Фотография
Дата: 22.03.2014
Ответить


При импорте тиков из Reuters - вот такая ошибка:

19:25:12 System.InvalidCastException: Cannot convert to type System.Decimal. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Ecng.Common.Converter.To(Object value, Type destinationType)
--- End of inner exception stack trace ---
at Ecng.Common.Converter.To(Object value, Type destinationType)
at StockSharp.Hydra.Panes.ImportPane.FieldMapping.ApplyValue(Object instance, Object value)
at StockSharp.Hydra.Panes.ImportPane.<>c__DisplayClass13b.<OnDoWork>b__13a()
at Ecng.Common.Converter.<>c__DisplayClassf.<DoInCulture>b__e()
at Ecng.Common.Converter.DoInCulture[T](CultureInfo cultureInfo, Func`1 func)
at StockSharp.Hydra.Panes.ImportPane.OnDoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Файл имеет следующий вид:
#RIC,Date[L],Time[L],Type,Price,Volume
ESH4,01/12/2013,17:00:00.119,Trade,1799.5,1
ESH4,01/12/2013,17:00:00.504,Trade,1799.75,1
ESH4,01/12/2013,17:00:00.504,Trade,1799.75,3
ESH4,01/12/2013,17:00:00.580,Trade,1799.75,1
ESH4,01/12/2013,17:00:00.709,Trade,1799.75,1
ESH4,01/12/2013,17:00:05.252,Trade,1799.5,1
ESH4,01/12/2013,17:00:06.854,Trade,1800,1
ESH4,01/12/2013,17:00:13.460,Trade,1799.75,

Т.е. в некоторых местах Volume пропущен. Если ставить значение по умолчанию 1, то эта ошибка уходит, но появляется знакомая ошибка:

19:27:30 Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'object' does not contain a definition for 'Save'
at CallSite.Target(Closure , CallSite , Object , IOrderedEnumerable`1 )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
at StockSharp.Hydra.Panes.ImportPane.FlushBuffer(IEnumerable`1 buffer, IMarketDataDrive drive)
at StockSharp.Hydra.Panes.ImportPane.<>c__DisplayClass13b.<OnDoWork>b__13a()
at Ecng.Common.Converter.<>c__DisplayClassf.<DoInCulture>b__e()
at Ecng.Common.Converter.DoInCulture[T](CultureInfo cultureInfo, Func`1 func)
at StockSharp.Hydra.Panes.ImportPane.OnDoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Спасибо:

devruss

Фотография
Дата: 24.03.2014
Ответить


Обновил Гидру, теперь данные импортируются...

Но есть новая ошибка - импортируемые инструменты не добавляются в список "Все инструменты", но если зайти в Импорт - Свечки - Выбор инструмента, то импортированные инструменты там уже есть...

Проблема в том, что непонятно как обращаться к инструментам из S#... он их просто не видит, хотя в базе они есть
Спасибо:
< 1 2 

Добавить файлы через драг-н-дроп, , или вставить из буфера обмена.

loading
clippy