Cryptocurrency arbitrage can be described as a set of trading operations that is performed simultaneously by buying and selling the same cryptocurrency amount from two different exchanges to gain a profit off the exchange rate difference. The transaction is carried out in a way that the cryptocurrency amount on both exchanges is equal to the amount before the transaction, while the equivalent amount in fiat is increased by the rate difference.
Histrically, crytocurrency arbitrage derives its roots from statistical arbitrage. Statistical arbitrage performed on traditional markets was set to gain profit by simultaneously buying and selling shares of two correlated instruments. It is recomended to find two securities that are in the same sector / industry, they should have similar market capitalization and average volume traded. SA Strategy calculates two following values, which are later used to generate proper trade signals:
- Mean (M) ratio of the first periods prices of two assets
- Standard deviation (SD) of ratio of the first periods prices of two assets
where is a Number of Periods.
Mean and standard deviation are defined as follows:
where () is a price of the first (second) asset at the moment .
SA strategy starts decision rule, if orders should be sent after receiving Number of Periods trades.
- Latest Tick
|Number of Periods||Number of last ‘last trades’ events taken into account in a computation of the mean and standard deviation||Yes|
Consider an arbitrary moment , when strategy has no opened positions. If then we buy asset A and sell B.
Consider an arbitrary moment we should close these two positions when .
There is no strategy termination condition.
This strategy is dedicated to run in a long period of time. The instruments are highly correlated, so it is not likely that the ratio of prices will differ from mean by two standard deviations.
Further information & source
- Barry Johnson, Algorithmic Trading & DMA: An introduction to direct access trading strategies, 4Myeloma Press, 2010.