MQL5Book/Scripts/Python/python-args.py
super.admin 1c8e83ce31 convert
2025-05-30 16:09:41 +02:00

20 lines
606 B
Python

#+------------------------------------------------------------------+
#| python-args.py |
#| Copyright 2022, MetaQuotes Ltd. |
#| https://www.mql5.com |
#+------------------------------------------------------------------+
import MetaTrader5 as mt5
import sys
print('The command line arguments are:')
for i in sys.argv:
print(i)
mt5.initialize()
#
# you code here
#
mt5.shutdown()
#+------------------------------------------------------------------+