Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am looking for an "MT4 to ThinkOrSwim bridge" either as a product or a way to code it, but especially as a coding project. Perhaps using the ToS API.
a program in MT4 will generate the signals and the trades will be placed in ToS
Thanks
Can you help answer these questions from other members on NexusFi?
It depends on your level of programming skill. What I would do (and if this is too complex, I could try to come up with something simpler) is use the MT4 Webrequest to send a message to a Python Flask application running locally on your machine which parses this message and sends the appropriate trade signal to your ToS account.
Check out this API reference:
docs.mql4.com/common/webrequest
flask.pocoo.org
So instead of having a buy or sell action in MQL, you would send this message with data that can be parsed by a simple Python application.
You can. I guess I'm just partial to Python so I'd write a middle layer so I could get it into a language I know :P
You should be able just to call the endpoint via MQL but you will have to fiddle with their WebRequest API which is not as straightforward as other languages.
That being said, if you don't know any other languages, just use MQL and you'll be fine.