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.

mirko994

MQL4 vs Python

Recommended Posts

"easier" is subjective

and with python it depends on your broker's API

some are easier than others

Oanda's v20 API for python is easy to use

IB's official API for python is annoying to use but does a good job

 

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.

Guest
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.
      /r/wallstreetbets/comments/j0giqu/robinhood_banned_me_for_making_too_much_money
      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.
      https://imgur.com/a/uv6yNoL
      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.
      https://imgur.com/a/S6O8h6d
      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 marty_trader
      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?
      https://fxgears.com/index.php?threads/python-development-environment-jacks-technology-stack.1090/
      guy writes an algo platform from scratch in python and connects it to multiple brokers and data sources               nutz
  • Topics

  • Posts

    • yes, SalesForce, CNN, cancel culture, etc etc ,  I do question the  validity and integrity of the election ... just sayin’ it was ok way back when for anyone to say trump was an illegitimate president ... and now it's completely ok for anyone to say that xiden is illegitimate... "not my president" ... not that trump deserved to win ... or that he would MAGA ... or drain the swamp... or ...     ... just sayin’ he would have been a tiny bit preferable to xiden  
    • Date : 26th February 2021. Market Update – February 26 – End of Month shenanigans. Market News Today – Yields spike (10-yr +9.27% – over 1.52), Equities tank (Nasdaq -3.52%, Nikkei -4%), USD off 3-year lows. Commodity, EM currencies & Sterling cool from highs. Oil holds up (US attack on Iranian groups in Syria), Gold falls further under $1770, BTC at $45K. US data yesterday biased to the upside (big fall Claims, Durables beat & GDP in-line.) Overnight – weak Housing, also weak but better than expected CPI & Retail data from JPY. Senate rejects $15 min wage in Stimulus bill and looks to trim the $1.9t proposals. The dollar and yen rallied as a risk-off theme coursed through global markets, with equity markets, commodities, including base metals and oil, all tumbling. The sharp spike in US and most other sovereign yields this week and the associated concerns about inflation have driven the correction in risk assets and currencies. We maintain that sovereign yields are lifting out of exceptionally low levels, that rising yields and interest rates are par for the course in major bull markets in equities by historic standards, and that the prospect of higher corporate earnings can still carry equities higher. But for now, the prevailing bias is a risk-off one, although Treasury yields have dropped back quite sharply from highs today. In the mix today has been news of a US airstrike in Syria against infrastructure used by Iranian-backed militia, which was reportedly in response to recent Iranian attacks on US interests in Iraq. The USDIndex rallied nearly 0.5% in posting a four-day high at 90.49, while EURUSD concurrently dropped to a two-day low at 1.2129. Cable retreated back under 1.4000 on route to pegging an eight-day low at 1.3903. The Australian and New Zealand dollars underperformed, not surprisingly, having been outperformers during the risk-on times. AUDUSD fell over 0.5% in printing a one-week low at 0.7805. USDCAD lifted to a four-day peak at 1.2649, extending the sharp rebound out of yesterday’s three-year low at 1.2466. The Yen, meanwhile, has been the biggest gainer, outperforming even the dollar so far today as its traditional role as a haven currency become re-established. USDJPY dropped from a six-month high at 106.43 to a low at 105.86. Yen crosses dropped sharply out of trend highs in synchrony, with AUDJPY, for instance, diving some 2.5% from the three-year high the cross had seen yesterday. Over in the cryptocurrency world, sharp declines have made a return. Bitcoin has hit a low so far just above $44,000, which is nearly 15% down on yesterday’s high and some 25% down on the record peak that was seen earlier in the week. Arguments by crypto advocates that bitcoin is a hedge against inflation have evidently been found wanting. Today – US Personal Income, PCE & core PCE, Chicago PMI, Uni of Michigan, ECB’s Schnabel, BoE’s Ramsden, Haldane. Biggest (FX) Mover @ (07:30 GMT) AUDJPY (-0.61%) Reversal of yesterday’s rally towards 85.00. Broke lower and under 20MA at R1 84.45 yesterday, now under PP and testing S1 and 200hr MA at 83.00. Faster MAs aligned and trending lower, RSI 34 and falling, MACD histogram & signal line aligned lower, falling after break of 0 line earlier. Stochs up from OS zone and 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.
    • 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.
×
×
  • Create New...

Important Information

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