Grey_Adam
Grey_Adam
Friends

Add friends via their profile or user search and you will be able to see if they are online

Grey_Adam
Added topic error code: (-2, 'Terminal: Invalid params')
Good day, can someone please help me. I login into my account, it keeps showing me this  ( error code : (-2, 'Terminal: Invalid params')) in the console when I run the code. Here is what I've got. (Still new) import MetaTrader5 as mt5 import
Grey_Adam
Grey_Adam 2021.09.29
import MetaTrader5 as mt5
import pandas as pd '''
mt5.login( login=140744, password="naohds2b", server="Quicktrade-Live", timeout=60000 )
''' print("MetaTrader5 package author: ",mt5.__author__)
print("MetaTrader5 package version: ",mt5.__version__) if not mt5.initialize(): print("initialize() failed, error code =",mt5.last_error()) quit() account=140744
authorized=mt5.login(account, password="naohds2b")
if authorized: print(mt5.account_info()) print("Show account_info()._asdict():") account_info_dict = mt5.account_info()._asdict() for prop in account_info_dict: print(" {}={}".format(prop, account_info_dict[prop]))
else: print("failed to connect at account #{}, error code: {}".format(account, mt5.last_error())) mt5.shutdown()
Grey_Adam
Registered at MQL5.community