SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Feb 28, 2020 10:10 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 03, 2014 10:45 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
Hi,

I want to use IQFeed for historical data to trade in simulation.

When the simulation gets to current time, I want to switch from IQFeed to TTAPI and use this feed in live mode.

How do I accomplish this? bearing in mind that IQFeed and TTAPI use completely different symbols.

Also along the same lines I am not sure how to download historical data programmatically from IQFeed. Can anyone show me how to do this?


Top
 Profile  
 
PostPosted: Sat Jan 04, 2014 5:36 pm 
Offline

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

I am not sure I understand what you want to do. You can not use historical data directly from IQFeed to backtest a strategy (unless you call things like OnBar with IQFeed data manually yourself, but this is not really a simulation). You should download data into local OpenQuant database and then OpenQuant can backtest your strategy with this data.

Regards,
Anton


Top
 Profile  
 
PostPosted: Sun Jan 05, 2014 11:01 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
Hi,

Sorry I was probably not being very clear.

At the moment I use this piece of code:

public class MyScenario : Scenario
{
public override void Run()
{
this.Solution.StartDate = new DateTime(2013,11,04);
this.Solution.StopDate = Clock.Now;
Start(StrategyMode.Simulation);
this.ResetOnStart = false;
Start(StrategyMode.Live);
}
}

This code allows me to continuously switch from simulation mode to live mode using scenario:

viewtopic.php?f=64&t=8763

I want to do this but instead, I want to use IQFeed for the simulation part,, then switch from sim to live at current time (Clock.Now) and use TT for live pricing and trading.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Group