Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.


custom Python algo trading platform

Recommended Posts

found this link over on EliteTrader and loved it. Very inspiring for someone like me who is building my own trading code from the ground up 

what are your thoughts on this?


My primary language is Python. Despite some uninformed beliefs that Python is too slow for algo trading, and that algorithmic trading is best left to C/C++ or some hardware programmed FPGAs, Python is perfectly suitable and more than fast enough for any retail trader who wants to get into algorithmic trading.
Despite what some believe, you don't need very beefy hardware to trade or algo trade. A few of my best and most profitable trades have been done on an old netbook with a 10", low resolution, screen. People who invest into expensive hardware, computer setups, etc.. before they even have a prof of concept hammered out (be it a trade plan, or algo strategy,) are putting the 'cart before the horse.'
Algos are good for when you don’t have enough hands, eyes, or aren’t fast enough to do something manually. If you already can do something efficiently on your own, then turning it into an algo will only make performance worse because I can’t encapsulate your years of experience into lines of code. Also, if you ask me to code up a moving average crossover strategy, we aren’t friends anymore.

guy writes an algo platform from scratch in python and connects it to multiple brokers and data sources               nutz

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By TopAlgo
      Wrote a algo bot based on OP’s concept in this post where he made 20k+ before getting banned by Robinhood.
      Basically OP just used a click bot/ keystroke script on a android emulator with the Robinhood app to submit a buy order 1 cent above the bid, canceling 100ms later if not filled and repeat till filled, once filled immediately do the same on the ask to exit. Makes you best bid and ask always without updating the NBBO.
      Made a bot to do exactly the same as OP in the other post, except instead of a click bot I used Robinhood’s internal API + python script configured for speed. Making it faster and easier than OP’s to use. Also has code to limit it to 390 or less orders per day to keep it from triggering professional status with Robinhood.
      Example: VXX call option, lets say the bid/ask is .16 X .21
      The bot would flash a buy order at .17 every 100ms, once filled it flashes a sell order every 100ms at .20. You are providing a better price/ liquidity without the NBBO updating and paying zero commission for it.
      I normally trade with Schwab, but opened an account with Robinhood just to run this bot. Used the profit from their free stock to test it out on VXX options.
      Only thing you really have to lookout for is volume traded on the option. Wana go for options like VXX, GOOG, AMZN and others where the spread is wider and have volume, OP does the same with his bot.
      Why this works:
      A couple reasons why, first off because of zero commission, you keep all the money you make off the spread.
      Second, this type of algorithmic trading is called market making or more generally providing liquidity. In principle, the apparently free money is compensation for helping the markets to be liquid. The more people do this, the tighter the spread will be and the greater liquidity will be available on each side.
      tldr: Robbin the Hood, making money at Robinhood's expense with a bot and not getting banned.
      Currently using it, will post future updates.
      Download link : https://app.simplegoods.co/i/PRWTMIQP
      Its 3 python source files and a readme, All you need it python 3.9 installed and a Robinhood acc
    • By mirko994
      Hello Guys!
      What do you think? What are the pros and cons coding a robot with MQL4 and Python? I found easier to code with MQL4.. am I wrong?
    • By TopAlgo
      Algo Trading During Trump Iran Deal
      05/08/2018 Algo trading 15 contracts per trade, profit 17k
  • Topics

  • Posts

    • Buy Next bar always Buys on Next bar based on current bar's value.   if you want to Buy at Nextbar's Open + 0.5, then use the following code.   Buy next bar at at Open next bar + 0.5 Stop; setexitonclose; Hope that helps.   Good luck. Mani.
    • Hi, StartTime(1630) // 430 PM EndTIme(930) // 930 AM If T > ONightStart and T < ONightEnd then ONightSession = True;  Time cannot be greater than 430 PM less than 930 AM(since we haven't mentioned any Date). Try this:- If T > ONightStart OR T < ONightEnd then ONightSession = True;    Goodluck. Mani.
    • Hi Richard, Post the ELD for us to help.   Mani.
    • Date : 25th February 2021. Market Update – February 25 – Risk On, Commodity Currencies lead. Market News Today – USD at 3-year lows, Equities recover over 1%, (Dow over 32K) Yields cool again but remain relatively elevated (10yr – 1.41%). RISK ON. JPY & CHF heavy. Commodity currencies & Sterling hold bid, EUR breaks January resistance. Copper at 10-year high, Oil at 13-mth high, Gold under $1800. BTC at 50K. Sentiment lifted as J&J announce a single shot vaccine and independent study shows Pfizer vaccine 94% effective. Overnight – Nikkei up 1.67%, German Gfk confidence ticks higher, Gamestock rallied over 100% and then another 75+% after hours! Reflation trades are back in full swing with bonds selling off and stocks rallying, with the combination of fiscal stimulus and ongoing monetary support fulling the moves. US 10-year rates have dropped back from session highs, but are still up 3.2 bp at 1.41%. Japan’s 10-year has gained 2.1 bp to 0.125% and longer dated benchmarks have now broken multi-annual highs. Australia and New Zealand bonds underperformed and Australia’s 10-year rate lifted nearly 12 bp, despite the fact that the RBA bought bonds for the second time this week. Fed Chair Powell tried to dampen inflation concerns and Vice Chair Clarida said he expects current bond purchases to be maintained at the current pace for the rest of the year. That will likely continue to underpin risky assets and in some quarters add to concerns that easy money is fuelling bubbles in equities and elsewhere. Today – US Durable Goods, GDP, Weekly Claims & PCE Prices. ECB’s Lane, de Guindos, de Cos, Fed’s Bostic, Bullard, Quarles, Williams, and Earnings from over 400 companies in US & Europe. Biggest (FX) Mover @ (07:30 GMT) AUDJPY (+0.36%) Continued yesterday’s momentum rallying from 83.20 and holding over break of 20MA testing over R2 (84.50) to 84.65, R3 85.00. Faster MAs aligned and trending higher, RSI 77 and rising, MACD histogram & signal line aligned higher but flattening after big break of 0 line yesterday. Stochs down from OB zone but rising again. H1 ATR 0.1325, Daily ATR 0.6000. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HotForex Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Stuart Cowell Head Market Analyst HotForex Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • Defy the narrative!  Defy the gov’ts!  Defy the bought ‘experts’!  Defy the media and propaganda! Defy the collective hypnosis! Some expert some where said.  “...But it's too soon to say how seasonality and our immune systems interact in the case of COVID-19.”  NO!  No IT’S NOT !!!!!!!!!!!!!!!!!!!!!!!!!!!!  You have WAY WAY more control over the ‘spread’ of C1984, or any virus, through taking responsibility for your own cellular health than any gov’t nonpharmaceutical interventions (NPIs such as mask mandates, curfews, capacity restrictions, gathering restrictions) ever EVER had or will ever have.  ... just skim these charts  https://mises.org/wire/almost-year-later-theres-still-no-evidence-showing-governments-can-control-spread-covid-19 Here's another great link assessing the 'risks' ... something traders need to be pretty good at, btw... https://www.aier.org/article/why-i-believe-that-covid-derangement-syndrome-is-real/  
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.