MQL4 and MetaTrader 4 - page 526

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...
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...
Hey desperate for some help here!   trying to control the way indicator draws fibbo scales automatically and think ive perhaps gone about it the wrong way from the start.    I have it setting everything as buffers so the datawindow is populated with what I want. But what i need is for it to only...
//+------------------------------------------------------------------+ //|                                                                  | //+------------------------------------------------------------------+ void StopLoss_Management()   {...
I'm trying to install Oanda's MT4. I downloaded the installer from Oanda. When I attempt to run it, my cursor changes to the busy animation for a moment, and then nothing happens. If I examine task manager while running the setup file, I can see that the process starts, and then exits. I've
I wish to analyze a chart using Fibonacci indicator. Is there any methodologies (or libraries) that can draw of Fibonacci indicator automatically on a chart with MQL4?
Please can someone explain to me in simple terms the difference between StringToDouble() and StrToDouble() functions? The documents did not seem to differentiate between the two to my understanding.
Say I have two candles satisfy a property, I want to draw a rectangle around them like the following under custom indicator, what should I do? The [setIndexStyle][https://docs.mql4.com/customind/setindexstyle] does not seem to have this option.
Greetings! First time poster here. I have a bug that's nagging at me. It has to do with iRSI indicator, which is giving me funky results. Context: I have a chart running EA with the following method:   double getCurrentRSI(int timeFrame, ENUM_APPLIED_PRICE appPrice) {       double returnValue =...
I'm having trouble enforcing FIFO closing of positions in a fast moving market in MQL4. Based on other forum questions I keep a class array of my open orders sorted by OrderOpenTime. I use Limit Orders exclusively to open these positions. The order in which these limit orders can be triggered cannot
Hello, I want to place a button with mt4gui lib on the right side. And with this lib is not possible to choose the "CORNER _RIGHT_UPPER". So I have to recalculate the Chart size, but I don´t wanna do this every tick but if the chart window is resized only. I want to know if there is a trigger that...
Hi All, Just today , i got this error message which failed to copy the signal from my EA. Any1 know how to solve this issue? Thank You
Hello guys, I'm new to this forum. I was wondering, is it possible to develop extensions to the GUI? I have some experience working on a CAD tool and it would be nice to put it to good use in MT4.  Have a nice day, Andrei 
Hello I love to open trade in 00:00 time every odd days  but When it comes to holiday , order start in first week day that odd or non odd !!?  How can I fix it ? #define  DAY 2*86400 // day is 86400 seconds times to 2 and start from odd day #define  HOUR 3600 // hour is 3600 seconds #define  MINUTE...
Hi guys, I've been searching the forum and trying to pull apart scripts on the web. Documentation has only gotten me so far. I'm trying to get the current and previous position of M15, then zooming out to see what bar it resides inside of H1 and H4. Live trading I believe this will either be 0 or 1