Forum

Why bid value is different than a value of MT5?

I am using : price_ask=mt5.symbol_info_tick(symbol).ask price_bid=mt5.symbol_info_tick(symbol).bid Because of errors, i carefully checked why i got errors. Then i found the error, which was the difference of the values obtained by the above functions and the values provided by MT5. Check the

python scripts (or project) to .X5 file for the market.

Hi I have created AI bot written in python. How to convert it to .X5 to upload on the market? I have three .py files and one .csv and one .h5. These 5 files are one project , i can connect it to MT5 and predict candles. However, for MT5 market it accepts only .X5 file. So how to convert my python

Any example to get current bid and ask data from Metatrader5 (Using Python)?

I found many examples that can access data stream from metatrader as follows: # request 1000 ticks from EURAUD euraud_ticks = mt5. copy_ticks_from ( "EURAUD" , datetime ( 2020 ,1,28,13), 1000 , mt5.COPY_TICKS_ALL ) # request ticks from AUDUSD within 2019.04.01 13:00 - 2019.04.02 13:00 audusd_ticks

Values of bid and ask from mql5-python stream are different than those from metatrader-5?

Hello i just started mql5 python today. I used the example tutorial. They work well but only values (bid price and ask price) are different. For example: when i run example code in "https://www.mql5.com/en/docs/integration/python_metatrader5" on python it prints current bid value as 85.334 and ask