Algorithmic Trading For Beginners - Automated Analysis & - ,,, - 2019 - Anna's Archive
Algorithmic Trading For Beginners - Automated Analysis & - ,,, - 2019 - Anna's Archive
Volume
TRADINGVIEW
Automated Analysis & Strategies
Algorithmic Trading
For Beginners
AUTOMATED ANALYSIS & STRATEGIES
All rights are reserved by law and in accordance with international conventions.
TradingView ............................................................................. 3
Interpretation .......................................................................... 20
Stochastic ..................................................................................... 22
Algorithms .............................................................................. 37
Conclusions ........................................................................... 53
Legal Disclaimer..................................................................... 58
1
Chapter
A L G O R I T H M I C T R A D I N G
Introduction
The greatest gift you can give someone is the
power to be successful. Giving people the
opportunity to struggle rather than giving them
the things they are struggling for will make them
stronger. Ray Dalio
K N O W L E D G E F O R A R E S P O N S I B L E I N V E S T I N G
1
A L G O R I T H M I C T R A D I N G
Note
At the end of this guide you can find a list of links where you
can get, for free, all the contents mentioned in the
summarizing table above.
2
A L G O R I T H M I C T R A D I N G
2
Chapter
TradingView
One coincidence is just a coincidence, two
coincidences are a clue, three coincidences are a
proof. Agatha Christie
3
A L G O R I T H M I C T R A D I N G
According to the latest data, the TradingView community now has more
than 3 million active users every month. In fact, the peculiarity of this
platform is that it combines graphics with a social component, in which
users share their trading ideas to compare themselves with others and
improve together. To create even more harmony, there are public chats,
where users exchange opinions in real time on the latest market
movements. You will enjoy to learn how to take advantage of this big
community that shares ideas, studies and strategies.
4
A L G O R I T H M I C T R A D I N G
5
A L G O R I T H M I C T R A D I N G
3
Chapter
Let’s start
Past performance is the best predictor of success.
James Harris Simons
6
A L G O R I T H M I C T R A D I N G
2. You can set filters in the way that, upon the occurrence of one or
more conditions, which are the same of the algorithmic indicators or
oscillators, you will receive an alert box (on the screen of the
platform but also via email once set) which will warn you that a
financial instrument or multiple financial instruments are ready to be
analyzed and may open a position on them (e.g. filter results based
on the occurrence of important conditions, from the point of view
7
A L G O R I T H M I C T R A D I N G
With this guide we propose also some filters that are suggested to use.
Those filters are indicated for the three oscillators that are included in this
beginner guide. The oscillators proposed, which are the most used from
technical analysis players, are the Slow Stochastic, the Relative Strength
Index (RSI) and the Bollinger Bands (BB).
Go on https://tradingview.com/screener/ OR click on “Screener” on
the top menu and then click on “Filters”, the blue button on the top right.
You will see that two filters and some sub-filters are already set in default.
We can click on the first filter “Symbol Type” and leave ticked only
Common Stock, because to start we prefer to analyze the common
stocks. Then we can pass to the second filter already set in default,
Exchange. Here we can leave all the exchanges already ticked as sub-filters
(NYSE ARCA, NASDAQ, NYSE).
8
A L G O R I T H M I C T R A D I N G
FIGURE 3.4 T r a d i n g V i e w . Setting the filters in the screener and modification of the default
filters.
3. Average Volume (30 day): (50k) (>50M) - With this filter we make
sure that the stocks taken into consideration are actively traded with
high average volumes, thus excluding all those stocks that are in
short supply of liquidity in the last 30 days.
9
A L G O R I T H M I C T R A D I N G
At this point you can close the pop-up filter box (save it to have these
filters always active) and as you will see, on the top left under
TICKER, a consistent number of matches based on your new set of
filters will be indicated.
FIGURE 3.6 T r a d i n g V i e w . Under TICKER all the matches based on the set of the filters will
be indicated.
10
A L G O R I T H M I C T R A D I N G
FIGURE 3.7 TradingView. Place the financial products in orde r of greater quantity of
volumes traded in the last (or current) session .
Note
11
A L G O R I T H M I C T R A D I N G
The chart will be opened in a new page. From here click on the “Pine
Editor” tab situated in the bottom left part of the page.
Now we can copy/paste one of our study script included in this guide. We
will add the Stochastic study oscillator that can be found in the chapter 5,
Algorithms, STOCHASTIC STUDY.
12
A L G O R I T H M I C T R A D I N G
We can click on “Save” tab on the top right of the Pine Script box. A
pop-up box will ask you to confirm the name of your script, just click on
the blue button “Save”.
13
A L G O R I T H M I C T R A D I N G
FIGURE 3.11 – 3.12 T r a d i n g V i e w . Save the script with the name set by default.
Note
You can find all your saved study scripts in Indicators -->
My Scripts from the top menu in the chart page.
If you want more study scripts you can find them in
Indicators --> Built-ins and in Indicators --> Public
Library. Some of them are completely free, to get some
others you have to pay for.
14
A L G O R I T H M I C T R A D I N G
FIGURE 3.13 T r a d i n g V i e w . Add the script to the chart clicking on Add to Chart tab.
Close the Pine Editor box by clicking again on the “Pine Editor” tab
and you will see the oscillator at work.
FIGURE 3.14 T r a d i n g V i e w . The oscillator (the study) as will be shown after adding it to the
chart.
15
A L G O R I T H M I C T R A D I N G
which is not limited to giving us the signals but also tells us how much
and to what extent that strategy worked in the past. Since the American
billionaire, mathematician and hedge fund manager, James Harris
Simons, a man that built his own fortune thanks to backtests and
algorithms, said that past performance is the best predictor of success, you will
easily understand what kind of power you have in your hands if you use a
solid strategy associated to a good money management and perfect
respect of the imposed rules. In this way you will gain the most important
attitude that every trader, professional or not, obtains only after years and
years of practice, many of them at a loss, the capacity to leave the
emotions away from your trading decisions, with particular reference to
the moment of entry into a financial instrument. So, let's go with this last
step.
From the same page click again on the “Pine Editor” tab situated in the
bottom left part of the page and then click on “New▼ --> Blank strategy
script” situated in the horizontal menu of the Pine Editor box.
FIGURE 3.15 TradingView. Click on New▼ and then Blank strategy script to add a new
strategy script.
Now, as we did for the study, we can copy/paste one of our strategy script
included in this guide. We will add the Stochastic strategy indicator that
can be found in the chapter 5, Algorithms, STOCHASTIC SLOW
STRAGEY.
16
A L G O R I T H M I C T R A D I N G
Note
You will find also two more strategies of the same oscillator
but with different settings. We will consider this part in the
chapter 4, of this guide.
We can click on “Save” tab on the top right of the Pine Script box. A
pop-up box will ask you to confirm the name of your script, just click on
the blue button “Save”.
FIGURE 3.15 – 3.16 TradingView. Save the script. Save the script with the name set by
default.
17
A L G O R I T H M I C T R A D I N G
Note
You can find all your saved strategy scripts in Indicators -->
My Scripts from the top menu in the chart page.
If you want more strategy scripts you can find them in
Indicators --> Built-ins and in Indicators --> Public
Library. Some of them are completely free, to get some
others you have to pay for.
To add our indicator in the chart just click on “Add to Chart” tab in the
top right of the Pine Script box. After a few seconds you will see the
strategy in the screen and the Strategy Tester tab will be opened with the
results of the backtest.
Note
If you see No data or the percentages look like too low do not
worry, in the next chapter, Interpretation, you will find more
settings to do to get the strategy more useful to the scope.
18
A L G O R I T H M I C T R A D I N G
19
A L G O R I T H M I C T R A D I N G
4
Chapter
Interpretation
Rule No.1: Never lose money. Rule No.2: Never
forget rule No.1. Warren Buffett
20
A L G O R I T H M I C T R A D I N G
FIGURE 4.1 – 4.2 TradingView. Clicking on Settings from the strategy in the chart , it is
possible to modify the strategy rules to set the backtesting in the most profitable way as
possible.
In the Inputs tab we can find the parameters of the algorithm used. In our
case, for the Stochastic Slow Strategy script that we are using, we can find,
from the top: Length, OverBought, OverSold and then all the settings for
the Backtest Time Range (FROM: Month, Day Year - TO: Month, Day,
Year). In these last parameters it is possible to change the reference period
for backtesting.
21
A L G O R I T H M I C T R A D I N G
Stochastic
STUDY (or Indicator in TradingView)
22
A L G O R I T H M I C T R A D I N G
FIGURE 4.4 T r a d i n g V i e w .
By default, the signal of BUY LONG always come the day
after the condition is completed.
FIGURE 4.5 T r a d i n g V i e w .
By default, the signal of CLOSE or SELL SHORT always
come the day after the condition is completed.
STRATEGY
23
A L G O R I T H M I C T R A D I N G
24
A L G O R I T H M I C T R A D I N G
FIGURE 4.6 T r a d i n g V i e w .
By default, the signal of BUY LONG always come the day
after the condition is completed.
25
A L G O R I T H M I C T R A D I N G
FIGURE 4.7 T r a d i n g V i e w .
By default, the signal of CLOSE or SELL SHORT always
come the day after the condition is completed .
STRATEGY
For the strategy based on the RSI rules, there are also three different
versions included.
1- RSI Strategy.
Features: Signal to BUY LONG and SELL SHORT. The algorithm
will tell you BUY LONG when the blue line crosses the oversold
line from the bottom upwards and SELL SHORT when the blue
line crosses the overbought line from top to downwards.
Additional settings available: Backtest Range.
Default settings: Backtest Range (Beginning of the year 2019 to the
present day), Initial Capital (USD 100,000), Order size (USD
10,000), Commission (0.3% of the Order size).
2- RSI Strategy (Only Buy).
Features: Signal to BUY LONG and CLOSE POSITION
(LONG). No SELL SHORT signal will be provided. The
algorithm will tell you BUY LONG when the blue line crosses the
oversold line from the bottom upwards and CLOSE POSITION
when the blue line crosses the overbought line from top to
downwards.
Additional settings available: Backtest Range.
26
A L G O R I T H M I C T R A D I N G
27
A L G O R I T H M I C T R A D I N G
How to use:
FIGURE 4.8 T r a d i n g V i e w .
By default, the signal of BUY LONG always come the day
after the condition is completed .
FIGURE 4.9 T r a d i n g V i e w .
By default, the signal of CLOSE or SELL SHORT always
come the day after the condition is completed.
28
A L G O R I T H M I C T R A D I N G
STRATEGY
As for the others strategies included, you will find three different versions
based on the Bollinger Bands strategy.
1- Bollinger Bands Study-Strategy.
Features: Signal to BUY LONG and SELL SHORT. The algorithm
will tell you BUY LONG when, following a closure outside the
lower Band there will be a subsequent internal closure to the same
Band and SELL SHORT when, following a closure outside the
upper Band, there will be a subsequent internal closure to the same
Band.
Additional settings available: Backtest Range.
Default settings: Backtest Range (Beginning of the year 2019 to the
present day), Initial Capital (USD 100,000), Order size (USD
10,000), Commission (0.3% of the Order size).
2- Bollinger Bands Study-Strategy (Only Buy).
Features: Signal to BUY LONG and CLOSE POSITION
(LONG). No SELL SHORT signal will be provided. The
algorithm will tell you BUY LONG when, following a closure
outside the lower Band, there will be a subsequent internal closure
to the same Band and CLOSE POSITION when, following a
closure outside the upper Band, there will be a subsequent internal
closure to the same Band.
Additional settings available: Backtest Range.
Default settings: Backtest Range (Beginning of the year 2019 to the
present day), Initial Capital (USD 100,000), Order size (USD
10,000), Commission (0.3% of the Order size).
3- Bollinger Bands Study-Strategy (Stop Loss, Take Profit).
Features: Signal to BUY LONG, SELL SHORT, CLOSE
POSITION (LONG, SHORT). The algorithm will tell you BUY
LONG when, following a closure outside the lower Band there
will be a subsequent internal closure to the same Band and SELL
29
A L G O R I T H M I C T R A D I N G
After launching any strategy, the result will look like the following
screenshots.
30
A L G O R I T H M I C T R A D I N G
FIGURE 4.10 – 4.11 TradingView. In this example, the financial product under our
consideration, performed 100% Profitable with a 46.01% of Net Profit. The Max Drawdown
has been only 0.32%. The Buy & Hold Return ha s been 17.63%. The algorithm has
outperformed the stock performance. We used the Stochastic strategy.
31
A L G O R I T H M I C T R A D I N G
FIGURE 4.12 – 4.13 TradingView. In our example, the financial product under our
consideration, performed 100% Profitable with a 81.68% of Net Profit. The Max Drawdown
has been only 0.3%. The Buy & Hold Return ha s been 1.82%. The algorithm has largely
outperformed the stock performance . We used the RSI strategy.
32
A L G O R I T H M I C T R A D I N G
FIGURE 4.14 – 4.15 TradingView. In our example, the financial product under our
consideration, performed 100% Profitable with a 48.02% of Net Profit. The Max Drawdown
has been only 0.3%. The Buy & Hold Return ha s been 4.65%. The algorithm has largely
outperformed the stock performance. We used the Bollinger Bands strategy .
33
A L G O R I T H M I C T R A D I N G
34
A L G O R I T H M I C T R A D I N G
FIGURE 4.16 T h e above chart presents the frequency distribution of daily net revenues for
positions included in 2018. The Goldman Sachs Group, Inc.
35
A L G O R I T H M I C T R A D I N G
36
A L G O R I T H M I C T R A D I N G
5
Chapter
Algorithms
STOCHASTIC STUDY
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
//Parameter Setting
periodK = input(14, title="K", minval=1)
periodD = input(3, title="D", minval=1)
smoothK = input(3, title="Smooth", minval=1)
//Stochastic
k = sma(stoch(close, high, low, periodK), smoothK)
d = sma(k, periodD)
//Stochastic Plots
plot(k, title="%K", style=plot.style_line, linewidth=3,
color=color.blue, transp=0)
plot(d, title="%D", style=plot.style_line, linewidth=3,
color=color.red, transp=0)
h0 = plot(80, title="Upper Line",
style=hline.style_dashed, linewidth=2, color=color.red,
transp=0)
h1 = plot(20, title="Lower Line",
style=hline.style_dashed, linewidth=2,
color=color.green, transp=0)
fill(h0, h1, title="No Trade Zone", color=color.yellow,
transp=80)
37
A L G O R I T H M I C T R A D I N G
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
//Parameter Setting
length = input(14, minval=1)
OverBought = input(80)
OverSold = input(20)
smoothK = 3
smoothD = 3
//Slow Stochastic
k = sma(stoch(close, high, low, length), smoothK)
d = sma(k, smoothD)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
38
A L G O R I T H M I C T R A D I N G
//Histogram Plot
//plot(strategy.equity, title="equity",
color=color.yellow, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
//Parameter Setting
length = input(14, minval=1)
OverBought = input(80)
OverSold = input(20)
smoothK = 3
smoothD = 3
//Slow Stochastic
k = sma(stoch(close, high, low, length), smoothK)
d = sma(k, smoothD)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
39
A L G O R I T H M I C T R A D I N G
strategy.risk.allow_entry_in(strategy.direction.long)
//Histogram Plot
//plot(strategy.equity, title="equity",
color=color.yellow, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
40
A L G O R I T H M I C T R A D I N G
initial_capital=100000, currency="USD",
commission_type=strategy.commission.percent,
commission_value=0.3, default_qty_type=strategy.cash,
default_qty_value=10000)
//Parameter Setting
length = input(14, minval=1)
OverBought = input(80)
OverSold = input(20)
smoothK = 3
smoothD = 3
//Slow Stochastic
k = sma(stoch(close, high, low, length), smoothK)
d = sma(k, smoothD)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
//Limits Settings
stopLoss = input(10, title = "Stop loss percentage",
minval = 1)
takeProfit = input(10, title = "Take profit
percentage", minval = 1)
41
A L G O R I T H M I C T R A D I N G
//Histogram Plot
//plot(strategy.equity, title="equity",
color=color.yellow, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
//Parameter Setting
src = close, len = input(14, minval=1, title="Length")
//RSI
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 +
up / down))
//RSI Plots
plot(rsi, title="Stochastic", style=plot.style_line,
linewidth=3, color=color.blue, transp=0)
band1 = plot(70, title="Upper Line",
style=hline.style_dashed, linewidth=2, color=color.red,
transp=0)
band0 = plot(30, title="Lower Line",
style=hline.style_dashed, linewidth=2,
color=color.green, transp=0)
42
A L G O R I T H M I C T R A D I N G
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//version 12.19
//Parameter Setting
src = close, len = input(14, title="Length", minval=1)
OverBought = input(70)
OverSold = input(30)
//RSI
vrsi = rsi(src, len)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
43
A L G O R I T H M I C T R A D I N G
//Histogram Plot
//plot(strategy.equity, title="equity",
color=color.yellow, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//version 12.19
//Parameter Setting
src = close, len = input(14, title="Length", minval=1)
OverBought = input(70)
OverSold = input(30)
//RSI
vrsi = rsi(src, len)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
44
A L G O R I T H M I C T R A D I N G
strategy.risk.allow_entry_in(strategy.direction.long)
//Histogram Plot
//plot(strategy.equity, title="equity",
color=color.yellow, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//version 12.19
//Parameter Setting
45
A L G O R I T H M I C T R A D I N G
//RSI
vrsi = rsi(src, len)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
//Limits Settings
stopLoss = input(10, title = "Stop loss percentage")
takeProfit = input(10, title = "Take profit
percentage")
46
A L G O R I T H M I C T R A D I N G
//Histogram Plot
//plot(strategy.equity, title="equity",
color=color.yellow, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
//Parameter Setting
source = close
length = input(20, minval=1)
mult = input(2.0, minval=0.001, maxval=50)
//Bollinger Bands
basis = sma(source, length)
dev = mult * stdev(source, length)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
47
A L G O R I T H M I C T R A D I N G
//BB Plots
h0 = plot(upper, title="upper", style=plot.style_line,
linewidth=3, color=color.red, transp=0)
h1 = plot(lower, title="lower", style=plot.style_line,
linewidth=3, color=color.green, transp=0)
plot(basis, title="basis", style=plot.style_line,
linewidth=3, color=color.blue, transp=0)
fill(h0, h1, title="No Trade Zone", color=color.yellow,
transp=80)
//plot(strategy.equity, title="equity",
color=color.red, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
48
A L G O R I T H M I C T R A D I N G
currency="USD",
commission_type=strategy.commission.percent,
commission_value=0.3, default_qty_type=strategy.cash,
default_qty_value=10000)
//Parameter Setting
source = close
length = input(20, minval=1)
mult = input(2.0, minval=0.001, maxval=50)
//Bollinger Bands
basis = sma(source, length)
dev = mult * stdev(source, length)
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
//BB Plots
h0 = plot(upper, title="upper", style=plot.style_line,
linewidth=3, color=color.red, transp=0)
h1 = plot(lower, title="lower", style=plot.style_line,
linewidth=3, color=color.green, transp=0)
49
A L G O R I T H M I C T R A D I N G
strategy.risk.allow_entry_in(strategy.direction.long)
//plot(strategy.equity, title="equity",
color=color.red, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
//@version=4
//author=@https://www.fiverr.com/piazzasalotto
//v. 12.19
//Parameter Setting
source = close
length = input(20, minval=1)
mult = input(2.0, minval=0.001, maxval=50)
//Bollinger Bands
basis = sma(source, length)
dev = mult * stdev(source, length)
50
A L G O R I T H M I C T R A D I N G
//Backtest Range
backTestSectionFrom = input(title = "FROM", defval =
true, type = input.bool)
FromMonth = input(defval = 1, title = "Month",
minval = 1)
FromDay = input(defval = 1, title = "Day",
minval = 1)
FromYear = input(defval = 2019, title = "Year",
minval = 1900)
//BB Plots
h0 = plot(upper, title="upper", style=plot.style_line,
linewidth=3, color=color.red, transp=0)
h1 = plot(lower, title="lower", style=plot.style_line,
linewidth=3, color=color.green, transp=0)
plot(basis, title="basis", style=plot.style_line,
linewidth=3, color=color.blue, transp=0)
fill(h0, h1, title="No Trade Zone", color=color.yellow,
transp=80)
//Limits Settings
stopLoss = input(10, title = "Stop loss percentage",
minval = 1)
takeProfit = input(10, title = "Take profit
percentage", minval = 1)
51
A L G O R I T H M I C T R A D I N G
strategy.entry("BBSHORT", strategy.short,
comment="BBSHORT")
//plot(strategy.equity, title="equity",
color=color.red, linewidth=2,
style=plot.style_histogram, trackprice=true, transp=50)
52
A L G O R I T H M I C T R A D I N G
6
Chapter
Conclusions
Investing is a business where you can look very
silly for a long period of time before you are
proven right. Bill Ackman
T he magic formula for the markets has not yet been invented. The
positive results can come with a lot of study, application,
continuous observation of the markets and even with some losses.
The more they burn, the more they will be useful for the future.
In today’s world there is no room for improvisation, rather it is necessary
to develop a sensitivity for details and to feel a healthy distrust of what
seems easy, avoiding to follow head down the path of the crowds.
With this guide our goal is to give the beginner in algorithmic trading a
vision of the magnitude, completeness and effectiveness of this system.
TradingView is just one of the many ways in which excellent algorithms
based on technical indicators and oscillators can be programmed and
used. What was previously done by the technical financial analyst with
careful and lengthy analysis, is now done in a few seconds by a computer
through a handful of lines of code. Today, thanks to platforms such as
TradingView, it is possible to trade, saving a lot of time and resources, but
above all, keeping the emotional factor out of operation. We focus only
on the interpretation of the signals and calculations provided by the
53
A L G O R I T H M I C T R A D I N G
Yahoo Finance - Stock Market Live, Quotes, Business & Finance News
https://finance.yahoo.com/
Market insights and news of the investment gurus. Value investing screens and
valuation tools.
https://gurufocus.com/
Investing offers free real time quotes, portfolio, streaming charts, financial news,
live stock market data and more.
https://investing.com/
MarketWatch provides the latest stock market, financial and business news. Get
stock market quotes, personal finance advice, company news and more.
https://marketwatch.com/
54
A L G O R I T H M I C T R A D I N G
TradingView Beginner’s Guide 2019 - Unofficial guide for a better look to all the
function of the platform
https://forex4noobs.com/tradingview-beginners-guide-2019/
The economy and finance in general, and, investments and online trading
specifically make up a fascinating and exciting world. Do not let yourself
ruin all the poetry of this world by losing your savings because you have
been hurried and unprepared.
Below we provide you with some useful links to start to understand what
you are about to do. All the contents proposed below are free.
How The Economic Machine Works by Ray Dalio
https://www.youtube.com/watch?v=PHe0bXAIuk0
William Ackman: Everything You Need to Know About Finance and Investing in
Under an Hour
https://www.youtube.com/watch?v=WEDIj9JBTC8
Technical Analysis
http://www.mrao.cam.ac.uk/~mph/Technical_Analysis.pdf
55
A L G O R I T H M I C T R A D I N G
56
A L G O R I T H M I C T R A D I N G
57
A L G O R I T H M I C T R A D I N G
Legal Disclaimer
Government Required Disclaimer
58
A L G O R I T H M I C T R A D I N G
…COMING SOON…
On the right side of the chart
New algorithmic strategies and smart considerations for a winning trading
Preorder at [email protected]
Thanks to M.M.V. for all her time spent to give us suggestions and analysis to the
success of this guide.
59