Python or Perl?
Page 1 of 732 12 LastLast
Results 1 to 10 of 318

Thread: Python or Perl?

  1. #1
    I found which people are currently using Python.

    My question is: how can you use it? Merely to test thoughts or you can connect your program and create any kind of Expert Adviser wich can execute trades automatically.

    The rest of the thoughts of utilizing other programming languages (not included with your own trading software like TrendStation or Metatrader) will be appritiated.

  2. #2
    I really don't believe you will find brokers that place out a python or perl interface. They either use a language that is proprietary or a mainstream language like Java (I believe Oanda offers automatic trading utilizing Java).

    In the event the broker would provide a C/C library to get the stage then one could write bindings for either python or perl. However, I really don't think that it is well worth the trouble. Trading system aren't really complex regarding coding so I would not care which language they supply.

    But testing and creating methods is a more tedious work where a flexibile language like python or perl would suit much better.

  3. #3
    Quote Originally Posted by ;
    I do not believe you will find brokers that put a python or perl interface. They use a language that is proprietary or a mainstream language like Java (I believe Oanda presents automatic trading utilizing Java).

    If the broker would offer a C/C library to access the platform then one could write bindings for python or perl. But I really don't think it is well worth the trouble. Trading system aren't really complex regarding coding so that I would not care which language they supply.

    But testing and creating methods is a more dull work in which a flexibile language like python or perl would suit much better.
    You can integrate Python with COM and needless to say, you can always do socket programming.

    Perl can do the exact same thing.

    C . . .same thing.

    Most of the APIs I have seen have come out as COM, socket or Java. Anyway you slice it, you can create the programming in most languages out there. Not terribly difficult.

  4. #4
    You have hit my hot button. You have to use PYTHON!!!!! Go to http://python.org and download it for free.

    I suggest if you're new to programming that you visit the beginners section and examine the tutorial known as how to think as a computer scientist using python. It is written on a High School degree and anybody can learn to plan with that.

    If you already know a little bit of programming, then Python is a snap. It is fully object oriented and can be interpeted instead of compiled, so it's possible to test snippets of code on the fly directly on the console. It is self documenting (unlike pearl) and is easy to read (not a lot of unsightly {{{ and :; crap) to clutter up things just indenting.) It is really just a thin wrapper for C, so if you're feeling the need for speed, you can drop at any moment into C. The new versions of Python are effecient and fast. It is as fast as Perl or Java in appliions.

    Some folks still think of Python as a scripting language like Pearl, but it is significantly more. It is a language. You may use it to write web aps, or matches (Civ IV) or even Google. My son does anamation for Disney and they use it as a glue language to tie along with a bunch of shaders and renderes and crap.

    As to hacking on an API, which is the orgional intent I supose, I can hack the API in VT Trader in Python in around three lines of code. Ok I'm in and the API is exposed. All I have to do is write patterns to get the variables they supply and tweek them send and to get the data that I need to put on a transaction. Pretty cool Huh?

  5. #5
    Quote Originally Posted by ;
    I do not believe you will find brokers that put out a python or perl interface. They either use a language that is proprietary or a mainstream language like Java (I believe Oanda offers automatic trading using Java).

    .
    FYI Python is a mainstream speech. Google is written in almost pure python. NASA and Disney utilize it a LOT. Many games currently use it as the scripting language (Civ IV for one). You would be shocked if you knew how many of the web pages that you find every day were powered by Python or one of it's children like Zope or Webware. Microsoft just adopted it for thier .NET environment.

    The reason that you don't hear a great deal of houpala around Python is because it isn't a Comercial language like Java (Sun Microsystems) or Visual Basic (Microsoft) They do not have this massave advertisement budjet pushing it. It's only a lot of very smart men working free of charge to put out a fantastic product for everybody to share for free.

  6. #6
    Quote Originally Posted by ;
    FYI Python is a mainstream language. Google is written in almost pure python. NASA and Disney use it a LOT. Many games currently use it as the scripting language (Civ IV for one). You'd be shocked if you knew how a lot of the internet pages that you find every day have been powered by Python or one of it's kids like Zope or Webware. Microsoft just adopted it for thier .NET environment.

    The reason that you don't hear a lot of houpala around Python is since it is not a Comercial language such as Java (Sun Microsystems) or Visual Basic (Microsoft) They do not have this massave ad budjet pushing it. It's just a lot of very bright guys working for free to put out a fantastic product for all to talk for free.
    Wizard, some wise words, but I'm going to get to kindly disagree.

    But from a purely business stand point, Python is not what I'd predict, mainstream.

    I believe PHP/Perl has a vastly bigger following that Python and I am afraid you can mangify that following by 10 times for either Java or Microsoft and likely even more so for C .

    Python has a large following, and do not get me wrong, I dig it. . .but you're extending a little bit :--RRB- Should you have a look at Dragon, you can browse through hundreds of thousands of resumes for C , .NET and Java, and 10s of thousands for PHP/Perl, but I am scared to say that number is dramatically reduced when looking for people who work with Python or are looking for something specifically for it.

    Don't get me wrong, but it's a means to an end.

    I guess Python is on the radar with the majority of technical people, but comparing it to the big 3 (C , .NET and Java) is definitely pushing the envelope. Whether it is better really depends upon how you look at it. For me, I look it at as ( as most technical people do) something that is good to know, however it's not always going to put food on the dining table. Python remains on the fringes. . .and while I am confident that you can pose a fantastic case for why python is mainstream, so I do not think that it makes it easier of a language since it doesn't use semicolons and braces. After all, that which you call garbage is another person's art. . .right? :--RRB-

    Personally, I am fond of this C/C /C#/Perl/Java/PHP styles...I really don't find them unsightly in any way. . .and I actually make a fantastic living programming in .NET. . .my clients all desire the same things...(.NET, ASP, PHP/Perl or Java and sometimes C/C ) I've yet to earn any money from clients needing Python, let alone a petition...

    Of course, just because I am of the view that the large 3 dwarf Python with regards to following, that does not necessarily place Python out of the mainstream. . .but I think about mainstream, I defintely think of the large 3 first, then something such as Perl and Python...

    Anyhow, love your job, buddy...I just had to defend my meal-tickets. . .so to talk. . .props to you.

  7. #7
    MrWhipple Python is my language! But from a business standpoint it is not mainstream. And cash is where company is. I have been through this vs that language fight quite a while ago, it doesn't matter anymore for me if it does the job by a practical perspective.

    I feel this conversation will pave the way for this thread to the Lounge section!

  8. #8
    Not to dis on anybody here but you did kinda make my point for me personally. I was only hoping to draw a distinction between Comercially sussessfull progamming languages like the large 5 or 3 depending who you listen to (some still include COBOL yech!) And mainstream languages of view. Ie fully featured, designed examined, strong, elegant, dependable, courageous clean, and reverent.

    Sure if Python had the backing of Sun or Microsoft or ATT or Bell Labs (you get the point) Python will be right up there in the mainstream also.

    On the flip side if Java was designed by some man named Guido in his sack in the Netherlands and set out with a lot of his pals on the internet using the budjet of a frat drinking club then we may never know it existed.

  9. #9
    Quote Originally Posted by ;
    Not to dis on anybody here but you did rather make my point for me. I was only trying to draw a distinction between Comercially sussessfull progamming languages such as the large 3 or 5 depending who you listen to (some still include COBOL yech!) And mainstream languages from an academic point of view. Ie fully featured, developed examined, strong, elegant, trustworthy, brave clean, and reverent.

    Sure if Python had the backing of Sun or Microsoft or ATT or Bell Labs (you get the point) Python would be right up there in the mainstream commercially also.

    On the reverse side if Java was developed by some guy named Guido in his sack in the Netherlands and put out with a bunch of his pals online using the budjet of a frat drinking club then we might never know it existed.
    LOL. . .you are definitely a guardian...

    for a computer science grad, we did understand about python and that has been the extent of our experience, but again. . .we gave longer to C and Java than we didn't Python from the classroom and even outdoors in our own endeavors. Hell, we gave LISP additional time...

    We are undoubtedly bashing Python, but all those things you explain. . .definitely scream to your cliche beauty is in the eye of the beholder...

    I will shoot my C syntax please. . .LOL

    Props into python though, it's a fantastic tool. The Same as Perl. Nice fast and may be clear and concise.

  10. #10
    Yea verrly, amen amen and Halelulya!! I am able to see a convert wating from the pews. Come on brother down and listen to the sweet word of the Snake. (Actually it had been named after Monty Python, but that dosen't stop folks from using snakey pics and materials.) You have a great use for Python if you are a C, C developer then.

    I know a lot of programmers that use Python to debug just the logic of thier code. When they get the ideas bashed outside, the resulting Python seems a LOT like C. It's just a matter of coding the internal loop stuff as well as the speedy stuff in C and leaving the GUI and also a lot of the logic in Python. Python is just C in a wrapper that is verrrrry. You receive the logic down strong in days instead of weeks and it provides you a lot of time leverage along with the Python endings being operating psudeo code. Give it a go, you might like it.

    Amen and Amen. Now the Choir will sing Hymn number 64 I have a buddy in Python and then we will all please stand for the Benidiction.

    (end of sermon. Hangs his priestly vestments and crips back to his laboratory to conjure up a couple more Holy Pips.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.