Forum

automatic adjusted zoom level for an indicator

Hello, When I attach my indicator to the chart the zoom level is so little that I don't see anything. I have to manually adjust the level to very small sizes. Is there an easy trick to adjust the level based on the values in the chart? I would like to implement this into the code

Error create canvas=4025?? What is this failure?

Hello, I am a bit lost with the error "Error create canvas=4025" I even don't know what a "canvas" is. Does some had the failure as well? I have no idea where to start looking for a solution in my code as the failure occures random. Thanks in advance

Getting GMT-Time with WebRequest()

Hello, I would like to add the option for getting the GMT-Time via WebRequest. On my VPS the MT4-inbuilt GMT-option does not work correctly. I have some code, but would ask for some help. The code give me a result with no information about the GMT. What should I change? I cannot get my head around

max value of 2D array

Hi, I have a 2d-array and want to get the max value of each column. The ArrayMaximum ( )- Function is for 1d-arrays only. In the picture you can see an example. The numbers are stored in an 2d-array. In TF5 the highest number is 71. Is there any function in mql4 to get to this value? I've looked

FileReadArray - no data in the array

Hi, I try to read a file with several MagicNumbers in order to write it to an array. Somehow there is no data in the array. The file contains this line

Remove duplicates

Hi, I want to get all Symbols in my present orderlist in an array. But if the symbol is already in the list, the loop must take the next one. I am stuck here. Maybe someone knows how string Pair[]; ArrayResize (Pair, 1 ); int size= 1 ; for ( int i= 0 ;i<= OrdersTotal ();i++) { if (

Error 5004 wirting csv

Hi, I just want to write some data to a csv. But I cannot see my mistake I get error 5004 over and over again. It creates the file, but it's size=0. The Timer is set to 5 sec. the "int start()"- function doesn't help either. Thanks in advance void OnTimer () { if (RunEA && IsTradeAllowed ()) { int