Forum

Placing text of a chart

Hi, How do place text on a chart, at a particular position, using MQL5 code? (to be done using a custom indicator if it makes any difference). Steven

Communication between Metatrader and Excel

Hi, I'm not sure if this is possible, but if it is, I would be grateful if someone could point me in the right direction. Basically, I want to be able to plot real-time data, in Metatrader, that is in an Excel file (which will be opened, and constantly updating). I really have no idea how this could

Help creating arrows

Hi, I've created the following code as a very simple example of finding highs and lows in the data and then place an arrow on the graph to show if it is a high or a low. The program also creates an indicator that also shows if there is a high or a low. However, as can be seen by the attached screen

Strategy Tester Graph "Sticking"

Hi, Since the latest update - 3.05 - I've notices that when running the tester, the Balance / Margin graph will run all the way to the right, and then stop updating for about 4 seconds, before carrying on. This happens several times during a test. Steven

Possible bug in tester

Hi, I've been testing the following EA using the tester: https://www.mql5.com/en/code/103 The code compiles fine, and I was then able to test it with the strategy tester, which then all worked fine. However, when I then change the input values (TP and SP), and then compile, and then try it in the

Strategy Tester - File Output

Hi, Not sure if this is a bug , or if I'm just trying to do something that is not possible. Below is a very simple EA code, to run on the tester to see if I can use the file output. int OnInit(){ int filePtr = FileOpen("FileOutput.txt", FILE_CVS|FILE_WRITE); FileWrite(filePtr, 1, 2, 3);

Having problem with Strategy Tester

Hi, Hope someone help me with this problem, so at least tell me if the problem CAN be overcome. Basically, I've been developing an EA, which performs some initial training when it starts up. When testing this on my demo account , it seems to be working fine, and gives me the results I'm expecting

Obtaining array of bid and sell prices

Hi, Sorry if this question has already been asked, but I've searched and I can't find anything. I'm trying to write an EA, and I can figure out how to get more of the information that I would need for this (e.g. historical information on the volume, high price, low price, for each bar), but the one