Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2006, 06:29 PM
everlongh's Avatar
Junior Member
 
Join Date: May 2006
Location: Spring, Texas, USA
Posts: 3
everlongh is on a distinguished road
Stock market feed for MT4

I'm a programmer who's been using MetaTrader 4 now for several months with 6 different brokers for practicing Forex trading and EA development. I was wondering; is there a way for me to program to an api to get MT4 to use Yahoo data for end of day U.S. Stock market analysis? Can anyone tell me if this is possible and how I can do that. Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-08-2006, 02:27 PM
fx-programmer's Avatar
Senior Member
 
Join Date: Apr 2006
Location: europe
Posts: 118
fx-programmer is on a distinguished road
Use this demo

Extract the yahoo file data and use with mq4 by (sample):


// double std=iStdDevOnArray(

handle=FileOpen("YAHOO-BLA-BLA.txt",FILE_CSV|FILE_READ);
if(handle<1)
{
Print("The file is not found out, last mistake", GetLastError());
return(false);
}
if(handle>0)
{

for (int i=0; i<10000; i++)
{

if(FileIsEnding(handle)) break;
FileSeek(handle, pos, SEEK_SET);
str=FileReadString(handle);
//------------------------------------------------
if (StringFind(str, "Cycle", 0)>0)
{
shreach(str);
exitBuy1=exitBuy1+exitBuy;
exitSell1=exitSell1+exitSell;
entryBuy1=entryBuy1+entryBuy;
entrySell1=entrySell1+entrySell;
exBuy1=exBuy1+exBuy;
enBuy1=enBuy1+enBuy;
exSell1=exSell1+exSell;
enSell1=enSell1+enSell;
target1_s=target1_s+target_s;
stop1_s=stop1_s+stop_s;
target1_b=target1_b+target_b;
stop1_b=stop1_b+stop_b;

}
//------------------------------------------------

This is just a sample - not necessarily relevant to your requirement.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-24-2006, 11:17 PM
everlongh's Avatar
Junior Member
 
Join Date: May 2006
Location: Spring, Texas, USA
Posts: 3
everlongh is on a distinguished road
Thumbs up Thanks...

I was able to get a crude program working off Yahoo data with this...still working on it on the side while developing an ea too. Thanks FXPgmr.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-25-2006, 01:16 AM
deepdrunk's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 310
deepdrunk is on a distinguished road
it would be nice if we can import stock data here,i hope someone will make it easy by programming some script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anybody know the server for stock market? shiningstar Indicators - Metatrader 4 3 05-13-2007 02:28 AM
MT4 and stock quotes? takechance Metatrader 4 1 10-06-2006 03:19 PM
Stock TSV Indicator for Forex WishfulPIPing Metatrader 4 1 05-02-2006 03:04 PM
can Metatrader analysis stock? buzz2002 Setup Questions 1 03-20-2006 04:39 AM


All times are GMT. The time now is 06:55 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.