Skip to content

Instantly share code, notes, and snippets.

View NVentimiglia's full-sized avatar

Nicholas Ventimiglia NVentimiglia

View GitHub Profile
@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 April 28, 2021 03:55
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
using System;
using UnityEngine;
using System.Diagnostics;
using System.Reflection;
public class ReflectionTester : MonoBehaviour
{
public class TestObject
{
public string Value { get; set; }