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

Method LoadMancini

LineOverload/LineOverload.cs:176–209  ·  view source on GitHub ↗
(String sLevels, Color cl)

Source from the content-addressed store, hash-verified

174 #region LOAD MANCINI
175
176 private void LoadMancini(String sLevels, Color cl)
177 {
178 try
179 {
180 int i = 0;
181 string[] sb = sLevels.Split(", ");
182 string price = string.Empty;
183 foreach (string s in sb)
184 {
185 String sa = s.Replace("(major)", "").Trim();
186 days a = new days();
187 a.idx = i;
188 if (s.Contains("-"))
189 {
190 a.price = Convert.ToDecimal(sa.Split("-")[0].Trim());
191 if (sa.Split("-")[1].Trim().Length == 2)
192 a.price2 = Convert.ToDecimal(sa.Substring(0, 2) + sa.Split("-")[1].Trim());
193 else
194 a.price2 = Convert.ToDecimal(sa.Split("-")[1].Trim());
195 }
196 else
197 {
198 a.price = Convert.ToDecimal(sa.Substring(0, 4).Trim());
199 }
200 a.label = s.Contains("major") ? "Mancini MAJOR" : "Mancini";
201 a.c = cl;
202 lsS.Add(a);
203 }
204 i++;
205 }
206 catch (Exception ex)
207 {
208 }
209 }
210
211 #endregion
212

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected