• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 1:32am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 1:32am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Trailing Entries & Trailing Stops? 26 replies

Coin tossing and random entries 44 replies

Precision, low-risk entries for discretionary systems. 36 replies

Trading the news - straddle entries on GBPUSD 1 reply

Same entries, multiple risks 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 5
Attachments: How to direct my EA entries to my website?
Exit Attachments

How to direct my EA entries to my website?

  • Last Post
  •  
  • Page 1 2 3
  • Page 1 2 3
  •  
  • Post #1
  • Quote
  • First Post: Jul 17, 2010 12:51am Jul 17, 2010 12:51am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Hi all,

currently i have a EA and i have one requirement, not sure whether it can be done.

Whenever the EA create a entry (Buy/sell), it will "pump" this entry to my website as well. This entry on my website is just for viewing purposes only. (is the same concept as myfxbook)

Anybody can help or guide me? thanks
  • Post #2
  • Quote
  • Jul 17, 2010 2:36am Jul 17, 2010 2:36am
  •  forexpenguin
  • | Joined Aug 2009 | Status: Member | 32 Posts
I've used HTTP Client in the past. You can find it here on the MQL4 website: http://codebase.mql4.com/4428

Not sure what MT5 has with regards to this functionality but there are a few different ways to do posts / gets with HTTP from within MT4.
Drink Coffee. Do stupid things faster with more energy.
 
 
  • Post #3
  • Quote
  • Jul 17, 2010 4:52am Jul 17, 2010 4:52am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting forexpenguin
Disliked
I've used HTTP Client in the past. You can find it here on the MQL4 website: http://codebase.mql4.com/4428

Not sure what MT5 has with regards to this functionality but there are a few different ways to do posts / gets with HTTP from within MT4.
Ignored

thks a lot. i still using MT4...

Thanks for the link. but i not v good at code... can guide me along? so if i am running EA on my PC, how do i pass the code to my website?
 
 
  • Post #4
  • Quote
  • Jul 17, 2010 8:06am Jul 17, 2010 8:06am
  •  stevegee58
  • Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,012 Posts
It depends on what kind of web site you have. If you're trying to post to a traditional web site like a personal page at sites.google.com, then it's more complicated. You would have to figure out how to log in to the web site with http51.dll and then post the information. I'm not sure you can programmatically log in to google with that dll, let alone post a page using it.

Another approach is to post trades to a blog such as google's blogger.com. You don't have to post via http to blogger to add an entry to a google blog. You can post entries to your blog by setting up an email interface. It's a unique email address that you can send emails to that automatically post to the blog. There are email links for MT4 already out there for you to use.

Here's google's help page on how to set up your blog for email posting:
http://www.google.com/support/blogge...n&answer=41452
You are in a maze of twisty little passages, all alike.
 
 
  • Post #5
  • Quote
  • Jul 17, 2010 8:17am Jul 17, 2010 8:17am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 31 y/o Investor/Trader/Programmer | 5,016 Posts
Why not use myfxbook?

If you don't want to use that, your easiest bet would be to get your own website.
 
 
  • Post #6
  • Quote
  • Jul 17, 2010 11:49am Jul 17, 2010 11:49am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting Ronald Raygun
Disliked
Why not use myfxbook?

If you don't want to use that, your easiest bet would be to get your own website.
Ignored
i got my own website but dun know how to post the entries from my EA to my website... i do not want to use myfxbook, but i want the same concept as myfxbook except now the entries are added to my website.
 
 
  • Post #7
  • Quote
  • Jul 17, 2010 11:53am Jul 17, 2010 11:53am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting stevegee58
Disliked
It depends on what kind of web site you have....
Ignored
i have my own website (own domain and webhosting). The webhosting is from lunarpages, and my webpage is using php.... so how do i add that in?

DO i have to create a table in my website then "add" the entries to the table whenever the EA trigger a buy/sell? thanks
 
 
  • Post #8
  • Quote
  • Jul 17, 2010 1:16pm Jul 17, 2010 1:16pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
hi,

seeing that you have php hosting (and mysql?), you can post your trade (symbol,open time,lot size, open price, sl, tp, etc) to server by forming a query string and send it using http-get

http://en.wikipedia.org/wiki/Query_string

- on your website, create a companion script that will parse the query string and store them on the database

- also create a php script that will pull the database content and make a proper html script to be displayed on visitor browser

hope this help
 
 
  • Post #9
  • Quote
  • Jul 17, 2010 1:18pm Jul 17, 2010 1:18pm
  •  stevegee58
  • Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,012 Posts
Quoting KPForex
Disliked
i have my own website (own domain and webhosting). The webhosting is from lunarpages, and my webpage is using php.... so how do i add that in?

DO i have to create a table in my website then "add" the entries to the table whenever the EA trigger a buy/sell? thanks
Ignored
Sounds like you need to do some web programming then. Unfortunately my specialty is embedded programming and signal processing...
You are in a maze of twisty little passages, all alike.
 
 
  • Post #10
  • Quote
  • Jul 17, 2010 1:29pm Jul 17, 2010 1:29pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting stevegee58
Disliked
Sounds like you need to do some web programming then. Unfortunately my specialty is embedded programming and signal processing...
Ignored
reading "embedded programming" remind me with my old days with MCS-8051 and ADC 0804.
 
 
  • Post #11
  • Quote
  • Jul 17, 2010 1:39pm Jul 17, 2010 1:39pm
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,540 Posts
hey kpforex..... i'm not familar with lunarpages so can't say much there....

steve's google email idea sounds neat, didn't realize they offered that function.....

the basic way is to edit your page containing any information/trades/charts and such you wish to be added.... then re-upload it to your server..... once you have done it a few times it become second nature......

if that page contained a 'auto refreshing' script on it, someone with the page already opened would recieve the now updated page at the refreshing rate you have set.....

that's how i do it anyway......

i use both networksolutions.com and web.com ...... h

//----


there is a member here , enivid , might be able to help.... seem to remember he knew quite a bit..... unless i'm confused on the member name.......h
to trade and code, keep both simple... no call to impress....h
 
 
  • Post #12
  • Quote
  • Jul 17, 2010 3:39pm Jul 17, 2010 3:39pm
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 31 y/o Investor/Trader/Programmer | 5,016 Posts
Well... look at any of my [TD] EAs, there is a way to have the EA send information to your website. I can help you put it up sometime next week if you'd like.
 
 
  • Post #13
  • Quote
  • Jul 18, 2010 5:04am Jul 18, 2010 5:04am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting Ronald Raygun
Disliked
Well... look at any of my [TD] EAs, there is a way to have the EA send information to your website. I can help you put it up sometime next week if you'd like.
Ignored
ok sure sure... really thanks a lot... I am the server type guy.. dun know much about web designing and programming... So might need ur guidances on this...
 
 
  • Post #14
  • Quote
  • Jul 18, 2010 5:06am Jul 18, 2010 5:06am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting hayseed
Disliked
hey kpforex..... i'm not familar with lunarpages so can't say much there....

steve's google email idea sounds neat, didn't realize they offered that function.....

the basic way is to edit your page containing any information/trades/charts and such you wish to be added.... then re-upload it to your server..... once you have done it a few times it become second nature......

if...
Ignored
Hi Hi thanks.... but can help me on this? cos i dun know abt this at all... thanks
 
 
  • Post #15
  • Quote
  • Jul 19, 2010 10:27am Jul 19, 2010 10:27am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
anybody can help me with it? thanks
 
 
  • Post #16
  • Quote
  • Jul 19, 2010 10:37am Jul 19, 2010 10:37am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 31 y/o Investor/Trader/Programmer | 5,016 Posts
