Skip to content

Instantly share code, notes, and snippets.

View robinraszka's full-sized avatar

Robin Raszka robinraszka

View GitHub Profile
@robinraszka
robinraszka / animated-gif.md
Created May 25, 2016 20:10 — forked from stephenlb/animated-gif.md
DIY How to make your own HD Animated GIF Generator

HD Animated GIF Generator

You can make your own HD animated GIF generator.
Follow along with these commands to get started.

HD Animated GIF Generator

git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
//@version=3
study("OBV @robinraszka", "vOBV", precision=0)
len = input(26, "Period")
t = tickerid(syminfo.prefix, ticker, session.regular)
src = security(t, period, close)
obv(src) => cum(change(src) > 0 ? volume : change(src) < 0 ? - volume : 0 * volume)
osc = obv(src)
data = (osc - sma(osc, len))
hline(50, "Zero", silver)
plot(data, "OBV", black, 2, transp=0)
//@version=3
study("TradeMaster BUYY™", overlay=true)
long = crossover(close, ema(high[3], 9)) and close > ema(close, 26)
plotchar(long, transp=100)
alertcondition(long, "BUYY", "BUYY")