Версия 6.2 2025.10.09
New (V6.20):

Dashboard visible in both live and Strategy Tester.
Vertical layout: Balance → Equity → P/L → Drawdown → Orders count.
Dynamic update every second via timestamp check.
Manual control buttons:

🟡 Close BUY
🔵 Close SELL
🟢 Close ALL

Watermark centered on the chart: “Gold Buy Trader EA by GPA” (auto-repositions on resize).

Improved color coding and spacing for readability.

3. Risk & Trade Handling

Preserved:
Equity and Price-based hard-stop logic (closes basket when conditions are met).
Trailing stop per position and basket trailing logic.
Enhanced:
Equity stop and price stop now use helper functions for safer retry-close behavior.
Added defensive clamps and better refresh calls to prevent stuck orders.
Drawdown calculation fixed to prevent false negative (negative DD%) values when equity > balance.

4. Stability & Error Handling

Replaced all direct OrderClose calls with TryOrderClose() — adds retry and logs error.
All OrderModify calls go through SafeModify(), logging failure codes.
Added protection against uninitialized indicators or empty values.
Cleaned duplicate dashboard object creation (uses prefix search + delete on deinit).

5. Usability Improvements

Buttons are larger, vertically aligned, and color-coded (Buy = gold, Sell = blue, All = green).
Fonts unified (Arial).
Consistent prefix naming for all UI objects (GBT_UI_).
works on any chart time frame; internal profiles (Scalp/Day/Swing) still respect their own time frames.
Safer deinit cleanup — avoids leftover labels.
Can run in the Strategy Tester without freezing (lighter UI loop and conditional updates).

6. What’s Not Changed

Entry logic (RSI + Stoch confluence).
Grid distance and lot scaling formulae.
Hard stop calculation (still same percent & point-based structure).
SL/TP logic and per-profile independence.