Hunting Crypto Trading Bots Using Volume Seasonality

neurotrader
6 Jan 202307:52

Summary

TLDR本视频深入探讨了加密货币市场中成交量的季节性变化,重点分析了一周中不同日子和一天中不同时间的成交量行为。利用2018年1月1日至2022年10月的币安数据,演示了如何通过对原始成交量数据进行规范化处理来揭示其季节性特征。分析发现,工作日的成交量普遍高于周末,特别是UTC时间的12点到16点之间,市场活跃度最高。此外,每个常见时间框架的第一分钟成交量较高,这可能揭示了算法交易者的活动模式。视频最后提出了对这些发现的理论解释,并邀请观众提供反馈和讨论。

Takeaways

  • 😀 The video analyzes cryptocurrency trading volume seasonality - how volume changes based on day of week and time of day
  • 😎 Weekends have lower trading volume than weekdays, showing less activity from professional/institutional traders
  • 🚀 Peak trading hours are roughly 12:00 - 16:00 UTC across different cryptocurrency pairs
  • ⏰ The first minute of each hour/15 min/5 min period tends to have a spike in trading volume
  • 🤔 This spike may be due to trading algorithms placing orders at bar close, which then execute in the next bar
  • 😯 By analyzing volume spikes, you can detect consensus opinion of algorithmic traders
  • 📈 The raw trading volume data needs to be normalized before analyzing seasonality
  • 😴 A 30-day median is used to normalize the daily data
  • 💤 A 168-hour (1-week) median is used to normalize the hourly data
  • 🥱 A 10080-minute (1-week) median is used to normalize the minute-level data

Q & A

  • 加密货币市场的成交量在一周中的哪些日子最低?

    -在周末,即星期六和星期日,加密货币市场的成交量显著下降,低于工作日。

  • 如何对原始成交量数据进行规范化处理以揭示季节性变化?

    -通过取原始成交量与其30天滚动中位数的比值,然后对该比值取自然对数来规范化成交量数据。

  • 为什么要对成交量数据进行规范化处理?

    -因为原始未经处理的成交量数据不是稳定的,其行为随时间变化不一致,通过规范化处理可以使数据趋于稳定,便于分析。

  • 加密货币市场在一天中的哪些小时成交量最高?

    -从UTC时间的中午12点到下午4点(12:00-16:00)成交量最高,这一时段市场最为活跃。

  • 周末与工作日的成交量有何不同?

    -周末的成交量较低,表明周末的市场活动减少,这可能反映了机构活动在周末减少的趋势。

  • 每小时成交量的规范化处理是如何进行的?

    -通过使用168小时(一周)的滚动中位数来规范化每小时的成交量,以消除周末效应的影响。

  • 在分钟级别的数据分析中,哪些时间点的成交量最高?

    -在每小时的第一分钟成交量最高,此外,每15分钟和每5分钟的开始也会出现较高的成交量。

  • 高频交易算法在市场成交量中扮演什么角色?

    -高频交易算法在常见时间框架的第一分钟产生较高成交量,这表明大部分成交量可能来自于算法交易。

  • 为什么在常见时间框架的第一分钟会看到成交量的高峰?

    -这是因为交易系统通常会在每个时间段结束时分析数据,并在下一个时间段开始时立即下达市场订单,导致成交量激增。

  • 如何利用第一分钟的成交量高峰来理解市场动态?

    -如果第一分钟的成交量有明显方向,可以作为判断交易算法当前共识意见的一个指标。

Outlines

00:00

📊 加密货币市场的交易量季节性分析

本段落探讨了加密货币市场交易量的日常和小时变化规律。使用2018年1月1日至2022年10月的币安数据,作者发现交易量在不同的日子和时间有显著差异。为了分析季节性变化,必须首先将原始交易量数据标准化,以消除非静态趋势。通过采用30天和168小时的滚动中位数来标准化日和小时数据,使得交易量数据趋于稳定。分析结果显示,周末的交易量显著低于工作日,且在UTC时间的12点到16点间,市场交易量最活跃。此外,作者还研究了不同加密货币对和不同交易所之间的交易量季节性,发现类似的趋势。

