Forum

Complete lack of logic over converting ENUM variables

The stupidity here is unbelievable at times, I have the following: enum MinRSQ{ RSQ10 = 10 , RSQ20 = 20 , RSQ30 = 30 , RSQ40 = 40 , RSQ50 =

MQL4 not interpreting formatted outputs correctly

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, and no other. Just why

NormaliseDouble, Digits ommitting the last digit when price ends with a zero

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 CurrentBarOpenPrice = NormalizeDouble (Open[ 0 ], Digits );

Variables Not Being Placed in Email Body

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 successfully filled by the broker. However, despite

Incorrect rounding from the NormalizeDouble function.

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 have the following code: double price =

Visual Studio Code | MQL4 | Non-existent 'Invalid path' error messages.

Whilst I wholly appreciate the fact that this is not specifically MQL4- related, I'm sure there will be others on here who will have come across a similar - if not an identical - issue to the one I'm having with Visual Studio Code. So I'm using VSC an an alternative to using MetaEditor to code my

How do you price your EA's

Morning all This is a question specifically for those who have their EA in the market place: how do you all derive a price for your EA

Incorrectly displaying the standard deviation figure despite correct formatting. [SOLVED - CORRECT CODE DISPLAYED]

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 the #include file called: chart_objects_correl.mqh

Erratic, non-existent errors & possible MetaEditor failures.

Hello all Right can anybody shed any light on the reason as to why MetaEditor is telling that I have unexpected tokens where correct syntaxes have been adhered to, in addition to the `'return' - semicolon expected diagnostics-data-002.mqh 203 4` message appearing when there is literally a semicolon

Incorrect formatting of vaiables in Print() & SendMail() function

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 the top of the EA, I fail to see why I get the following