Edit Your Comment
Need API help

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 23, 2013 at 20:48
Tham gia từ Dec 19, 2013
126bài viết
if i had a linux box with a shell account login, i would slap this together for you, no worries..
happy coding.
happy coding.
Tham gia từ Nov 21, 2011
1601bài viết

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 29, 2013 at 22:13
Tham gia từ Dec 19, 2013
126bài viết
i have been thinking about this myfxbook api...
one very nice use for it might be that one could hide his trades at this website, making them invisible, but then using the api to show a custom interface for viewing said trades.
ie, make all trades hidden here, but then show whatever info about said trades via your website.
the api makes it very simple to read your trades at myfxbook.
of course, i could be wrong about this, as i have yet to actually do this.
happy coding.
one very nice use for it might be that one could hide his trades at this website, making them invisible, but then using the api to show a custom interface for viewing said trades.
ie, make all trades hidden here, but then show whatever info about said trades via your website.
the api makes it very simple to read your trades at myfxbook.
of course, i could be wrong about this, as i have yet to actually do this.
happy coding.

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 29, 2013 at 22:17
Tham gia từ Dec 19, 2013
126bài viết
also, one more issue is that if i should do any xml coding, i will most likely want to write my own xml parsing functions..
i will not want to use the fairly difficult to clearly understand xml functions that may or may not be built into whatever language that i may or may not be using to request said xml documents.
trading will continue in 45 minutes.
yay.
i will not want to use the fairly difficult to clearly understand xml functions that may or may not be built into whatever language that i may or may not be using to request said xml documents.
trading will continue in 45 minutes.
yay.
Tham gia từ Nov 21, 2011
1601bài viết
Dec 29, 2013 at 22:19
Tham gia từ Nov 21, 2011
1601bài viết
nothing to hide or not to hide.
Myfxbook Outlook is the global sentiment for any currency pair over all real accounts linked to myfxbook community
Myfxbook Outlook is the global sentiment for any currency pair over all real accounts linked to myfxbook community

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 30, 2013 at 05:46
Tham gia từ Dec 19, 2013
126bài viết
when i suggest to "hide" your account info/stats here at this myfxbook website, i am not suggesting that you do anything sneaky/etc...
i am suggesting that you simply hide everything here(mark the account as private), but then using the xml api you can SELECTIVELY DISPLAY ONLY THAT INFORMATION THAT YOU WANT TO DISPLAY on your personal website.
perhaps there is information shown here that you do not want to show...
or perhaps you simply want to display it all differently than myfxbook displays it.
hint: your myfxbook page could be reproduced at your website and/or a slightly modified version.
definitely do this on a linux box using c language or at least use php.,,.
z/.
i am suggesting that you simply hide everything here(mark the account as private), but then using the xml api you can SELECTIVELY DISPLAY ONLY THAT INFORMATION THAT YOU WANT TO DISPLAY on your personal website.
perhaps there is information shown here that you do not want to show...
or perhaps you simply want to display it all differently than myfxbook displays it.
hint: your myfxbook page could be reproduced at your website and/or a slightly modified version.
definitely do this on a linux box using c language or at least use php.,,.
z/.
Tham gia từ Nov 21, 2011
1601bài viết
Dec 30, 2013 at 11:42
Tham gia từ Nov 21, 2011
1601bài viết
I see what you mean.
i'm not trying to do this.
I try to do an indacator for MT4
i'm not trying to do this.
I try to do an indacator for MT4

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 30, 2013 at 16:53
Tham gia từ Dec 19, 2013
126bài viết
oh, i see.
you want the global sentiment displayed as an indicator?
that is actually interesting.
off the top of my head, i might need to write a custom DLL to implement this...
DLL is short for DYNAMIC LINK LIBRARY.
it is a big fancy word that means that we could write some functions using the C language and then metatrader can access or call those functions.
DLL's can read and write to web pages.
xml pages are really just web pages that need to be parsed.
me.
you want the global sentiment displayed as an indicator?
that is actually interesting.
off the top of my head, i might need to write a custom DLL to implement this...
DLL is short for DYNAMIC LINK LIBRARY.
it is a big fancy word that means that we could write some functions using the C language and then metatrader can access or call those functions.
DLL's can read and write to web pages.
xml pages are really just web pages that need to be parsed.
me.
Tham gia từ Nov 21, 2011
1601bài viết
Dec 30, 2013 at 16:57
Tham gia từ Nov 21, 2011
1601bài viết
Yes It's what I need... global sentiment into an MT4 indicator.
Then we do an EA that places orders in opposite way of crowd.
Then we do an EA that places orders in opposite way of crowd.

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 30, 2013 at 19:48
Tham gia từ Dec 19, 2013
126bài viết
one issue before you go off on that mission....
keep in mind that the market sentiment info from myfxbook is only a very small piece of the global pie.
it is a bit like calculating the overall direction of a small school of fish, lets say that they are headed in a north east direction...
but does that mean that ALL fish from all of the world's oceans are indeed headed north east?
no, it does not.
have you checked the market sentiment at other websites, perhaps at the oanda website?
i do not mean to discourage you, i only want to help you to be better prepared for that which really is going on.
i do wish for you success in this and all of your endeavours.
zero/.
keep in mind that the market sentiment info from myfxbook is only a very small piece of the global pie.
it is a bit like calculating the overall direction of a small school of fish, lets say that they are headed in a north east direction...
but does that mean that ALL fish from all of the world's oceans are indeed headed north east?
no, it does not.
have you checked the market sentiment at other websites, perhaps at the oanda website?
i do not mean to discourage you, i only want to help you to be better prepared for that which really is going on.
i do wish for you success in this and all of your endeavours.
zero/.
Tham gia từ Nov 21, 2011
1601bài viết
Dec 30, 2013 at 20:50
Tham gia từ Nov 21, 2011
1601bài viết
Myfxbook like any another sources for sentiment is representative of the Fx retailer's behavior.
I have already checked many sources at a given time... ratio is similar.
I have already checked many sources at a given time... ratio is similar.

