SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Dec 05, 2021 9:48 pm

All times are UTC + 3 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Sep 30, 2019 8:58 pm 

Joined: Mon Aug 05, 2019 7:11 pm
Posts: 15
I sometimes catch exception in this:
               DateTime temp = dt1;
                while (temp + new TimeSpan(1, 0, 0, 0) < dt2)
                    DataSimulator.DateTime1 = temp;
                    DataSimulator.DateTime2 = temp + new TimeSpan(1, 0, 0, 0);
                    temp += new TimeSpan(1, 0, 0, 0);
                    catch (Exception ex)

The exception says:

System.IO.EndOfStreamException: Unable to read beyond the end of the stream。
   in System.IO.__Error.EndOfFile()
   in System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   in System.IO.BinaryReader.ReadInt64()
   in SmartQuant.NetDataFile_.yUQPMJFLyB(NetDataSeries  , Int64  , Boolean  )
   in SmartQuant.NetDataSeries.GetIndex(DateTime dateTime, SearchOption option)
   in Jps11lpriQ5NSp0Ku8j.BCDLl4pmi6Ds517tFby..ctor(IDataSeries  , DateTime  , DateTime  , EventQueue  , DataProcessor  )
   in SmartQuant.DataSimulator.OnConnected()
   in SmartQuant.Provider.set_Status(ProviderStatus value)
   in SmartQuant.DataSimulator.Connect()
   in SmartQuant.Strategy.cSXFdr8iit(Strategy  , InstrumentList  , Int32  )
   in SmartQuant.InstrumentStrategy.f9lUUbMwQ9()
   in SmartQuant.StrategyManager.StartStrategy(Strategy strategy, StrategyMode mode)
   in SmartQuant.Scenario.StartStrategy(StrategyMode mode)
   in SmartQuant.Scenario.StartBacktest()
   in OpenQuant.Backtest.Run() in C:\Users\lenovo\Desktop\MySampleProviders\All_Providers\OpenQuantPlugins\Strategy_Reversal\Backtest\Scenario.cs: line 102

And the file data.quant never changed even after closing FileServer.exe

How can I fix this exception?

PostPosted: Tue Oct 01, 2019 9:38 am 

Joined: Wed May 05, 2010 9:49 pm
Posts: 583
Please, reproduce this problem in the default strategy (with default data) from the OQ2014 installation and send us a modified version.
This will allow us to debug your situation.

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 2 guests

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