Codes

Average Volume per Hour for MetaTrader 4

Calculate the average volume per hour in a 1 hour chart

Record IsConnected, Spread, Stop, FreezeLevel for MetaTrader 4

EA is run say once every minute and writes the status of IsConnected, spread, stop and freeze level to a file

Hidden StopLoss and TakeProfit System for MetaTrader 4

A class system to represent a hidden stop loss and take profit system, combined with 4 example files showing the use of the classes

Hidden Stop Loss and Take Profit for MetaTrader 4

Stores and implements a basic hidden Stop Loss and Take Profit system

Forum

Cannot import lots of rows into custom symbol

Hi, I have been trying to create a custom symbol on MT5 and importing lots of historic data into that symbol for backtesting. I can import 10 rows, 20 rows, 100 rows and 1000 rows of data, however when I try to import 10000 rows of data or more, it just fails. How can I import lots of 1 minute data

web request - how to authorize

Hi, I'm familiar with python and using code such as the following to post some information to an api: response = requests . post ( url , json = dict_data , headers = headers , auth=HTTPBasicAuth(C_API_UNAME, C_API_PWD)) I wasn't sure how to authorise (ie HTTPBasicAuth above) using MQL5 WebRequest

Is it possible to get Python to respond to tick's

I was just wondering if it was possible to get Python to respond to ticks in a similar manner to the MQL OnTick() function ? Thanks Mark

How to stop the deletion of Historic Data when Backtesting

I have about 8 years of historic data that I would like to backtest against because my brokers data doesn't go back that far. I can clear our the history and upload this data into meta trader before running the backtest. However, even if I have wifi off and delete the account from metatrader, when

MQL Storage - commit failed

Hi, I'm just getting used to MQL Storage. Previously I have never had a problem committing code to storage, however with one file, it seems to be coming back with "commit failed", but no explanation of why. Does anybody know how to resolve this ? I have attached an image. Thanks Mark

Modelling Quality

I have had a few problems working out how to use tick store. Ignoring this issue for now, I decided to download data and create a set of 1 minute, 5 minute etc up to 1 hour files and then import them directly into MetaTrader. When I ran the strategy simulator, I got a nice long green bar and 0

Signals - Basic Question

When I am on the MQL5 website and go into Signals, and then sort them by the number of Subscribers, I get three different signals at the top, with 461, 423 and 334 subscribers. When I go into MetaTrader and sort the signals by Subscribers, I get 3 signals at the top with 644, 87 and 70 subscribers

Exact Calculation of P&L for MetaTrader Instruments with a different Base and Profit currency.

At the moment, it is the weekend, I don't have any positions open and cannot trade on my demo account, so cannot thoroughly evaluate any theories. Does anybody know the exact method in which MetaTrader converts the profit into the account currency for an instrument where the account, base and

http://www.forexfactory.com/ffcal_week_this.xml

Hi All, I have been looking at code, which imports calendar events from the following link: http://www.forexfactory.com/ffcal_week_this.xml I was just wondering if anybody was aware of an xml link that provides news data, (not calendar data). I have tried the following, but the link doesn't work

Virtual Hosting and EA Log Files (not MetaTrader Log Files)

Hi, Sorry - this is my first question. I have written and EA that writes log files to the mql4/files directory. Recently I have been looking at setting up Virtual Hosting on metatrader 4, however I cannot seem to get a copy of the log files that my EA writes from the server. Please note that I