Analysing data automatically from Twitter

To add comments, please log in or register
Stefan Hanssen
30
Stefan Hanssen  

Good evening everyone,

I am a student who is actually studying finance at university. I am a beginner in mql5 programming and I was wondering if it was possible to connect the MetaTrader platform to a Twitter account for data analysis.

The aim of my project would be to analyse datas from a twitter account (for example Donald Trump's account) and recognise automatically some words and consequently take positions in the financial market.

For example, if Donald Trump would tweet " we are gonna to take some sanctions against the Russian market "  our program would automatically recognise some words like "sanctions", "market" and "Russia" and place a short-order on the market (for example on the MOEX Russian Index)

If someone could help me by explaining me how to do that I would be grateful or give me some courses in mql5 I would be of course ready to pay.

Thank you for your help.

Best regards

Stefan Hanssen 

Alain Verleyen
36710
Alain Verleyen  
See this article to start
MetaTrader 5: Publishing trading forecasts and live trading statements via e-mail on blogs, social networks and dedicated websites
MetaTrader 5: Publishing trading forecasts and live trading statements via e-mail on blogs, social networks and dedicated websites
  • 2010.05.06
  • investeo
  • www.mql5.com
Automatic web-publication of trading forecasts has become a widespread trend in the trading industry. Some traders or companies use Internet as a medium for selling subscribed signals, some traders use it for their own blogs to inform about their track record, some do it in order to offer programming or consultancy services. Others publish...
Icham Aidibe
11295
Icham Aidibe  
Stefan Hanssen:

Good evening everyone,

I am a student who is actually studying finance at university. I am a beginner in mql5 programming and I was wondering if it was possible to connect the MetaTrader platform to a Twitter account for data analysis.

The aim of my project would be to analyse datas from a twitter account (for example Donald Trump's account) and recognise automatically some words and consequently take positions in the financial market.

For example, if Donald Trump would tweet " we are gonna to take some sanctions against the Russian market "  our program would automatically recognise some words like "sanctions", "market" and "Russia" and place a short-order on the market (for example on the MOEX Russian Index)

If someone could help me by explaining me how to do that I would be grateful or give me some courses in mql5 I would be of course ready to pay.

Thank you for your help.

Best regards

Stefan Hanssen 

Unfortunately and I was looking after such an API few days ago, you'll need to use an external dll. 

Unless if you're ready to code it yourself - but I doubt otherwise you'd be learning programmation, the auth process is difficult - there's no way to collect tweets in MQL without a DLL. At least I didn't found one for myself. 

But it's a great idea, an alternative would be RSS feed.

Alain Verleyen
36710
Alain Verleyen  
Icham Aidibe:

Unfortunately and I was looking after such an API few days ago, you'll need to use an external dll. 

Unless if you're ready to code it yourself - but I doubt otherwise you'd be learning programmation, the auth process is difficult - there's no way to collect tweets in MQL without a DLL. At least I didn't found one for myself. 

But it's a great idea, an alternative would be RSS feed.

Maybe I misunderstood your post, but there is a Twitter API (several actually), that can be used without problem with mql. No need for a DLL. Of course it needs to be coded, as I am not aware of any existing mql code.
Icham Aidibe
11295
Icham Aidibe  
Alain Verleyen:
Maybe I misunderstood your post, but there is a Twitter API (several actually), that can be used without problem with mql. No need for a DLL. Of course it needs to be coded, as I am not aware of any existing mql code.


Except the auth process for which there's no documentation & with no authentification, the whole API is useless.

If someone feel chatty enough, it could translate it from one of these libraries.

nicholi shen
2197
nicholi shen  
Icham Aidibe:


Except the auth process for which there's no documentation & with no authentification, the whole API is useless.

If someone feel chatty enough, it could translate it from one of these libraries.

You are 100% correct. I don't think it's worth it because once you go through all the trouble to implement oauth2 then what, string find in some raw JSON data? The mql libraries just aren't equipped to make use of such data. It would be much easier to build a Twitter/sentiment analysis bot in a different language (my preference, python) and then communicate with it using zeromq. 
Stefan Hanssen
30
Stefan Hanssen  
Stefan Hanssen:

Good evening everyone,

I am a student who is actually studying finance at university. I am a beginner in mql5 programming and I was wondering if it was possible to connect the MetaTrader platform to a Twitter account for data analysis.

The aim of my project would be to analyse datas from a twitter account (for example Donald Trump's account) and recognise automatically some words and consequently take positions in the financial market.

For example, if Donald Trump would tweet " we are gonna to take some sanctions against the Russian market "  our program would automatically recognise some words like "sanctions", "market" and "Russia" and place a short-order on the market (for example on the MOEX Russian Index)

If someone could help me by explaining me how to do that I would be grateful or give me some courses in mql5 I would be of course ready to pay.

Thank you for your help.

Best regards

Stefan Hanssen 

Thanks to you guys. I really appreciate your help. I will try to work maybe on python :)
To add comments, please log in or register