Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,161 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How download M1 H1 D1 from CryptoCompare ? #475573
12/25/18 09:47
12/25/18 09:47
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
Hello,
I am using Zorro S and this code only download D1 of ETH/BTC pair ? How to download M1 and H1 ? Thank you !

Code:
function run()
{
  BarPeriod = 1;
  assetHistory("ETH/BTC",FROM_CRYPTOC);
  assetAdd("ETHBTC");
  asset("ETHBTC");
  set(PLOTNOW);
}


Re: How download M1 H1 D1 from CryptoCompare ? [Re: Chuate] #475577
12/26/18 11:18
12/26/18 11:18
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
You can load only D1 from Cryprocompare, M1 and H1 works only with the latest beta version and only 2000 bars, so it is not very useful.

Re: How download M1 H1 D1 from CryptoCompare ? [Re: Spirit] #475591
12/27/18 11:23
12/27/18 11:23
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
I want to build strategy in crypto data. So, there is anyway to download h1 data for Zorro ? For example download from external source then convert to Zorro format file.

Last edited by Chuate; 12/27/18 11:24.
Re: How download M1 H1 D1 from CryptoCompare ? [Re: Chuate] #475594
12/27/18 14:28
12/27/18 14:28
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline
Junior Member
kvm  Offline
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
You can download H1 data using Binance's Public Rest API and convert the json to t6 format.

For example: https://api.binance.com/api/v1/klines?symbol=ETHBTC&interval=1h&startTime=0

Last edited by kvm; 12/27/18 14:34.
Re: How download M1 H1 D1 from CryptoCompare ? [Re: kvm] #475624
12/29/18 13:22
12/29/18 13:22
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
Originally Posted By: kvm
You can download H1 data using Binance's Public Rest API and convert the json to t6 format.

For example: https://api.binance.com/api/v1/klines?symbol=ETHBTC&interval=1h&startTime=0


Thank you but can you show me how to convert json to t6 ? I have to use Z History Editor tool to convert ?

Re: How download M1 H1 D1 from CryptoCompare ? [Re: Chuate] #475685
01/03/19 15:00
01/03/19 15:00
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline
Junior Member
kvm  Offline
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Originally Posted By: Chuate
Thank you but can you show me how to convert json to t6 ? I have to use Z History Editor tool to convert ?

Now, this is the tricky part:

1) You should convert json data to csv file, for example use this online converter: https://konklone.io/json/

2) Configure CSVtoHistory.c script to find and understand our csv file, just copy these lines before the main function:
Code:
string InName = "C:\\Programs\\Zorro-History\\ETHBTC.csv";
string Format = "+%t,f3,f1,f2,f4,f6";
string OutName = "ETHBTC";


3) Open <zorro_history_folder>\ETHBTC.t6 file in History Editor and verify all is correct!

Attached Files
ETHBTC.csv (106 downloads)
Re: How download M1 H1 D1 from CryptoCompare ? [Re: kvm] #475726
01/05/19 08:52
01/05/19 08:52
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
It work like a charm. Thank you laugh


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1