MQL4 and MetaTrader 4 - page 17

To post a new topic, please log in or register
Hello All, first post :) I have an indicator that writes new arrows to a csv: if(id==CHARTEVENT_OBJECT_CREATE){Print("object created");string fname="WRITE2CSV_"+Symbol()+".csv";int handle=FileOpen(fname,FILE_CSV|FILE_WRITE|FILE_READ|FILE_SHARE_WRITE|FILE_SHARE_READ,";");Print(sparam);int...
Thanks for you help. I was wondering when I placed my EA on my chart and turned off my computer. Is the EA going to run?
Good day all I just have a simple request The attached indicator seems to be messing up. When loaded onto a chart and left to run some signals appear, but when the platform is restarted some signals appear in the past that hadn't been printed while the indicator was running And it doesn't seem to be...
Hi there, I want that the mouse pointer show me all the time, permanently in a labeL all the info. When you slide over the chart with the mouse pointer and if you stop for a couple of seconds over a candle or an object, just then appears for a few seconds a label with the object description. I would...
Hi there, It is possible disable the object description label? (it appears when mouse-over on the object) If I set a void string through ObjectSetText() function, the onmouseover-label doesn't hide itself, but anyhow display (a) the name of the object and (b) the price value of the mouse-pointer...
I can't write the service with the shadow of heiken ashi can someone help me write it? {         double LowerBB =iBands(Symbol(),timeframe,PeriodBollBand,devBollBand,0,0,MODE_LOWER,1);         double UpperBB =iBands(Symbol(),timeframe,PeriodBollBand,devBollBand,0,0,MODE_UPPER,1);                  if...
when compile EA ,the terminal was shut down ,and I get this infomation ,how to solve it ?  thanks . 问题签名:   问题事件名称:    APPCRASH   应用程序名:    terminal.exe   应用程序版本:    4.0.0.1031   应用程序时间戳:    00a97c00   故障模块名称:    terminal.exe   故障模块版本:    4.0.0.1031   故障模块时间戳:    00a97c00   异常代码:    c0000005   异常偏移...
Been struggling for hours now on apparently easy task. If someone could point out my error, please? I would like to use StringConcatenate with "iOpen" (or iTime, iHigh, iLow, iClose). EURUSD_M1_OPEN = iOpen("EURUSD",PERIOD_M1,1); // this is the default way, working. Instead, I would like to avoid...
Sorry for my English I was using this function to close all opened orders for one symbol  if profit > xxx but the problem it close some of orders then the profit be <xxx and it stop closing other orders //--------------------------------- bool CloseDeleteAll(){    int total  =...
Hello Traders,Is it possible for me to rent up to 15 different or separate VPS at a time for all my available strategies?I hope to hear from anyone shortly.Thanks
If there is no data for a time range(for example not any tick in one minute), Do not display candle or display it?  
hello i have a spread recorder indicator that it is not working on new version of mt4 anymore can anyone fix it? thanks in advance
Hey all!  I was messing around on a site with some free stuff what a friend sent me, and I found a PointZero indicator for free that drew my attention and I noticed something that gave me a surprise, the "cracked" indicator showed a comment on the chart that says "Free On <>" and I then thought that...
I've been working on this for a while today and I just can't find my mistake! I modified an existing script that exports MT4 data and changed it a little. I added more pairs and removed the moving average export functionality. Now I'm getting an error stating the parameter count is wrong. I've...
Hi Guys, something strange is happening with my EA. I am using Alpari MetaTrader . I used to use more than 1 lot, to be exact 15 lots, for 6 months, to trade using my EA. But, since last week, if I use 15 lots it will not work, but, if I use 1 lot only it works. I contacted Alpari and they told me...
Hi Guys, please help, none of my EA'S seems to be working? any suggestions would be appreciated.
Hello, I am trying to design an EA to trade on divergence between the prices and RSI values. I have read this article https://www.mql5.com/en/articles/1456 and borrowed some logic in my coding to transfer an indicator code into an EA code. However, I have two questions and I would greatly appreciate...
ok so i setup the network farm on my 2 pcs. they are visible and show as ready. standard setup settings used. but when i run an optimise - it displays connecting, then ready, then connecting, then ready etc etc etc. is this a bug of mt5 we all deal with or it there another step im missing?
I want to know the profit for the last order. The last (newest) closed order number  is OrdersHistoryTotal() -1 Is this correct? So, I coded like; I think I don't need to use FOR function because I just want to know the last (newest order information only). var = OrdersHistoryTotal() -1...
I want to put Close[0] price value into buffer. I coded. #property strict   #property indicator_buffers 1double Buffer[];int OnInit()  {    SetIndexBuffer(0,Buffer);}void OnTimer()  {     Buffer[0]=Close[0];} But when I checked buffer1 , it is EMPTY_VALUE. What am I missing?
  MTF Stochastic (31   1 2 3 4)
Hi, The attached stochastic is an mtf version that is great. However it does not show interim values on higher time frames when used - it only updates the values on close of the higher time frame values. Could you change it to show higher time frame values in the interim before bar close, during...
I'd like to report some legitimate bugs in MT4/MQL4 but the service desk has closed down because, from what I gather, they were being flooded with requests which were actually amateur programming questions and errors which should have first been searched, and if necessary, posted in the forums. I...
Hello everyone, I desire to auto scale the width of an histogram buffer according the zoom scale's candle. My problem is it only works when i change the time frame. I want it to be directly after zooming in/out. I have put the function in : OnInit + OnCalculate + OnChartEvent ... but, it doesn't...
How can i use the an indicator array as symbol for another indicator inside my EA? Example: i want to calculate the standard deviation of ATR (or any other indicator/custom indicator). How can that be done?
#property copyright "Copyright 2018, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strictdouble lots = 0.01;int takeprofit = 40;int stoploss = 40;int magic =33454;int OnInit()  {   return(INIT_SUCCEEDED);  }void OnDeinit(const int...
Hi, i tried to count buy and sell orders of History of an magic number. I tried this out but it seems that it is not working well. int count_order()  {   int count=OrdersHistoryTotal();   for(int i=0;i<count;i++)     {      if(OrderSelect(i,SELECT_BY_POS, MODE_HISTORY)==true)        {...
Hello, Have never used MT5, but now having been forced into build 600+, was trying to take a look at the debugger. Has anyone used this (successfully)? Is there any documentation about it? I placed a couple breakpoints and tried to start (F5); it opened a chart, choosing H1 AUDCAD, which would not...
Hello there! Indicator: #property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Purple#property indicator_width1 2#property indicator_color2 Purple#property indicator_width2 2//---- indicator parametersextern int ExtDepth=100;extern int ExtDeviation=75;extern int...
Hi friends, Is it possible to run the stochastic indicator and my custom indicator simultaneously while attaching my own custom indicator on the chart? thanking in advance,
When I am trying to open MQL4 indicator folder to add new indicator.The folder is appearing for a while and disappearing soon. Help require how to come over this problem.Would any one help me please.                                                                    Bijoy