Pages:
Author

Topic: Live Bitcoin Charts in MetaTrader 4 for any market @ bitcoincharts.com - page 5. (Read 32078 times)

kvm
newbie
Activity: 40
Merit: 0
Failed to work for me. Cant figure out whats wrong.
I Kept EUR/USD open,got the EA, set allow imports. But  in the next step,[File -> Open Offline, look for "mtgoxUSD,M1"], For me there is no "mtgoxUSD,M1" listed among the options.

The EA is greyed out, is that how its supposed to be?

The EA doesn't work any more, because of the recent Bitcoincharts API changes!
sr. member
Activity: 686
Merit: 250
Failed to work for me. Cant figure out whats wrong.
I Kept EUR/USD open,got the EA, set allow imports. But  in the next step,[File -> Open Offline, look for "mtgoxUSD,M1"], For me there is no "mtgoxUSD,M1" listed among the options.

The EA is greyed out, is that how its supposed to be?

kvm
newbie
Activity: 40
Merit: 0
newbie
Activity: 33
Merit: 0
kvm
newbie
Activity: 40
Merit: 0
where the unixtime is the number of seconds that have elapsed since January 1, 1970.
1279408157 = Sat, 17 Jul 2010 23:09:17 GMT

just cast the int into a date in mql4 and use it as date for all date and time related mql4 functions and it will just work, mt4 is using unix timestamps too as its native datetime format, no need for complicated calculatons and conversions, its all built into mt4 already.

Yes. I'm, using it that way Smiley I just tried to explain the tick format.
hero member
Activity: 938
Merit: 500
https://youengine.io/
where the unixtime is the number of seconds that have elapsed since January 1, 1970.
1279408157 = Sat, 17 Jul 2010 23:09:17 GMT

just cast the int into a date in mql4 and use it as date for all date and time related mql4 functions and it will just work, mt4 is using unix timestamps too as its native datetime format, no need for complicated calculatons and conversions, its all built into mt4 already.
kvm
newbie
Activity: 40
Merit: 0
This is the first row of BTCUSD tick data from mt.gox from your link:

1279408157,0.049510000000,20.000000000000

What is ''1279408157''? - a date and hour? please decipher this for me. The other two seem to be price and volume

Lines in CSV files have the following fixed format:

unixtime,price,amount

where the unixtime is the number of seconds that have elapsed since January 1, 1970.

1279408157 = Sat, 17 Jul 2010 23:09:17 GMT
sr. member
Activity: 378
Merit: 250
Born to chew bubble gum and kick ass
This is the first row of BTCUSD tick data from mt.gox from your link:

1279408157,0.049510000000,20.000000000000

What is ''1279408157''? - a date and hour? please decipher this for me. The other two seem to be price and volume

Thanks
newbie
Activity: 33
Merit: 0
hey man, please do this. Much respect for your work!
kvm
newbie
Activity: 40
Merit: 0
I just received an answer to my question from Bitcoincharts.com:

> You can fetch historic data from http://api.bitcoincharts.com/v1/csv/
> (updated once per day).

So the only thing I can do is to write another script that reads the file and imports the data in MT4!
This is a very dirty work-around! But this is the only solution I can think of at the moment!
full member
Activity: 166
Merit: 100
Same problem, gives me an "waiting for execution to Start" in the Chart Window and there is no offline chart.

Anyone had any luck with this? Also has anyone checked if the script is safe to use?

Yes, I understand your concerns. Running such a script with "Allow DLL imports" option is a little bit dangerous!
I guarantee that the EA uses only these inetrnet related functions to connect and download data from bitcoincharts.com:

#import "wininet.dll"
int InternetOpenA(...);
int InternetOpenUrlA(...);
int InternetReadFile(...);   
int InternetCloseHandle(...);

However, although it is safe, at the moment the script is pretty useless, because of the recent Bitcoincharts API changes.
I've tested their new example and the request returns no data! Until there's a way to get the whole history I can't do much!
I will continue to search a solution, and post it here if I found one, but any help will be appreciated...


ah thats too bad...any other options to get bitcoin data in mt4?
kvm
newbie
Activity: 40
Merit: 0
Same problem, gives me an "waiting for execution to Start" in the Chart Window and there is no offline chart.

