Hi gurus, Recently I often find that many demo accounts can be identified as a live account (IsDemo() gives false on demo accounts). Can you tell me something about this? Why is it, and is it possible to avoid it? Thanks
Hi gurus, I have an indicator that uses Symbol() for determining the instrument (there isn't hard coded instrument, just Symbol()). I load the indicator say on EURUSD chart and save it as a template. After I load this template say on USDCHF chart
Hi guys, here is my indicator: #property strict #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization
Hi guys, I found an issue: There is a MarketInfo(Symbol(),MODE_TICKVALUE) query in my indicator's OnInit() part. It works good, except one: if the indicator is already on the chart when I start the MT4, the tickvalue gives 0. So, I think there is
Hi gurus, Is it possible to copy a part of a 2D array into a 1D array? So, there are: double 1DArray[100]; double 2DArray[10][100]; I want to copy 2DArray[5][all of the 100 elements] into 1DArray. Is it possible and how? Thanks
Guys, I'm extremely nervous, please help me. I use Linux. Earlier was able to install MT4 via Wine without any problem. Since the latest some builds of MT4 it is impossible to install the MT4. I get this: It requires I do enter proxy settings. As far
Hi Gurus! Here is the mql example of using of CryptEncode/CryptDecode. Based on that example, let's say: string my_string=ArrayToHex(dst); I'd like to get the original text string ("The quick brown ... ") from my_string . How can I get it? Thank
Hi Gurus, Can I get a chart event, when I click on mouse button (BEFORE I release the button)? As I experienced, the event occurs when I release the button. Thanks
Hi Experts, Strange thing for me. I have a very short code. There is no error when compiled and runs perfectly on the charts. But, when I compile it with Debug, it gives an " Array out of range " error. I don't understand, why? Can you help me? Short
Hi Gurus, I can get iMaOnArray from an array, like this: double Value=iMAOnArray(My_Array, 0 ,Ma_Period, 0 ,Ma_Method, 0 ); My question: is it possible to get iMaOnArray from an element of a structure? Let's say I have this structure: //Structure
Hi guys, Why is NOT Close[0]=Bid? I knew that these are the same, but are not. See my USDCAD picture: UPDATE: I found these, but did not get answer from them. https://www.mql5.com/en/forum/144280 and https://www.mql5.com/en/forum/143082 Thanks
Hi guys, Today is sunday. I run this code Comment (DayOfWeek()); and got 5 (it means friday). I guess it came from the last known server time. So, the server time has stopped on friday. My question is, how can I check whether today is saturday (6) or
Hi guys, I wanted to generate an offline chart (by the original PeriodConverter script) that is equal with the donor one. For example: EURUSD,H4 >> EURUSD,M57 (this came from EURUSD,H4 by InpPeriodMultiplier=1). I used H4 chart as donor instead
Aloha Gurus! I'd like my EA to do something every day between let's say 09:45 and 11:15, i.e. the EA runs continuously and when the time is within that interval then EA do make its job. I know my friends are TimeHour and TimeMinute, but have no exact
Hi gurus, Can you show me a solution for that? I searched but couldn't find anything. For example: I have a button on a chart, and it opens a buy order when I click on it. Thx
Hi friends, What is the difference between these two codes? The first one doesn't work, the second one works fine. Is there any difference the two kind of TP_Day? Wrong: if(GlobalVariableCheck(Glob_Var_Name)) TP_Day=(int)
Hi, Why does OrdersHistoryTotal() show one more than the real value? If I have say 12 closed trades, OrdersHistoryTotal() shows 13, even on a brand-new and "empty" account it shows 1. Why? Is it a failure or am I wrong? Thx