I could literally scream I'm sorry but in what universe is MQL4 seeing the following : "+DoubleToString(0.56 * 100,0)+"%"+ as "56.00" and not "56%". The words "sick" and "tired" do not cut it, especially when this only happens with one currency pair
Quick question: Why, despite telling it display the price in accordance to the appropriate number of decimal places of the chart, does it constantly fail to include the "0" when the price ends with a zero. I have the following: double
I have set out a load of variables which are to be sent out in an informational (is that even a word? It should be a word ;)) email when a position is executed. Everything works as programmed and an email is indeed sent when a position has been
Quick question, My `NormalizeDouble()` function is rounding prices to an incorrect number of digits. I have a five digits broker and because the `NormalizeDouble` function is rounding prices to an incorrect accuracy, the TP and SL are out of whack. I
Right, quite frankly, I have just about had enough of this.. I currently have a snippet of code which returns the standard deviation of a currency pair and displays this in an email which is subsequently sent. The standard deviation is calculated in
Hello I have a snippet of code which should send the Standard Deviation of a currency pair to Print() & SendMail(). Having correctly formatted the figure, having correctly declared the variables, and having included the correct source files at
So, a quick question: what is the difference between a debugger and a compiler? Many different explanations on Google, so I thought I'd come here and learn from the experts - which in all fairness I should have done in the first place :)
Morning all I have an EA which is designed to send a confirmation email when an order is executed. The 'orderselect' (Not to be confused with the MQL4 OrderSelect(...) function) function is called in the OnTick() section of the EA. Just to be clear
I have an EA which is supposed to place a pending order with the push of a button, & an execution price at the open of the current bar. The button functions works perfectly, the parameters within the pending order work flawlessly, the dynamic
Morning all I have an EA with an `include.mqh` file attached, all working as expected, however I getting the `macro redefinition` warning when compiling the EA. The include file is as follows; #define __SLEEP_AFTER_EXECUTION_FAIL 4 00
Morning all, I currently have a formula which calculates the SL and the TP. It calculates the TP/SL as a percentage of the current account balance The formula is as follows: int OnInit (){ int percent = 2;
I have a file writing function which has been rewritten, specifying the data from the OrderHistory log. It now checks to see if the file exists before deciding to either create a new file and write the relevant data into it, or find the existing
Morning all I have a FileWrite() function which works perfectly, however, I am wanting to add attentional information in new columns appended to the end of an existing spreadsheet , created by the FileWrite() function. Is there a way in which to