Bitcoin Forum
May 25, 2024, 05:39:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Simple MACD Crossover Trading Strategy Applied to Bitcoin  (Read 439 times)
EssentialDataScience (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile WWW
September 10, 2017, 07:07:51 PM
 #1

Hi all,

I just uploaded another mini-project to Github: It shows the backtest results of a simple MACD trading strategy applied to Bitcoin (and interestingly enough, it seems to outperform buy and hodl Smiley). Take a look if you're interested: https://github.com/VermeirJellen/Bitcoin_MACD_Strategy

Any data scientists on this forum?

Cheers!
afbitcoins
Legendary
*
Offline Offline

Activity: 2100
Merit: 1061



View Profile WWW
September 10, 2017, 11:31:26 PM
 #2

What timescale do you look for crossover on?
notme
Legendary
*
Offline Offline

Activity: 1904
Merit: 1002


View Profile
September 11, 2017, 02:15:30 AM
 #3

What timescale do you look for crossover on?

He's using daily closing price.

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
EssentialDataScience (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile WWW
September 11, 2017, 06:12:19 AM
 #4

What timescale do you look for crossover on?

He's using daily closing price.

Actually, I used the Blockchain.info charts api (view FetchBTCInfo function) because their historical datafeed goes back further in time in comparison to the feed of most of the exchanges. I named the timeseries "btc.close" in the mini project but it's actually the "Average USD market price across major bitcoin exchanges.", according to the Blockchain.info description.

I previously created a package to fetch data from Poloniex, view https://github.com/VermeirJellen/PoloniexR (I will probably make a separate topic for this later on). You can use this package to fetch the OHCL-V from Poloniex and run the SimpleMACD strategy again on the close if you like. I don't think there will be that much of a difference but the main problem is that the historical data feed goes back only a few years.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!