forex_trader_168526
Tham gia từ Dec 19, 2013
126bài viết
Dec 30, 2013 at 23:20
Tham gia từ Dec 19, 2013
126bài viết
fine.
whoever does this for you will want to write a custom DLL..
said DLL might contain custom functions, such as:
get_sentiment("EURUSD");
get_avg_shortprice("EURUSD");
get_avg_longprice("EURUSD");
a couple of links, for reference:
http://www.xpworx.com/metatrader-mql-articles/mql4-articles/create-your-own-metatrader-extension-dll.php
http://www.forexfactory.com/showthread.php?t=219576
whoever does this for you will want to write a custom DLL..
said DLL might contain custom functions, such as:
get_sentiment("EURUSD");
get_avg_shortprice("EURUSD");
get_avg_longprice("EURUSD");
a couple of links, for reference:
http://www.xpworx.com/metatrader-mql-articles/mql4-articles/create-your-own-metatrader-extension-dll.php
http://www.forexfactory.com/showthread.php?t=219576
Tham gia từ Sep 29, 2009
14bài viết
Jan 16, 2014 at 09:22
Tham gia từ Sep 29, 2009
14bài viết
pumpingmonkey posted:
that didnt work out so well, attempting to insert said code into the above post..
so i will try to attach it to this post.
i think that this will work better.
just follow the instrutions in the above post to edit the userid and password in the file and then load it up in your browser.
Thanks for sharing your code example with community. I don't get the code working due to console error message in chrom and ff"XMLHttpRequest cannot load - No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. "
Any idea how to avoid it.
Tham gia từ Nov 21, 2011
1601bài viết
Jan 16, 2014 at 11:54
Tham gia từ Nov 21, 2011
1601bài viết
Jasiu70 posted:
Any idea how to avoid it.
Hey,
If you are successfull with it, please let me know.
Tham gia từ Sep 29, 2009
14bài viết
Jan 16, 2014 at 12:01
Tham gia từ Sep 29, 2009
14bài viết
Unfortunately no idea anymore. It works well for IE10 but doesn't work for FF and chrome. I spent whole day on gg but results are all quite linked with HTTP access control (CORS). I am not sure if experienced coder could suggest a different approach.
Regards Jan
Regards Jan
Tham gia từ Nov 21, 2011
1601bài viết
Jan 16, 2014 at 12:18
Tham gia từ Nov 21, 2011
1601bài viết
Jasiu70 posted:
Unfortunately no idea anymore. It works well for IE10 but doesn't work for FF and chrome. I spent whole day on gg but results are all quite linked with HTTP access control (CORS). I am not sure if experienced coder could suggest a different approach.
Regards Jan
From IE10... then you know how to implement it into MT4?
Tham gia từ Sep 29, 2009
14bài viết
Jan 16, 2014 at 14:19
Tham gia từ Sep 29, 2009
14bài viết
Implementation in MT4 is non of my targets. I try to access myfxbook api via javascript xmlhttprequest and have problems with HTTP access control (CORS).
Tham gia từ Mar 07, 2010
57bài viết
Jan 19, 2014 at 15:29
Tham gia từ Mar 07, 2010
57bài viết
Jasiu70 posted:
Implementation in MT4 is non of my targets. I try to access myfxbook api via javascript xmlhttprequest and have problems with HTTP access control (CORS).
You can't use javascript cause you'll run into cross-domain issues (that's the errors you're getting), instead you need to use server side script like php/.net/java etc (you just need to invoke simple http url's and read the response - the most basic api possible)
aaa
Tham gia từ Sep 29, 2009
14bài viết
Jan 20, 2014 at 07:51
Tham gia từ Sep 29, 2009
14bài viết
You are right. I switsched to a combined php/ javascript approach which works well.

*Nghiêm cấm sử dụng cho mục đích thương mại và spam, nếu vi phạm có thể dẫn đến việc chấm dứt tài khoản.
Mẹo: Đăng ảnh/url youtube sẽ tự động được nhúng vào bài viết của bạn!
Mẹo: Dùng @ để tự động điền tên người dùng tham gia vào cuộc thảo luận này.