This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Benjamin Boyle | |
// Email: [email protected] | |
using System; | |
using System.Runtime.InteropServices; | |
namespace Utils | |
{ | |
///<summary> | |
/// Provides all c# console application shutdown scenarios in a single handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ApexSolid; | |
using ApexSolid.Data; | |
using ApexInvesting.Platform; | |
using NinjaTrader.Data; | |
using NinjaTrader.Indicator; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region class TickDataProvider | |
public static class TickDataProvider { | |
static readonly string default247 = "Default 24/7"; | |
/// <summary> | |
/// Synchronization locks for accessing dataseries entries | |
/// </summary> | |
static readonly Dictionary<string, object> entryLocks = new Dictionary<string, object>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Plotting methods | |
#region PlotLine | |
protected void PlotLine(Graphics graphics, Rectangle bounds, double min, double max, Pen pen, Func<int, double?> GetLineValueAtIndex) { | |
var firstBarIndex = ChartControl.FirstBarPainted; | |
var lastBarIndex = Math.Min(BarsArray[0].Count - 1, ChartControl.LastBarPainted); | |
using (var path = new GraphicsPath()) { | |
for (var barIndex = firstBarIndex; barIndex < lastBarIndex; barIndex++) { | |
var value1 = GetLineValueAtIndex(barIndex); | |
var value2 = GetLineValueAtIndex(barIndex + 1); | |
if (value1.HasValue && value2.HasValue) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 { | |
class Program { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ApexTough.Data { | |
/// <summary> | |
/// Used to mark an object as having a series of timestamps in the local timezone accessible by index. | |
/// Each timestamp is assumed to be greater than or equal to the timestamp before. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
namespace ConsoleApplication1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NinjaTrader.Gui.Design; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Xml.Serialization; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
OlderNewer