Gordon Gekko
Gordon Gekko
Friends

Add friends via their profile or user search and you will be able to see if they are online

Gordon Gekko
Added topic Live/demo confusion
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 
Gordon Gekko
Added topic Something really weird 2
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
Gordon Gekko
Added topic Something really weird
Hi guys, here is my indicator: #property strict #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization
Gordon Gekko
Added topic Initialization problem
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
Gordon Gekko
Added topic ArrayCopy question
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
Gordon Gekko
Added topic ArrayFill question
Hi guys, This code #define N_ARRAY 5    int myArray[];    ArrayResize (myArray,N_ARRAY);    Print ( "Before: " ,myArray[ 0 ], "/" ,myArray[N_ARRAY- 1 ]);    ArrayFill (myArray, 0 , WHOLE_ARRAY , 7 );
Gordon Gekko
Added topic Install problem
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
Gordon Gekko
Added topic Date error in MT4?
Hi, I run this code: Print ( "Year: " ,Year()); and got 1900 instead of 2016. ??? What did I wrong
Gordon Gekko
Added topic Decrypt
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
Gordon Gekko
Added topic Chart event when mouse button is pressed
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
Gordon Gekko
Added topic Array out of range. But why?
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
Gordon Gekko
Added topic Color dialog programmatically
Hi Gurus, Is there any possibility to open MT4's color dialog box from my expert? Thanx
Gordon Gekko
Added topic iMaOnArray from structure. Is it possible?
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
Gordon Gekko
Added topic Close[0] and Bid
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
Gordon Gekko
Added topic DayOfWeek()
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
Gordon Gekko
Added topic Periodconverter script is wrong
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
Gordon Gekko
Added topic Timing question
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
Gordon Gekko
Added topic Button BUY/SELL/CLOSE event
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
Gordon Gekko
Added topic What is the difference?
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)
Gordon Gekko
Added topic OrdersHistoryTotal fail
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
123