A trading strategy is a systematic methodology used for buying and selling in the securities markets. A trading strategy is based on predefined rules and criteria used when making trading decisions. Active VS. Passive trading strategies Passive Strategies (존버) – Buying bitcoin 10 years ago and just holding it until today Semi-active Strategies (Long-only Strategies)…
Category: Data analytics
Measuring Reward and Risk of an Investment
Let’s load the msft.csv dataframe and make it chart: we can get some summary statistics by using this commnad: Mean return is the performance metric for the reward so we have daily mean return of 11 percent. The standard deviation of returns is the metric for the risk (volatility) which is 1.72 Calculate daily returns…
Price Changes and Financial Returns
Drop the NaN value without changing the original data frame Change a column label MSFT to Price: Last day of price: Compare between two days of price: Absolute price changes are not meaningful yet, this is how we can calculate relative changes The output of percentage change: save the file to csv format:
Financial Data Analysis using Pandas
Loading Financial Data from the Web Ticker Symbol (회사를 나타내는 표식(약자)) BA: Boeing (US Stock) MSFT: Microsoft Corp (US Stock) ^DJI: Dow Jones Industrial Average (US Stock Index) EURUSD=X: Exchange Rate for Currency Pair EUR/USD (Forex) GC=F: Gold Price (Precious Metal / Commodity) BTC-USD: Bitcoin in USD (Cryptocurrency) Inspection Visualization Normalizing (정규화) Another Example Load…
How to Get Free Historical Daily Bar Data
Go to https://finance.yahoo.com In the search field, type in your desired symbol or company name and select the appropriate result Click the ‘Historical Data’ tab Set the date range to ‘MAX’ Hit the ‘Apply’ button Click the ‘Download Data’ link just below the ‘Apply’ button Enjoy your daily bar data Reference https://fxgears.com/index.php?threads/how-to-acquire-free-historical-tick-and-bar-data-for-algo-trading-and-backtesting-in-2020-stocks-forex-and-crypto-currency.1229/#post-19298
Working with Open Data Sources (Quandl)
How to retrieve historical average prices for the BTC/USD exchange rate Obtains such a key by signing up for a free Quandl account on the Quandl sign up page. Data requests requiring an API key expect the key to be provided as the parameter api_key. In the example, the API key (which is found on…