(String sLevels)
| 175 | #endregion |
| 176 | |
| 177 | private void LoadLines(String sLevels) |
| 178 | { |
| 179 | string sDesc = string.Empty; |
| 180 | string sPrice = string.Empty; |
| 181 | |
| 182 | try |
| 183 | { |
| 184 | int i = 2; |
| 185 | sLevels = sLevels.Replace(" ", "").Replace(";", ","); |
| 186 | sLevels = sLevels.Replace(" ", "").Replace(";", ","); |
| 187 | string[] sb = sLevels.Split(","); |
| 188 | string price = string.Empty, desc = string.Empty; |
| 189 | foreach (string sr in sb) |
| 190 | { |
| 191 | if (i % 2 != 0) |
| 192 | price = sr; |
| 193 | else |
| 194 | desc = sr; |
| 195 | |
| 196 | if (!string.IsNullOrEmpty(price) && !string.IsNullOrEmpty(desc)) |
| 197 | { |
| 198 | days a = new days(); |
| 199 | a.idx = i; |
| 200 | a.price = Convert.ToDecimal(price); |
| 201 | a.label = desc; |
| 202 | lsS.Add(a); |
| 203 | } |
| 204 | i++; |
| 205 | } |
| 206 | } |
| 207 | catch (Exception ex) |
| 208 | { |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | protected override void OnCalculate(int bar, decimal value) |
| 213 | { |
nothing calls this directly
no outgoing calls
no test coverage detected