Skip to content

Instantly share code, notes, and snippets.

View niquedegraaff's full-sized avatar

Dominique de Graaff niquedegraaff

View GitHub Profile
@niquedegraaff
niquedegraaff / ZigZagLib.pine
Created February 24, 2023 16:17
Enhanced version 3 of built-in ZigZagLib library. This version supports HH LH / LL HL labels to be shown, it also exports a prevPivot function that allows the user to retrieve the previous privot with same isHigh value as latest pivot. It also stores a isHigher field in the Pivot type. This can come in handy if user wants to calculate a trend (o…
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TradingView
//@version=5
library("ZigZag", overlay = true)
// ZigZag Library
// v3, 2023.02.23
// This code was written using the recommendations from the Pine Script™ User Manual's Style Guide:
@niquedegraaff
niquedegraaff / ZigZag.pine
Last active February 23, 2023 15:27
ZigZag version 4 candidate for Tradingview
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TradingView
//@version=5
library("ZigZag", overlay = true)
// ZigZag Library
// v4, 2023.02.23
// This code was written using the recommendations from the Pine Script™ User Manual's Style Guide:
@niquedegraaff
niquedegraaff / gist:8c2f45dc73519458afeae14b0096d719
Created November 16, 2022 20:27
Smart Money Concepts [LuxAlgo] [Enhanced]
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/
// © LuxAlgo
//@version=5
indicator("Smart Money Concepts [LUX]", "Smart Money Concepts [LuxAlgo]"
, overlay = true
, max_labels_count = 500
, max_lines_count = 500
, max_boxes_count = 500
, max_bars_back = 500)
@niquedegraaff
niquedegraaff / pine
Created December 18, 2021 21:48
Momentum Waves
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © niquedegraaff
// @version=5
// @description Calculates momentum waves
indicator(title = "MOMENTUM_WAVES",
shorttitle = "MOMENTUM WAVES",
precision = 2,
overlay = false)
@niquedegraaff
niquedegraaff / NQ - Cities Skylines - Save Texture.jsx
Last active September 12, 2015 00:37
Photoshop Script for auto save (diffuse and alpha) png textures for Cities Skylines
#target photoshop
////////////////////////////////////////////////
/// ///
/// P H O T O S H O P S C R I P T ///
/// ---------------------------------------- ///
/// PNG TEXTURE EXPORTS FOR CITIES SKYLINES ///
/// ///
/// Date: 9/12/2015 ///
/// Version: 1.1 ///
@niquedegraaff
niquedegraaff / fog.fs
Created September 9, 2014 19:55
Trainfever fog.fs shader (res/shaders/util/fog.fs)
#version 150
uniform vec3 fogColor;
in float fogFactor;
vec3 applyFog(vec3 color) {
//return mix(1.5*vec3(.215, .225, .245), color, fogFactor);
vec3 newColor = vec3(0.4, 0.7, 1.0);
return mix(newColor, color, fogFactor * 1.3);
------------------------------------------------------------------------------------
-- S3D TRANSPARENCY.LUA - By Nique de Graaff --
-- You MUST install luaforwindows in the default installation folder for --
-- this to work! Then run this in the ILives Reader on your sc4model --
------------------------------------------------------------------------------------
-- This script will: --
-- Enable framebuffer blending --
-- Set Alpha Func to "Always" --
-- Set Src Blend to "Source alpha" --
-- Set Dest Blend to "one minus source alpha" --
@niquedegraaff
niquedegraaff / activiteit4.php
Created February 11, 2012 16:13
School - PHP - Week 2
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<title>Week 1 - Activiteit 4 - Omrekenen Celcius naar Fahrenheit</title>
</head>
<body>
<?php
/**
* @author Dominique de Graaff
@niquedegraaff
niquedegraaff / activiteit1.php
Created February 11, 2012 13:21
School - PHP - Week 1
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<title>Week 1 - Activiteit 1 - Hello World!</title>
</head>
<body>
<?php
/**
* @author Dominique de Graaff