MQL4 and MetaTrader 4 - page 1167

To post a new topic, please log in or register
If I am using a Moving Average based on Closing Price. Is there a way for it to only compare the last two digits of the Indicator ? For Example: We have the current Bar, We have the bar previous to that (Close1) and the bar previous to that one (Close2). If Close1 = 1.2058 and Close2 = 1.2042 Is...
Hi all, How to write EA code with this condition : Open Order: 1. when order#1 open is BUY i wanna put order#2 SELL stop with -50 with lots double 2. when order#2 executed i wanna put order#3BUY stop with same price with order#1 3. when order#3 executed i wanna put order#4SELL stop with same price...
even get this error when sending the order from the user interface~ Error Code: 2
Hi, Got this error. I store ticket number in an array, which i initialize with zeros when orders are closed. This error appears randomly. The USDCAD order has been closed by EA correctly then this error has been generated. Found nothing in help or doc.... Any help? Edit : working with version 220......
Rehi, ;) Got another problem while forward testing my EA. EA opened a short on EURCHF. I initialized EA on chart (short always in trade list). Indicator says to EA to close the losing short but EA dont want to close it, and i don't see what's going wrong in my close loop. (i use global variable to...
Hi, I would like to use the values of ZigZag - the one embedded into the default MT4 installation - indicator in my EA code. Can anyone suggest how to do? I cannot find functions such as iHigh, iMACD or similar.... Thanks in advance for your help. Alex
Hi Phy, sometime ago you helped a member about an indicator that would average the time between "up ticks", and time between "down ticks", on a separated indicator windows in the minute chart. You even developed the indicator and posted a secreenshot of it to the guy. I found this matter very...
Is there a command for the EA to determine which symbol it's currently attached to? For instance, is there a way it to determine that it's on the USD/GBP chart? I'd like for the EA to calculate stoploss at 2% of the account balance, but the stoploss would be different for different currencies, so...
Not sure if I've missing something or clicked something I shouldn't have but can't get any of the custom indicators to work (the built in one's or one's I've imported). If I double click on the custom indicator - nothing happens, same result if I drag it onto the chart area. I've treid following the...
Hi, how is it possible to make an indicator of a (custom) indicator (example: the exp. MA of another exp. MA)? Ive tried iCustom, but not accepted as "Symbol". Also Ive Tryed iMAOnarray, but somehow the iMAOnarray of the fist indicator's array is not giving more than a constant value for all the...
I backtested and I like the results. Any way I can get an unexpired ea? Please let me know. Thanks!
I've seen code to determine what timeframe the chart is currently set to, but is there a way to "force" a timeframe? For example, I want my EA to start with a 4hr chart, store some indicator values, then flip the chart to hourly and compare to these indicator values.
  time on chart (1)
is there a way to change the setting to show my time not gmt time on the charts???
I have a strategy that I have been researching for three months that I need to have reviewed by a professional that can code for me for money. Can anybody give me links also of programmer that can do MQL programming? Thanks and thank you Brian
maybe i got old files? but i running Build 220... . stderror.mqh contains "#define ERR_SOME_OBJECT_ERROR 4207" . stdlib.mq4 not contain case 4207: error_string="<errorTextString>"; . others please verify this.
On the website of the Automated Trading Championship 2008,an article Mini-Review of the Sixth Week of the Championship has been published. Rashid Umarov, our regular analyst, continues observing results of ATC 2008 Participants. He tries to detect various facts and regularities presenting them in...
I have a program written in VB.NET that can generate buy/sell signal, but I don't know how to SECURELY transfer these information into the trade platform using MQL4. For the time being, I can ask the VB.NET program to write these signals into a TXT file and use MQL4 to read from it. However, since I...
I want to flip the chart 180 degrees so I can view the graph moving in both directions to spot the trend movement in different dimensions. Is it possible to do this with MetaTrader? Cheers
hi friends i want to make EA i am not much familer with but my logic is simple my logic is its work on euro/usd about EA its should always start buying on condition for example if euro/usd is at 1.2475 it will buy 1 lot ((if its reach 1.2550 take profit) if against me then it will sell 1.2465...
Hi all! I've just started to dwell into the wonderful world of coding and MQL4, and I've written a simple EA to enter a trade when the RSI(13) crosses either the 20 or the 80 mark. I coded it such that If (OrdersTotal()<1) { code But because I'm looking at a range of currency pairs, say for example...
hello,i will appreciate if any one add trailing stop to this EA,just trailing stop please helpthanksmrafolabiplaza@yahoo.com
  slow orders (1)
Hi, my orders do not go fast at all configuration.so whatever one can help me? Thanks you
Does anyone know how to set the InitialDeposit from an .ini file configuration, an EA, or some other means? I'm working on some fully automatic AI training in the strategy tester and this is the only thing I haven't been able to automatically set. I'd be happy if it can be set anywhere in any...
Hi, newbie to MT I would like to see my MACD and Stocch settings in my primary charts running along with the price, I am only able to get them in the boxes below the chart at the moment. Cheers
Gents, I am having difficulties extracting information using the OrderSelect function. I would like to find out the opening price / lots / sl / tp etc using the functions within MQL and I've been working with the OrderSelect function but just not having any luck... Could you all give some feedback...
Can someone please help me as to how to have an alert emailed to you when one moving average crosses over another one in either direction? I do not want it to automatically place the trade for me, just the alert. I have found where you can have a price alert emailed to you, but that doesn't suit...
Hi I have an EA and I don't want that the EA trades the Close Open Gap. (FridayClose to MondayOpen) What additional function do I have to add to the EA? Thank you very much for your help Bye Thomas
Slawa, FileIsLineEnding() in Build 220 sends program into a loop. StringArrayLoad() from StringArraySuite.mqh revision 1 reference https://www.mql5.com/en/code worked in Build 218 but not in 220 when calling FileIsLineEnding. StringArrayLoad() from StringArraySuite.mqh reference https://www.mql5...
Hello someone Am a newbie with experts here. can you help me with an expert that can use Heiken_ashi_ma 20? Prefered properties are: Go long 10secs after consolidation of first blue candle, Go short 10secs after consolidation of first red candle, Adjustable stoploss and take profit levels...
I downloaded a free open source EA that was made by some russian guy. It has these parameters which I can't figure out what they would be in english... extern double Otkat = 40; extern double KoridorOC = 30; extern double KoridorOt = 8; // check for long position (BUY) possibility...