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/....
quote(...)→ see quote.mdquote_many(...)→ see quote_many.mdquote_history(...)→ see quote_history.mdsymbols(...)→ see symbols.mdsymbol_params_many(...)→ see symbol_params_many.mdtick_value_with_size(...)→ see tick_value_with_size.mdopened_orders(...)→ see opened_orders.mdopened_orders_tickets(...)→ see opened_orders_tickets.mdorder_send(...)→ see order_send.mdorder_modify(...)→ see order_modify.mdorder_close_delete(...)→ see order_close_delete.mdorder_close_by(...)→ see order_close_by.mdon_symbol_tick(...)→ see on_symbol_tick.mdon_trade(...)→ see on_trade.mdon_opened_orders_tickets(...)→ see on_opened_orders_tickets.mdon_opened_orders_profit(...)→ see on_opened_orders_profit.mdaccount_summary(...)→ see account_summary.md
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.).
