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.

 

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.

 

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.

 

it would be nice if we can import stock data here,i hope someone will make it easy by programming some script

 

would be really nice if someone could do this feeding real time data into MT4 from yahoo/RT Metastock data.

Reason: