Skip to content

Instantly share code, notes, and snippets.

@ChadThackray
ChadThackray / dca-backtesting-py.py
Created June 22, 2024 15:45
Backtest Your Dollar Cost Average Strategy easily in Python
# 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):
@anbento0490
anbento0490 / ecb_rates_manipulation.r
Last active January 19, 2019 19:01
Extract EUR/GBP & EUR/USD rates from ECB website, combine them and plot with ggplot2
#1. Install and load packages
install.packages("rsdmx")
library(rsdmx)
library(dplyr)
library(ggplot2)
----------------------------------------------
#2. Get ECB EUR/GBP exchange rates