SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sat Oct 24, 2020 11:23 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Save as? Backup Copy?
PostPosted: Wed Apr 30, 2008 8:27 pm 
Offline

Joined: Tue Apr 29, 2008 11:00 pm
Posts: 43
Im new, so please excuse me if there is a feature I am unaware of.

I was suprised to see there is no "Save As" option.

I am copying my code manually to back up for now.

Am I missing something? Probably.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 01, 2008 11:58 am 
Offline

Joined: Thu Mar 20, 2008 4:41 pm
Posts: 273
Location: Sweden
Not really. I don't know of any such save as method. You could however setup an automated backup of the Solutions and Projects folders in your installation folder.

Useful howto: http://lifehacker.com/software/geek-to- ... 147855.php

Speaking of which, does anyone know where my historical data is stored?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 01, 2008 7:10 pm 
Offline

Joined: Tue Apr 29, 2008 11:00 pm
Posts: 43
Interesting... I guess that's what I will do.

A save as feature would be a benefit.

I normally save a copy of the last fully functional version of my code before I start coding in a new feature. I tend to forget how things looked before I started rewriting.

Considering I already have 10 pages of code and have only started 2 days ago, I see the potential for this project to get huge.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 01, 2008 10:24 pm 
Offline

Joined: Fri May 06, 2005 1:40 am
Posts: 521
Acumen wrote:
I normally save a copy of the last fully functional version of my code before I start coding in a new feature. I tend to forget how things looked before I started rewriting.


You want to use a Version control system - it will solve this problem and more. Many advantages - you can see what changed when, rollback changes, compare changes to past states - this list goes on and on.

The defacto standard is Subversion - Introduction. Here is one quick description of how easy it is to get going and a few benifits for those who have never considered a Version Control System.

Here is a simple step by step tutorial for setting it up in single use mode:
http://www.shokhirev.com/nikolai/programs/SVN/svn.html

Above link also describes setup and use of TortoiseSVN: A Subversion client, implemented as a windows shell extension.. "2007 Community Choice Award for Best Tool or Utility for Developers".

If you use Visual Studio then also consider installing AnkhSVN "It provides an interface to perform the most common revision control operations directly from inside the VS.NET IDE."

Don't bother with MS Visual SourceSafe even if you already have it - there is a good reason why it's been called "Microsoft's Source Destruction System".


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 02, 2008 10:36 pm 
Offline

Joined: Tue Apr 29, 2008 11:00 pm
Posts: 43
Wow, awesome. Took some time to figure out but it’s really powerful. Definitely recommend to everyone else reading this, little tricky getting all to sync at first, but once it’s all working it’s amazing.

Thank you for putting me onto this, so cool, the view that shows line for line every change is perfect.

So, now I have like 4 copies of the same solution on the Start Page list, all of which no longer exist, that won’t go away. Can I do anything about that? The OCD in me acts up whenever I start OQ... might have to reinstall


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 1:32 pm 
Offline

Joined: Fri May 06, 2005 1:40 am
Posts: 521
Acumen wrote:
Thank you for putting me onto this, so cool, the view that shows line for line every change is perfect.


Your welcome. I particularly like the "Blame" line by line view when working on team projects - see who was to blame for introducing some bug. Not much use if your the only code contributor though :). I could not imagine going back to project management without it.

Now your up and running with Subversion be sure to check out all the projects/example code that you can grab from major Subversion servers:
http://code.google.com/
http://sourceforge.net/

or search for others not located above here:
http://www.google.com/codesearch/advanced_code_search
http://www.koders.com/


As an example I recently stumbled on this project packed with interesting c# code: http://code.google.com/p/aforge/
don't download the executable, instead use TortoiseSVN to svn checkout (i.e. download) the code from this url given on the source tab: http://aforge.googlecode.com/svn/trunk/

Subversion allows you to not only keep your local copy up-to-date easily but also watch how the projects like the above change line by line as new features are introduced and bugs/problems are solved. Indispensable if your learning to program or even for old timers to learn new tricks. Who knows you might even end up contributing to a favorite project.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 2:16 am 
Offline

Joined: Tue Apr 29, 2008 11:00 pm
Posts: 43
There’s is tons of info on all those sites. All added to my favorites. I will definitely be pouring through there eventually, Lots of interesting financial stuff on sourceforge.

Are you applying ideas from the aforge software? I looked through and it’s definitely intriguing as an out of scope project.

I am assuming there aren’t similar sites with the type of code we are developing using OQ, all proprietary...


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 5:18 pm 
Offline

Joined: Thu Mar 20, 2008 4:41 pm
Posts: 273
Location: Sweden
Acumen wrote:
So, now I have like 4 copies of the same solution on the Start Page list, all of which no longer exist, that won’t go away. Can I do anything about that? The OCD in me acts up whenever I start OQ... might have to reinstall


You could attempt to modify

%installation folder%/Solutions/Recent.xml


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 5:57 pm 
Offline

Joined: Fri May 06, 2005 1:40 am
Posts: 521
Acumen wrote:
Are you applying ideas from the aforge software?


