Guillermo
Guillermo
Friends

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

Guillermo
Added topic Ghost trade in demo account
Hello, I will try to keep it short. I noticed a weird thing with one of my EA's and perhaps you can give me some insight about it. I have an EA running on an Oanda demo account (MetaTrader 4). The EA is loaded into various different pairs at the same
Guillermo
Added topic How is TickValue calculated?
Hello, I would like to know how the Tick value is calculated for pairs in which the account currency is not present. My understanding is that there is an implicit conversion from your account currency to the base currency of the pair first. Is this
Guillermo
Added topic About the market being closed for the weekends.
Hello, I'm trying to improve my understanding of the Forex market. Perhaps, what I'm about to ask is silly, but I would appreciate some clarification in any case... As far as I know, the markets are closed to the general public (excluding big banks
Guillermo
Added topic Can't get the grasp on position sizing
Hello, I suspect I'm getting the wrong results from my code when calculating position sizing. What I want to do is, calculate the number of lots I need to open my order of. They are dependent on the stop loss placement, and the money I would like to
Guillermo
Added topic About the scope of variables in "for" loops
Hello, It is not a critical issue, but I'm a bit concerned about the future mainteinance of my code, and one thing I noticed is different from other languages (such as C) is the following. I think an example will be the easiest way to explain myself
Guillermo
Added topic Is this code FIFO compliant?
Hello,  I'm writing an expert advisor and I want it to be FIFO compliant. Note that I can have various instances of the EA running on different pairs at the same time. Also, there could be various instances running on the same pair (on different
Guillermo
Added topic Are global variables accessed atomically?
Hello, My EA will have various instances running on different pairs. Once a day, I would like to check the existence of new files in some directory. If they exist, I would like to relaunch all the instances, but just once. I was thinking to implement
Guillermo
Added topic Partial close order comment
Hello, When closing an order partially, it seems (I'm not exactly sure whether this is what happens exactly) that the order gets closed and a different order gets opened with the remaining quantity. However, the comment of the "remaining" order
Guillermo
Added topic How to display an image in the chart?
Hi, I'm trying to display a .bmp file in a chart (not relative to a time/price, but to its coordinates from the top-left corner). I have tried this script  https://docs.mql4.com/constants/objectconstants/enum_object/obj_bitmap_label but haven't
Guillermo
Added topic Mistype in the documentation
Hi, I don't know where to send it, so I'm posting it here. In this page, https://docs.mql4.com/convert/stringtointeger The explanation says:  " into number of int (integer) type." and the return value is supposed to be long. And on a personal
Guillermo
Added topic How to send string from DLL to my EA?
Hello, I would like to print some information received form an external library. The best thing I have gotten working so far is passing an array of chars as a parameter and modifying each position individually. Is there a simpler solution? Like
Guillermo
Added topic How to link a function to a Button (GUI)?
Hi, I'm making a GUI for my EA.  I'm using this code https://docs.mql4.com/constants/objectconstants/enum_object/obj_button What I want to do is link a function to a button, so that when I press it, the function gets called. My ugly workaround
Guillermo
Added topic EA won't send simultaneous orders in one tick (backtest)
Hi, I'm making an EA which can work with a set of given configurations independently. As of now, I have been testing with two differents configurations, A and B. With configuration A alone, for a given time period, a total of 113 operations are made
Guillermo
Registered at MQL5.community
Guillermo
Added topic Problem sending rates to a DLL
Hello. I'm writing this since I'm having problems sending the rates to an external DLL. I've tried the two different methods using ArrayCopyRates https://docs.mql4.com/array/arraycopyrates - The first thing I've tried, and it has worked, is