Skip to content

Instantly share code, notes, and snippets.

View atengberg's full-sized avatar

atengberg atengberg

  • sidereal
View GitHub Profile
@kaigouthro
kaigouthro / Pine_Script_5_Mini_Reference.md
Last active March 12, 2025 06:27
A minimal reference to pine script v5

Pine Script Mini-Reference

This document provides a concise reference for Pine Script, a programming language specifically designed for trading strategies and indicators within TradingView.

Operators

Arithmetic Operators

Operator Description
@TraderX0
TraderX0 / MutliTimeFramRSI.txt
Last active December 31, 2022 11:08
Pinescript trading view multi time frame RSI - Allows you to plot upto 3 MTF RSI's on one panel
// All credits go to CMoody for the original Idea...
// THE MTFRSI is an extension of his original script to now encorporate 3RSI's on one panel
study(title="TraderX0 3-RSI MTF", shorttitle="X0_3_RSI_MTF", precision=0)
//candle source
src = close
//rsi setup
//first RSI inputs
firstRsiTimeframe = input(title="Select 1st RSI Timeframe", type=resolution, defval="60")
@brinsche
brinsche / gist:d84fe9e7f2f0a128ec8a
Created July 22, 2015 21:59
Toolbar shadow in coordinatorlayout pre lollipop
elevation_compat.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="270"
android:endColor="@android:color/transparent"
android:startColor="#50000000" />
</shape>
styles.xml
<style name="ElevationCompatTheme">
@jlongster
jlongster / testgen.js
Created June 7, 2013 04:25
basic generator async lib
// based off of https://gist.github.com/creationix/5544019
// these could probably be condensed more, but I'm just doing this
// quickly
function call(func) {
var args = Array.prototype.slice.call(arguments, 1);
return function(callback) {
args.push(callback);
@creationix
creationix / output.log
Created May 8, 2013 22:02
Working version of generator async code sample. Using node from https://github.com/andywingo/node/tree/v8-3.19
tim@touchsmart:~/Code$ nvm use v0.11.2-generators
Now using node v0.11.2-generators
tim@touchsmart:~/Code$ node --harmony testgen.js
<Buffer 76 61 72 20 66 73 20 3d 20 72 65 71 75 69 72 65 28 27 66 73 27 29 3b 0a 66 75 6e 63 74 69 6f 6e 20 72 65 61 64 46 69 6c 65 28 70 61 74 68 2c 20 65 6e 63 ...>
Sleeping for 2000ms...
Done