Skip to content

Instantly share code, notes, and snippets.

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461;netstandard2.0;netcoreapp2.0</TargetFrameworks>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<AssemblyName>Apex.TradingGrains</AssemblyName>
<RootNamespace>Apex.TradingGrains</RootNamespace>
<Description>Apex.TradingGrains</Description>
<PackageId>Apex.TradingGrains</PackageId>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
@bboyle1234
bboyle1234 / IMigratable.cs
Last active February 27, 2018 03:02
IMigratable
using Newtonsoft.Json;
namespace Migratable {
[JsonConverter(typeof(MigratableConverter))]
public interface IMigratable {
}
}
<?xml version="1.0" encoding="utf-8"?>
<NinjaTrader>
<TradingHours xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<HolidaysSerializable />
<PartialHolidaysSerializable />
<Sessions>
<Session>
<BeginDay>Sunday</BeginDay>
<BeginTime>0</BeginTime>
<EndDay>Monday</EndDay>
using ApexInvesting.Platform.Utilities;
using ApexTough.Providers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApexTough.TradingPlatform.Utilities {
@bboyle1234
bboyle1234 / DoubleExtensions.cs
Last active January 15, 2022 19:06
Humanizes numbers. Makes them human-readable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Math;
namespace Foo {
public static class DoubleExtensions {
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
@bboyle1234
bboyle1234 / EnumerableExtensions.cs
Last active March 23, 2016 05:35
MemberwiseEqualityObject
using System;
using System.Linq;
using System.Collections.Generic;
namespace ApexInvesting.Platform {
public static class EnumerableExtensions {
/// <summary>
/// Convert Enumerable to HashSet.
/// </summary>
/// <typeparam name="T"></typeparam>
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace ApexInvesting.Platform.Utilities.Drawing {
public enum HorizontalShiftPermissions {
@bboyle1234
bboyle1234 / DisposalTest.cs
Created June 19, 2015 18:16
DisposalTest
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;