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

Method OnCalculate

LineOverload/LineOverload.cs:307–342  ·  view source on GitHub ↗
(int bar, decimal value)

Source from the content-addressed store, hash-verified

305 #endregion
306
307 protected override void OnCalculate(int bar, decimal value)
308 {
309 if (bar == 0)
310 {
311 Rectangles.Clear();
312 _lastBarCounted = false;
313 return;
314 }
315
316 if (!bFirstDisplay)
317 {
318 bFirstDisplay = true;
319
320 LoadFromService(sKPValues, "KP");
321 LoadFromService(sMQValues, "MQ");
322 LoadFromService(sBlindSpots, "BS");
323 LoadFromService(sDarkPool, "DP");
324 LoadFromService(sCTLevels, "CT");
325 LoadCSVLines();
326 LoadMancini(sManciniSupport, cManSupp);
327 LoadMancini(sManciniResist, cManRest);
328 }
329
330 if (_lastBar != bar)
331 {
332 if (_lastBarCounted)
333 {
334 }
335 _lastBar = bar;
336 }
337 else
338 {
339 if (!_lastBarCounted)
340 _lastBarCounted = true;
341 }
342 }
343
344 }
345}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected