MQL4 and MetaTrader 4 - page 1270

I hope I'm not offending anyone's search before posting sensibilities, as it seems to be a provacative subject here. Proceeding in the hope that this is more than just an archived site, please note that I've searched and I've posted to a relevant thread, and I've learned a bit about this subject....
Hi everybody there is so many staff for Forex - systems,courses and books. Some of them a good others no.Unfortunately time is expensive to spend with stupid staffs.Iwonder from where to begin.Please share your experience...
[Deleted]
hello, I am working to make some scalping EA. I'd like to use 15 minutes period. I used some custom indicators. I'd like to take about 5 pips per trade. I have problem with orders openings. When my programm is taking the profit the conditions are still vaild, so the EA is opening another order in...
Maybe it is too much primitive but can somebody help me to code,.. how to open 10 positions in expert advisor in one direction with just one signal ? thx a lot ......V
hi forum, the last two weeks i made a life test with my EA wich in most of the times runs pretty good. the result was really bad, and i testet the same period with the same mashine in the strategy tester. the results were completely different ! in the realtime result the final margin was 1600 (...
I'm trying to locate the value in a specific Bar and I dont really understand how to work with Arrays. When I try to read a "Bars[bar_number]" value, it returns that it needs an integer value as index. My "bar_number" in this example is a value that I get from the iHighest function. How can I get...
[Deleted]
Hi all, I got a lot of trading account spread across many brokers in the internet but only one broker (for me) have a good chart. Every time I do my analysis I always refer to that broker's chart.. I'm thinking of making an EA as follow: Let say my main broker for charting = Broker A Other broker...
[Deleted]
I have this RELATIVE PERFORMANCE code in AmiBroker. Please switch to MT4. Many thanks ! _SECTION_BEGIN("RELATIVE PERFORMANCE"); //RELATIVE PERFORMANCE list = "AUDCADFXF,AUDJPYFXF,AUDNZDFXF,AUDUSDFXF"; // type in symbols fvb = Status("firstvisiblebar"); myAverage = 0; num = 0; for( i = 0; ( symbol =...
New article The Prototype of Trade Robot is published at mql5.com: This article summarizes and systematizes the principles of creating algorithms and elements of trading systems. The article considers designing of expert algorithm. As an example the CExpertAdvisor class is considered, which can be...
Hello, I'm developing a system that Robots are controling robots. Any help? Thanks FxMan77
Hello! Is there a chance to adjust Modal Window for a New Order(the one we get by pressing F9) in such a way that the window does NOT show Tick chart. It distracts me. Thank you!
[Deleted]
Hi, I've found a very good Shi-Channel indicator, which I have attached here for reference. How could I write an MQL code to detect a breakout on either side? I'm sorry if this is a redundant question, but honest-to-god, I've been google-ing for hours and not found really helpful info... I'd like to...
  Finding local highs and lows in price  (94   1 2 3 4 5 ... 9 10)
The next topic I would like to discuss is finding the local maximums and minimums of price . Of course, we are not talking about finding them in the "history" of quotes, but in real life. I have long noticed that determination of For a long time, I noticed that every professional trader has his or
I apologize if this has been discussed before, but I have not yet run across a clear explanation. If someone could simply point me to a previous thread that has actually answered the question, that'd be great. Specifying the same test period for the same pair and same EA ... 1) I get completely...
Hi There, I have an automatic trading program written in Amibroker Formula Language. I would like to translate it to the MQL4 language. I found a diffrence between the results of the ADX indicator of the two languages. I applied the indicator on the same database, same timeframe and same period, but
[Deleted]
Hi all, besides iterating through the OrderHistory(), Is there a way to be notified in my EA that an order was closed by SL or TP? Is there a callback function where my EA is notified of such events? void onClosedOrderEvent (double profit, datetime orderClosedTime);
  Trend Direction  (5)
Hi, I am very new to Forex, so if this is a daft question I apoligise.. I have read and understand the importance of the trend, but looking at this capture I see the trend is generally down, but on the day it's up. Which do I go with ?...
[Deleted]
Hi, I have attached a picture for a particular SHORT position which is not closed when it reached the SL or TP. What could be wrong with the EA?
Hy traders...   Is there any 5 digit broker with relativ fixed spreads ?   thanks 
Ok - I have been attempting to do this for about 10 hours now and I am going nuts. There has to be something very simple that I'm missing. I wanted to make an indicator that determines whether which direction the Heiken Ashi MA candles are facing, and then graphs JUST THE COLOR in a separate...
[Deleted]
Attached is my code of EA. The first trade works fine and I left the EA on and when I returned, I got the following alerts/errors. "Order 3764742 failed to update stop. Error 0/4108" The alert box was filled with this exact message (some error 0 and some error 4108, with the same order number) I...
[Deleted]
Hello, I've recently installed MT4 mobile on my Windows Phone (HTC Touch Pro 2), but it won't connect to the server. I've tried both the Pocket PC and the Smartphone edition. The version that my broker uses is MT4 Mobile SE build 216. I've also tried using the trial version from the MetaTrader...
[Deleted]
Seems that need a #property statement for chart or data window. ie, find that if remove #property... the indi will not plot whatever the window is. the code is loaded and then removed. . If have property set to data window, I can draw in main window but the data window of course gets created. ....
Pls it is in some way possible to set the indicator to the right upper corner ? If yes pls just help,.. thx a lot,..
[Deleted]
Hi, When reading a csv file into mql4, I need to know how I can skip to the next line of a csv file and also how I can delete just one line from the file. Thanks
i wanted to create an EA that only trade when new early of the current candle bar. i have already code it to detect new bar been form. but.... when i test it on 5 minutes chart. seems that sometimes it can alert new bar been form, and sometimes it cannot. i cannot figure it out.... blur.... can
Hi all, I have come across a strange thing, I've opened the GBPUSD daily chart, applied a 200 simple moving average on close values, the value of the 200 SMA was 1.5487 then I have downloaded the values (File,Save as) and calculated the average of the last 200 candles, and it was 1.5121...
Hi, I have variable instruments data in CSV (or txt) format and I would like to seethem in MT4 and analyse them as offline charts. My understanding is that I must create HST files first and then copy them to "history"folder (please correct me if I am wrong). BUT How to make such HST files from CSV...
  simple question  (36   1 2 3 4)
Greetings to all of you. I have created a code (modifying other codes) for closing market orders. int l_pos_44 = 0; if (CheckFirstOP(OP_BUY) > 1) { for (l_pos_44 = 0; l_pos_44 < OrdersTotal(); l_pos_44++) { OrderSelect(l_pos_44, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol() ||