You need three main things:

 

  1. MySQL database
  2. Apache server with support for PHP
  3. An MQL dll call which handles web-access

Have them?

Skype me (brynmawr114) and we'll go over it

 
 
  • Post #17
  • Quote
  • Jul 19, 2010 10:52am Jul 19, 2010 10:52am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting Ronald Raygun
Disliked
You need three main things:

 

  1. MySQL database
  2. Apache server with support for PHP
  3. An MQL dll call which handles web-access

Have them?

Skype me (brynmawr114) and we'll go over it

Ignored
Hi, i have mysql database, i have apache server with support for PHP but i dun know what is MQL dll call which handles web access? What is that? and how do i obtain that? thanks
 
 
  • Post #18
  • Quote
  • Jul 19, 2010 11:40am Jul 19, 2010 11:40am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 31 y/o Investor/Trader/Programmer | 5,016 Posts
I had the same problem and RangeBound showed me a very good solution:

http://www.forexfactory.com/showthre...tp#post3085195
 
 
  • Post #19
  • Quote
  • Jul 20, 2010 6:41am Jul 20, 2010 6:41am
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting KPForex
Disliked
Hi, i have mysql database, i have apache server with support for PHP but i dun know what is MQL dll call which handles web access? What is that? and how do i obtain that? thanks
Ignored
To access MySQL DB, use PHP's mysql extension
PHP Code:
<?
$dbname = 'dbname'; //ask host provider what's your database name
$username='dbusername'; //your db user name
$password='123'; //your password for db user name
$link = mysql_connect('localhost', $username, $password);
if (!$link) {
    die('Not connected : ' . mysql_error());
}
$db_selected = mysql_select_db($dnmame, $link);
if (!$db_selected) {
    die ('Error selecting forex db with msg: '.mysql_error());
}
//insert new row
mysql_query("INSERT INTO YOURTABLE (FIELD1,FIELD2,FIELD3) VALUES(VAL1,VAL2,VAL3)");
//
//
//get rows in the table
$result=mysql_query("SELECT FIELD1,FIELD2,FIELD3 FROM YOURTABLE");
//
//process $result
//
mysql_free_result($result);
mysql_close($link);
?>
 
 
  • Post #20
  • Quote
  • Jul 20, 2010 7:58am Jul 20, 2010 7:58am
  •  KPForex
  • | Joined Dec 2009 | Status: Member | 241 Posts
Quoting sangmane
Disliked
To access MySQL DB, use PHP's mysql extension
[php]
<?
$dbname = 'dbname'; //ask host provider what's your database name
$username='dbusername'; //your db user name
$password='123'; //your password for db user name
$link = mysql_connect('localhost', $username, $password);
if (!$link) {...
Ignored

thanks... i created this php using dreamweaver called LinkToEA.php. Below is the script as directed by you. So what do i do next? thanks

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
</head>

<body>
<?
$dbname = 'EAforex'; //ask host provider what's your database name
$username='EAforex'; //your db user name
$password='test'; //your password for db user name
$link = mysql_connect('localhost', $username, $password);
if (!$link) {
die('Not connected : ' . mysql_error());
}
$db_selected = mysql_select_db($dnmame, $link);
if (!$db_selected) {
die ('Error selecting forex db with msg: '.mysql_error());
}
//insert new row
mysql_query("INSERT INTO YOURTABLE (FIELD1,FIELD2,FIELD3) VALUES(VAL1,VAL2,VAL3)");
//
//
//get rows in the table
$result=mysql_query("SELECT FIELD1,FIELD2,FIELD3 FROM YOURTABLE");
//
//process $result
//
mysql_free_result($result);
mysql_close($link);
?>





</body>
</html>
 
 
  • Platform Tech
  • /
  • How to direct my EA entries to my website?
  • Reply to Thread
    • Page 1 2 3
    • Page 1 2 3
0 traders viewing now
  • More
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022