Anyone had any luck with this? Also has anyone checked if the script is safe to use?

Yes, I understand your concerns. Running such a script with "Allow DLL imports" option is a little bit dangerous!
I guarantee that the EA uses only these inetrnet related functions to connect and download data from bitcoincharts.com:

#import "wininet.dll"
int InternetOpenA(...);
int InternetOpenUrlA(...);
int InternetReadFile(...);   
int InternetCloseHandle(...);

However, although it is safe, at the moment the script is pretty useless, because of the recent Bitcoincharts API changes.
I've tested their new example and the request returns no data! Until there's a way to get the whole history I can't do much!
I will continue to search a solution, and post it here if I found one, but any help will be appreciated...
full member
Activity: 166
Merit: 100
Same problem, gives me an "waiting for execution to Start" in the Chart Window and there is no offline chart.

Anyone had any luck with this? Also has anyone checked if the script is safe to use?
full member
Activity: 224
Merit: 100
Is it possible to use this without creating an account in MT4?
full member
Activity: 166
Merit: 100
DESCRIPTION

can't get this to work, it just says waiting to start...is it cause bitcoincharts is down?

This Expert Advisor (EA) for MetaTrader 4 (MT4) imports mtgoxUSD historic tick data using Bitcoincharts API.
It supports auto refresh after regular intervals, however the ticks are delayed in time by approximately 15 minutes as described in the API documentation

INSTALLATION

1. First of all download and put the EA in this directory, by default:

C:\Program Files (x86)\MetaTrader 4\experts , If you use Windows 7 64 bit or
C:\Program Files\MetaTrader 4\experts , If you use Windows 7 32 bit edition.

Keep in mind that MT4 directory might be your broker name!

2. After that restart the MT4 terminal!

3. Open a new window for any pair you want, for example EURUSD and keep it open all the time.

4. Go to Expert Advisors in Navigator Window, look for "eKVM-BTC-Chart", double click on it, under Common, make sure that "Allow DLL imports" and "Allow imports of external experts" are checked, then click OK.

5. After the EA has processed some data, go to File -> Open Offline, look for "mtgoxUSD,M1" and click on Open, a new chart window will open named "mtgoxUSD,M1 (offline)". Now you can add your indicators or template or customize the chart as you want.

6. The last but not least, go to Tools -> Options -> tab Charts, then change "Max bars in history" and "Max bars in chart" to the maximum number possible, for example: 9999999999999 and OK! We do this step to let MT4 use all the data in the history!

VERSIONS

Last version: eKVM-BTC-Chart_v1.0

2013-03-28  1.0  Initial release.

hero member
Activity: 484
Merit: 500
Gives me an "waiting for excution to Start" in the Chart Window.

MT4 works great in wine btw Smiley  back to the roots Smiley
kvm
newbie
Activity: 40
Merit: 0
DESCRIPTION
 however the ticks are delayed in time by approximately 15 minutes as described in the API documentation

How about going one step further and using MtGox websocket or socket.io API for live streaming data and also make a simple trading API (that is similar to MT4 API) so that any EA (after only small modifications) can trade on MtGox?

This will be a very useful feature, indeed. But I disagree that it will require only "one step" Smiley

My first goal is to make the chart really LIVE. So, watch out for new releases soon!

However if you have any questions or feedback about the current release, feel free to PM me or comment!
newbie
Activity: 14
Merit: 0
DESCRIPTION
 however the ticks are delayed in time by approximately 15 minutes as described in the API documentation

How about going one step further and using MtGox websocket or socket.io API for live streaming data and also make a simple trading API (that is similar to MT4 API) so that any EA (after only small modifications) can trade on MtGox?

This. Do it!!

Maria 2.0
hero member
Activity: 938
Merit: 500
https://youengine.io/
DESCRIPTION
 however the ticks are delayed in time by approximately 15 minutes as described in the API documentation

How about going one step further and using MtGox websocket or socket.io API for live streaming data and also make a simple trading API (that is similar to MT4 API) so that any EA (after only small modifications) can trade on MtGox?
newbie
Activity: 14
Merit: 0
Finally! Thank You!!

Maria 2.0
Pages:
Jump to: