TheHonestPrussian
TheHonestPrussian
TheHonestPrussian
Added topic A question about time.....
Morning All So I have a snippet of code set up to prompt a MessageBox to make itself known at a certain time (closingTime) which is formatted to an Integer on the 24 hour clock, which in this case is 17 (or 1700 GMT). I am aware that the terminal
TheHonestPrussian
Added topic A question on FileWrite functions.
Morning all, Quick question on the FileWrite() function; I currently have a FileWrite() function in my EA to a CSV-formatted spreadsheet, which works perfectly, however, is there a way in which you can write data to a spreadsheet template and to a
TheHonestPrussian
Added topic SendMail() not applying new lines.
Morning, So I have a diagnostics email set up which contains the data on all the criteria needed to execute a position, it's to ensure that the EA is meeting all of the criteria and using ternary to give it a "PASS" or a "FAIL".  It's pretty
TheHonestPrussian
Added topic Working with StringFormat() & _Digits
Morning all, So I'm working with StringFormat() and wanting to pass various double figures (i.e. prices, moving averages etc) into a string format. I know how StringFormat() works in MQL4 except how to accommodate for 5 an 3 decimal place prices. I
TheHonestPrussian
Added topic Setting BOLD font in MT4-sent email's.
Morning all, Quick question, is there a way in which to make text bold in, for example, in the bodies of SendMail() or MessageBox functions ?  Cheers, 
TheHonestPrussian
Added topic Why is no OBJ_HLINE showing on my chart?
Morning,  So I'm plotting a horizontal line on my chart, except I'm not. My code is the following:  double    sma   =   iMA ( NULL , 0 ,10, 0 , MODE_SMA , PRICE_OPEN , 0 ); ObjectCreate ( 0 , "Horiz_Line"
TheHonestPrussian
Added topic Returning an error if the #include is not found.
Hi all, Quick question, is there a way to return an error message in the event that an #include file is not found in the EA (i.e. in the event that the file has not been saved in the correct directory or a function has been called to a non-existent
TheHonestPrussian
Added topic %d Formatting Issues
Morning all, Why am I having formatting issues with my debug printing? Despite reading the following documentation:  https://docs.mql4.com/common/printformat  and despite having the following code: PrintFormat("Error Code: #
TheHonestPrussian
Added topic Implicit conversion from number to string
Hello All So I'm trying to find a much more efficient way of converting an integer or a double to string, without typing  + IntegerToString (AccountNumber(),0)+ every time I use a Mail, Print or MessageBox function . I believe that you can apply
TheHonestPrussian
Added topic Breaking the For Loop cycle.
Morning, So I have a function which is designed to Select an order from the ledger through the OrderSelect(..) feature.  It also selects the OrderSymbol(...) as well as the Magic Number(..). If any of these return False, it's supposed to return
TheHonestPrussian
Added topic Duplicate Journal Messages | MT4
Hello All So I have an EA which, itself, is executing perfectly, but I'm getting duplicate Journal messages. As you will see below, there are a vast number of duplicated journal messages, which I believe have resulted in Error #4025 - which is an OUT
TheHonestPrussian
Added topic Changing my MT4 Data Folder to a Shared Folder
Hello! So, how would one change the default data folder for the MT4 platform to a shared folder?  I have a VM which I run the MT4 Terminal on, but I do want to share files between my VM and my local computer without having to copy files over
TheHonestPrussian
Added topic Receiving error messages for non-existent errors.
Afternoon all Bit of a silly one here, but I have an EA which works fine, however I'm receiving error messages for errors which are non-existent.  My EA closes half of my position when I reach 200 pips in the money whilst simultaneously moving
TheHonestPrussian
Registered at MQL5.community
12