Ernest Klokow / Profile
Friends
Requests
Add friends via their profile or user search and you will be able to see if they are online
Outgoing
Ernest Klokow
Added topic MQL4 process question
If you declared AND initialize some Global and Local Variables, are these variables re-initialized after every cycle reaches return(0) or does it go back to Start() and skips the re-initialization of the variables? My own opinion is that it does not
Ernest Klokow
Added topic event handling function not found
My EA was compiling with a number of warnings but no errors. When I corrected one of the warnings (a variable was declared under global variables as well as in the code) I suddenly got the following error: event handling function not found 1 1 (On
Ernest Klokow
Added topic Arrays with double data types?
I have need to declare an array that contains double data types, but I get the following error message: 'USDbefore1' - constant expression required Not sure how I should go about it. (Will something like "structs" solve the problem? -
Ernest Klokow
Added topic Why?
I use the following snippet of code in two different EA's. In the one there is no problem when I compile the code, but in the other it gives me an error message saying; 'for' - expressions are not allowed on a global scope Why? I have searched and
Ernest Klokow
Added topic Double variables defined with a string name?
I want to create a string name e.g. string name = A+B and then define a double variable with that string name e.g. double name = x+y Is that at all possible
Ernest Klokow
Added topic Saved templates nowhere to be found
I have read the previous posts about problems but cannot find a similar situation than mine. When I save a template it does not appear on the list of templates that I can load. It is also not to be found anywhere on my disk - and I know where to look
Ernest Klokow
Added topic Build 600 and EA problems
This Build 600 has brought so many problems. We should have a choice if we want to upgrade - not forced upon us. After struggling two days to overcome my problems with the e-mail function now i am experiencing problems with my EA's. First I could not
Ernest Klokow
Added topic Is anything wrong with this snippet of code
I have written some code that is supposed to stop the same signals coming through multiple times, but it does not seem to work. Can anybody see any errors in the code? BuySignal = false ; datetime BuyTime = iTime( NULL , 0 , 0 ); if (BuyTime !=
Ernest Klokow
Added topic Please tell me what is wrong with this simple code
I have an EA where I call a custom indicator and have some simple code to read shift 0 and shift 1 and do some comparisons with it and when a certain condition is true I generate an alert signal. The problem is that instead of getting this one alert
Ernest Klokow
Added topic This is a mystery to me!
I am in the process of writing an EA to alert me under certain conditions. One of the conditions is based on the custom indicator CurrencySLopeStrength, but I am experiencing a strange phenomenon. I am filling three variables of every currency with
Ernest Klokow
Added topic Any difference?
Would there be any difference in the result between the following two pieces of code? First one: if (FirstCurr == "GBP" && SecondCurr == "AUD" ) Pair = "GBPAUD" ; { if ((GBPbefore >
Ernest Klokow
Added topic Parameters when using iCustom
I am writing an EA that uses a custom indicator so i am using iCustom in the code. The book gives the format as follows: double iCustom ( string symbol, int timeframe, string name, ..., int mode, int shift) and says this about parameters (....,)
Ernest Klokow
Added topic How to discover the two currencies on a specific chart
This should most probably a very simple problem to solve. I want to read the Symbol() of a particular chart and then break up the 6 char string (e.g. EURUSD ) into the two currencies involved e.g. EUR and USD and give each one of them a numeric
Ernest Klokow
Added topic Cannor see why this is not working
I have written a small EA that must close some manual transactions when the NLMA indicator changes. But it does not want to close the transactions when it should and I cannot find out why! Is it perhaps my empty deinit? Can you possibly help me solve
Ernest Klokow
Added topic This should be easy to solve
I am sending an Alert when certain conditions are true. I do not want this Alert to be repeated again and again while the same bar is still open, so I have written a little code to prevent this. The problem is it should be easy for me to see why it
Ernest Klokow
Added topic My EA seems to be in a loop! Help please!
I have written an EA that scans several currency pairs and when it finds a particular condition it mus alert me. Now I find that the EA gets seemingly in a loop on one currency pair (USDCHF) and does not operate correctly. Here is the message from
Ernest Klokow
Added topic Strategy Tester and Scanning for Alerts
I have written an EA that has to scan multiple currencies and give an alert when certain conditions are true for a particular currency pair. Can I test this EA in the Strategy Tester and receive Alerts when a condition is met in a particular
Ernest Klokow
Added topic Don't understand this
I want my EA to avoid doing any transactions within a period after the last transaction closed. Something strange is happening. My variable that records the closing time for the last transaction "LastOrder" is set back to zero for one iteration when
Ernest Klokow
Added topic What am I missing??
I have written a small EA and have this strange thing happening where the same code that I use for detecting a Buy transaction that stops more Buy transactions from happening in that loop, does not work with the Sell transaction, therefore making it
Ernest Klokow
Added topic MT4 and Windows Server
Can the Metatrader 4 platform run under a Windows Server operating system
: