MQL4 and MetaTrader 4 - page 979

To post a new topic, please log in or register
Hi all, I want to be able to draw an object (eg a line) and for my code to be able to readthe parameters of that line and perform operations based on those parameters. (x1,y1, x2,y2)....Is there such a functionality in mq4? Thanks in advance
  playsound() (2)
Hi, I use the playsound() in some of my indicators. recently I dont hear any sounds anymore, not even for when the alert box appears. even indicators that I download from the internet and that work for other users do not play a sound for me I checked Tools/Options/Events and everything seems ok....
Hello everyone. I am having a problem with a DLL I created in Visual Studio 2010 express. It loads and runs fine on my Windows 7 system but won't run on a friends Windows 7 system. The EA logs an error 126. I checked the forum and found advice for others with similar problems. I confirmed the...
I am trying to load a text file I saved with FileWrite() that contains order open times and directions (buy or sell). My intention is to use these variables to replicate all the orders opened by one of my EAs (EA#1) within another EA (EA#2). That way I can see if EA#2 is better at closing EA#1's...
I have an EA that can execute different branches of trading logic. Each branch is like a separate trading system. I'm testing a new branch of trading logic and only want it to execute in my Demo Account and not accidentally in my Live Account. What's the code look like to check whether I have my EA...
I guess, it should be no problem to have opened the MetaTrader-Terminal twice( same PC/RAM) and to use one Terminal to execute trades on a Demo acc(after acc login) --- and the other one to execute trades on a live acc(after acc login? Is this approach correct or are there any interferences or...
  No Smiley's (10)
Hi to All I have been down this route before, and this weekend I want to have it fixed for sure. I have reloaded the MetaTrader4 platform and activated it with new Login, Password. I have checked the Expoert Advisor button and have clicked Tools > Options > Expert Advisors. Checked ... Enabled...
Is there any way to apply a 2 hour time frame to an indicator? I don't need to display the results. I just need the indicator results
Dear All, I want to create an EA which will generate an email and send to the specific ids. Can you please help me with this. Regards, Natesh
Hello Fellas, I am still trying to learn how to program simple indicators to simplify my charts, i have had a few successes but mostly failure, below is an indicator I was developing to display several different indicators i use. I cant get it to work properly... I would much appreciate some...
Hi all, I wrote an Windows application (.exe) which can be called in your EA to send email (e.g. Gmail) to a list of recipients (specified by an external file) when OPEN/CLOSE/MODIFY activities occur in your EA. Drop me a message to talk more about the features and price. Thanks!...
There is an interesting article from the September 2010 issue of Technical Analysis of Stocks & Commodities called "Getting Clear with Short-Term Swings" by Ron Black. It describes an indicator that show a change in the trend. The issue provides codes for this indicator for an number of charting...
Hi, I am attempting to write to a file and for some reason the file is never created. I even tried making the file manually, but no information is added. I used the exact code that I found on this forum: //+------------------------------------------------------------------+//| expert initialization...
Dear all i want to know what are the commands of the High & low prices of the previous day to use them in an EA. Thanks in advanced.
  SEFC
Hi every trader's . I looking for indicators about SEFC program.Somebody have got this one ?My email : mandragora2012@gmail.com .Greetings
Hi. I'm trying to call a ruby script using WinExec external function. I set all parameters that allows it to use external parameters. I'm getting the error 33. I can't find a useful answer about this question. My code: Comment("Resulting: ", WinExec("c:\ruby192\bin\ruby.exe c:\myfile.rb")); And...
  S&P Data (2)
I'm trying to input S&P data into my charts for intermarket strategies. I'm sure this question has been asked before but unfortunately the search term s&p is too small and I can't search for it. Can someone guide me on how I can get S&P index data into the MT4 platform? Thanks in advance.
Hi, I´m trying to find the points value of a gap. I already wrote it, but it did not work. Could you show me please, where I'm doing a mistake? //+------------------------------------------------------------------+//|                                                  Gap Formula.mq4...
can come one place an alert on this indicator anytime it changes colour.thanks
hello every body.. i have this indicator... this indicator display blue and red color.. i want if have appear blue color, so the next bar open buy .. but can not take his color.. my code like this: int start() { int ticket; double se = iCustom(NULL,0,"SuperSimple~",0,1); double se1 = iCustom(NULL...
Just wondering if someone can help me or point me in the right direction. I want to build an EA where I can specify a custom range and have it buy when the top of the range is crossed up and sell short with the bottom of the range is crossed down. Also, I want to reverse the orders if it currently...
Hi all, i have an ea moving stop to breakeven at a particular level. Then at onother level a trailing stop kicks in and i want it to dictate the stoploss price. However the stop is jumping from the trail price to breakeven price contstantly. How can i sort this??? thanks.
Dear friends, I am getting this error after installing mt4 platform sometimes after 5 days sometimes after 1 month. i uninstall & reinstall mt4 platform several times but still i am getting this error. i compile all the experts & indicators using compile feature in...
New article Technical Analysis. What Do We Analyze? is published at mql5.com: This article tries to analyze several peculiarities of representation of quotes available in the MetaTrader client terminal. The article is general, it doesn't concern programming. Author: Victor
  zero divide (1)
Hi, any idea on this.. I have ea same ea running on the euro and the gbp. It is working fine on the euro but showing up error zero divide on the gbp. The ea is exactly the same so i dont know what would cause this..
hi,i need an indicator that plots two horizontal lines: one line x pips over and one line y pips below the current price. the lines should refresh with every incoming tick.i couldn't find something like that. does anyone have an indicator like that?thanks!! :-)
Hello, can someone help me? My EA works well and remembers the past in intraday orders to close, re-open ... but it ignores the eve of open positions by itself because, it found itself re-initialized by the re-opening markets Is there way to make it find the history or to impose the open positions...
Is it possible to write code in an ea that loads the chart on the terminal? I have a program which tests for certain conditions among all the currencies. If the condition is true, I want my ea to load that currency on the terminal.
Hi all, I'm trying to do a very simple function, but without success this is the function: double hold_trade[]; int start() { for( int i=0; i<10; i++) { hold_trade[i] = i; Print(hold_trade[i]); } } This function is printing 0, instead of 1,2,3,4,5,6 Any idea? Thanks