Download MetaTrader 5

MQL4 and MetaTrader 4 - page 503

To post a new topic, please log in or register
Hi, how can i make all the multiple charts i have open automatically evenly fill the main window, even if adding or removing charts it adjusts and re sizes the window so they all evenly fill the main window? thanks a lot
Hi, When I use RefreshRates in asynchronous mode on my EA, function returns False and I receive an error 4054 (incorrect series array using). What could be the cause and how to fix this? Can anyone help?
hi all, need a little help the code is: basically its a scalping EA. timeframe 5/15/30 min. the algo is like if certain conds are satisfied enter into trade and exit after a few pips say 10 pips. the EA should compare 10+entry price. i am having trouble getting the price at which i entered into the...
  what's wrong? (15   1 2)
for(i=OrdersTotal()-1; i >=0 ; i--)                        {                        if(OrderSelect(i, SELECT_BY_POS,MODE_TRADES)==true)                                                 {if ((OrderType() == ((OP_BUYSTOP)...
Hi all, So, the issue have to do with the open of an order that should be opened from a distance of other. Say that one want to open an Sell order 2 pips (20 points) down from  the open price of the Buy order. With the code that follows some times it opens at the Opposite distance, others more than...
When will the Mt4 platform for window phone 8 release !!!!!!!
Hello, I try to publish a little script to codebase but it was rejected with this message : Unfortunately, some of your codes "Check connection (IsConnected)" need to be corrected.They are returned to you by moderator for correction. My problem is that I didn't found any error. It works very well...
  The expert log (17   1 2)
Hi all  I know that this is probably a very basic question, but I haven't been able to find the answer, so I try to ask you ...  I have a demo account at Alpari UK, where I'm testing a EA that I've build.  I can see that there is an error in the EA, and I'm currently investigating it.  The Expert...
While using ExpertAdvisor MetaTrader4 could take more than one transaction simultaneously ?  long only transaction in the same currency pair
  data fetch (1)
i am from india fow to fetch data historical i mt4 for 1 year
I  go across several articles with "This is the fourth article from the series "MQL4 Languages for Newbies". ". I found these article very helpful. But the first article " "the fundamentals of MQL4" can not be found even if i searched several times on the site. Could someone be so nice to give me a...
Hi   i ve got the following code that is trying to make an MA out of the C-L calculation. My main problem is tha: When i first place the indicator it is drawn fine. But after it it starts drawing a straight line... cant really figure out why. Here is some snapshots.  Pic A when i first place the...
Hello, I´m making my own EA. So far I want to open 3 positions at the same time, but what happens is the EA get a bucle and starts to repeat that process a lot of times. I mean, the EA works fine, open the 3 positions, but after a second or less, it continues opening the same positions. I just want...
//+------------------------------------------------------------------+//|                                                    Mahim.mq4 |//|                           |//+------------------------------------------------------------------+#property copyright ""#property link      ""#include <stdlib...
I loaded a robot program in folder expert  and seems all ok but on the left below the folder where are the colored icon of expert my expert is gray! and i belive  that in so way it is doesen't wokìrk.Where do i make  the mistake? please helpme Armydas     
Everybody suggests that the best way to protect an EA is thru DLL. Can anyone show how to do that? Assume just a simple EA.    int start()   { //----    if (OrdersTotal()==0 &&iClose(NULL,0,0)>iMA(NULL,0,60,0,MODE_SMA,PRICE_CLOSE,1))    OrderSend(NULL,OP_BUY,1,Ask,3,100,200,"buy",123456,0,Green);...
I keep getting the error when closing out part of the lots of a trade and cannot seem to fix it, any ideas? It does not perform order modify on the sell order either which is strange! void BreakEven1(){ if (BreakEvenType==1){    double lots = 0;    double takeprofit = 0;    for (int...
I mean when I execute script, "close" for example, it never run well, and I get the information as below:   I want to know why and how i can use script usually? Thank you! 
hi i am new to automated trading domain and mql and trying to mirror moving average indicator by following code , but its not working. kindly can anyone spot the problem so that i could fix it  thanks //+------------------------------------------------------------------+...
i have some data - during backtesting - where the bar flicks up - and the trade is closed but then when the bar is finished the high of the bar does not include that upthrust. It appears to have closed independant of the data , but in actual fact the bar did go that high. Is this something that is...
Hi, i have this code and i need your help please: I have attached the file The SpreadLimit is 4... how can i modify spread limie? From where? please ... i need to modify to 5 <DECOMPILED CODE REMOVED>
I have two questions about MQL4 as below: 1. what is the difference between "Expert Advisors" and "Scripts" in MQL4. I mean that I write a unit of program code--"x",when I put "x" in "start()" of Expert Advisor, the code work well; but when I put it in "start()" of Scripts, it never works, and MT4...
When the Buy criteria is meet a Market order is trigered and the Market orders SL and TP is added. Then a BuyStop pending order is placed . The BuyStop pending order should also have the stop loss modified  as soon as it is placed but it doesn't modify after it is placed. i can't see where in the...
Hi, I need to test my EA with the "Each Tick" metod on UK100 (with a float account).  In History Center, under Indices FL / UK100 / M1, I can see the Database starting from 17 Oct 2012 until today. But when I use the Tester to test my EA for UK100 in the period of database, only first data in...
Hello I'd be very grateful for a little assistance.  I can't work out why this little bit of script doesn't work: double v1=AccountFreeMargin()*(RPC/100);double v2=ABC*AccountLeverage();double v3=(v1/v2); Where: RPC = 1 ABC=20  I'm sure its something simple that I just haven't been able to find (eg....
I have developed the  an application in C#.net with textbox and send button . when user click on button then textbox value sends to the MT4 terminal for processing . Similarly how we can get the data from MT 4 to text box of my application ? Please Help me out?  If any one have the little running...
Just as the subject states, I can't figure out how to display the current read value of an iCustom indicator on my EA. Can someone please show me a sample piece of code? I've searched everywhere and can't find out how to do this.
Hello, I'd appreciate if anyone can help me locate a simple Automatic Trading App that would allow me to place automatic orders (Buy/Sell) based on pips movement (either +/-).  I was trying to search through the Available EA's with no luck. Thanks in advance, Yisro.
hello guys,  I've subscribed a few signals. Corresponding to the signals the trades gets opened. But the trades do not get closed, instead a popup is received saying that please see the attached image (dialog).   Please let me know how to allow my account to just follow the signal in all cases,...
Why do people do this void foo(){ stuff...} instead of this? void foo(){ stuff...}