MQL4 and MetaTrader 4 - page 1172

To post a new topic, please log in or register
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...
Hi i have a problem opening pending orders: extern int OperationType = 0; // 0 Mean Buy and Sell Limit // 1 Mean Buy and Sell Stop if(OperationType==0) { buy = OP_BUYLIMIT; sell= OP_SELLLIMIT; } else if...
  FileOpen() (1)
While testing and attempting to open an unexisting file, experts log yields correct message "invalid handle -1 in FileSize" but GetLastError() returns 4051 using Build 220.
Does anyone still keep the old MT4 version which has the recalculate option? If so, could you post the installer file here? This version is very useful to test tick data.
Hello, What is the code to create an arrow object? How do you tell it which direction to point? I want to be able to have an arrow point up or down depending on some internal indicators of my own. It doesn't matter where on the screen it is, but I would like to be able to control the position in...
I have a custom indicator that gives trade signals on the chart, arrows and stop signs. Is it possible for the EA to look on the chart to find the symbols and open and close trades from the symbols. I do not want the EA to use the custom indicator or call on it. I have tried many variations and...
Buy Entry 4 Hour, 1 Hour, 15 Min SAR indicates a buy 15 Min price is under SMA Buy Exit Initial Stop Loss -30 Pips Stop loss trials to: After the open of the next candle (15 min) the stop should move to (top (sell)/bottom (buy)) of the previous candles wick Sell Entry 4 Hour, 1 Hour,...
  modify order error 4051 (13   1 2)
HI I'm getting a error 4051 with this code when I use it with a OrderModify function, but only on the take profit part. the stoplose modifies correctly. Any ideas as to why? double LStopLose = iOpen(NULL, 0,0) - (iATR(NULL, 0, 5, 1) * 2); double SStopLose = iOpen(NULL, 0,0) + (iATR(NULL, 0, 5, 1)...