Peter Kaiza
Peter Kaiza
Peter Kaiza
Left feedback to developer for job Pause before or after news code using inbuilt MT5 calendar
Peter Kaiza
Added topic Code stopped reading news on forexprostools.com
I used to be able to read news on forexprostools.com, but now getting error 5004, "cant load file"..... has something changed there? Here is my code:   string ReadCBOE()   {    string cookie= NULL ,headers;    char
Peter Kaiza
Added topic Close all trades code
I have this code which should  close all trades when  a certain condition is met. Normally 3 open trades of the same symbol are open when the condition is met. However, the code closes one trade and leaves 2 others instead of closing all
Peter Kaiza
Added topic Changing chart period on tick with ChartSetSymbolPeriod
Is it possible to change chart period with an expert advisor  on tick?I'm using this code  but having issues. Can one help? void    0 ntick() if (adx0> 5 ) { move_to_a_different_TF(); } .. my function void
Peter Kaiza
Added topic Array out of range Heiken ashi indicator
I am getting  this error on the H ashi indicator: array out of range in 'heiken_ashi.mq5'       on this  line: double haOpen=(ExtOBuffer[i-1]+ExtCBuffer[i-1])/2; The whole code is shown below: How could this error be
Peter Kaiza
Added topic Select order by magic number
I have two pending orders open, with magic number 222  and 444.  I want the ea to delete the order with the largest magic number i.e 444. How do I amend this code to perform this function? Thanks
Peter Kaiza
Added topic Rounding up price values mql5
How do toy round up or down price value to whole numbers in Mql5? for example: EUR/USD = price now: 1.1796; Round up: = 1.1800 round down:=1.1700 USD/JPY: Price now= 109.45 Round up: = 110:00 round down:=109:00 Thanks
Peter Kaiza
Added topic Mql5 ICustom indicator intergration
Hi, I have an EA than has I custom calls on indicators. I need to sell it to someone but I don't want them to download the indicator. how do I entergrate the indicator into an EA? The I custum all is as follows int OnInit ()   {
Peter Kaiza
Left feedback to developer for job Create Calender Pause on my EA
Peter Kaiza
Left feedback to developer for job MODIFY MY MQL5 FUNCTION TO RETURN LATEST ORDER TYPE
Peter Kaiza
Added topic Latest Position type
The code below correctly identifies the position type when there is only one trade opened, however if there are more than one position opened, the code does not return the latest position type. How does i modify it to identify the position type of
Peter Kaiza
Added topic How do I sort out this array out of range error?
   double closeh4x[];    ArraySetAsSeries (closeh4x, true );    CopyClose ( _Symbol , PERIOD_H4 , 0 , 30 ,closeh4x);      double close26h4x=closeh4x[ 26 ]; //================ The error relates to the
Peter Kaiza
Added topic Single curtrency to Multicurrency EA Conversion
How do I turn a single chart EA  to a multiple chart EA? e.g, the EA is normally attached to 3 charts EURUSD, GBPUSD and USDCHF on  mt5 terminal. The problem comes when you're looking at testing on the three symbols simultaneously on the
Peter Kaiza
Left feedback to developer for job Create a function to calculate the last 5 profits
Peter Kaiza
Added topic Deal profits of the last 3 closed orders
I've a code that determines the deal profit of the last closed deal below. How do I modify it to return the profit of the  deal before the last  one e.g deal 2 in history and the one before e.g deal 3? My code for the profit of the latest
Peter Kaiza
Added topic Mql5 position close error
I'm getting this error - error fill not supported - when trying to close a position using the mt5 trade.mgh  include file. The ea fails to close the position. I've serched everywhere and cant find a solution. Is there a problem in the mgh file
Peter Kaiza
Added topic Closing 2 positions at the same time in hedged mode
Hi I have two potions opened. 1 buy and 1 sell.I want to close them at the same time. how do i do that using the inbuilt mt5 include codes? Thanks
Peter Kaiza
Added topic Orderopen time in mql5
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
Peter Kaiza
Added topic Calculating max drawdown in xx candles help
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
Peter Kaiza
Added topic MQL5 selecting the latest closed deal in history
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
123