Skip to content

main_low_level.py

What this file is

Demonstration script showcasing low‑level MT4 SDK methods (no sugar wrappers). Use it to understand the raw RPC surface — quotes, symbols, order actions, and streams.

Low‑level methods used here

  • This list comes from a static scan of the script. If you add more calls, extend the list accordingly.
  • Each item links to its detailed low‑level documentation under docs/MT4Account/....

Tips for working with this demo

  • Connect first, then call. Always ensure the session is alive before market requests.
  • Enable symbols. If a symbol is missing, call the symbol‑enable routine in advance.
  • Handle latency and retries. Use simple health checks and re‑connect logic for transient errors.
  • Separate I/O from math. Keep pip/lot computations outside of low‑level calls.
  • Log minimally but meaningfully. Print concise snapshots: symbol, bid/ask, time, operation result.

Output

You should see structured prints in your terminal (quotes, order results, etc.).

Low Level Output