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

Method MarkEuroSession

Defibrillator.cs:148–169  ·  view source on GitHub ↗
(int bar)

Source from the content-addressed store, hash-verified

146 }
147
148 private void MarkEuroSession(int bar)
149 {
150 _highS = "Euro High";
151 _lowS = "Euro Low";
152 var candle = GetCandle(bar);
153 var diff = InstrumentInfo.TimeZone;
154 var time = candle.Time.AddHours(diff);
155
156 if (time.Minute >= 0 && time.Hour >= 2 && time.Hour <= 3)
157 {
158 if (candle.High > _highest)
159 {
160 _highest = candle.High;
161 _highBar = bar;
162 }
163 if (candle.Low > _lowest)
164 {
165 _lowest = candle.Low;
166 _lowBar = bar;
167 }
168 }
169 }
170
171 private void MarkOvernightSession(int bar)
172 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected