Skip to content

Instantly share code, notes, and snippets.

View NVentimiglia's full-sized avatar

Nicholas Ventimiglia NVentimiglia

View GitHub Profile
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// https://gist.github.com/NVentimiglia/52e0ce1ad871fdb4bd86153523d17fa9
//@version=5
indicator("[Nic] Intraday Volume Cycles")
sample = input.int(10, "Days to sample")
// heatmap colors
chm1 = #ff0000 // extra high red
@NVentimiglia
NVentimiglia / Zig Zag Percent
Created July 1, 2021 05:05
Zig Zag Percent TradingView
//@version=4
study("Zig Zag Percent [Nic]", overlay = true, max_bars_back = 500)
prd1 = input(defval = 20, title="ZigZag Period 1", minval = 2, maxval = 1000)
showlabel = input(defval = true, title = "Show Label")
showhline = input(defval = true, title = "Show Pivot Line")
showline = input(defval = true, title = "Show Zig Line")
upcol1 = input(defval = color.green, title = "Zig Zag Up Color")
dncol1 = input(defval = color.red, title = "Zig Zag Down Color")
txtcol = input(defval = color.white, title = "Text Color")
zz1style = input(defval = "Dashed", title = "Zig Zag Line Style", options = ["Dashed", "Dotted"])
@NVentimiglia
NVentimiglia / NIC_OptionVolume
Created June 25, 2021 04:16
ThinkScript OptionVolume : Histogram of near the money option volume
#NIC_OptionVolume
# @NicTheMajestic
# ThinkScript Histogram of near the money option volume
# Requires setting of option expiry
declare lower;
input optionExpiry = "210716";
def price = Round(open, 0);
@NVentimiglia
NVentimiglia / TDClient.cs
Created May 4, 2021 15:14
TDAmeritrade SignIn Api DotNetCore / C#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Runtime.InteropServices;
using System.Text.Json;
using System.Threading.Tasks;
using System.Web;
@NVentimiglia
NVentimiglia / TDClientAlpha.cs
Created May 4, 2021 00:44
TDAmeritrade SignIn Unity3d / DotNet / C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using UnityEngine;
using UnityEngine.Networking;
namespace TDAmeritrade
{
[Serializable]
@NVentimiglia
NVentimiglia / Nic_CumTick
Created April 28, 2021 03:55
ThinkScript : NYSE Cumilitive Indicator
#
# https://github.com/NVentimiglia
# Nic_CumTick
# ThinkScript : NYSE Cumilitive Indicator
#
declare lower;
def upper = no;
input hidecumtick = yes;
input symbol = "$TICK";
@NVentimiglia
NVentimiglia / Nic_IVCorrelation
Last active May 27, 2024 23:11
ThinkScript : IV Correlation, use to identify divergences in implied and realized volatility
#
# https://github.com/NVentimiglia
# Nic_IVCorrelation
# ThinkScript : IV Correlation, use to identify divergences in implied and realized volatility
#
declare lower;
input length = 10;
def ImpVol = IMP_VOLATILITY();
public class SpyService
{
string siteUrl = "https://ssltools.forexprostools.com/technical_summary.php?pairs=166";
HttpClient httpClient = new HttpClient();
public async Task<string> Get()
{
try
{
HttpResponseMessage request = await httpClient.GetAsync(siteUrl);
public class ApplicationSignInManager : SignInManager<UserData, string>
{
public ApplicationSignInManager(ApplicationUserManager userManager, IAuthenticationManager authenticationManager)
: base(userManager, authenticationManager)
{
}
public override Task<ClaimsIdentity> CreateUserIdentityAsync(UserData user)
{
return user.GenerateUserIdentityAsync((ApplicationUserManager)UserManager);
@NVentimiglia
NVentimiglia / LiteNetLibBenchmarkTest
Last active January 10, 2017 16:01
LiteNetLib BenchmarkTest
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LiteNetLib;
using LiteNetLib.Utils;
namespace LibSample