utrade forex summit (19 oct) part 3 · 2019. 10. 22. · pullback / scalping strategy (not every...

47
Gary Yang Gary Yang How How Systematic Trading Systematic Trading Can Improve Your Trading Can Improve Your Trading

Upload: others

Post on 02-Apr-2021

12 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Gary YangGary Yang

How How Systematic Trading Systematic Trading

Can Improve Your TradingCan Improve Your Trading

Page 2: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

So why do you trade?

Another source of income?

Mid career switch?

Fulltime trading?Retirement job?

Financial independence?

To become a To become a

consistently consistently

profitable Trader!profitable Trader!

Page 3: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Percentages of profitable and losing traders at major brokerages, Source: FM Intelligence

Page 4: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High
Page 5: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Over-risk (Trading Size)

Jumping from System to System

Poor Capitalization

Emotional Trading - Refuse to Cut Loss

Jumping into Trades (FOMO)

No Trading Plan

Following the Herd

Page 6: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Over-risk (Trading Size)

Jumping from System to System

Poor Capitalization

Emotional Trading - Refuse to Cut Loss

Jumping into Trades (FOMO)

No Trading Plan

Following the Herd

23

22

6

2

40

2

0

Page 7: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Over-risk (Trading Size)

Jumping from System to System

Poor Capitalization

Emotional Trading - Refuse to Cut Loss

Jumping into Trades (FOMO)

No Trading Plan

Following the Herd

23

22

6

2

40

2

0

Page 8: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Jumping from System to System

• Weak Risk Management

• Lack of long-term perspective

• No Rules

Over-risk (Trading Size)

Jumping into Trades (FOMO)22

23

40

• System that does not work

• Strategy that does not fit their personality type

• Lack of confident in the strategy

• Cannot deal with Losing streak

• Weak Risk Management

• Lack of long-term perspective

• Unrealistic Expectations

Page 9: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Systematic Approach to Trading.

Page 10: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Systematic Approach to Trading.

1. Test a strategy I found online2. Develop and improve on the strategy3. Develop understanding via statistics from backtesting

Page 11: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Jan 2008 Dec 2014 Dec 2018

In Sample (7 Years) Out of Sample (4 Years)

Total Data Available for Testing

Before we even start with the backtesting, we need to divide the entire pool of data available for out-of-sample

and in-sample testing. This process is also called ‘Walk Forward Optimising’

Page 12: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Original RulesOriginal RulesOriginal RulesOriginal Rules

RULES FOR LONG SET UP

1. Close Greater than 100-EMA

2. Close less than 5 EMA

3. 3 Lower Lows

4. Pend a Limit order below 3rd lower lows based on 0.5 times the 10 ATR

5. Exit if close is higher than entry price

6. SL based on 10% of balance

Rules for Short set up are the opposite of Long

Page 13: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Original RulesOriginal RulesOriginal RulesOriginal Rules

1111

2222

3333

Pend Pend Pend Pend

Buy Limit orderBuy Limit orderBuy Limit orderBuy Limit order

ATR Value: 17 pipsATR Value: 17 pipsATR Value: 17 pipsATR Value: 17 pips

5EMA5EMA5EMA5EMA 100EMA100EMA100EMA100EMA

Page 14: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In Sample testing 1 - Base on Original Rules

Jan 2008 to Dec 2014

Page 15: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Common sense revisions based on observation of 1Common sense revisions based on observation of 1Common sense revisions based on observation of 1Common sense revisions based on observation of 1stststst backtestbacktestbacktestbacktest

1.1.1.1. Close Greater than 200 SMAClose Greater than 200 SMAClose Greater than 200 SMAClose Greater than 200 SMA

2.2.2.2. Remove FAST MARemove FAST MARemove FAST MARemove FAST MA

3. 3 lower lows

4. Pend a Limit order below 3rd lower lows based

on 0.5 times the 10 ATR

5. Exit if close is higher than entry price

6. SL based on 5% of balance

1. Close Greater than 100 EMA

2. Close less than 5 EMA

3. 3 Lower Lows

4. Pend a Limit order below 3rd lower lows

based on 0.5 times the 10 ATR

5. Exit if close is higher than entry price

6. SL based on 10% of balance

OriginalOriginalOriginalOriginal Revised Revised Revised Revised

Page 16: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

11112222

3333

Pend Pend Pend Pend

Buy Limit orderBuy Limit orderBuy Limit orderBuy Limit order

200SMA200SMA200SMA200SMA

ATR Value: 17 pipsATR Value: 17 pipsATR Value: 17 pipsATR Value: 17 pips

Page 17: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In Sample Testing 2

Jan 2008 to Dec 2014

Page 18: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In-sample Testing 1 In-sample Testing 2

Total Net Profits - $135.92 $2,023.83

Max DD 23.27% 10.16%

Profit Factor 0.99 1.34

No. of Trades 549 352

Page 19: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In-sample Testing 1

In-sample Testing 2

Page 20: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Next Test:

To find the optimal values for:

1)ATR Period and

2)Percentage of ATR for entry order

Page 21: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

o ATR Period

Original ATR Value: 10 Periods

ATR Period Value To Test: 3 to 9 period / Step 1 (3,4,5..9 etc)

o Percentage of ATR for entry order

