MacGiamma
MacGiamma
Friends

Add friends via their profile or user search and you will be able to see if they are online

MacGiamma
Added topic Script to Open New Pending Order not always working
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
MacGiamma
Added topic Emailing from Metatrader 4 no longer working
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
MacGiamma
Added topic Howto retreive the details of the last open order
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++)    {
MacGiamma
Added topic Trailing Stop for a grid: is it feasible?
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
MacGiamma
Added topic EA reactivating themselves with one broker when MT4 starts again
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
MacGiamma
Added topic CloseAll Function in an EA not closing all the orders
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
MacGiamma
Added topic OBJECTARROW - How to fill in the Arrow?
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);
MacGiamma
Added topic How do I create a Comment Line in the Input Tab?
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
MacGiamma
Added topic Fibonacci levels automatic calculation on MT4 - Sharing + Feedback
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
MacGiamma
Added topic Create a relationship between 2 Arrays - Most efficient way?
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) and
MacGiamma
Added topic Unable to change color and style of Horizontal Lines
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
MacGiamma
Added topic Apply Same EA with different parameters to multiple charts in one go
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
MacGiamma
Added topic How to Store the initial Bid Price when launching EAs
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
MacGiamma
Added topic Can a broker customized MT4 platform mess with EA? No Conspiracy theory, just weird experience
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
MacGiamma
Added topic Reset the Historical of Magic Numbers
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