MQL4 and MetaTrader 4 - page 261

To post a new topic, please log in or register
Hi, I tried coding it with following: datetime futuretime = (datetime) MarketInfo(Symbol(),MODE_STARTING);  But it showing 0:00 where as future starts at 1:00 then how can correct start time of Future instruments, CFD & Metals?  Thank you in advance. Regards 
Hi, I wonder if any body know any function (Script.ex4) to calculate the Max. DD% in a historical period such as a year ago.. Thanks,
I love this thing, and until recently it was working great(nothing changed and nothing was added to mt4 to make it play up). It seems to have developed a problem with moving where the centre box is. It doesn't matter how you drag the box, the spiral doesn't follow. I tried to contact the developer...
when i change my indicator period and this happening.. keep telling me incorrect parameters anyone having this problem??
hello friends i m working on double stoch  arrow indicator ..two stoch i use 5,3,3 and 14,3,3 logic is when both stoch>50 buy arrow appears if both two stoch<50 sell arrow appear this inidcator works good but missing some arrows please modify and guide me where i m wrong here is code and chart 
Hii i'm working on making my own EA based on price action. in order to complete my EA i need to know that , is there any Function to get Momentum LOW and momentum HIGH prices like showed in the picture above???  please help me to complete my EA. I know some basics of coding..   thanks in...
Dear all, I try to make the custom indicator about the cutting of MACD main & signal. Rule is (with the upTrend): 1. With M15 the MACD main line cut up the signal line -> sign1. 2. Sign1 = true -> with H1, check the MACD on the up or down trend (uptrend when mainH1 cut up signalH1 & oppsite). ->...
Hi, I am looking to hire coder/programmer/developer for MetaTrader4 who would be willing to REdevelop (REcode/modify the existing code) the tool ''Money Manager Graphic Tool'' for me. I use the following version: https://c.mql5.com/3/100/order_graphic_tool.mq4 (link obtained from https://www.mql5...
Hello all! :-) With Microsoft's help i have created a small multithreaded named pipe server. It is not finished yet. Finally i want to connect two MT4-Terminals as Client "X" (aka Client1) and as Client "Y" (aka Client2). At the moment i'am getting an unsorted output. It looks like a asynchronous...
I refresh the forum page and little arrows appear that have new posts. But very often I click on the arrow and am taken to the top of the last page. I scroll down and find that there is no new post added. This is happening to me so often just lately that it is getting annoying. I know that it can...
Hey there people,  I have a simple starting indicator that draws arrows above candles that specify as buy/sell signals. However, I want these to only show up when the candle touches one of my predefined / drawn support and resistance zones (so rectangles on MT4). Does anybody know how to do this? Oh...
Hello, This indicator doesn't refresh on offline chart (range bars). I really don't have a clue how to fix it.  //+------------------------------------------------------------------+ //|                                     LastManStandingIndicator.mq4 |...
As the thread subject implies, I am becoming rather confused between the two. I cannot find anything on Google - believe it or not., just companies trying to sell you VPS solutions (which I plan on purchasing in the near future.) Any short and simple answers would be greatly recieved. davefx.
I am very new to coding mql4, and have completed my first EA. My only problem now is that I cannot get it to open trades on more than one pair. In the EA section on the terminal next to journal, it send a stream of the error, invalid ticket for orderclose function, even though the EA opens and...
Can anyone just please verify i am on the right track  before i go further--  I used ArrayCopySeries  to bring the higher timeframe bar data into my lower time frame. now i want to run iLowest on that data, but i think that will return the current TF bar shift, but i need to find that higher TF bar...
Hello guys and gals,   i have this very inconvenient problem. I want to place pendings orders exactly at 8:59:59 and i dont know how to do it with timer to repeat it every day. In code below every day will be x minutes away from 8:59:59 where x is 9:00 minus time you put EA in chart   int OnInit() {...
Hi Freinds,    I am new to MT4, and have just setup an indicator with Buy and Sell arrows. This indicator is pre-coded and has all the functions of alerts (like Mail, push, sound alerts), but I am confused as to how should I enable these settings in both Indicator and MT4 standard notification...
Hello, How to add a day at a datetime variable ? My code : datetime dtDateTest = D'2004.01.01 00:00'; datetime dtDateTestPlusOne;  dtDateTestPlusOne = dtDateTest + ??????? ; Thanks, Tintin92
Hi, I think this a limitation of the MQL sandbox but I thought I'd ask here just to double check. I have an indicator the needs to create an arbitrary number of "indicator buffers" based on the input parameters e.g. If the user wants to show 5 results then I need 5 buffers, if they chose 3 then I...
Hi there,   I need some help. How can i put a value on a variable, and chage it when a new signal shows? Let me explain a little bit more:  I have this code...       if(iEnvelopes(NULL,0,14,MODE_SMA,0,PRICE_CLOSE,Deviation,MODE_LOWER,1)>Close[1]  ){       Flag = 1;      }           and i want that...
I use MT4 build 988 on Win10. The terminal was installed after OS received Anniversary Update from MS a few days ago. After successful installation I tried to attach my EA's to charts in this new environment. But it is impossible now. They can't be attached to charts anymore, neither dropped nor...
pvrego
Is the function TesterWithdrawal() from MQL5 available also for MQL4?  In mql4 code, it compiles, but it seems to do nothing.
[Help] What is the Real Formula of Exponential Moving Average? Please explain it to me. I searched in internet, I found many EMA Formula. I want to know the right way to calculate EMA. I need the real formula of EMA.
No matter what I do, the tester still shows the same template, which is not related to the Ea being tested. I have tried different EA, different pairs, different profiles, different initial templates and always get the same template, which in some cases has  none of the appropriate indicators...
Hello. I am having difficulty making my EA do what I want it to do. I've read the book, I've tried experimenting with the sample programs, but my own EA is producing undesired results. My strategy is simple. I'm watching XAU in various currencies on M15 charts with a 144 period Bollinger Band. When...
Hi everyone, I'm trying to get the EA to record when a bar closes outside the bollingerbands, then initiate a trade if this happened in the previous bar and the ema's cross or something. My code so far looks like this: int bar, sll; if( Close[0] > bollingerband ){ bar = Bars;} if( bar+1 == Bars){...
Hi, I can use 'GetParent()' within 'user32.dll' to get the handle of the current chart.  I can then manipulate that chart.   How do I get the handle of a Panel that I've created within that chart?  So   int Onit(void) { ExtDialog = new CPanelDialog; ExtDialog.Create(...  etc } How do I get the...
hello everyone, I have a problem with the app. in Search Server can not find the server that my broker gave me, that Joshua development and renco development. the broker said that to him the app these server recognizes them, so much so that he sent a photo with these servers running me. what's the...
Hi all, anybody knows how to get the distance between the last time bar touches an indicator to current indicator ? so lets say i have a simple moving average, and i need to find how many bars have gone since last time the bar touches the simple moving average until current bar. Thank you in...
I'm fairly new to automated trading and trying to create an EA that will trade a strategy that I use with Bollinger Bands and RSI. So far I have the coded the EA to trade off of bollinger bands. The program works fine the first round through when I tested it. One trade is opened and on the next new...