Welcome, Guest. Please login or register.

Author Topic: Live Nextcoin Chart in MetaTrader 4 on DGEX.com and NxtChg.com  (Read 1148 times)

0 Members and 1 Guest are viewing this topic.

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Live Nextcoin Chart in MetaTrader 4 on DGEX.com and NxtChg.com
« on: January 16, 2014, 02:33:55 PM »
Setting up MetaTrader 4

1. Download and install MetaTrader 4 Client Terminal (use default installation directory) from:
http://files.metaquotes.net/metaquotes.software.corp/mt4/mt4setup.exe

2. You must connect to at least a demo account. To create one, go to menu and select File -> Open an Account.

3. Go to menu and select Tools -> Options -> Charts tab. In the fields "Max bars in history" and "Max bars in chart", enter the largest number allowed: 9999999999999. After you click OK, the system will change this number to 2147483647 - the maximum bars the system can handle.


Using the Autoupdating Expert Status: OK

This is an Expert Advisor (EA) that automatically imports historical tick data from http://nextcoin.pw/allhistory.csv into local terminal database. Periodically, it updates the data and refreshes the chart window using  http://dgex.com/API/trades3h.json ticker.

1. Download and put eKVM-NXT-Chart_v1.1 expert in this directory, by default:
C:\Program Files\MetaTrader 4\experts - if you use Windows 7 32-bit system.
- or -
C:\Program Files (x86)\MetaTrader 4\experts - if you use Windows 7 64-bit system.

2. After that restart the MetaTrader 4 terminal. Make sure that the terminal is connected and in service.

3. Open a new Chart Window for any forex pair you want (for example, EURUSD) and keep it running all the time!

4. Go to Expert Advisors in Navigator window and double click on "eKVM-NXT-Chart". Under Common tab in settings dialog, make sure to check "Allow DLL imports" and "Allow imports of external experts", and uncheck "Confirm DLL function calls". Then click OK.

5. After the EA has processed some data, go to File -> Open Offline, choose one of the timeframes - "dgexNXTmBTC,M1", "dgexNXTmBTC,M5" etc. and click Open. Now you can add your indicators or template to customize the chart as you want.


Other Exchanges

NxtChg.com: eKVM-NXT-Nxtchg_v1.0

Bitcoin version: https://bitcointalk.org/index.php?topic=160791.0



« Last Edit: January 23, 2014, 05:19:43 PM by kvm »
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline adastreamer

  • Fresh Nxter
  • *
  • Posts: 39
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #1 on: January 16, 2014, 02:47:15 PM »
It's cool! In my site nextcoin.pw there are all trades Since 2013-12-28 14:09:05 and capturing is continuing. If i create an api, can we integrate it ?

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #2 on: January 16, 2014, 03:12:31 PM »
It's cool! In my site nextcoin.pw there are all trades Since 2013-12-28 14:09:05 and capturing is continuing. If i create an api, can we integrate it ?

Yes, It will be very useful, I think! Let's do it :)

The Bitcoin version of the script works with Bitcoincharts API: http://bitcoincharts.com/about/markets-api/

So, I've the code in place to parse csv data. Are you ok with that?
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline Zeegeuze

  • Fresh Nxter
  • *
  • Posts: 46
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #3 on: January 16, 2014, 03:33:42 PM »
That's great, thanks for that! I'll wait until all is integrated, or will it update automatically?
NXT: 16943371434650429740

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #4 on: January 16, 2014, 03:53:31 PM »
That's great, thanks for that! I'll wait until all is integrated, or will it update automatically?

After the integration is complete, there will be a new version to download!
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline adastreamer

  • Fresh Nxter
  • *
  • Posts: 39
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #5 on: January 16, 2014, 04:10:08 PM »
So, I've the code in place to parse csv data. Are you ok with that?

Which columns shoud be in the csv ? timestamp, price and volume will be enough ?

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #6 on: January 16, 2014, 04:36:13 PM »
So, I've the code in place to parse csv data. Are you ok with that?

Which columns shoud be in the csv ? timestamp, price and volume will be enough ?

Yes, I only need timestamp, price and volume!
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline adastreamer

  • Fresh Nxter
  • *
  • Posts: 39
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #7 on: January 16, 2014, 05:19:31 PM »
Yes, I only need timestamp, price and volume!

Done. Try this: http://nextcoin.pw/allhistory.csv

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #8 on: January 16, 2014, 06:48:29 PM »
Yes, I only need timestamp, price and volume!

Done. Try this: http://nextcoin.pw/allhistory.csv

Wow! You are fast! It's perfect except one thing :)

Can you change the price format to be fixed-point instead of exponential (scientific) notation, for example:

9.93e-05 -> 0.0000993. Because MT4 function StrToDouble() doesn't work with exponents!
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline adastreamer

  • Fresh Nxter
  • *
  • Posts: 39
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #9 on: January 16, 2014, 07:42:33 PM »

Can you change the price format to be fixed-point instead of exponential (scientific) notation, for example:

9.93e-05 -> 0.0000993. Because MT4 function StrToDouble() doesn't work with exponents!

Done. URL is the same - http://nextcoin.pw/allhistory.csv

Offline stoneantelope

  • Fresh Nxter
  • *
  • Posts: 39
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #10 on: January 17, 2014, 06:28:35 AM »
This really nice

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #11 on: January 17, 2014, 03:12:38 PM »

Can you change the price format to be fixed-point instead of exponential (scientific) notation, for example:

9.93e-05 -> 0.0000993. Because MT4 function StrToDouble() doesn't work with exponents!

Done. URL is the same - http://nextcoin.pw/allhistory.csv

Done! Thanks to adastreamer the charting script supports full history download!
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline kvm

  • Fresh Nxter
  • *
  • Posts: 16
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #12 on: January 19, 2014, 11:29:02 PM »
Any comment or suggestions?
Donation Addresses | BTC: 1PoFqwBCM8AgGKwJsZWJNygQY2CbGyhAW9 | NXT: 8951709270054266112

Offline stoneantelope

  • Fresh Nxter
  • *
  • Posts: 39
    • View Profile
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #13 on: January 20, 2014, 05:46:03 AM »
Ive been using it for the past few days and it is working perfectly
I sent a small donation to you

Offline okaynow

  • Nxter
  • **
  • Posts: 67
  • chopped in bits
    • View Profile
    • flakes - custom tees
Re: Live Nextcoin Chart in MetaTrader 4 @ dgex.com
« Reply #14 on: January 20, 2014, 01:55:41 PM »
this looks nice, i am installing now. can we use info from other nxt exchanges, or is DGEX the only option so far?
[email protected] : 10% discount on YOUR TRADE FEES FOR 6 MONTHS | [email protected]