MQL4 and MetaTrader 4 - page 757

I would just like to report that sometimes the OrderCloseTime() is returning 0 even thought the order has closed.  I stress sometimes but it does happen enough to be serious.  Yes I have verified the order has been selected.  I printed OrderTicket() and and OrderCloseTime() to the log and it is for...
Since the function ObjectGetValueByShift returns a different value for each time frame, it would be nice if we could specify which time frame we want to get the value from.
Hello!  Since the build 646 installed i can't add indicators to my chart.  The indicator comes only with a reset tab - but no other tabs!+ Please help!    
[Deleted]
Hi everyone... I am having problem installing the IBFX MACD traditional indicator and other templates into my MT4. Previous version, I would only need to copy and paste my files int the "indicator" folder located in the "expert" folder. Current one has only "MQL4" folder which consist of a saperate
Hi, I am trying to change this very simple code that protects my EA to include more than 1 account number or range of account numbers. Can someone please advise me on how to make this possible so the protection script includes more than 1 account or a range of accounts. Thank you! }...
Hi, has anybody found a solution to access the news-tab in the mt4-terminal? May be by using: GetAncestor(WindowHandle(Symbol(), Period()), ...);PostMessageW(..) Thanks a lot in advance! Gooly
Hello Every one i am new here.i am not a programmer.i have a problem with my ea..can any one help The problem is: EA Should open trade only Once when it gets a New Signal.  it wont open any New trade unless it gets the Opposite Signal. i am posting the code that i have find in a post.. https://forum...
[Deleted]
Greetings, I've tried using both of the MQL4 program protections from the metatrader development course and neither one works in my indicators. One is for account protection and the other is for trials. I'm thinking maybe recent updates may have changed something since 2005. If someone could make...
Or should I go with 2008?  Or for all intents and purposes is there no difference?  I can see running up to 6 instances at the same time but as my budget is small I am looking at a used entry level setup.  I need more consistent uptime than my laptop allows for a host of reasons. 
Each time I think I think I’m ready to go live, a new piece of confusion arises. This time I was checking out forex.com (dealing desk) against FXCM (NDD) to check out spreads and anything else I might find. But I did not expect to find such a variation in the trade data. For example, I’ve drawn an
Hi. When I open a new order, I always use the takeProfit and stopLoss prices. When I close this order opened with the terminal this values remain in historical grid. There are many values, the price close, date, tp and sl and others. My problem is that when I close an order with my script using...
I have a trading strategy based on a custom indicator i have created. I can manually get trade signals by analyzing but i want my trade signals to display on the chart. Please how can i incorporate this into my custom indicator?  
Hi, I'm looking for  the original WPR code written by metaquotes in order to learn the code and make some improvment.... I've google the web and found the page which contain the code in mql4 is no longer exist, and I can't find the code on other site. Could anyone help to provide the original code?...
  MT4 Spyware  (3)
I have really looked around the web quite a bit before posting this, and have not been able to find a clear answer. I've read innuendo and assumption, but I'd like to find something more concrete if it exists:  Q: Has anyone been able to verify that the MT4 installation or upgrades contain no...
suppose ticket 3 order is close then ticket 10 order place as pending order
hello, all is in the title ^^ i like to put alerts everywhere and that's really a tiresome task to delete the expirations one by one, there is no trick to change the default setting ? thank you, thomas ( i don't applause the guy who had the idea of this change !!pfff )
  scope issue  (1)
I have a variable in a custom class that I declare a pointer to out of the scope.  Then I reset the pointer in the scope with one variable in the class and that variable loses it's value.  I have an oop background so I thought I would apply some of the new oop features but something isn't right....
[Deleted]
Hello, I want at ObjectCreate ...  string        object_name,   // object name...have the string like candle1,candle2 etc....How can I make it? how to and to the string some variable(numbers) thanks :)
[Deleted]
I'd like to know: 1) how may I customize the password I received to access this forum ? 2) how may I activate an audio or/and video alert whenever my expert advisor places or executes an order ? Thanks in advance 
Hi, I'm trying to compare two candles. How much percentage is one candle compared to the next. for that I am doing something Like:  open1 = iMA(symbol, PERIOD_H1, 1, 0, MODE_SMA, PRICE_OPEN, 0); close1 = iMA(symbol, PERIOD_H1, 1, 0, MODE_SMA, PRICE_CLOSE, 0); open2 = iMA(symbol, PERIOD_H1, 1, 0,...
Hi,   For some reason, some of my EA's are not displaying the comment text in my comment columns.    I must stress that this is only some of them, and there is no difference between the settings, as far as I can tell. I have always used the comment row in the EA settings, and monitored the trades by...
Hi, i need modification in Sell& Buy EA as:- Buy will closed automatically if the Sell signal is already visible and Sell will be closed automatically if the buy signal was visible. you can get coding support from Robot Danu EA attached here. kindly give modified mql4 file. Thanks in Advance Amol
[Deleted]
Hello,  I would like to place an order when an event occurs, for example when my previous order hits either the SL or the TP.  Is this possible in mql4? Thanks! 
[Deleted]
Been coding for years on MT4 but now tons of changes give me errors never heard of like this one: "'ObjectCreate' - no one of the overloads can be applied to the function call" What does that means and how do I correct my code that used to work just fine?
  Install Script  (3)
Hi, I've tried to move the folder of the script to my Expert / Script folder, re-launch the MT4 platform and the scripts were not there. So I move in the ones I wanted individually thinking that you can't move in a "Folder" of script into the script folder and still the scripts are not in the script...
[Deleted]
  MT4 problem  (2)
When I put SR levels on one currency pair, then drag a new pair onto the display, the new pair shows the SR levels of the previous pair. How do I stop this? I want to retain SR levels in the currency pairs, not have to redraw them every time, which makes scanning a number of pairs a total pain! I...
When you go back to look at old EA, the one thing missing is having the tester.tpl that you were using at that time. If an EA could specifiy a tester.tpl - or copy and overwrite tester.tpl that would be a nice feature. I suppose winapi could do this. Has it been done already?
I get error code 5004 when reading a file, whereas it worked with all previous builds.I think it is because of the introduction of FILE_TXT and similar parameters, since i`m not familiar with them yet, so please help me fix my code.Here is it: int SEARCHARRAY[5000000];int k=0;int FILEX; init()...
Hi guys,   I have a perfect strategy, but I want to use it on close values. Normally  it trade on every tick data.   This strategy is based on the OHLC values, of closed bars. So I don't need every tick data. I have a picture of this strategy attach to give a better view of the problem.   This...
I have an EA that I have put together however the problem is it is not placing orders the way I want it to. The logic behind it is to trade Short when the following conditions are met: Perceptron is < 0When TradeShort = True ( a combination of the following signalsbool macdShort=...