MCPcopy Create free account
hub / github.com/TraderOracle/ATAS / TOVolImb

Class TOVolImb

ATASVolImb.cs:32–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 #endregion
31
32 [DisplayName("TO VolImb")]
33 public class TOVolImb : Indicator
34 {
35 #region VARIABLES
36 private const String sVersion = "1.4";
37
38 private struct days
39 {
40 public int idx;
41 public string label;
42 public string ticker;
43 public decimal price;
44 public decimal price2;
45 public Color c;
46 public string source;
47 }
48 private List<days> lsS = new List<days>();
49 private bool bFirstDisplay = false;
50
51 private const int LINE_WICK_ENG = 16;
52 private const int LINE_TOUCH_ENG = 17;
53 private const int DOUBLE_VOL_IMB_DROP_R = 11;
54 private const int DOUBLE_VOL_IMB_DROP_G = 10;
55 private const int ENG_BB = 13;
56 private const int TRAMPOLINE = 12;
57 private const int VOL_IMB_DROP_BB_G = 14;
58 private const int VOL_IMB_DROP_BB_R = 15;
59 private const int VOL_IMB_DROP_G = 8;
60 private const int VOL_IMB_DROP_R = 9;
61 private const int VOL_IMB_ENGULFING = 7;
62 private const int VOL_IMB_FILL = 3;
63 private const int VOL_IMB_REVERSE = 4;
64 private const int VOL_IMB_TOUCH_G = 5;
65 private const int VOL_IMB_TOUCH_R = 6;
66 private const int VOL_IMB_WICK_G = 1;
67 private const int VOL_IMB_WICK_R = 2;
68 private int iLastTouchBar = 0;
69 private decimal iLastTouchPrice = 0;
70 private int iLastWickBar = 0;
71 private decimal iLastWickPrice = 0;
72 private WebClient client1 = new WebClient();
73 private readonly PaintbarsDataSeries _paintBars = new("Paint bars");
74 List<int> LineTouches = new List<int>();
75 private int iFutureSound = 0;
76 private int iPrevSound = 0;
77 private String sWavDir = @"C:\Program Files (x86)\ATAS Platform\Sounds";
78 private int _lastBar = -1;
79 private bool _lastBarCounted;
80 private int iOffset = 9;
81 private int iFontSize = 10;
82 private int iMinBars = 3;
83 private int iLineWidth = 2;
84 private int iScreenShotX = 300;
85 private int iScreenShotY = 400;
86 private bool bScreenShotted = false;
87 private string sKPValues = "BH2,6027.14,BMid,5981.25,BL2,5935.36,CH2,6047.91,CL2,5914.59,DH2,6064.95,DL2,5897.55,EH2,6080.52,EL2,5881.98,CH3,6006.46,CMid,5959.25,CL3,5910.28,DH3,6026.71,DL3,5891.70,EH3,6045.10,EL3,5874.15,DH4,5919.21,DMid,5859.25,DL4,5797.42,EH4,5944.78,EL4,5771.03,EH5,5915.46,EMid,5858.50,EL5,5801.54";
88
89 #region SETTINGS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected