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

Method AMD

toKAMA.cs:50–68  ·  view source on GitHub ↗
(int bar)

Source from the content-addressed store, hash-verified

48 }
49
50 private Color AMD(int bar)
51 {
52 var candle = GetCandle(bar);
53 var diff = InstrumentInfo.TimeZone;
54 var time = candle.Time.AddHours(diff);
55
56 // Distribution
57 if (
58 (time.Hour == 9 && time.Minute >= 11 && time.Minute <= 47) ||
59 (time.Hour == 10 && time.Minute >= 26 && time.Minute <= 50) ||
60 (time.Hour == 11 && time.Minute >= 19 && time.Minute <= 37) ||
61 (time.Hour == 12 && time.Minute >= 07 && time.Minute <= 25)
62 )
63 {
64 return Color.Lime;
65 }
66
67 return Color.FromArgb(80, 244, 252, 0);
68 }
69
70 #endregion
71

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected