the evolution of algorithmic trading and the role of technical … · 2018. 6. 25. · algorithmic...

55
The evolution of Algorithmic Trading and the role of Technical Analysis

Upload: others

Post on 17-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

The evolution of Algorithmic Trading

and the role of Technical Analysis

Page 2: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

Why SIAT?

SIAT – Società Italiana Analisi Tecnica è l’associazione di categoria senza fini di lucro che riunisce gli analisti tecnici italiani dei mercati finanziari. E’ stata fondata nel 1986 traducendo nella realtà italiana i principi ispiratori di IFTA – International Federation of Technical Analysts (fondata nel maggio 1984), istituzione internazionale che raggruppa 26 nazioni

Page 3: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

Disclaimer

Il presente per informare autori, associati e non, fruitori, che nessuna responsabilità viene assunta da SIAT Associazione in relazione all’uso e/o utilizzo dei contenuti intellettuali divulgati da, o attraverso, essa qualsiasi mezzo divulgativo venga utilizzato:

partecipazione fisica ad eventi organizzati sia in propria sede o altrove;

partecipazione elettronica attraverso file di ogni genere, utilizzati per qualsiasi finalità o prelevabili dal sito www.siat.org;

partecipazione mediatica attraverso videoregistrazioni od altro.

Tutti i contenuti divulgati (non costituiscono in nessun modo sollecitazione al pubblico risparmio) internamente tra associati e/o esternamente anche a terze parti, sono soggetti alla normativa vigente in materia di diritto d’autore e di proprietà intellettuale, pertanto qualsiasi uso e/o utilizzo possa essere realizzato deve essere preventivamente concordato direttamente tra l'autore ed il fruitore in totale autonomia e responsabilità.

SIAT Associazione si dichiara a favore dell'esclusivo e totale rispetto delle norme vigenti pertanto non sarà in alcun caso responsabile a qualunque titolo per qualsiasi tipo di danno, diretto o indiretto, derivante da qualsiasi uso e/o utilizzo dei contenuti divulgati.

Page 4: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

The evolution of Algorithmic Trading and the role of Technical AnalysisAndrea Unger

Page 5: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Are Markets Changing?

Some tests on a basket of instruments to analyse if and how the situation in the markets has been changing throughout the years

5

Page 6: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

The basket - Indexes

6

Page 7: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

The basket – Currencies & Bonds

7

Page 8: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

The basket - Metals

8

Page 9: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

The basket - Energy

9

Page 10: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

The basket – Softs & Grains

10

Page 11: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Are Markets Changing?

We test a Donchian Channel Breakout first

from 1/Jan/1960 to 31/Dec/2000 and then

from 1/1/2001 on, the Channel based on

5, 20 or 50 bars.

30 USD RT Commissions included

11

Page 12: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Are Markets Changing?

12

1960-2000 2001-2016ars Donchian Channel

Page 13: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Bars Donchian Channel

13

1960-2000 2001-2016

Are Markets Changing?

Page 14: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

ars Donchian Channel

14

1960-2000 2001-2016

Are Markets Changing?

Page 15: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

5 Bars Donchian Channel

15

1960-2000 2001-2016

Are Markets Changing?

Page 16: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Channel

16

1960-2000 2001-2016

Are Markets Changing?

Page 17: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

50 Bars Donchian Channel

17

1960-2000 2001-2016

Are Markets Changing?

Page 18: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

5 Bars Donchian Channel

18

More Trades but worse TradesSame average duration of trades, this means less

good moves in the winners

1960-2000 2001-2016

Are Markets Changing?

Page 19: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Channel

19

More Trades but worse TradesSame average duration of trades, this means less

good moves in the winners

1960-2000 2001-2016

Are Markets Changing?

Page 20: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

50 Bars Donchian Channel

20

Same average duration of trades, this means less

good moves in the winners

More Trades but worse Trades

1960-2000 2001-2016

Are Markets Changing?

Page 21: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Test results show how basic approaches used for years still produce profits but in a worse way, markets themselves show sometimes deep changes in their way to move

21

Are Markets Changing?

Page 22: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

Cocoa, it is clearly a bad

to trade here

22

Are Markets Changing?

Page 23: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

– Crude Oil some Great

Winners and then

confusion

23

Are Markets Changing?

Page 24: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

Gold great Gains in som

phases but not always

24

Are Markets Changing?

Page 25: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

– Coffee «killed» by

electronic markets

25

Are Markets Changing?

Page 26: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

– Live cattle also sufferi