Not at the moment no.

Acumen wrote:
I am assuming there aren’t similar sites with the type of code we are developing using OQ, all proprietary...


Check some related project links here: http://www.smartquant.com/forums/viewto ... 8672#18672


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 8:51 pm 
Offline

Joined: Tue Apr 29, 2008 11:00 pm
Posts: 43
krn_2K: You should get a sticky with all your links, they are great, tons of valuable code.

Do you use the ilnumerics to visualize?

Is there a simpler process then my first impression of the writing to a file on strategy end during optimization, then loading that file into a separate program using ilnumerics libraries?

Letharion: Yeah that did it, saves me tons of frustration. I have a feeling I’m going to be in there allot.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 9:27 pm 
Offline

Joined: Fri May 06, 2005 1:40 am
Posts: 521
Acumen wrote:
Do you use the ilnumerics to visualize?

No I only saw that project relatively recently, but it looks like a good option to get going with custom visualisations quickly.
Acumen wrote:
Is there a simpler process then my first impression of the writing to a file on strategy end during optimization, then loading that file into a separate program using ilnumerics libraries?

Yes there is a better way. Create your own c# Assembly dll using bits and pieces from ilnumerics and any other libraries you like, and make it so that it launches its own modeless form window for your custom visualisation (customized plotting, statistics etc): http://www.google.com/search?q=c%23+for ... w+modeless
Then in OpenQuant Use your new assembly and create a new instance of it in your in your OpenQuant strategy code, then pass in any data its needs to begin plotting. Sit back and watch your custom ilnumerics visualization update in real time as your strategy progresses.
There are lots of examples around the net of self contained assembly dll's that launch their own form windows etc, but start with a very simple example that works, then build on it from there.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 5:28 pm 
Offline

Joined: Thu Mar 20, 2008 4:41 pm
Posts: 273
Location: Sweden
We are now straying far far far off-topic :P But I have some questions on your last post krn_2k.

I've seen you post several times about assemblies, both in answer to my questions, in this thread, and I think in other places as well. I think I have fair idea what an assembly is, but how would I go about creating one?

Visual Studio -> New Project -> Class Library, is that it?
I have a dll, the dll has a form, and I have imported the dll in OQ.
I see the form class' constructor executes, I have a c.write before and after the forms InitializeComponent(), so I see the function runs. But I don't get a window. Mayhaps you could offer some assistance?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 5:51 pm 
Offline

Joined: Fri May 06, 2005 1:40 am
Posts: 521
Letharion wrote:
I've seen you post several times about assemblies, both in answer to my questions, in this thread, and I think in other places as well. I think I have fair idea what an assembly is, but how would I go about creating one?
Visual Studio -> New Project -> Class Library, is that it?


Yes thats it. You can then "use" other assemblies like ilnumerics inside your own class library "assembly". Create a whole new complex application design to accept data from OpenQuant if you like... just be aware that you have to put at least your custom class library assembly dll into your OpenQuant bin directory, and have all the other assmblies you might use like ilnumerics either there as well, or better in the GAC (Global Assembly Cache) so your custom assembly can find them when needed.

Letharion wrote:
I have a dll, the dll has a form, and I have imported the dll in OQ.
I see the form class' constructor executes, I have a c.write before and after the forms InitializeComponent(), so I see the function runs. But I don't get a window. Mayhaps you could offer some assistance?


I think Anton may have given you the solution when he mentioned using "Application.Run" here http://www.smartquant.com/forums/viewto ... 8904#18904

I did a quick search and turned up this explanation but I am sure you can find a lot better... much clearer than anything I could write here, see section "Application Lifetime" here:
http://www.informit.com/articles/article.aspx?p=474650

If you needed to get real fancy you could even start launching forms and/or computationally intensive tasks in your own threads managed from your class library, do some background processing and take advantage of more cores - but definitely keep it _very_ simple until you get up and going.

Perhaps the SmartQuant team will be kind enough to put a simple Assembly "class library" sample which launches its own Form + the OpenQuant strategy code to use it into the FAQ section for you... unless you do it first that is :).


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 6:00 pm 
Offline

Joined: Thu Mar 20, 2008 4:41 pm
Posts: 273
Location: Sweden
Actually, I went very very simple, and found that this works.

OnStrategyStart() {
Form CPanel = new Form();
CPanel.Show();
}

I'll begin there, and see what I can figure out :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 18, 2008 10:56 am 
Offline

Joined: Thu Mar 20, 2008 4:41 pm
Posts: 273
Location: Sweden
Is there support for source control in visual studio express versions? I'm trying to set up ankhsvn with VSC# but can't seem to find a source control setting in VS. (plus ankhsvn downloads seem down at the moment)

Do you guys use tortoise instead?

_________________
Asking smart qustions:
http://www.catb.org/~esr/faqs/smart-que ... html#intro

I don't mind when people PM me to see if I have the time to help, but please post in the forum FIRST, and then grab my attention so others can benefit aswell.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

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