MQL5Book/Scripts/Python/python-args.py

21 lines
606 B
Python
Raw Permalink Normal View History

2025-05-30 16:09:41 +02:00
#+------------------------------------------------------------------+
#| 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()
#+------------------------------------------------------------------+