Skip to content

Instantly share code, notes, and snippets.

View FriendlyUser's full-sized avatar
🙂
AI will replace me

David Li FriendlyUser

🙂
AI will replace me
View GitHub Profile
@FriendlyUser
FriendlyUser / info-box.typ
Created March 31, 2023 17:09 — forked from te-lang-wakker/info-box.typ
Titled & stacking textbox for Typst
// todo: key this by the provided label or just use dependency injection
#let this-counter = counter("info-box")
#let info-box(
title: none,
sections: none,
label: none,
caption: none,
radius: 3pt,
inset: 16pt,
@FriendlyUser
FriendlyUser / starter_system_alpaca.py
Created December 14, 2021 16:17 — forked from raposatech/starter_system_alpaca.py
Starter System with Alpaca Integration
class AlpacaStarterSystem(DiversifiedStarterSystem):
'''
Carver's Starter System without stop losses, multiple entry rules,
a forecast for position sizing and rebalancing, and multiple instruments.
Adapted from Rob Carver's Leveraged Trading: https://amzn.to/3C1owYn
Allows live trading via the Alpaca API.
DiversifiedStarterSystem found here:
https://gist.github.com/raposatech/d3f10df41c8745b00cb608bd590a986d
@FriendlyUser
FriendlyUser / code.py
Created August 11, 2021 14:09 — forked from shashankvemuri/code.py
This gist contains all the code needed for the algorithm.
import requests
import pandas as pd
from yahoo_fin import stock_info as si
from pandas_datareader import DataReader
import numpy as np
tickers = si.tickers_sp500()
recommendations = []
for ticker in tickers: