Skip to content

Instantly share code, notes, and snippets.

@jonashackt
jonashackt / molecule-cheatsheet.bash
Last active May 29, 2020 13:18
Molecule cheatsheed
### error :
Validation completed successfully.
--> Test matrix
└── default
├── create
└── prepare
--> Scenario: 'default'
--> Action: 'create'
@ultragtx
ultragtx / RSI_and_StochRSI.py
Created November 17, 2018 18:30 — forked from so1tsuda/RSI_and_StochRSI.py
Functions that calculate RSI and StochRSI which give the same value as Trading View. I wrote these functions as RSI and StochRSI functions from TA-Lib give different values as TV.
# calculating RSI (gives the same values as TradingView)
# https://stackoverflow.com/questions/20526414/relative-strength-index-in-python-pandas
def RSI(series, period=14):
delta = series.diff().dropna()
ups = delta * 0
downs = ups.copy()
ups[delta > 0] = delta[delta > 0]
downs[delta < 0] = -delta[delta < 0]
ups[ups.index[period-1]] = np.mean( ups[:period] ) #first value is sum of avg gains
@AlexanderWillner
AlexanderWillner / runMojaveVirtualbox.sh
Last active January 8, 2020 03:22
Install macOS 10.14 Mojave on VirtualBox on macOS
Moved to https://github.com/AlexanderWillner/runMacOSinVirtualBox