This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Licensed under the MIT License. See comment below for full licence information. | |
| import pandas as pd | |
| from backtesting import Backtest, Strategy | |
| from backtesting.test import GOOG | |
| import math | |
| class DCA(Strategy): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #1. Install and load packages | |
| install.packages("rsdmx") | |
| library(rsdmx) | |
| library(dplyr) | |
| library(ggplot2) | |
| ---------------------------------------------- | |
| #2. Get ECB EUR/GBP exchange rates |