I ma trying to find out order open time for a pending order > im using this function but still don't get accurate results long time1; datetime time_setup= OrderGetInteger ( ORDER_TIME_SETUP
Does anyone know how to perform the max drawdons in xx candles? I have an example of symbol prices like below: Candle Close high Diference 0 1.258 1.265 0.007 1 1.265 1.274 0.009 2 1.274 1.286 0.012 3 1.286 1.3 0.014 4 1.3 1.29 -0.01 5 1.29 1.291
I have a code that scans all closed deals ( hedging ) in history but I want it to select the latest close deal. This code do //--- variables for returning values from latest deal properties +++++++++++++++++++ ulong
I want to copy and save the highest value of the last 5 bars.I want to use this value in later calculations, so I don't want the value to recalculate as bars change . How do I do that
The EA opens 1 buy and 1 sell order at the same time. This function is supposed to add up the sell and buy orders and return net profit. The problem is, the code does seem to sum both it only sums 1 order . What is the double Money()
I'm using MT5 hedging account and I'm trying to open an opposite market order (hedging order). I'm using MT5 hedging platform. The problem is when I open the hedging order the existing order gets closed, why is that? Here is my order opening code. //
I'm trying to convert this code from mql4 to Mql5 but id does return the desired result; MT4 code- if (! OrderSelect (i, SELECT_BY_POS , MODE_TRADES )) continue MT5 code Im using: if ((ticket=
I have this code. I want TP to print either 500 or 1000 depending on the random numbers generated , the problem is only TP 1000 seems to be printed, I'm sure there is an easy way around this but cant figure it out. Please hel int
Is it possible to code an ea to take profits lets say 30 pips, 50 pips and 150 pips. For example, on today's trade, the ea takes profit at 30 pips, next trade, take profit at 50 pips and the next, 150 pips. Not necessarily in
I got this function that selects the latest open order .Now I want to determine whether this order is a buy or sell, how do i proceed from here? Will this work? if LastOpenTicket() == OP_BUY ) the Do this...... ) My question is , will the
Hi all, I have created this function that sums up net pip movements for buy and sell orders but it does not seem to work properly. Basically for example, the ea opens a buy order at 81.50 and now the pair has moved
Hi all, I am looking for an mql4 folmula for calculating an Heiken ash red and greed candle on a chart. I am not interested with a colour of the candle, just the folmula in mql4. Please help if someone has one at hand. Thanks
I have an ea which is placed on 10 different charts in mt4. The problem is it opens many trades. I just want it to place a maximum of 3 positions. So for example if the chart 1 trade is buy EURUSD, chart 2 is buy USDJPY and chart 3
I'm trying to calculate the account balance percentage but this code does not help. Any advice? I want to use account profit to close all orders when profit of all open orders exceeds 30 percent. All close code is correct but does seem to work
Hi I jut wonder if this is possible. I receive an email from another party that says "buy eur/usd has potential to rise" now is it possible to download this message to my ea (or using any other methodology), and let my ea buy according to