Skip to content

Instantly share code, notes, and snippets.

@ianxtreem
ianxtreem / audio-sink-linux.sh
Created August 31, 2024 22:01 — forked from Sudo-Ivan/audio-sink-linux.sh
Linux Audio Sink Script
#!/bin/bash
# Colors for output
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
# Check command existence
command_exists() {
command -v "$1" >/dev/null 2>&1
import hassapi as hassapi
'''
Hello World App
Args:
'''
class HelloWorld():
def initialize(self):
@ianxtreem
ianxtreem / 100 5min MA using FXCM
Created November 11, 2015 12:49
A 100 period 5 min moving average using FXCM data
study(title="Moving Average", shorttitle="MA100 5min", overlay=true)
out = interval > 15 ? na : isintraday ? security('FX:GBPUSD', "5", sma(close,100)) : na
plot(out, color=maroon, style=circles, title="MA100 5min")
@ianxtreem
ianxtreem / 100 5min ma
Created November 11, 2015 12:45
A pine script for a 100 period 5 minute moving average that shows up on all minute charts less than 15 minutes. For tradingview.
study(title="Moving Average", shorttitle="MA100 5min", overlay=true)
out = interval > 15 ? na : isintraday ? security(ticker, "5", sma(close,100)) : na
plot(out, color=blue, style=circles, title="MA100 5min")
@ianxtreem
ianxtreem / 100hma
Last active November 11, 2015 12:51
study(title="Moving Average", shorttitle="MA100 1h", overlay=true)
tics = 100
out = isweekly or ismonthly ? na : security(ticker, "60", sma(close,tics))
plot(out, color=blue, style=line, linewidth=2, title="MA100 1h")