Forum

Issues with Running MT5 Strategy Tester via Python

I would like to run the MT5 strategy tester with the following Python code, but it seems I am unable to log in to MT5 properly. Could you please advise if there are any issues with the code? import MetaTrader5 as mt5 import pandas as pd import os import time from datetime import datetime # Connect

Issue with iBarShift Function for CSV Data

I am currently experiencing an issue where the iBarShift function returns a bar position ( pos ) that is outside the expected range when reading date and balance data from a CSV file. Specifically, the bar position often exceeds the actual number of bars . This results in the balance value not being

Compilation Error: ')' - open parenthesis expected

Hello everyone, I am creating a custom indicator for MetaTrader 5, but I am encountering the following compilation error: 'Backtest Balance Display.mq5' Backtest Balance Display.mq5 1 1 ')' - open parenthesis expected Backtest Balance Display.mq5 39 49 1 errors, 0 warnings 2 1 Purpose of the Code