electronic «efficiency»

26

Are Markets Changing?

Page 27: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

– Corn also suffering

electronic «efficiency»

27

Are Markets Changing?

Page 28: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

SP500 hard to use

28

Are Markets Changing?

Page 29: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

30 Yrs Bond a good one

29

Are Markets Changing?

Page 30: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 30

20 Bars Donchian Chan

30 Yrs Bond Long only

curve

Are Markets Changing?

Page 31: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

20 Bars Donchian Chan

30 Yrs Bond Short only

31

Are Markets Changing?

Page 32: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Each markets reacts in a different waySome markets make gains thanks to

particular movesSome gains are more related to the

overall trend rather than to the method

Markets Are Changing!

32

Are Markets Changing?

Page 33: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Shall we change?

It is not the strongest species that survive, nor the most intelligent, but the one most responsive to change

1963 professor Megginson (sometimes wrongly attributed to C. Darwin)

33

Page 34: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Shall we change?

Repetition makes us feel secure and variation makes us feel free.

Robert Hass

34

Page 35: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Shall we change?

35

To win a competition requires fast reaction to changes as limited time is available, performance is needed and it is needed immediately!Andrea UngerTrading World Champion (2008, 2009, 2010, 2012).

Page 36: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Technical Analysis?

36

Page 37: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 37

Hard to apply with machines, human discretion plays too important a role

Technical Analysis?

Page 38: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 38

Concepts such as “Support”, “Resistance”or “Trendline” are hard to code and so are most Patterns of Technical Analysis, these remain tools to use in discretionary trading

Technical Analysis?

Page 39: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 39

Some Chart Patterns can be coded and tested, not always with the expected results…

Technical Analysis?

Page 40: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 40

Engulfing Ptn Outside Bar Inside BarPin Bar 1 Bar retracement

Technical Analysis?

Page 41: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Testing condition:Breakout of PatternStop Loss opposite extreme of PatternTake Profit = 3 x Stop Loss

Trend filters:0 – No filter1 – Close > ExpAvg20) for Long Close < ExpAvg(20) for Short

2 –ExpAvg(20) > ExpAvg(50) for Long ExpAvg(20) < ExpAvg(50) for Short3 – 1 and 2

41

Technical Analysis?

Page 42: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 42

Engulfing Ptn Trend Filte

Technical Analysis?

Page 43: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 43

Engulfing Ptn Trend Filter

Technical Analysis?

Page 44: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 44

Engulfing Ptn Trend Filter

Technical Analysis?

Page 45: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 45

Engulfing Ptn Trend Filter

Technical Analysis?

Page 46: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 46

Engulfing Ptn Trend FilterAND ADX(5) < 35

Technical Analysis?

Page 47: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 47

Pin Bar Ptn Trend Filter =AND ADX(5) < 35

Technical Analysis?

Page 48: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 48

OutSide Bar Ptn Trend Fi= 3 AND ADX(5) < 35

Technical Analysis?

Page 49: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 49

InSide Bar Ptn Trend FilteAND ADX(5) < 35

Technical Analysis?

Page 50: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 50

Retracement Ptn Trend F= 3 AND ADX(5) < 35

Technical Analysis?

Page 51: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 51

• OutSide Bars ended up to be the best Pattern in the group but generally none was excellent

• InSide Bars did not lead to an effective Strategy• Trend filters have demonstrated to be critical• ADX filter helps in targetting better entries• Engulfing Pattern is maybe the most disappointing

considering its expectations• All these and other Patterns are better traded

manually with additional Human Discretion to identify best Price Zones to trigger the entries

Technical Analysis?

Page 52: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 52

Algorithmic approach and Statistical Analysis can be merged together under “quant” definition and play the most important role in modern Technical Analysis

Technical Analysis?

Page 53: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger 53

Machines can help in speeding up development but they ALWAYS need a human supervision in order to duly treat the results!

Technical Analysis?

Page 54: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

L’evoluzione del Trading Algoritmico e il ruolo dell’Analisi Tecnica ‐ A. Unger

Thank YOU!

54

http://skilledacademy.com/www.oneyeartarget.com

Page 55: The evolution of Algorithmic Trading and the role of Technical … · 2018. 6. 25. · Algorithmic Trading and the role of Technical Analysis. Why SIAT? SIAT – Società Italiana

#SIAT2.0

Ringraziamenti

@SIAT_Italia

SIAT Associazione

Corso Magenta 56 - 20123 MILANO

[email protected]

+39 02 72094033