R Tutorial : Why do people trade?
Key Takeaways
The video tutorial covers the basics of trading, including the reasons people trade, types of trades, and the mechanics of trading, using R programming language and quantstrat package
Full Transcript
before to do some quants trip let's establish the reasons people trade and what a trade is first and foremost a trade is simply the act of buying or selling an asset whether that's a financial security such as stock that is ownership of a company's equity a bond that is ownership of a company's or government's debt or a tangible physical product such as commodities like gold oil metals and corn and this is done through converting cash such as dollars into ownership of this product and either converting the product such as sit shares in the company's stock back in the cash hopefully for a profit or actually taking delivery of a physical good such as an oil company taking a shipment of crude oil free Fineman while making a profit from acting on creating opportunities is one reason for trading there are others certain companies whose business revolves around commodities and they're the financial markets to protect themselves from the business impact of price movements of an underlying commodity for example Hershey's might want to establish a good price for chocolate airlines want to minimize the impact the price movement of oil has on their business and so on for instance if the price of oil arises too much an airline doesn't protect itself against that it would either have to raise ticket prices while its competitors don't or make a lot less profit large financial institutions might want to increase or decrease their exposure to various sources of returns and the riskiness that comes with them at the heart of the matter is that financial instruments bear risk and a payoff allegedly for bearing that risk the aim of a systematic trading strategy is to make an educated guess as to when the ratio of reward to risk is favorable enough to bear the risk and in turn gain compensation while not bearing that risk when the compensation is insufficient in terms of the mechanics of trading there are essentially two types of trades divergence also called momentum or trend trading is the belief that a quantity will continue to increase or decrease if it has already been increasing or decreasing respectively a class of hedge funds known as commodity trading advisors or CT AAS have made a lot of money on proper trend-following trading techniques these classes of strategies are characterized by suffering small losses in trennis markets while making a great deal of money when a trend establishes the opposite style of trading is convergence meaner version oscillation or contrarian style trading this type of trading philosophy is one that attempts to predict when a certain quantity will reverse direction for instance the famed warren buffett its value investing philosophy is one that buys companies after the price has suffered a considerable amount of depreciation in the hopes that this price depreciation has mostly run its course and will reverse the near future contrarian trading styles were classified by many small gains while suffering the occasional larger loss when entering the depreciating position too early let's move on to some exercises
Original Description
Want to learn more? Take the full course at https://learn.datacamp.com/courses/financial-trading-in-r at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Before introducing quantstrat, let's establish the reasons people trade, and what a trade is.
First and foremost, a trade is simply the act of buying or selling an asset--whether that's a financial security (such as a stock--that is, ownership of a company's equity, a bond--that is, ownership of a company's, or government's debt), or a tangible, physical product (such as commodities like gold, oil, metals, and corn).
This is done through converting cash (such as dollars) into ownership of this product, and either converting the product (such as shares in a company's stock) back into cash (hopefully for a profit), or actually taking delivery of a physical good (such as an oil company taking a shipment of crude oil for refinement).
While making a profit from acting on trading opportunities is one reason for trading, there are others. Certain companies whose business revolves around commodities enter the financial markets to protect themselves from the business impact of price movements of an underlying commodity (for example, Hershey's might want to establish a good price for chocolate, airlines want to minimize the impact the price movement of oil has on their business, and so on. For instance, if the price of oil rises too much and an airline doesn't protect itself against that, it would either have to raise ticket prices while its competitors don't or make a lot less profit). Large financial institutions might want to increase or decrease their exposure to various sources of returns, and the riskiness that comes with them. At the heart of the matter is that financial instruments bear risk and a payoff (allegedly) for bearing that risk. The aim of a systematic trading strategy is to make an educated guess as to when the ratio of reward to risk is fav
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DataCamp · DataCamp · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SQL Server Tutorial: Date manipulation
DataCamp
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
R Tutorial: Adding aesthetics to represent a variable
DataCamp
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
Python Tutorial: Preparation for modeling
DataCamp
Python Tutorial: Machine Learning modeling steps
DataCamp
R Tutorial: The prior model
DataCamp
R Tutorial: Data & the likelihood
DataCamp
R Tutorial: The posterior model
DataCamp
R Tutorial: An Introduction to plotly
DataCamp
R Tutorial: Plotting a single variable
DataCamp
R Tutorial: Bivariate graphics
DataCamp
Python Tutorial: Customer Segmentation in Python
DataCamp
Python Tutorial: Time cohorts
DataCamp
Python Tutorial: Calculate cohort metrics
DataCamp
Python Tutorial: Cohort analysis visualization
DataCamp
R Tutorial: Building Dashboards with flexdashboard
DataCamp
R Tutorial: Anatomy of a flexdashboard
DataCamp
R Tutorial: Layout basics
DataCamp
R Tutorial: Advanced layouts
DataCamp
Python Tutorial: Time Series Analysis in Python
DataCamp
Python Tutorial: Correlation of Two Time Series
DataCamp
Python Tutorial: Simple Linear Regressions
DataCamp
Python Tutorial: Autocorrelation
DataCamp
R Tutorial: The gapminder dataset
DataCamp
R Tutorial: The filter verb
DataCamp
R Tutorial: The arrange verb
DataCamp
R Tutorial: The mutate verb
DataCamp
R Tutorial: What is cluster analysis?
DataCamp
R Tutorial: Distance between two observations
DataCamp
R Tutorial: The importance of scale
DataCamp
R Tutorial: Measuring distance for categorical data
DataCamp
Python Tutorial: Plotting multiple graphs
DataCamp
Python Tutorial: Customizing axes
DataCamp
Python Tutorial: Legends, annotations, & styles
DataCamp
Python Tutorial: Introduction to iterators
DataCamp
Python Tutorial: Playing with iterators
DataCamp
Python Tutorial: Using iterators to load large files into memory
DataCamp
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
SQL Tutorial: Tables: At the core of every database
DataCamp
SQL Tutorial: Update your database as the structure changes
DataCamp
Python Tutorial: Classification-Tree Learning
DataCamp
Python Tutorial: Decision-Tree for Classification
DataCamp
Python Tutorial: Decision-Tree for Regression
DataCamp
Python Tutorial: Census Subject Tables
DataCamp
Python Tutorial: Census Geography
DataCamp
Python Tutorial: Using the Census API
DataCamp
R Tutorial: A/B Testing in R
DataCamp
R Tutorial: Baseline Conversion Rates
DataCamp
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
R Tutorial: Introduction to qualitative data
DataCamp
R Tutorial: Understanding your qualitative variables
DataCamp
R Tutorial: Making Better Plots
DataCamp
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
DataCamp
SQL Tutorial: Database design
DataCamp
Python Tutorial: Introduction to spaCy
DataCamp
Python Tutorial: Statistical Models
DataCamp
Python Tutorial: Rule-based Matching
DataCamp
More on: AI Workflow Automation
View skill →Related Reads
📰
📰
📰
📰
AI lesson planning: how Spanish teachers use ChatGPT to save 5 hours per week
Dev.to AI
AI-Powered Smart Presets: Consistent Color Correction Across Venues for Freelance Event Photographers
Dev.to AI
AXbit - an experimental visual astrodynamics lab
Dev.to · Oleksii Trofymchuk
How to build a faceless YouTube channel with AI in 30 days
Dev.to · Already Here LLC
🎓
Tutor Explanation
DeepCamp AI