Download MetaTrader 5

MQL4 and MetaTrader 4 - page 301

To post a new topic, please log in or register
Hello Basically I have this code:   iOpen(Symbol(),PERIOD_MN1,1); Which is used in my EA running on a 5 minute chart. Will I need approx 2 months worth of bars present on the 5 Minute chart, or just approx 2 months worth of bars on the Monthly chart for the code to return the correct figure? Kind...
Hi, to show me some information of my expert advisor variables, I created some label-elements in the right top corner. Until april all gone fine, but with some new updates of Metatrader the text isn't aligned right correctly. If I change the text with an EA, the text is aligned left now. :-X Is...
Is there a way to format a number with printf to separate thousands like this:  123,456.80 All formats I tried give me 123456.80     
//+------------------------------------------------------------------+//| Reverse_Grid_Martingale .mq4 |//| Copyright � 2014, AMIT |//|...
Hello gentlemen. I was looking for a tool that could help to find robust parameters in order to optimize strategies. I found only the following IDE: <links removed by moderator> Since I do not want to bind me to a particular software company I would prefer to buy only thrid party software that can...
Well, If you put the following code into a script and load it up on a chart, you won't get the correct time value.  Why? int start()  {   struct OrderInfo     {       datetime dOpen[];     };   OrderInfo myOrder;   int OrderCount=0;   myOrder.dOpen[OrderCount]=Time[2];   Comment(TimeToString(myOrder...
Hello, I am a C++ programmer and completely new to mql4 and I like it very much. There is a strange problem with all my Expert Advisors.   I made this extremely simple EA to demonstrate the bug. input double SL = 25.0;input double TP = 25.0;input double Lots = 1.0;int OnInit(){...
Hello,  Seeking for open source MQL4 EA for semi-automatic trading.  What I call semi-automatic trading.  I set the params of my my EA, purchase level param , sales level param , I selected my money management rules, I selected the rules of averaging down, I selected the rules to take partial...
Hi, I'm not sure if I have found a bug in MT4 build 646 but it is driving me nuts to try and get my code to work. Has anyone else had this issue? When I use iRSI in a script running on a chart (example ZARJPY) and reference another symbol with the D1 time frame then zero is returned unless the chart...
Hi Valued Customers Great news for all Forex Traders, Investors and Individuals... Ask me here any things, solve any problem, discuss Indicators, EAs and strategies... Skype: macliteriint
Hello guys, I just wann ask you what is wrong with this piece of code? void CloseOrders()   {      int total = OrdersTotal();      int i;          for(i = 0; i < total; i++)         {            if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))               {                  if(OrderType() == OP_BUY...
Hi   I've had one of my expert advisers running on a live account for some time now showing good results and I'm considering selling it.   I understand there are technical challenges with modifying the ea for commercial use (GMT offset etc)  but like most developers where my skills lack is in how I...
Hello, I have a problem. I am coding a small system to test it and now I am adding a trend filter which indicates the trend. The ea works at first, so he open the first and the second trade but then he dont open the other trades. If I use one the code for the Up trend for example without the...
hello to the experts, I got a problem with the durability of objects. I use some custom indicators in charts , they have a normal draw object function(vertical lines) included. Now when I close the MT4 and restart it another time, the formally drawn objects dissapeared in those charts. I checked if...
I created csv history converter that generates M1 M5 M15 and so on csv files to import into mt4. When i try to import history to mt4 many bars don't get imported and there are gaps.. it's about the BTC-E MT4. I include the screenshot and the csv files that i try to import. The non-imported lines...
Please i need help with developing an automatic trading system that will use Accelerator Oscillator. When the bar is green and above zero it should buy and take profit after 10 pips and stop loss at 20 pips. When the bar turns red and it is below zero it should buy and take profit after 10 pips and...
Hi all, first time poster.  Looking for some assistance here. I have an indicator (Attached)   Essentially an alert goes off after three consecutive bull or bear candles, provided the price action exceeds the previous close low or high. What ends up happening, is that the price action of the next...
HOW CAN I CODE FOR SOMEBODY REQUESTING FOR MY EA. I MEAN THE CODE AS I NEED HIS ACCOUNT TO DO THAT BUT I DON'T KNOW HOW TO DO IT. I NEED YOUR HELP PLEASE. JUST GIVE ME THE MQL4 THE WAY TO INPUT IT, I HAVE ONE HEAR BUT IS NOT PLACING TRADE AS I INPUT IT THEIR, int hard_accnt = 11111; //<-- type the...
I would just like to report that sometimes the OrderCloseTime() is returning 0 even thought the order has closed.  I stress sometimes but it does happen enough to be serious.  Yes I have verified the order has been selected.  I printed OrderTicket() and and OrderCloseTime() to the log and it is for...
Since the function ObjectGetValueByShift returns a different value for each time frame, it would be nice if we could specify which time frame we want to get the value from.
Hello!  Since the build 646 installed i can't add indicators to my chart.  The indicator comes only with a reset tab - but no other tabs!+ Please help!    
Hi, I moved to new computer and was forced to install a new built of MT4 way above 600. Almost all my compiled scripts are working, but those that don't return the same error: "not all control paths  return a value". In theory I understnad what it might mean, but with my basic programming skills I...
Hi everyone... I am having problem installing the IBFX MACD traditional indicator and other templates into my MT4. Previous version, I would only need to copy and paste my files int the "indicator" folder located in the "expert" folder. Current one has only "MQL4" folder which consist of a saperate...
Hi, I am trying to change this very simple code that protects my EA to include more than 1 account number or range of account numbers. Can someone please advise me on how to make this possible so the protection script includes more than 1 account or a range of accounts. Thank you! }...
Hi, has anybody found a solution to access the news-tab in the mt4-terminal? May be by using: GetAncestor(WindowHandle(Symbol(), Period()), ...);PostMessageW(..) Thanks a lot in advance! Gooly
Hello Every one i am new here.i am not a programmer.i have a problem with my ea..can any one help The problem is: EA Should open trade only Once when it gets a New Signal.  it wont open any New trade unless it gets the Opposite Signal. i am posting the code that i have find in a post.. https://forum...
Greetings, I've tried using both of the MQL4 program protections from the metatrader development course and neither one works in my indicators. One is for account protection and the other is for trials. I'm thinking maybe recent updates may have changed something since 2005. If someone could make...
Or should I go with 2008?  Or for all intents and purposes is there no difference?  I can see running up to 6 instances at the same time but as my budget is small I am looking at a used entry level setup.  I need more consistent uptime than my laptop allows for a host of reasons. 
Each time I think I think I’m ready to go live, a new piece of confusion arises. This time I was checking out forex.com (dealing desk) against FXCM (NDD) to check out spreads and anything else I might find. But I did not expect to find such a variation in the trade data.  For example, I’ve drawn an...
Hi. When I open a new order, I always use the takeProfit and stopLoss prices. When I close this order opened with the terminal this values remain in historical grid. There are many values, the price close, date, tp and sl and others. My problem is that when I close an order with my script using...
1...294295296297298299300301302303304305306307308...1245