Skip to content

Instantly share code, notes, and snippets.

View harrijon's full-sized avatar

Jonathan Harris harrijon

View GitHub Profile
@basnijholt
basnijholt / cto_line.pine
Created September 18, 2021 08:23
CTO Line indicator for TradingView
//@version=4
study(title="CTO Line", shorttitle="CTO", overlay=true, resolution="")
smma(src, length) =>
smma = 0.0
smma := na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length
smma
v1 = smma(hl2, 15)
m1 = smma(hl2, 19)
m2 = smma(hl2, 25)
v2 = smma(hl2, 29)
@m4rk4
m4rk4 / espn-fcast
Created October 30, 2020 01:53
espn-fcast
var socket;
var fcastUrl;
fetch('https://fastcast.semfs.engsvc.go.com/public/websockethost')
.then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' + response.status);
return;
}