Ernest Klokow
Ernest Klokow
Friends

Add friends via their profile or user search and you will be able to see if they are online

Ernest Klokow
Added topic How is this for my first EA? I think the figures are unbelievably good! What do you think?
Test run from 13 May 2011 to 7 Sept 2011. Know it is short period but planning to calibrate every week to latest data to deal with new market dynamics Bars in test 106905 Ticks modelled 14358974 Modelling quality 25.00% Mismatched charts errors 0
Ernest Klokow
Added topic What's wrong with this simple code?
The code below is supposed to pick up any pending and market orders that are open and set the particular variable to value 1. Although there are open pending orders or market orders the code does not pick them up and the variables stay at value 0
Ernest Klokow
Added topic Difference between Tick Size and Point?
Here is another beginner question. When using MarketInfo() to detect the Point value or the Tick Size of a currency pair I get the same result, e.g. 0.00001 for EURUSD. (I have a 5 decimal broker) but I get 0.00100 for the Point value and 0.00000 for
Ernest Klokow
Added topic I am ashamed to ask - but I need to know
I have been trying to program some EA's for a couple of months now and I suddenly realised that I may not have the correct understanding of the "return" operator. Can somebody just explain to me exactly what happens what happens when I put
Ernest Klokow
Added topic Compiling while testing
What happens when you have a back test running in the MT4 tester and you compile the EA after some changes had been made while the EA is still running? Will it immediately adopt the new changes or will it run on the previous version, and I have to
Ernest Klokow
Added topic Problem with 1st order ticket number
I am getting an error "market order #1 cannot be deleted" "OrderDelete error 4108" "invalid ticket" when I want to delete an old pending order. That is in spite of the fact that my error code reports the correct order
Ernest Klokow
Added topic Adding conditions to a Pending Order
My EA works with pending orders . Is it possible to set a condition for any pending order so that the actual buy/sell order is only activated (by price) when this condition is met? For example, by the time the pending order is about to be activated
Ernest Klokow
Added topic Most frustrating and unexplainable error 130!
I am experiencing the most unexplainable and frustrating error 130 - invalid stops when I am testing my EA! When the EA starts everything goes well - orders are placed without trouble: 07:25:11 2011.05.13 13:21 MartingaleEA EURUSD,M1: open #1 buy
Ernest Klokow
Added topic This stubborn code does not want to do what it is supposed to do!
I have some code that are supposed to do two things as soon as the first Buy or Sell order closes at a profit: 1. Reset a list of variables back to zero 2. Delete any outstanding/exisiting buy or sell stop orders I just cannot get it to do these two
Ernest Klokow
Added topic Bamboozled by this loop!
I am a beginner and busy writing an EA. Some of my OrderSend code works very well, but the following code which is similar to those who work well, goes into a loop creating one SellStop order after another in a never ending sequence. I put in a test
Ernest Klokow
Added topic What is wrong with this small pice of code?
I want to check if there are any open OP_BUYSTOP orders and when there are none to place a new buy stop order. But the code does not work. Can anyone please tell me what is wrong with this piece of code
Ernest Klokow
Added topic Simple Question
I am a beginner. Please tell me if I have this code to create a buy stop order BuyTicket = OrderSend ( Symbol (),OP_BUYSTOP,LotSize,BuyPrice,UseSlippage,BuyStopLoss,BuyTakeProfit, "Buy Stop Order" ,MagicNumber, 0 , Green ); Will "BuyTicket"
Ernest Klokow
Added topic How is "Expected Payoff" in the Tester calculated and is a figure of 1459.97 exceptional?
I am busy creating my first EA and had the following results: Total net profit 169356.07 Gross profit 735527.38 Gross loss -566171.31 Profit factor 1.30 Expected payoff 1459.97 How is the "Expected Payoff" calculated? Which is more
Ernest Klokow
Added topic Deletion of pending orders based on lapsed time
I work with pending orders in my EA. I want to delete any pending order that has not been activated after 30 minutes. Can somebody please tell me how I can do this
Ernest Klokow
Added topic Quick and easy question
I am a beginner. In the example of code below I have a "for" loop after the first "if" statement and another "if" statement further down. Let us say in the first two loops the following test (Close[i] < Open[i]) is
Ernest Klokow
Added topic Can anybody please tell me what is wrong with this short Martingale code?
I have a piece of Martingale code in my EA. When I run a back test on my EA with the MartingaleFunc == false there is no problem with the back test. It runs. But as soon as I set the MartingaleFunc == true the back test refuses to start. This tells
Ernest Klokow
Added topic Why can't EA run at other broker?
I have just written my first EA and have done some back testing which looks promising and am running it on a demo account with one broker. I have heard that EA's can perform differently at different brokers so have opened another demo account with a
Ernest Klokow
Added topic Can somebody PLEASE help me with this problem?
I have been trying to debug my first EA for about 5 days now without success. I make small progress every now and then, but the EA still does not work correctly! There are two things that i cannot figure out: The counter "i" stays on zero
Ernest Klokow
Added topic iHighest standard function mystery
As somebody that is new to MQL4 I was just wondering which shift will be returned if there were more than one shift with exactly the same maximum value/price over a number of periods, e.g. in the following standard function: iHighest ( NULL, 0
Ernest Klokow
Added topic No values for some predefined variable
I am in the process of back testing a new EA. I use the " every tick " model, but get no values for the High[], Low[] and Close[] arrays (all are == 0) I get only values for the Open[] array. Can anyone explain to me why this is happening