Skip to content

Instantly share code, notes, and snippets.

Joshua Ulrich joshuaulrich

Block or report user

Report or block joshuaulrich

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@flare9x
flare9x / R Simple Back Test Script - 30min ES.R
Last active Apr 11, 2018
R Simple Back Test Script - 30min ES
View R Simple Back Test Script - 30min ES.R
# Back test simple moving average strategy
# Use 30min ES Data
require(TTR)
require(quantmod)
require(lubridate)
require(dplyr)
require(microbenchmark)
i=1
out_results <- data.frame()
@romainfrancois
romainfrancois / output.txt
Created Dec 14, 2013
Extract promises and their environments from ...
View output.txt
> f <- function(...) {
+ promises(environment())
+ }
> g <- function(x = 3, ...) {
+ z <- 4
+ f(z = z, ..., x = x)
+ }
> h <- function(..., a = 2) {
@halpo
halpo / Makefile
Created Nov 17, 2011
Makefile for R Packages
View Makefile
# Makefile for generating R packages.
# 2011 Andrew Redd
#
# Assumes Makefile is in a folder where package contents are in a subfolder pkg.
# Roxygen uses the roxygen2 package, and will run automatically on check and all.
PKG_VERSION=$(shell grep -i ^version pkg/DESCRIPTION | cut -d : -d \ -f 2)
PKG_NAME=$(shell grep -i ^package pkg/DESCRIPTION | cut -d : -d \ -f 2)
R_FILES := $(wildcard pkg/R/*.R)
You can’t perform that action at this time.