Original Percentage of ATR value: 0.5

To Test: 0.5 to 1.0 / Step 0.1 (e.g. 0.5,0.6,..1.0 etc)

Page 22: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

11112222

3333

ATR Period: to test 3,4,5,6,7,8,9

(which ATR period is the most profitable settings for this strategy?)

0.5, 0.6, 0.7, 0.8, 0.9, 1.0 x ATR

((((Which multiple of ATR is best value for pending order?)

Page 23: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Highest ProfitsCluster of Above Average Profits

Set 1: ATR 4 Period / 0.9

Set2: ATR 6 Period / 0.9

Page 24: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Revised Rules for in-Sample Testing 3 and 4

1. Closed above 200 SMA

2. 3 lower lows

3. Pend a Limit order below 3rd lower lows based on

(Set 1) 4 ATR / 0.9 times ATR

and

(Set 2) 6 ATR / 0.9 times ATR

Page 25: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In Sample Testing 3 (Set 1: ATR 4, 0.9)

Jan 2008 to Dec 2014

Page 26: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In Sample Testing 4 (Set 2: ATR 6, 0.9)

Jan 2008 to Dec 2014

Page 27: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In-sample

Testing 1

In-sample

Testing 2

In-sample

Testing 3 (Set 1)

In-sample

Testing 4 (set 2)

Total Net Profits - $135.92 $2,023.83 3,727.12 3,877.14

Max DD 23.27% 10.16% 9.89% 10.09%

Profit Factor 0.99 1.34 2.29 2.33

No. of trades 549 352 202 204

Page 28: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

In-sample Testing 1

In-sample Testing 2

In-sample Testing 3 (Set 1)

Page 29: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Jan 2008 Dec 2014 Dec 2018

In Sample (7 Years) Out of Sample (4 Years)

Total Data Available for Testing

NEXT

Page 30: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Out of Sample Testing (Set 1: ATR 4 period / 0.9)

Jan 2015 to Dec 2018

Page 31: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Out of Sample

In Sample

Combined Testing (Set 1: ATR 4 period / 0.9)

Jan 2008 to Dec 2018

Page 32: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Total Net Profits 5,425.42

Max DD 9.89

Profit Factor 2.78

No. of Trades 277

Winning Percentage 95.31%

Shapre Ratio 0.1

Stagnation in days / % 939 / 23.39%

Page 33: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

� 9/132 losing months

� 16/132 flat months

� 2/11 losing years

� 2 losing months in 2008, 2011, 2012

� No losing months in 2009, 2010,

2013, 2014, 2015

Page 34: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Additional Bonus of SystematicSystematic Trading

Page 35: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Set 1: ATR 4 Period / 0.9 Set2: ATR 6 Period / 0.9

Set 3: ATR 3 Period / 0.8

Mini Portfolio Based on 3 best settings using the same strategy?

Page 36: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High
Page 37: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Comparing results between Set 1 and Set 2Comparing results between Set 2 and Set 3Comparing results between Set 1 and Set 3

Page 38: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Set 1 Set 2 Set 3

Set 1 0.88 0.8

Set 2 0.88 0.71

Set3 0.8 0.71

Moderate: < 0.4

Moderate High: < 0.4 – 0.7

High: < 0.7 – 1.0

Page 39: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

CONCLUSION

Page 40: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Out of Sample

In Sample

Page 41: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Long Set Up

1.Closed above 200 SMA

2.3 lower lows

3.Pend a Limit order below 3rd lower lows based on

•(Set 1) 4 ATR / 0.9 times ATR

•(Set 2) 6 ATR / 0.9 times ATR

4.Exit if close is higher than entry price

5.SL based on 5% of balance

Rules for Short set up are the opposite of Long

Page 42: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Stress Testing for Trading Strategy Robustness

•Data Re-sampling

•Randomly missing “x” percentage of trades

Jan 2004 Dec 2014 Dec 2018

In Sample (7 Years) Out of Sample

(4 Years)

Total Data Available for Testing

Forward Testing

Page 43: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

� Pullback / scalping strategy (not every broker supports scalping)

� Developed a strategy that’s likely to work in future

� High win rates with many small profits

� Inverted risk : reward (majority wins with huge occasional losses)

� Infrequent trading opportunities

• Does this strategy fits your personality?

• Is this strategy effective?

• More likely stick to this strategy in a drawdown?

• More likely to stick to the same risk?

• Less likely to jump into any random trade?

Page 44: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Backtesting is a key component of effective trading system development. It is accomplished by reconstructing, with historical data, trades that would have occurred in the past using rules defined by a given strategy.

Backtesting is NOT the Holy Grail, but it provides an

objective way in using past statistics to gauge the

effectiveness of the strategy.

Page 45: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Make Sound Trading Decisions, Backed by Data.

Not Gut Feel. Not Baseless Assumptions. Not Hearsay.

Page 46: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

“Victorious warriors win first and then go

to war, while defeated warriors go to war

first and then seek to win.” – Sun Tze

Page 47: UTRADE Forex Summit (19 Oct) Part 3 · 2019. 10. 22. · Pullback / scalping strategy (not every broker supports scalping) Developed a strategy that’s likely to work in future High

Thank you.Make Trading Decisions Based On Data.