It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have developed a quite trading strategy on R and I would like to implement it with real time market data.
One solution would be to use RExcel. In that case, I would link Excel with Bloomberg to get real market data and plug Excel to R (The RBloomberg package does not work anymore). Ideally I would like to run all the computations on R and then output the results on an Excel spreadsheet to follow the strategy in live. Unfortunatly, the IT policy does not allow me to install RExcel.
The other solution would be to use IBrockers but the package does not work on my computer.
Here is my question : is there any alternative to RExcel to plug R with real time market data? I would like to have an R object that could refresh automatically as Excel cells do with Bloomberg
Thanks
There's always Google of course, which could have given you the following answers:
The manual on which packages you can try to read excel files into R. There are many alternatives to RExcel mentioned.
You also have the quantmod package that allows you to import stock information from yahoo finance directly into R, as explained in this question. It comes with a nice manual, there's a youtube video that explains some details and you have a RBloggers entry about it as well. I leave googling this as an exercise to the reader.
You can read data with Yahoo Finance API.
All you need to do is use read.csv() with the output of your request:
http://download.finance.yahoo.com/d/quotes.csv?f=snl1&s=AAPL,GOOG
The quotes are 15-minute delayed (the best you can do for free) and updated every 15 seconds.
For further use, please refer to : Yahoo Finance Managed and Yahoo Finance Tag on Stackoverflow.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm writing a simple antivirus in C.
I've got some malware samples and I want to extract signatures form them.
Any idea how to extract them?
Retrieving a "signature" could be as simple as generating a digital signature via hashing for the virus(es) respective binaries. MD5 or SHA.
I.E. implementing the following functionality in your code that I'm sure you've already started...:
md5sum virus -> md5hashofvirus |
md5sum virus2 -> md5hashofvirus2
Complete dossier of md5sum available here.
MD5 implementation in C available here.
However any modification to the file would render this method of detection useless (albeit that's the end goal of encrypting a virus). An actual "virus signature" that modern AV's use is
"any sequence of bits that can be used to accurately identify the presence of a particular virus in a given file or range of memory."
As that level of analysis makes it a bit harder for malware manufacturers to hide the "identity" of the malware.
www.agusblog.com/wordpress/what-is-a-virus-signature-are-they-still-used-3.htm is something that I feel you should read.
www.labri.fr/perso/ly/publications/viro.pdf if you're looking for something a little more indepth.
If you'd like more information, try sharing a bit more yourself.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Hi i need a non deterministic constraint satisfaction problem tool, because i need different solutions with the same input of the problem. Someone knows about a tool with this characteristic?
I only know tools like Gecode (c++), Choco (Java) and Curry (Haskell) that i think work in deterministic way.
If what you want is to get some random solution, most CP tools have some support for using randomised heuristics. For example, the standard Gecode branchers have options for this, for example INT_VAR_RND and INT_VAL_RND for integer variables. To get a different search each time, make sure to set the seed uniquely.
Note that using random heuristics will not give you any guarantee of the distribution. For example, your problem might have only two solutions, but almost all random choices might lead to one of the solutions giving a very skewed distribution.
Are you trying to do Pareto optimization (aka multi-objective optimization) and let the user choose one of the pareto optimal solutions?
People have done this with Drools Planner (java, open source) by simply replacing the BestSolutionRecaller class. See this thread and this thread. Planner 6.0 or 6.1 will provide out-of-the-box pareto support.
Similar to what Zayenz said, you can try Minion with the flag -randomiseorder.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How would you implement word pronounciation functionality in an online dictionary site ? for example lets say, oxforddictionaries.com. they have this functionality where you can listen to how the given words are being pronounced.
Well, do I have to record each word and save it in a folder and then link it up with the database? If that's the case then probably I would have to create a million .wav or any sound files for the million words in the database. or how would I sort this out ? How do u think oxforddictionaries.com implemented this functionality ?
There are two approaches
Record each word (wav/mp3)
Synthesize the sound based on the phonetic spelling.
The latter one feels quite unnatural, but a cheap solution. I know only about the Longman dictionary, they definitely record each word (and even whole sentences), with a couple of speakers, so you don't get bored..
Unless you want to do the synthesis in a plugin/widget, you probably end up with sound files with both approaches. You can simply play them with html/html5/flash players.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
so we're doing this assignment at Uni and i have a serious craving to do the assignment in haskell. Its a simulation of a stock trading engine. Situation is that we have data coming in from a csv and we wish to parse each record and process it in a certain way dependent on which market phase its allocated to. Justification for using haskell, is that i view the trading engine as heavy functional system.
I have had haskell experience before but only minor experience, never anything this big.
We were wanting to run a thread which would import the csvs into a queue of unprocessed orders and then have the main program access this queue for processing each order. However how could i achieve this? I know in C# i would just set up the class so it could access the CSVParser class that would hold the unprocessed queue. This also means that the import thread would be continuously running through all the market phases or until it finished importing the csv file.
Any guidance on how to achieve this would be great! (not looking for a fully typed script, just what things in haskell i would need to look at)
It's not clear what you're asking for.
To start a new thread, use forkIO from Control.Concurrent.
To queue data from one thread to another, you may be interested in Chan from Control.Concurrent.Chan. Other Control.Concurrent.* abstractions are available (there's also the stm package if you find yourself needing something more heavy duty).
For parsing CSV, search the Hackage package list for “CSV”; I haven't used Haskell to parse CSV, so I can't advise on which one to use.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I need to write a program that is to be run as follows: <program_name>_ <space> _<file_name>_ <space> _<stuff to be written into the file>. I am new to Linux/C/Unix programming and so I need your help. From what I can understand, I need to write a program titled <program_name>, pass two parameters in the main function which are <file_name> and <stuff to be written in the file>, and then go through the code as usual, writing all the required lines. Am I going about this the right way? Also, it is mentioned that I am to create a make file out of the program. As I am thoroughly unfamiliar with Linux, I would like to know if that this would change anything. That is, would my approach to the program change because I am to make a make file out of it? Thanks for the help! :)
You should search for "beginning linux" to get some web sites that will give you the basics of navigating around in Linux, notably on the command line.
Then I'd search for "beginning vi" to learn the basics of the vi editor. If you're using a GUI, then you can simply use their simple GUI text editor.
Then I would search on "Beginning C programming linux". That will give you several links, and will get you through the basics of creating a C program and compiling it with GCC.
That should keep you in enough trouble for the short term until something clicks or you learn enough new terms to keep searching for.
Good luck!