PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop icon indicating copy to clipboard operation
PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop copied to clipboard

How can I connect my demo account

Open Near-Tam opened this issue 2 years ago • 8 comments

I found that there is no server ip in my demo account. How can I connect my demo account base on this situation.

Near-Tam avatar May 16 '22 02:05 Near-Tam

Hi,

Not exactly clear what you mean. You move the MT4/MT5 EA into a chart. On the upper right side of the chart you will have a happy face and on the upper left side demo or licensed. On this machine/pc the IP address will be 127.0.0.1. If your python script is on the same machine/pc then use 127.0.0.1 as IP and the socket number as seen in the MT ea in the connect function.

If not clear, lets chat by the discord channel.

BR Huub

Branly76 avatar May 16 '22 05:05 Branly76

when I was ran the Python_script_example_PyTrader.py file it return an error: Couldnt connect with the socket-server: [Errno 61] Connection refusedelf.sock terminating program False Traceback (most recent call last): File "Python_script_example_PyTrader.py", line 95, in CheckAlive = MT.Check_connection() File "/Users/neablister/PycharmProjects/PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop/Pytrader_API_V2_08.py", line 208, in Check_connection ok, dataString = self.send_command(self.command) File "/Users/neablister/PycharmProjects/PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop/Pytrader_API_V2_08.py", line 1825, in send_command self.sock.send(bytes(self.command, "utf-8")) BrokenPipeError: [Errno 32] Broken pipe

How can I fix it ?

Near-Tam avatar May 17 '22 11:05 Near-Tam

Do you have the MT4/5 EA running in a metatrader terminal. Licensed or demo does not matter.

afbeelding

Branly76 avatar May 17 '22 12:05 Branly76

like this? image

Near-Tam avatar May 17 '22 12:05 Near-Tam

You need to have the MT4/5 EA in only one chart. afbeelding

Watch the red arrows, do you have the info above in your chart.

BR

Branly76 avatar May 17 '22 12:05 Branly76

I wrote a lot of documentation, did you read this .pdf. ??? BR

Branly76 avatar May 17 '22 12:05 Branly76

Thx, I'll read it now.

Near-Tam avatar May 17 '22 12:05 Near-Tam

You can also contact me on discord, chatting is much easier. BR

Branly76 avatar May 17 '22 12:05 Branly76