After some months away of MQL4 programming, today I have compiled a code which was working perfectly before (9 months), but now I got a compiling error.
This is the code line:
Orders is defined like...
Hello,I have an issue with these instructions MODE_SPREAD & MODE_STOPLEVEL. When I check these values on a 5 broker digit I got these values for example: MODE_SPREAD : 17.00000 MODE_STOPLEVEL : 10.00000That's ok...
Hi,I'm going to develop an EA to copy among my accounts, I see I could do that with a file text management among the accounts, using the text file as the vehicle with the information to copy.But, to do this with other MT4s in other...
Hi,I'm looking to have an user validation server because I will distribute an expert advisor just among some specific traders.I would like to contact someone with the knowledge to do this, of course I will pay. Thanks
I would need to define the size of my array by an external variable, is that possible? Example:
external int Size;
When compiling it fails on the array declaration: "integer number expected"...
I'm creating an EA which uses an array to store different price leves to be considered for each opened order.
I'm worry about what happens when external events affect the EA execution, for example: interruptions in the internet...
I used to use historical data from Dukas which is converted by scripts to MT4. During the last time I have downloaded and converted data, the minimum lot size has been defined has 3.0 lots.
I do not have idea the reason of this value...
I use function AccountBalance() to get the lot value:
LotValue = (AccountBalance() * (RiskPercentage / 100.0))/(10.0 * SL);
Should I consider the account currency for this calculation?
Is the amount returned by this function in...
In my code I use this sentence:
LotValue = NormalizeDouble(LotValue, LotDecimalPlaces);
How to know the right value for variable LotDecimalPlaces? I mean in an automatic way inside of the EA.
I would like to know how the Relative Drawdown is calculated. I have googled and read other explanations, but it seems everybody has a different answer and opinion.
I know that Absolute Drawdown is the maximum amount under the initial...
I have developed an expert advisor to trade Gold, it works ok when attaching it to a chart, but I got a critical error when trying to backtest it with the Strategy Tester.
Any idea about what to check?
I want to implement a partial close function, the order should be closed partially when it reaches some pips in profit.
What I have doubts is how to know when the order has already been closed partially, for example:
Hi all, this is an issue at the design level.
When each order is opened, a calculation is made which returns two take profit levels, these TPs are internals and are differents from the take profit defined in the order at the creation level.
Hi, I'm implementing a function which get the numbers of pips between two price levels. But depending of the digits of the broker I get differents values, for example
Difference in 4 digit broker: 0,001, so 0...