Forum

Remove an EA through MQL4 code

Hi: Does anybody know if there is a way to remove an active EA/INDICATOR programmatically(using MQL4 code), rather than manually(going to the EA/INDICATOR properties and removing it)? Any responses will be appreciated

understanding enums

Hi All..!! I am new to MQL5 and am unclear about enums. The question is as follows: I want to identify a buy position close from a sell position close... i have a common function 'void closePosition(int piType, string psSymbol, ....)' that closes either/or, so I pass the Position type in the

Question for Mathematicians/Engineers about using floating point with Grey encoding

Reading about Genetic algorythms (articles.mql4.com/134) Genetic Algorythms: Mathematics: I found the following statement: Let us assume that the attribute values lie in the range of [0,1]. The range was split into 256 intervals for encoding. To encode their number, we will need 8 bit. The gene

History for backtest

yone: does MQ4 BACKTESTING give you OHLC history for all pairs, or only for the Pair selected on the Settings? I know you cannot backtest multitrading, but my question regards access to prices of other instruments. This is related to a version of xMeter that I have developed which produces a history

Precedence under MQL5

Does anyone know if the Precedence rules for logical operators(combining && and || in "if" statements) have been normalized to standard C rules?. There is a mention in the MQL4 manual that states that they deviate, and have found this to be so in some of my code. The combination of && and || in a

Testing Indicators on Testing PlatForm

Hi All.. Is there a way for an indicator to get the current time when using the testing Platform using visual with FromTo Dates?An indicator by itself does not know whether its running in TestMode or not(To my knowledge, that function works for EAs/Scripts only). I have had to resort to a dummy EA

Max number of indicator colors? ok.. resolved

I am trying to get colors assigned to each of my indicator buffers (8). I can only get 4 colors. The rest of the lines do not show. Is this a bug, or am I doing something wrong? Itried using both the SetStyle as well as the indicator color properties with the same result