05:00

🕒 交易量的时间段分析与算法交易的影响

本段讨论了交易量的三个主要趋势:工作日比周末交易量高、一天中有特定的高峰小时和一些时间框架开始时的第一分钟内交易量上升。这些趋势揭示了机构活动的痕迹和市场的全球性特征。作者提出了一个理论,认为交易系统在每个时间框架结束时做出交易决策,导致新周期开始时的交易量激增。如果第一分钟内有明显的交易量增加,这可能表明算法交易在起作用。最后,作者鼓励观众讨论并为进一步的研究提供意见。

Mindmap

Keywords

💡volume

The amount of cryptocurrency traded during a particular time period. The analysis examines volume patterns over different time frames like daily, hourly, and by minute.

💡seasonality

Recurring and predictable patterns in volume over different time periods. The analysis aims to uncover volume seasonality in crypto markets.

💡normalize

Transform the raw volume data to make it stationary for consistent comparison across time. This is done by dividing by a rolling median and taking the logarithm.

💡peak hours

Times of day when trading volume tends to be highest, typically 12-16 UTC across different coins and exchanges.

💡weekend effect

Volume tends to be lower on weekends than weekdays, indicating less activity from institutional traders.

💡first minute volume

Volume in the first minute of each time frame (day, hour, 15 min, 5 min) tends to spike. This suggests trading algorithms placing orders at bar closes.

💡trading algorithms

Automated trading systems that analyze market data and place orders. The first minute volume spikes indicate their activity.

💡stationary

A statistical property meaning the distribution has a consistent mean and variance over time. Needed for comparing averages.

💡UTC

Coordinated Universal Time, the standard for tracking time used in global financial markets. Replaces references to time zones.

💡consensus opinion

If trading algorithms move price strongly in the first minute, it indicates their consensus view on market direction.

Highlights

标准化加密市场中的交易量数据以分析季节性模式

星期六和星期日的交易量明显偏低,工作日的交易量相对较高

每天中午12点至下午4点(UTC时间)是交易量的高峰时段

每天的第一分钟交易量明显偏高,表明算法交易的脚印

常见时间框架(一天、一小时、15分钟)的第一分钟交易量偏高

交易算法通常在某个时间框架结束时决定其行动,导致下一分钟交易量增加

如果第一分钟价格变动很大,可以推断出该时段算法交易的共识意见

周末效应表明周六日交易量低于工作日,反映了机构活动的印记

加密市场每天高峰小时对应不同地区的交易高峰时段

交易量高峰时段和第一分钟交易量偏高是整个市场的普遍规律

进一步研究周末和工作日的价格行为差异可能产生有趣发现

标准化方法使原始交易量数据更加平稳,便于분析其季节性模式

使用移动中位数和对数转换将原始交易量变换为可分析的形式

变换后的交易量分布更趋于正常,方差波动更小,便于提取其规律

分离 weekends 和 weekdays 的交易量曲线,可以清楚看到两者差异

Transcripts

play00:00

today we're going to be talking about

play00:01

volume seasonality we're going to be

play00:03

looking at how volume behaves in the

play00:05

cryptocurrency markets based on the day

play00:07

of the week and the time of the day

play00:09

you'll learn some details about how

play00:10

volume behaves in cryptocurrency markets

play00:12

and I'll show you a way to see what

play00:14

algorithmic Traders might be up to

play00:21

we'll be using data from binance between

play00:24

January 1st 2018 and October 2022. to

play00:28

uncover how volume tends to behave at

play00:30

different times we will average the

play00:31

volume across all instances of a common

play00:34

time such as Mondays or Tuesdays for

play00:36

daily data or 11 A.M and 2 p.m for

play00:38

hourly data however before we can do

play00:41

this we need to normalize the volume

play00:42

data as raw unaltered volume is not

play00:45

stationary its behavior is not

play00:47

consistent across time here we have the

play00:49

raw volume for Bitcoin tether over our

play00:51

test period by looking we can observe

play00:53

