Peter Kaiza
Peter Kaiza
Peter Kaiza
Added topic MQL5 copy and store the high of previous 5 bars
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
Peter Kaiza
Added topic Summing up sell and buy orders function in mql5 help
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()
Peter Kaiza
Added topic Can't open opposite order on Mql5 hedging
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. //
Peter Kaiza
Added topic Order select for MQL5
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=
Peter Kaiza
Added topic Heiken ash smoothed icustom values in mql5
I have this HA indicator in Mql5. I want to determine the red and blue candle via ICustom on mql5. How do i do this?  Thanks. //------------------------------------------------------------------ #property copyright    "© mladen, 2018"
Peter Kaiza
Added topic Random number only returns one set of results
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
Peter Kaiza
Added topic How to randomise ea take profit points?
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
Peter Kaiza
Added topic Please help determine the trade type of the last open order
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
Peter Kaiza
Added topic Please Please help with calculating netpip movement !
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
Peter Kaiza
Added topic Heiken Ash folmula help
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
Peter Kaiza
Left feedback to developer for job Create a code for counting terminal total open or pending orders
Peter Kaiza
Added topic Counting open positions within mt4 teminal
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
Peter Kaiza
Added topic Why does this code does not work?
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
Peter Kaiza
Added topic MQL4 folmula to calculate max drawdoan in x bars
Does anyone know how to calculate the max draw down on a pair at a given bars e.g 100 bars?  
Peter Kaiza
Added topic Converting email instructions to mql4 to buy or sell
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
Peter Kaiza
Added topic TRIX indicator bufers
I have the trix indicator and I want it to trigger buy and sell signals for my EA. //+------------------------------------------------------------------+
Peter Kaiza
Added topic Last order profit code please help!!
I've got this function which i don't know why it doesn't  work. I want the EA to place a buy order is last closed  sell trade was a loss. double LastS() { double ProS = 0 ;        for ( int i=
Peter Kaiza
Added topic How to prevent mountain results on my EA?
My EA is good on detecting trends but i want to improve the results. The results looks like a mountain.For example , the EA gains PIPS in the first half of the year but losses all the gains in the second half. This may be because during the second
Peter Kaiza
Added topic Creating random numbers in MQL4
Hi I want to create 4 random numbers at every tick . These could be either 1,2,3,4,5. So at every tick  formula creates 1 random number e.g 1 etc. How do you do this in MQL4? Thanks
Peter Kaiza
Added topic What is wrong with this kumo cloud calculation?
Hi I'm trying to calculate senkansen A and senkansen B of the ichimoku system. I know that the Senka is the average of Kinjunsen and tenkansen shifted 26 periods ahead. Now  for the purpose of the EA all I want is the ea to buy when the current
123