Hi All, I have put together the script below to open a new pending order with the same comment and magic number of an existing one. The script seems to be working fine most of the times but occasionally it will not open any order and there are no
Hi All, In the last couple of days the emailing from the Metatrader platform has stopped working for me. Every time my EA tries to send an email I got a 'failed' message and this happens even when I try to send a Test message. Automatic emailing has
Hi Everybody, I am trying to retrieve the details of the last open order (i.e. not pending) , but the code below does not seem to work. Any hints? Thanks MG for ( int Counter= 0 ; Counter <= OrdersTotal ()- 1 ; Counter++) {
Hi All, I am trying to setup a trailing stop for a grid which includes a series of orders (long and short) for the same cross. At the moment I can manage for the grid to close when a certain profit % has been hit, however what I would like to do is
HI all, I have a bit of an issue with just one broker as it seems that the last EA attached with a chart reactivates itself after havin been closed whenever MT4 is started. A quick example would help: EA is attached and running on one chart. During
Hi All, I have an issue with the function below. It is part of an EA. When a certain profit is attained for a grid and for a specific cross, the fuction is called and is supposed to close all the current orders and delete all the pending ones for the
Hi All, I have the following code to insert a down pointing arrow in my chart string fibo_max= StringConcatenate ( "FiboMax" ); bool high_value_arrow= ObjectCreate ( 0 ,fibo_max, OBJ_ARROW , 0 ,date2,highest_value);
Hi All, Hopefully a quick question. How do I create a line of comments in the Input Tap of the Property Windows for the input variables. For example if I want to indicate that input variables below a certain line should be changed just in
Hi All, I ma currently developing a script to automatically calculate Fibonacci level on MT4 based on how far back I want go on the history. In the spirit of collaboration I would like to share with you what I have so far. The purpose of the sharing
Hi All, Is there any efficient way to create a relationship between two (or more) Arrays that contain different data types? For example, I have an Array of data type string that contains several pairs (e.g. AUDUSD, EURUSD , EURGBP etc)
Hi All, I am trying to change the properties of a Horizontal LIne I have created. I would like to change both color (To Green) and style (To DashDot) of the line and I am using the code below. However the line that appears is still red and the style
Hi All, I am operating on several crosses and for each one I would need to apply the same EA but with different parameters e.g. for Cross EURUSD the variable leverage is 1, while for USDCAD is 2, for CHFJPY 3 etc I can certainly do it manually
Hi All, I am currently try to se Brief desciption of the issue: - I have a grid of orders. Each orders has its own Take Profit and Stop Loss level . - I want all orders (active or pending) of the grid to be closed or deleted when the price
Hi, I do not want to foster any conspiracy theories about Forex Brokers being scams etc. but I am genuinely curious as I am testing an EA with 2 different brokers before deciding how to move fwd, so I’d like to have a second opinion. Brief
Hi All, Is there an easy way to delete the old Magic Numbers generated by an EA? Where can I find the historical data of MN? Server or client? Thanks, MG