Download MetaTrader 5

MQL4 and MetaTrader 4 - page 84

To post a new topic, please log in or register
  Text ON chart (3)
Hello I‌ placed a text object on chart B‌ut only a part of my text is shown on the chart. ‌ And it only occupies halp of the chart width. ‌ ObjectCreate(objname3, OBJ_LABEL, 0, 0, 0);    ObjectSet(objname3, OBJPROP_XDISTANCE, x3);    ObjectSet(objname3, OBJPROP_YDISTANCE, y3);...
Hello, Is it possible to code (I would order a Freelance job if so) a plugin that re-runs MT4 (genetic) test results 1 by 1 and either save the results in excel or open the tabs in firefox? The problem I have while strategy-testing is that many results are given as similar but when I input the...
I'm really a newbie but please have a look at this: Every time i run a strategy testing the first time i obtain different result from the next ones without changing anything even if the platform is disconnected from the broker to avoid spred problems!!! From the second pass everything goes ok.  It...
When the indicator thread becomes busy and misses the next tick, the missed tick data is still displayed in the Market Watch tick chart window. So I wonder if there is a way how to get the missing tick data that is on display in the Market Watch window. I thought about the file ticks.raw file...
Hi all, I am new to MQL5 and MT4, I am a little surprised by the simple layout, for example at the order window why aren't the current orders with a profit green? I tried to change this but couldnt find the right place. Could someone help me out, if it is possible at all. I really hope so because I...
dynamic trader is software that has additional fibo systems that are very helpful and exact . very helpfu in trading, i know mt4 has rettracements, expensions and timing . but nothing like dynamic histogramm, this one is very very helpful in finding exact times of turning points . asking if there...
Help needed, I tried to use the .ico format file with the #resource but it is not recognized. However .bmp is very much used with #resource. Question is: how do I use Resources to append the icon file (or better still use .bmp to create an icon) so that when the program is distributed or moved to a...
Sometimes the market watch window is showing only the last few seconds of price fluctuations, and sometimes several minutes of ticks.  I understand that it is some sort of cache that needs to be filled, but : 1 why isn't it consistent, and 2 how can I reset it? 
This was fine before new mt4 builds but is throwing up "cannot convert type string to bool" when I try to compile now, any ideas? if((bool)response.getAttribute("error"))
Script being discussed: NettoTrading - I will keep this as brief as possible. - I prefer to Buy/Sell with OneClickTrading(market orders) and have it automatically subtract/add/close my current position. Similar to a DOM   with NinjaTrader/Futures platforms. - So I use NettoTrading on MT4 with my...
  pending order (2)
I need somebody to help me how can i put some pending ordrer at the same time. I want a put all the following orders at the same time.  I put the  first 2   OrderSend("GBPJPY",OP_BUY,mul*0.5,Ask,10, 0, 0,"My order");  OrderSend("GBPJPY",OP_SELLSTOP,mul*1.0 ,Ask-Zone,10, 0, 0,"My order");   but the...
Hello, I got an EA from a friend, but I do have problems with the Error 131 which I learnt means, that the calculated trade volume is not allowed by the broker. Is there somebody who could fix the .mq4 code an add in a trade volume check before the OrderSend function is executed. I am not able to...
Hello, My EA has different types of order and with some of them, if I specify a colour in OrderSend() and OrderClose(), it creates a big mess on the chart with repeated trades opening and closing. Therefore for some orders I need a colour and for others I need nothing.   My code is as follows:...
Hi There; Mac based MT4/5 platform can not link with MQL5 so is there anyone who know how to link it ?. Please assist as I cant link it and can not buy any EA or robots.   Thanks 
Be aware that the a.m. editor seem to have problems with file names like test_v0.1.mq4. Sad to say, but I would not recommend anybody to update :( I created a new file test_Names_v0.1 that seems to be ok. Then I saved it as test_Names_v0.2 - in the editor it looks good - but the folder doesn't have...
Hi, 2 questions:  1) Can an EA successfully run on an offline chart? and 2) What is the code snippet to disable or turn off chart (Offline chart) after the 1st tick of a new candle received and then re-enable this same chart after a new candle on chart has been opened (the next candle) or to turn...
Please can s.o. check? I loaded the simple ATR.mq4 in my mt4.editor (mt4 b 1045 editor: b 1526). As the debugger button is grey I pretend to save it under a different name but used the same name and confirmed overwriting the original file. Now if I start the debugger after some graphical action -...
how do i log out of meta 4 ive downloaded new indicator and it says i have to log out and log back in to make it work.
Hi guys, i have finish many EAs for learning purpose using iCustom, but this time i couldn't make it work ! i Have no idea why. The Indicator show correct value on Data Window but when i use iCustom i get EMPTY_VALUE , no changes at all.I even tried to read Bars[4,3,2,1] But it's the same , it's...
Hello i need help with checking if pending orders were opened in my EA. Currently I am doing it like - I save in static value number of opened trades. Then Im checking opened trades and if this values is bigger than the value in static variable then it means pending order was opened. Thats fine and...
Hi, I need the quotes of the m1 bars together with the quotes of the bars of the current chart to go back for "LookBackBars" (if possible) of the actual timeframe Mt4 now offers 'me' for this 3 'data-streams': time[] (or Time[]) from Bars-1 to 0 (=current)MqlRates of _Period andMqlRates of M1.So I...
At present time it appears there isn't a script that will close all open positions and or reverse them in compliance with FIFO rules. For accounts running on US soil this makes the existing scripts useless because the script seeks to close positions randomly and without respecting First In First Out...
I have an ea that opens too many buys or sells on the same currency pair. I cannot find any script online that will prevent metatrader from opening a new order when for example their is already a buy on the pair or a sell on the pair. i want to prevent it from opening 2 buys or sells, like when one...
Hi, I'd like to compare iSAR indicator on more timeframes and also on a different symbol. It works properly for different timeframes of the current symbol. For the different symbol it returns correct value (see 1. variable usdind_01_sar). But if I will print it out or want to compare the value, the...
What is the best way to avoid the "possible loss of data..." error from this line?   int secs_remaining=(Time[0]+PeriodSeconds())-TimeCurrent(); 
Hi I'm trying to manipulate an indicator value, For example: if (a=(iRSI(NULL,0,14,PRICE_CLOSE,0)>75)) {    int b=a-3 }   The problem is that a returns true and not the value of the indicator (75). how to get the value of the indicator ? I know I can try:  if (a=(iRSI(NULL,0,14,PRICE_CLOSE,0)>75-3))...
Hello guys,  its a return of the comeback... Im still newbie in terms of trading... Does anyone know where i can a tutotrial how to make an EA in mt4?   Thank you!   Mc 
Hello, I am currently using an EA that places two line on the chart. When price touches the top one it order a buy order an the botton one a sell order.   Is it possible instead of using a fixed stop loss value, draw two other lines on the chart, one BuyOrderStopLoss and SellOrder StopLoss, so that...
I want to store current bid price to use later and update stored every specified seconds, Now can anyone tell me why my code does not update the stored price?   double time = 1000,price;   int TimeBar; //Fill price with Bid and record time    if (price==0)    {        if(price=NormalizeDouble(Bid...
I'm using MT4 Build 900 on a WindowsXP. Today the Visual Mode and tabs at the bottom have disappeared. I've checked with two brokers. Same issue. I'd be grateful for any suggestions on how on a fix this.