A D1 or H4 candle starts at a different moment on a UTC+0 server than on a UTC+2 server. So a moving average or ATR on H4/D1 gives other values, and the same EA trades differently from broker to broker. Most gold and forex brokers run on New York close (UTC+2, UTC+3 while the US is on summer time), but not all of them.
This include builds the big candles itself from H1 bars, always on the New York close clock. On a NY close broker the candles are the same as the MT5 ones. On any other broker you get the candles you would see on a NY close broker.
LS_ClockInit(setting, fixedUtc) detects the server clock:
LS_NYBars bars;
bars.Init(_Symbol, PERIOD_D1); // OnInit, loads the H1 history
if(bars.Update()) { ... } // OnTick, true when a candle has just closed
bars.Close(1), bars.High(1) ... // shift 1 = last closed candle
bars.TimeNY(1) // open time on the NY clock
bars.Closes(arr, 200) // closes as array for your own indicator code Works for H2, H3, H4, H6, H8, H12 and D1. Only H1 bars that really exist go into a candle, weekends and holidays are not filled. A candle counts as closed when the first H1 bar of the next one opens.
The demo EA opens no trades. It prints the detected clock, the last broker candles next to the NY close candles, and one line every time a new one closes. The screenshot: the same XAUUSD tick data once on a NY close server and once on a CET server (tester). On the CET server the MT5 H4 candles are different, the candles from LS_NYBars match the NY close server (the small rest is the different spread of the two test symbols).

Can I trade right now - session, session end and quote check in one call
One call before you send an order: is the session open, how long until it closes, are quotes still coming in, is trading allowed. Gives you the reason when the answer is no.
Trend or Chop? A Variance-Ratio Scoreboard That Shows Whether Your Symbol Trends or Mean-Reverts on Each Horizon
Shows whether your symbol tends to trend or to mean-revert, and on which horizon. For five horizons (2, 4, 8, 16 and 32 bars by default) the indicator computes the variance ratio: the variance of multi-bar price changes divided by the variance of one-bar changes, scaled by the horizon. A ratio above 1 means that moves tend to continue, below 1 that they tend to reverse. The lines show the ratio over a rolling window, and a panel gives a scoreboard with ratio, z-score and verdict TREND, CHOP or NOISE for the recent window and for the whole history, plus one line to paste into a comment. It is a statistics tool and gives no trade signals.
Risk Lot Calculator
Calculates the lot size for a risk % and a stop distance on any symbol, using the broker's own profit calculation, so the result is exact for forex, gold, indices, stocks and crypto.
MACD Signals
Indicator edition for new platform.