Download MetaTrader 5

MQL4 and MetaTrader 4 - page 831

To post a new topic, please log in or register
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...
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...
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!
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...
Hello Guys, Does anyone know why am I taking point=0 as result of MarketInfo function ?? double point = MarketInfo(Symbol(),MODE_POINT); double min_distance=MarketInfo(Symbol(),MODE_STOPLEVEL); I print the results in terminal and I see point = 0 and min_distance = 40. Is this normal? I tried...
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 wouldlike 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,...
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);
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 ?...
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...
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...
what does group "*_*" versus group "*" mean?
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...
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,..
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...
This is kinda a basics question. I read somewhere that Forex Market Makers can charge any price they want. Then I read somewhere else that the participants can ONLY vary their prices with-in the spreads. With-in the spread? What does that mean? Does it mean that if the Inter Bank price on EUR/USD is...
Hello generous members of mql4 community. I'm starting to learn Arrays but they're getting nasty with me :) The 2 Dimension Array, Allerts just fine within the loop but would not print correctly outside the loop nor write the same values to file within the loop. Any Ideas why?
1...824825826827828829830831832833834835836837838...1249