mt5-manager/docs/publish/code/07_cpp.txt
Yuriy Bykov Yuriy Bykov 97a0ec37d4 Prepare article part 4 for publication
Article:
- rename the deployment section to "Развёртывание через config/services.ini"
- keep only first-level sections in the table of contents, drop the
  archive entry
- add the warning block and the archive table in the series format
- rename screenshots to meaningful English names

Publishing helpers (docs/publish):
- build_article_html.py builds the HTML fragment for the site editor with
  anchored headings, linked table of contents, captions and code blocks
- code/ holds each code block as a separate file, description.txt the
  short description

Code:
- static/script.js: bump version to 0.3.0

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 23:43:05 +03:00
11 lines
504 B
Text
//--- Состояние терминала
const bool connected = (bool)TerminalInfoInteger(TERMINAL_CONNECTED);
const int ping_last = (int)TerminalInfoInteger(TERMINAL_PING_LAST);
//--- Состояние торгового счёта
const long login = AccountInfoInteger(ACCOUNT_LOGIN);
const double balance = AccountInfoDouble(ACCOUNT_BALANCE);
const double equity = AccountInfoDouble(ACCOUNT_EQUITY);
// ...
const int positions = PositionsTotal();
const long updated_at = (long)TimeGMT();