Peter Kaiza
Peter Kaiza
Peter Kaiza
Added topic What is wrong with this code?help!!
I'v created this function that will allow the EA to place another order when a current buy order exceeds 50 pips. The function works on testing but  problem is  it places the order too early for example when the first order has moved only
Peter Kaiza
Added topic Summing up open buy and sell orders profits
Hi I have got a code but it doesn't seem to work properly. The EA opens 1 buy and 1 Sell trade of the same pair. I want the code to calculate the total profit of the two orders and return the result. I have got this function . double Money() {
Peter Kaiza
Added topic Please help with one trade per day code
Hi I want my EA to open only one trade per day. I've got a code that counts historical trades and gives a yest or no if a trade was opened,. However i'm a bit stuck. Can someone help. Thanks. for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--)
Peter Kaiza
Added topic Help with orderprofit code
Hi Please help I want the ea to open a buy order when profit exceed 20> I've coded this, see below but the code is unreliable( sometimes it works,sometimes it doesn't).  Any suggestions on how it could be improved? if (( OrderSelect
Peter Kaiza
Added topic Calculating Maximum drawdown at specified bars
Does anyone knows  how to calculate maximum draw down for a specified number of bars for a given currency in mql4? For example, i'm looking at the last 200  1 minute bars, where the currency pair did on average  increase. I want to
Peter Kaiza
Left feedback to developer for job Add an ATR trailing stop to my EA
Peter Kaiza
Added topic Retrieving price of open order code
Hi, How do you retrieve the open price of the current open order? Thanks
Peter Kaiza
Added topic Ichimoku iCustom cloud breakout please please help!!!
Hi, I've got just a simple question on how to tell when the current price is above the cloud. senkaspan A =iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANA,1); senkanspan B= =iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANB,1); Now as I understand, for current
Peter Kaiza
Added topic Code to close all trades after set profit is reached
Hi all, I'm   running an EA   on 3  different charts and i'm wondering if someone knows an mql4 code that automatically closes  all trades when a set total  profit ( pnl) is reached. Is it possible?  Please help. Thanks
Peter Kaiza
Added topic Coding Tenkansen/Kinjunsen cross
 I'm using iCustom ichimoku  double tenKansen = iIchimoku ( NULL , 0 , 9 , 26 , 52 , MODE_TENKANSEN , 1 ); double kinjusen = iIchimoku ( NULL , 0 , 9 , 26 , 52 , MODE_KIJUNSEN , 1 ); I want to tell the programme to buy when the lines cross
Peter Kaiza
Added topic Heiken ash mql4 folmula please.
Hi please help, I'm looking for a mql4 formula for a red and green candle for the heiken ash indicator. I'm currently using an icustom for the HA indicator but this this slows the system especially  during testing. Grateful if someone could give
Peter Kaiza
Added topic Help with spread filter
Please help with my spread filter. I'm using ECN 5 digit broker but when I use this code, the ea doesn't seem to read the spread correctly. On my EA I do normally put an extra 0 eg  500 for a take profit of 50, just as an example ( I've tried to
Peter Kaiza
Added topic Code help looping strategies for MQL4
Hi please help.‌ I have 3 strategies and I want my EA to open positions in a loop as follows. The buy strategies are X , Y and Z. If  condition X is satisfied, place buy order, then wait until that order is closed. Once order X is closed( in
Peter Kaiza
Added topic Traders dynamic index buffers please help
Hi all ,    I'm new in trading and would like to know the buffer numbers for the traders dynamic index fo red line yellow line green line upper VB line lower vb line for example what is xx value below for the red line?  double red_line
Peter Kaiza
Left feedback to developer for job MBFX System EA for Trinh Dat
Peter Kaiza
Added topic Help with Choppy market indicator
Hi I'm new in Mql4. I'm trying to create an ea based on the choppy market indicator. I've identified the buffers as follows:    double cma=iCustom(NULL, 0, "CMI",60,10,false,3, 1);//smoothed ma    double cmil = iCustom(NULL,0
Peter Kaiza
Added topic HELP with Heiken ash candle
Hi,  My void on  tick HA function looks like this     //heiken ashi function double haOPEN = iCustom ( NULL , 0 , "Heiken Ashi" ,Red,White,Red,White, 2 , 0 ); double haCLOSE = iCustom ( NULL , 0 , "Heiken Ashi"
Peter Kaiza
Added topic Heiken ash iCustom error please help
Hi,  I'm getting errors on my heiken  ash ea on tick part. What is the problem? The error says " invalid array access "  Please help, thanks.    / Tick event handler void OnTick()   { double lowHigh =
Peter Kaiza
Registered at MQL5.community
123