Hello I'd be very grateful if someone could confirm that I have my logic correct here: // only trade Monday to Friday inclusive if (DayOfWeek()== 0 || DayOfWeek()== 6 ) return ; // don't trade during the hours
Hello I'm trying to do something simple, but it is eluding me due a toxic mix of a lack of knowledge and stupidity. With this piece of code, I'd like to print to the log a simple message, once a day, near the start of the day: bool printed=
I'd be very grateful for a little help. I'm trying to extract the hours:minutes close time of the previous bar. Looking at the help here https://docs.mql4.com/convert/timetostring , I think I need something like this: HrsMinsTime
Hello Apologies for another really dumb question, but its beyond me! In my EA, I'm collecting and writing data into weekly Excel spreadsheets, which I'm incrementally numbering, creating one new sheet per week. This is fine, but I end up with
I'd be most grateful if someone could an answer to a question which is eluding me. I have two sets of historic data from separate sources for the same currency pair . As we all know, all data sets have gaps. If I import first one then the other
I'm sure this has probably been asked and answered before, but I don't seem to be able to find an answer. If someone could point me in the right direction I'd be most grateful. I'm trying to have my EA check the distances between all (up to 5)
Hello I'd be very grateful for a little assistance. I can't work out why this little bit of script doesn't work: double v1=AccountFreeMargin()*(RPC/ 100 ); double v2=ABC*AccountLeverage(); double v3=(v1/v2); Where: RPC = 1 ABC=20 I'm sure
I wonder if anyone else has come across this. Is it a bug? I'm able to import _SP500.csv which contains 30 years' worth of minute data successfully through History Center (for the method followed see https://forum.mql4.com/51224)
I'm using MT4 build 451 together with Tick Data Suite Loader to do back testing. I'm consistently getting the following error message in journal, although the EA seems to run: "Tester: exchange rate cannot be calculated" I've read elsewhere that this