that the raw volume exhibits many

play00:55

shorter term Trends and doesn't have a

play00:57

consistent level at hovers around put

play00:59

differently it does not have a

play01:01

stationary mean value to better

play01:03

illustrate this I took the average

play01:04

volume of each year in the test set and

play01:07

plotted it

play01:08

since we're seeking to average volume

play01:10

readings at different times to extract

play01:12

its seasonal Behavior we have to

play01:14

transform the raw volume to induce some

play01:16

stationarity

play01:17

to do this I take a rolling median of

play01:19

the volume for daily data I chose a

play01:21

rolling period of 30 days this decision

play01:23

is arbitrary but 30 days about a month

play01:26

is reasonable I divide the raw volume by

play01:29

The Rolling median and take the natural

play01:30

logarithm of that quotient

play01:33

once this is done here's the result the

play01:36

normalized volume we can see that the

play01:38

transform series tends to hover around

play01:40

zero and is fairly consistent throughout

play01:42

time now if we again take the average of

play01:45

each year they are very similar looking

play01:47

at the histogram of our transform series

play01:49

we can see that the distribution has a

play01:51

nice Bell shape I should mention that

play01:53

this new series is not perfectly

play01:54

stationary in a statistical sense but

play01:56

it's good enough for our purposes

play02:00

this is our normalized volume average by

play02:02

the day of the week the main feature

play02:04

here is that the weekends Saturday and

play02:06

Sunday have a significant drop off a

play02:08

consistently lower level and the

play02:10

weekdays have a consistent level but are

play02:12

much higher than the weekends

play02:14

now we're going to look at how volume

play02:15

behaves given the time of the day all of

play02:17

the times I'll give will be in UTC

play02:20

coordinated universal time also known as

play02:22

GMT or Zulu time military time here's

play02:25

the full view of our normalized volume

play02:28

series for the hourly time series for

play02:30

this I used a rolling median period of

play02:31

168 hours which is one week that is to

play02:34

cancel out the weekend effect that we

play02:36

just saw in the daily analysis the

play02:39

hourly normalized still has that nice

play02:40

bell-shaped distribution and here is the

play02:43

average normalized volume for each hour

play02:45

of the day there's a couple notable

play02:48

things here first there's some peak

play02:49

hours roughly from hour 12 to hour 16

play02:52

noon to four o'clock in UTC and a little

play02:56

bit of wider range for peak hours would

play02:57

be from hour a to hour 17. this section

play03:00

of the day is when the market tends to

play03:02

be the most active there is the most

play03:04

volume going through it another

play03:06

interesting feature is the first hour of

play03:08

the day has a spike this is important

play03:10

and we'll see more of that soon because

play03:12

we just saw that weekends to never lower

play03:14

volume than weekdays I did the same

play03:17

hourly study but separated weekdays from

play03:19

weekends to see if the peak hours differ

play03:21

and when they're plotted against each

play03:23

other we can see that the same peak

play03:24

hours hold throughout the weekends but

play03:26

the weekend levels are of course slower

play03:27

to visualize this differently here's a

play03:29

heat map mapping every hour of the day

play03:31

with every weekday I was curious to see

play03:33

if the peak hours held up throughout the

play03:35

entire data set so I redid the same

play03:38

seasonality averaging but for each year

play03:41

in the data set and as you can see 2018

play03:43

through 2022 that same shape holds each

play03:46

year has that first hour Spike and the

play03:48

peak hours are pretty much the same I

play03:50

also did the same thing with coup coins

play03:52

Bitcoin tether pair to see if the peak

play03:55

hours held across exchanges and as you

play03:57

can see they do they roughly have the

play03:59

same shape and also did the same

play04:01

seasonality averaging for a few

play04:02

different common cryptocurrency Pairs

play04:04

and as you can see they all have roughly

play04:06

the same peak hours and same kind of

play04:09

shape so these peak hours appear to be a

play04:11

market-wide phenomenon not just for

play04:13

Bitcoin now we're going to look at

play04:15

minute data the rolling medium period I

play04:17

used for minute data was one week in

play04:19

minutes 24 times 60 times seven I don't

play04:22

know what that is you can do the math so

play04:23

here's our normalized volume for each

play04:25

minute of an hour and as you can see

play04:27

that on average the first minute has the

play04:29

most volume compared to any other minute

play04:31

and if we look a little closer we can

play04:32

see there's a slightly less prominent

play04:34

Spike at each 15 minute interval and if

play04:36

we look even closer we can see that

play04:38

there's a smaller Spike at each five

play04:40

minute interval

play04:41

here's the volume average for each

play04:43

minute of the day there's

play04:45

1440 minutes in a day we can see that

play04:48

beginning of the day Spike we saw in the

play04:50

hourly data and look a little closer we

play04:52

can see a large amount of activity that

play04:54

takes place in the first few minutes of

play04:55

the day here is the volume for each

play04:57

minute of the day with each hour marks

play05:00

as you can see that the beginning of

play05:02

each hour has a spike and relatively

play05:05

higher volume compared to neighboring

play05:06

minutes

play05:11

foreign

play05:12

thing but with each 15 minutes marked

play05:16

and as you can see at the beginning of

play05:18

each 15 minute period the volume tends

play05:20

to be higher than neighboring minutes

play05:22

and it's fairly consistent throughout

play05:24

the day

play05:32

we have found three Tendencies of volume

play05:34

one there's more volume on weekdays than

play05:37

weekends the weekend effect two there

play05:39

are peak hours of the day where the

play05:41

market has more volume and three the

play05:43

first minute of common time frames tends

play05:45

to have higher volume let's talk about

play05:47

each of these the weekend effect shows a

play05:49

tendency for lower volume on the

play05:51

weekdays I believe this difference shows

play05:53

the footprint of institutional activity

play05:55

professional entities would reasonably

play05:57

take the weekends off I think further

play05:59

study of price Behavior Beyond volume on

play06:01

weekends versus weekdays May yield

play06:03

interesting results perhaps we'll make

play06:05

another video looking into this comment

play06:07

if you're interested the cryptocurrency

play06:09

market tends to have higher volume

play06:10

between 12 and 16 UTC this suggests more

play06:14

Traders tend to be awake and active

play06:16

during these times roughly speaking

play06:18

these hours tend to fall in the morning

play06:19

for the U.S the afternoon for Europe and

play06:22

the evening for Asia at least for volume

play06:25

the market tends to behave differently

play06:26

during these times in my opinion our

play06:29

most interesting binding is the higher

play06:31

average volume in the first minute of

play06:33

common time frames such as one day one

play06:35

hour 15 minutes and 5 minutes I have a

play06:37

theory about why we see this I've been

play06:40

developing trading systems for a number

play06:41

of years and I know that it is common

play06:43

practice for trading systems to decide

play06:45

their action at the close of each bar

play06:47

after the bar is closed a trading

play06:49

algorithm does whatever analysis it does

play06:51

and it might place an order if this

play06:52

order is a market order it will execute

play06:55

right away and the volume associated

play06:57

with that order will add to the next

play06:59

minutes volume this would explain the

play07:01

high volume we see in the first minute

play07:03

of common time frames and this Theory

play07:05

seems reasonable to me and frankly I'm

play07:07

convinced it's true if you have an

play07:08

alternative Theory to explain the high

play07:10

volume in the first minute please leave

play07:11

it in the comments below I'd like to

play07:13

hear it so assuming this theory is true

play07:15

if you look at the first minute of a

play07:16

common time frame and see a spike in

play07:18

volume you know that it's likely a large

play07:20

percentage of that volume is from

play07:22

Trading algorithms and if that first

play07:24

minutes bar had a strong Direction you

play07:26

can get an idea of the consensus opinion

play07:28

of the trading algorithms at that

play07:30

current time

play07:33

alright that's all I have for volume

play07:35

seasonality thanks for watching

play07:36

subscribe hit the like button comment

play07:38

bye

play07:48

[Music]

Rate This

5.0 / 5 (0 votes)

Do you need a summary in English?