New MetaTrader 5 Platform Build 2340: Managing account settings in the Tester and expanded integration with Python - page 2

 
Yes. However, this new version complains about not finding the "dll.ex5" file (for any dll), which is weird
 
Hi, I just changed mydll.dll to mydll.dll.ex5 and it worked.
 
chwir:
Hi, I just changed mydll.dll to mydll.dll.ex5 and it worked.


This seems to work if you have already run your EA previously in the Strategy Tester, as your mydll.dll is already in the Agent tester folder. 

 

There is one thread in Russian part of the forum related to the strategy tester - https://www.mql5.com/ru/forum/321656 - so you can upload everything there (in Russian language or in English language) everything so the MQ developers can fix it (be sure the you upload everything for the developers to be replicate/reproduce the possibe bug).
For information.

Тестер стратегий MetaTrader 5: ошибки, баги, предложения по улучшению работы
Тестер стратегий MetaTrader 5: ошибки, баги, предложения по улучшению работы
  • 2019.09.05
  • www.mql5.com
В настоящий момент тестер стратегий MetaTrader 5 подвергается глубокой переработки командой MQ...
 
Sergey Golubev:

There is one thread in Russian part of the forum related to the strategy tester - https://www.mql5.com/ru/forum/321656 - so you can upload everything there (in Russian language or in English language) everything so the MQ developers can fix it (be sure the you upload everything for the developers to be replicate/reproduce the possibe bug).
For information.

I've already done this. Thanks for the reminder. 

 

please somebody could be help me

This code give me error (attached file)

thanks for you help

--------------------------------------------

from datetime import datetime

import MetaTrader5 as mt5


# import the pandas module for displaying obtained data in the tabular form

import pandas as pd

pd.set_option('display.max_columns', 500) # number of columns to be displayed

pd.set_option('display.width', 1500)      # max table width to display

# import pytz module for working with time zone

import pytz

 

# connect to MetaTrader 5

mt5.initialize()


 

# set time zone to UTC

timezone = pytz.timezone("Etc/UTC")

# create 'datetime' object in UTC time zone to avoid the implementation of a local time zone offset

utc_from = datetime(2019, 4, 5, tzinfo=timezone)

# get 10 EURUSD H4 bars starting from 01.04.2019 in UTC time zone

rates = mt5.copy_rates_from("EURUSD", mt5.TIMEFRAME_H4, utc_from, 10)

 

# shut down connection to MetaTrader 5

mt5.shutdown()


# display each element of obtained data in a new line

print("Display obtained data 'as is'")

for rate in rates:

    print(rate)

 

# create DataFrame out of the obtained data

rates_frame = pd.DataFrame(list(rates),

                           columns=['time', 'open', 'low', 'high', 'close', 'tick_volume', 'spread', 'real_volume'])

# display data

print("\nDisplay dataframe with data")

print(rates_frame)  

Files:
error.jpg  103 kb
 

Hello good morning, I am new here, I have the following problem, I would like to know if someone can help me.

2020.02.24 09: 32: 29.363 Tester file C: \ Users \ FERNANDO I \ AppData \ Roaming \ MetaQuotes \ Terminal \ D0E8209F77C8CF37AD8BF550E51FF075 \ MQL5 \ Libraries \ FXBlue64.dll.ex5 open error [2]


 
fdssantoss:

Hello good morning, I am new here, I have the following problem, I would like to know if someone can help me.

2020.02.24 09: 32: 29.363 Tester file C: \ Users \ FERNANDO I \ AppData \ Roaming \ MetaQuotes \ Terminal \ D0E8209F77C8CF37AD8BF550E51FF075 \ MQL5 \ Libraries \ FXBlue64.dll.ex5 open error [2]


Hi,


I've reported this issue. As a workaround, go to C: \ Users \ FERNANDO I \ AppData \ Roaming \ MetaQuotes \ Terminal \ D0E8209F77C8CF37AD8BF550E51FF075 \ MQL5 \ Libraries  and rename FXBlue64.dll to FXBlue64.dll.ex5

 
Luis :

Hi,


I reported this problem. As a workaround, go to C: \ Users \ FERNANDO I \ AppData \ Roaming \ MetaQuotes \ Terminal \ D0E8209F77C8CF37AD8BF550E51FF075 \ MQL5 \ Libraries and rename FXBlue64.dll to FXBlue64.dll.ex5


Luis, thank you very much, I did the procedure above, until the replay opens so that with the following error:

2020.02.24 13: 58: 01.556 2020.02.20 00:00:00 Cannot call 'GetMT5StrategyTesterHwnd', 'FXBlue64.dll' is not loaded

2020.02.24 13: 58: 01.556 2020.02.20 00:00:00 unresolved import function call
2020.02.24 13: 58: 01.556 OnInit critical error
2020.02.24 13: 58: 01.556 tester stopped because OnInit failed


Can you help me?

 

Did any body try to trade with new MetaTrades5.py through python?

I try with this is python

import MetaTrader5 as mt5


mt5.initialize()



request = mt5.Buy(symbol='USDCHF#',volume=1.0,ticket=1)
sym = mt5.symbol_info('USDCHF#') su = mt5.positions_get(symbol='USDCHF#') sue = mt5.Close('USDCHF#') mt5.shutdown()

but get following error in Metatrader5 Platform

2020.02.24 22:59:32.350 Trades '26057938': failed market buy 0.01 USDCHF#, close #242600949 sell 0.01 USDCHF# 0.97778 [Unsupported filling mode]

2020.02.24 23:12:23.537 Trades '26057938': failed market buy 1.00 USDCHF# [Invalid request]


Can anybody tell me what i am doing wrong?


Reason: