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 Expert Advisor trading on Open Prices
For various reasons (of which the time it takes to run an optimization in the ST is the most important) i need to code my EA to trade on Open Prices when running on a live account so that I can do my optimizations under the "Open Prices" model in
Ernest Klokow
Added topic PLEASE help! Discrepancy in results
I calculate a certain value with the code as shown below. The problem is that the value in the Journal and that on the indicator representing this differs completely - which causes my EA to not work correctly. I  take the Williams Percent Range
Ernest Klokow
Added topic Turn sound off when changing time frame
Can anybody please tell me how i can turn off this irritating sound every time a i change a time frame
Ernest Klokow
Added topic Global variable refuses to initialize
I have a global bool variable (WPR_OS) that is set to "false" and I also have code that will set it to false under certain conditions but it will not be set to false when I run it in the ST. I have even included it in the initialization function, int
Ernest Klokow
Added topic Something changed!
The code below used to give me the Average Daily Range (ADR) before but now suddenly it does not work anymore and keep on giving me the value of ADR = 0. Can anybody help me to solve this? for (i= 1 ; i<= 20 ; i++)    ADR  
Ernest Klokow
Added topic Rules for the PRINT statement?
Are there any rules of where one can place a PRINT statement and where not? I find that sometimes the ST does not see the PRINT statement until I move it to another position. But that presents a problem because I want to see the values of certain
Ernest Klokow
Added topic I just cannot get this figured out!
I have written an EA and it seemed to work just fine until i noticed some wrong trades when tested or run on a demo account. I have put a delay on the next transaction after one has been executed by using a variable int HoursDelay. The value of this
Ernest Klokow
Added topic Strategy Tester Mystery
I have been testing an EA in the Strategy Tester (ST) and find a mysterious problem happens every time. I have wasted hours on trying to overcome this but to no avail! The ST jumps at one point with 3 hours (highlighted in yellow) because it
Ernest Klokow
Added topic Problem in Strategy Tester with indicator (code attached)
Can any body tell me why this indicator does not work in the strategy Tester although it works fine on a chart? The problem is that in the Strategy Tester (ST) it is stuck stuck on only one of the two possible values (50.0000) of the two index
Ernest Klokow
Added topic Values of indi's not picked up by EA
I am writing and EA and are using 2 custom indicators. I have used different custom indicators successfully in other EA's.  My problem is that the EA does not pick up the values displayed in the data window. It returns zeros when the ame values
Ernest Klokow
Added topic Strange reading of indicator
I have written an EA using among others the well known custom indicator called NonLagMA. I have written other EA's with this indicator without any problems that i was aware of at that time. I have two different length parameters that each are linked
Ernest Klokow
Added topic EA supporting multiple pairs
I am trying to create an EA that will trade multiple pairs although only loaded on one pair. I have created the following two variables: string    Pairs[ 28 ] = { "AUDCAD, AUDCHF, AUDJPY, AUDNZD, AUDUSD, CADCHF, CADJPY, CHFJPY, EURAUD
Ernest Klokow
Added topic Array out of range - unique
I know this error has been discussed many times but the ones I saw dealt with indicators and did not really address my problem. Can anybody tell me why the following code in my EA gives an " Array out of range " error? for ( int j = 0 ; j <
Ernest Klokow
Added topic This is a mystery to me!
I have written a small EA and when testing I get the infamous ordersend error 130: invalid stops message.  3 14:49:36.262 2018.12.19 09:29:25  SpikeScalper GBPUSD,M1: OrderSend error 130 0 14:49:36.262 2018.12.19 09:29:25 
Ernest Klokow
Added topic Dropdown Input options list - MQL4
I have searched everywhere but cannot find the function/code that will allow me to specify a dropdown options list for an Input variable in MQL4. Can anyone help me please
Ernest Klokow
Added topic How to code data from one indicator as source for second indicator
I want to know how I can write code in my EA where I use the data delivered by one indicator (iWPR) to act as the data source for another indicator (iMA). Can anyone please assist? Will be very grateful
Ernest Klokow
Added topic If you can fix this indicator it will be something special!
I have written an indicator but it is not performing the way it should. The problem is that the indicator does not take into consideration the higher time frame (H1) when posting the BUY and SELL arrows on the lower time frame (M15) chart. If you can
Ernest Klokow
Added topic Drawdown - Balance or Equity?
I have always believed that the drawdown reported in MT4 was calculated based on the Balance of the account. I just read an article that says it is actually calculated on the Equity. Now I am confused because when I generate a report in MT4 the graph
Ernest Klokow
Added topic Simple code - but it does not work. Why?
I need to secure my EA so that it is freely available on demo accounts but require registration when used on a live account. I wrote some simple code, but it does not work in spite of having the correct Account numbers . Can you help me
Ernest Klokow
Added topic Difference between STP and ECN testing
I have an EA that I test on the Strategy Testers of two live accounts of the same broker - and STP and an ECN account. The EA works well with the STP account when using the "tick" option as well as the "open prices" option, but with the ECN account