https://tradewave.net
A web service that automates BitCoin system trading.
To put it bluntly, there are many iPhone apps for trading under high & low conditions.
What's unusual about this is that it comes with a Python IDE with a built-in API for trading. Graphs can be calculated, displayed, and bought and sold very easily. Of course, the same thing can be done in a personal environment by using the API, but the threshold is low because there is no such trouble.
** In other words, you can experience system trading with interest! ** **
--Create an account for the time being
--Determine a strategy name (in short, .py file name)
--Arrived!
-(Reference) Let's open [https://tradewave.net/help/api/]
――It's written for a long time, but it's troublesome, so for the time being, copy [Code structure]> [An example strategy] and put it in the IDE.
python
# A basic Moving Average Crossover strategy
def initialize():
storage.invested = False
def tick():
short_term = data.btc_usd.ma(30)
long_term = data.btc_usd.ma(100)
if (short_term > long_term) and not storage.invested:
log('Buying BTC')
buy(pairs.btc_usd) # market order
storage.invested = True
elif (short_term < long_term) and storage.invested:
log('Selling all BTC')
sell(pairs.btc_usd)
storage.invested = False
def stop():
if storage.invested:
log('Clearing our position by selling all BTC holdings')
sell(pairs.btc_usd)
--If you press [Save]> [BackTest] on the right side, it will display the case where the sample was traded in the past BitCoin transaction history.
In the sample, the principal was 10,000 dollars, and it seems that he lost 217 dollars in one day.
It's a sample, it can't be helped ...
In the sample, we only look at the normal BTC / USD exchange rate, but if you want to have only an API for system trading, you can do various things.
--MA (Simple Moving Average) and EMA (Exponential Smoothing Moving Average)
def tick():
x = data.btc_usd.ma(30)
y = data.btc_usd.ema(30)
plot('MA', x)
plot('EMA', y)
def tick():
x = data.btc_usd.rsi(30)
plot('RSI', x, secondary=True)
――In addition, you can use candle data and various calculations in just a few lines without thinking.
--Calculation is a little slow ――It's not so easy to use as an IED ――If you want to write something properly, write it in Sublime text and copy it. ――A usage fee is required to actually trade with the system built here.
It's free to use, so it's easy to get to, and even I, a Python beginner, can understand it without worrying about it, so I recommend it to people who have ideas but are blocked by technical barriers around the API!
If you think it's interesting to try this, you can put in the API yourself and set up a server.
Recommended Posts