Search results

  1. B

    IB/TWS with PHP?

    No need to comb. If you dowload the IB API, all of the code is in there (Java) or the link I used before (Python): http://code.google.com/p/ibpy/source/browse/#svn/trunk/ib/ext Well in principle it is simple. The recurring problem though is that the server's response for market data is...
  2. B

    Purple Jihad- Gay muslims for peace and the destruction of Israel? WTF?!

    It's amusing that you thought for even a second that it was a genuine photo. Speaks volumes.
  3. B

    Atheists....the reality of your wet dream. A life without God.

    If you have been to Cambodia, and you probably have, you'll know that the cause of the devastation was little to do with the premise of your thread.
  4. B

    Open-source back-testing engines in C++

    I see. I suppose an alternative would be to find some software that lets you compute all of the valid parameter combinations beforehand and then run the simulations. A little off-topic but perhaps genetic search algorithms might reduce your waiting times too.
  5. B

    Open-source back-testing engines in C++

    Perhaps I'm missing the point but if there is a such relationship between A and B, can't you make B a function of A?
  6. B

    moving average on excel

    I regret offering my assistance. I did in fact read your post and the ones before it. My first question was rhetorical. You know, to help you try to think for yourself - what would be a good name for that subroutine? The name you have chosen demonstrates that you still don't really...
  7. B

    moving average on excel

    There's a lot of scope for re-factoring the code. You could start by removing the repetitive code and replacing it with some loops: Sub mav() For i = 1 To 500 For j = 1 To NoOfSymbols ma.Cells(i, j) = Sheet1.Cells(11 + j, 20) Next Next TimerID = SetTimer(0, 0...
  8. B

    IB/TWS with PHP?

    Here is a PHP proof of concept loosely based on the Java code that DOESN'T WORK. For some reason, it's not reading from the socket. You can run it by: php -f nameofthefile.php But you'll need to wrap it in PHP tags that this forum software strips. You'll also need php_sockets module...
  9. B

    IB/TWS with PHP?

    When you're running the cron job, is your cron job calling a PHP page hosted on a web server or is it running PHP code outside of a web server (which I'd recommend above the former) using php -f myfile.php? As for using sockets to stream data, where is it being streamed to and by what mechanism?
  10. B

    IB/TWS with PHP?

    First, I should re-iterate that dealing with the TWS socket is not like dealing with web services. It is not a request/response model: it is a publish/subscribe model and the socket is not closed between subscription/unsubscription requests. The process is something like this: 1) You open...
  11. B

    IB/TWS with PHP?

    As I said in the other thread, you'll have to open a socket to the TWS application running on your server/computer and then send/receive the appropriate commands/data to/from it. You can look at the Java source or the Python port IbPy. I linked to the code in the other thread. You'll also...
  12. B

    feedback

    I have no idea what you are talking about but search turned up this thread: http://www.elitetrader.com/vb/showthread.php?s=&threadid=178741
  13. B

    earnings calendar scripts

    Yeah, wish Earnings.com would release a web service API. It's easy enough to page scrape/data mine their web site though. Sorry, can't find the code I did for this a few years back. Might want to have a look at the Reuters Research API or some other similar service.
  14. B

    Muslim radicals to converge on South Park, CO.

    That's why it's the fastest growing religion in the world. It learned from it's predecessors. It evolved. It inherited all of the useful traits of religions before it e.g. childhood indoctrination, and added new twists to make it much more effective at spreading rapidly. History taught...
  15. B

    Please ban TROLL BernardRichards

    OK, thanks for the input. So, you're aware of people being banned for anti-Arab/anti-Muslim content before? Thats good to know. Just re-inforces the point that banning is completely arbitary and the ET member conduct rules do not apply. I used to find Bernard entertaining but it's become a...
  16. B

    Please ban TROLL BernardRichards

    Bernard has been allowed to post this stuff for months. Why would now be any different? People who post anti-Israel material are banned. People who post anti-Arab/Muslim material are not banned. Why? Because the powers that be obviously believe one of those viewpoints is correct and...
  17. B

    Muslims did 9/11 says former Director Of U.S. Army War College!,,

    It's not Tresor but a well known user that creates an ET alias at least once a week and posts the same stuff about the world ending in November. Normally the alias is banned within a day or so and his posts are found outside of this forum which is perhaps why you haven't noticed him before...
  18. B

    Brain Teaser

    Agree. There isn't enough information to make that kind of judgement so I probably shouldn't have mentioned it in the first place. If we stick with the original information where each executive wants to get as much money as possible and also wants to keep their job I believe the answer I gave...
  19. B

    gays

    Stefan, Here's an earlier poll asking ET respondents whether homosexuality is a choice that you might find interesting to read: Is homosexuality a choice?
Back
Top