SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun May 28, 2017 11:40 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Mar 18, 2016 5:27 pm 
Offline

Joined: Fri Mar 18, 2016 4:01 pm
Posts: 1
Not sure what might be the reason for the following error running ChannelBreakout:

Building MyStrategy
3/17/2016 09:59:50.544 Scenario::StartStrategy Backtest
3/17/2016 09:59:50.549 DataSimulator::Subscribe AAPL
DataFile::StreamWrite Can not write to file data.quant
DataFile::ReaderRead Can not read from file data.quant
DataFile::ReaderRead Can not read from file data.quant
DataFile::ReaderRead Can not read from file data.quant
DataFile::ReaderRead Can not read from file data.quant
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at SmartQuant.NetDataFile_.Get(String name)
at SmartQuant.FileDataServer.GetDataSeries(Instrument instrument, Byte type, BarType barType, Int64 barSize)
at SmartQuant.DataManager.GetDataSeries(Instrument instrument, Byte type, BarType barType, Int64 barSize)
at SmartQuant.DataSimulator.XuxlFJHZQ9(Instrument , DateTime , DateTime )
at SmartQuant.DataSimulator.Subscribe(InstrumentList instruments)
at SmartQuant.SubscriptionManager.Subscribe(IDataProvider provider, InstrumentList instruments)
at SmartQuant.StrategyManager.RegisterMarketDataRequest(IDataProvider dataProvider, InstrumentList instrumentList)
at SmartQuant.Strategy.UWHa9kiVcY(Strategy , InstrumentList , Int32 )
at SmartQuant.InstrumentStrategy.Csdy1P9Rgn()
at SmartQuant.StrategyManager.StartStrategy(Strategy strategy, StrategyMode mode)
at SmartQuant.Scenario.StartStrategy()
at OpenQuant.Program.Main(String[] args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at OpenQuant.Projects.SolutionRunner.Run(Object obj)

Thanks a lot!


Top
 Profile  
 
PostPosted: Fri Mar 18, 2016 6:08 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6750
Hi,

not sure what has happened but it looks like your data file is corrupted or you have problems with physical file access. If you have no important data in this file, I would suggest to simply remove it and OQ installation will install a clean demo data file.

Regards,
Anton


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group