Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, VoroneTZ), 916 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 (87 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