Professional Documents
Culture Documents
technical analysis
Technical analysis with MQL
How do you see the future stock price ?
Daily chart
GMMA lines
And the result is Trading plan:
-Enter
-Exit (e.g. stoploss/profit target)
-Position
Common trading strategies
• Trend following
• Enter
• Identify trend(uptrend or downtrend) with combination of different indicators
• E.g. price above MA(s) /short term MA above long term MA->Uptrend
• Exit
• Trend finish(price below MA)
• Profit target
• Stop loss (e.g. fixed stop loss threshold/ATR/Trailing stop etc)
Common trading strategies
• Swing trading
• Mean reversion
• Enter
• RSI/KD/CCI/BB/Support and resistance
• Exit
• Scalping
• Instrument with good enough volatility and small spread
• Each time get small return (e.g. 20 pips)
• Martingale
Major types of technical indicators
30.00
25.00
20.00 CLOSE
MA (3 day)
15.00 EMA (3)
10.00
5.00
0.00
1 2 3 4 5 6 7 8 9 10
• Trading Bands
• Lines above and below a central tendency
• Envelopes
• Lines above and below by a %
• Channels
• Parallel lines above and below prices
Envelope Examples – “Envelope”
- 2 Moving Averages, one shifted up, the other down
- Sell when reach upper envelope, buy when reach lower
60
55
50
45
10000
x1000
November 2002 February April May June July August September November
Envelope Examples – “Price Channel”
- Upper line is Highest High for n bars, Lowest Low for n bars
- Indicate Support and Resistance lines
WAL MART STORES (55.0000, 57.0000, 54.6800, 56.4700, +0.40000), Price Channel (58.0250), Price Channel
65 (48.5500)
Price Channel 64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
10000
x1000
November 2002 February April May June July August September November
Bollinger Bands
60
55
50
45
15000
10000
5000
x1000
September November 2002 February April May June July August September November
Using Bollinger Bands
• “The Squeeze”
• Low volatility followed by break-out, higher volatility
• Lower volatility marks end of trend, Opposite Band turns in at end of trend
• “Walk the Bands”
• Indicates strong trend
• pullbacks to Moving Average
• Sideways trend
• tag of upper, followed by tag of lower band, and visa versa
• If cross Mov Ave, then will continue to Band
Using Bollinger Bands – The Squeeze, Walking the Bands
20000
10000
x1000
25 8 15 22 29 6 13 20 28 10 17 24 1 15 22 29 5 12 19 26 3 16 23 30 7 14 21
April May June July August September October
Moving Average Convergent Divergent (MACD)
• MACD is an updated price momentum indicator (Gerald Appel) which sometimes
includes a signal or trigger line.
• It is a smoothed oscillator based on the point spread difference between two
exponential moving averages, constructed as a (Short – Long) oscillators.
➢ A EMA 26 (long) & a EMA 12(short)
➢ The difference (short - long) is MACD line
➢ EMA 9 to form the SIGNAL or TRIGGER line
➢ Buy when MACD crosses Trigger Line
• Moving Average Convergent Divergent (MACD) is a trend deviation oscillator that
measures the difference between two exponential moving averages of different
lengths.
1. MACD line = subtract a 26 period exponential moving average from a 12 period (a
price oscillator)
2. The SIGNAL line - dotted line is a 9 period exponential moving average of the MACD
line as an early trigger.
• Buy when MACD crosses above Trigger line.
• Sell when MACD crosses below he Trigger line
26 Day
12 DAY
Divergence
of MACD
& Trigger
SELL
SELL
BUY
BUY
Bullish divergence
Bearish divergence
Relative Strength Index
• RSI fluctuates between 0 and 100. When it reaches a peak and turns
down, it identifies a top.
• When it falls and then turns up, it identifies a bottom. The pattern of
RSI peaks and valleys doesn’t change in response to the width of its
time window
Example
Oversold