Forum

Setting a Variable Whose Name is Contained Within a Separate Variable

Hi I have an Array which contains names of variables. Is there a way to use the Array entries to assign a value instead of having to do... if (Per_Array[i,0]) = "Ind0_DonchianPeriodsEntry" Ind0_DonchianPeriodsEntry=GVResult else if (Per_Array[i,0]) =

GVs of the Terminal - Error 4058

Hi, I have what I thought was defensive code on getting a global variable. Can anyone explain why I got an error 4058 ? if ( GlobalVariableCheck (GVQualify + "BadTrendLock" ) == True ) { ResetLastError (); BadTrendLock = GlobalVariableGet (GVQualify + "BadTrendLock" );

Automated Backtesting Strategy

Hi, Apologies in advance if this has been raised before as I am fairly new to MQL4. I'm trying to automate backtesting and I am kinda getting there. So I am kicking off another instance of MT4 Client to run the strategy tester in accordance with the article https://www.mql5.com/en/articles/1467

Calculating Lotsize Accurately

Ok, I admit it, I'm a newbie to MQL4. That said I've been an IT developer for 40 years now and trading generally for as long as I can remember. This has been asked before, I know, but unless I'm not searching this forum correctly, I've not found an adequate answer. I trade using three different

Does MARKETINFO MODE-BID/ASK interact directly with the Broker or get its data locally

Hi I'm asking this because I've recently introduced it into my EA and found strategy tests now taking ages and wondering whether the increase is due to the interaction with the broker. I'm a newbie, so apologies if this has been asked before. Thanks in advance