retesere20

Untitled

Feb 8th, 2018
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #region Using declarations
  2. using System;
  3. using System.ComponentModel;
  4. using System.Xml.Serialization;
  5. using NinjaTrader.Data;
  6. using System.Windows.Media;
  7. using System.ComponentModel.DataAnnotations;
  8. using NinjaTrader.Gui;
  9. using System.Net.Http;
  10. using System.Collections.Specialized;
  11. using System.Text;
  12. using System.Windows;
  13. using NinjaTrader.NinjaScript.DrawingTools;
  14. using NinjaTrader.Gui.Chart;
  15. using System.Collections.Generic;
  16.  
  17. #endregion
  18.  
  19. // This namespace holds all indicators and is required. Do not change it.
  20. namespace NinjaTrader.NinjaScript.Indicators.VolumeRatiosBonus
  21. {
  22. public enum EnumSessName
  23. {
  24. PreMarket_MarketOpen,
  25. MarketOpen_LunchStart,
  26. LunchStart_LunchClose,
  27. LunchClose_MarketClose
  28. };
  29.  
  30.  
  31. [CategoryOrder("Parameters", 1)]
  32. public class TimeZoneColors : Indicator
  33. {
  34.  
  35. private Dictionary<int, string> eventNames = new Dictionary<int, string>() {
  36. {1, "PreMarket"},
  37. {2, "MarketOpen"},
  38. {3, "LunchTime"},
  39. {4, "MarketClose"},
  40. };
  41. private Dictionary<int, string> SessionNames = new Dictionary<int, string>();
  42.  
  43. private AddOns.mymethodstt tt = new AddOns.mymethodstt();
  44. private bool Allowed_To_Run=false;
  45.  
  46. private int HowManyZones =0;
  47. private Dictionary<int, int> HrSt = new Dictionary<int, int>();
  48. private Dictionary<int, int> MinSt = new Dictionary<int, int>();
  49. private Dictionary<int, int> HrEn = new Dictionary<int, int>();
  50. private Dictionary<int, int> MinEn = new Dictionary<int, int>();
  51. private Dictionary<int, Brush> regionColor = new Dictionary<int, Brush>();
  52.  
  53. private Dictionary<int, EnumSessName> ZoneNames = new Dictionary<int, EnumSessName>();
  54. private Dictionary<int, DashStyleHelper> DashStyle= new Dictionary<int, DashStyleHelper>();
  55. private Dictionary<int, bool> Fullshaded = new Dictionary<int, bool>();
  56. private Dictionary<int, bool> ShowVerticalLines = new Dictionary<int, bool>();
  57. private Dictionary<int, bool> ShowWithLabel = new Dictionary<int, bool>();
  58. private Dictionary<int, int> LabelshowXFromTop = new Dictionary<int, int>();
  59. private Dictionary<int, bool> ShortLineInsteadFull = new Dictionary<int, bool>();
  60. private Dictionary<int, int> ShortLineXfromTop = new Dictionary<int, int>();
  61. public Dictionary<int, bool> EnabledRegions = new Dictionary<int, bool>();
  62.  
  63.  
  64.  
  65. }
  66. }
RAW Paste Data