MQL4 and MetaTrader 4 - page 559

Good day, I'm beginner in MQL 4 and building my first EA. I want that the EA will buy or sell everyday from 9:00 to 10:59 depends on High and Low of H1 candle starting at 8:00 same day and sell it if it reaches the stoploss or profit target. It is actually working in that time, but sometimes it is...
Hello guys, good day all. I want to assign economic data to a variable as soon as they are released in order to incorporate same to my auto trading strategy . By so doing I want to be able to program my EA to either buy or sell when a number of released economic data meet certain conditions. This is
Hi ,   I work on EA and I block and I hope your help how to find the maximun price between the point where it hit take profit level  and the stop loss level  as shown in the picture thank you very much    
[Deleted]
  Pivot line text  (3)
Please help add text to the line on the right side. Thank you in advance for your help.  
Hi all, Which broker provides the furthest historical data? i am using a broker now but it only provides till year 2000 on Monthly time frame. Thank you!
Hi guys, This code #define N_ARRAY 5   int myArray[];   ArrayResize(myArray,N_ARRAY);   Print("Before: ",myArray[0],"/",myArray[N_ARRAY-1]);   ArrayFill(myArray,0,WHOLE_ARRAY,7);   Print("After: ",myArray[0],"/",myArray[N_ARRAY-1]);  gives 0/0 in "After" line. But this code #define N_ARRAY 5   int...
  Close position after X hours  (19   1 2)
Hi guys, i'm new and I need your help. I'm writing an EA and I want close position at market after xx hours (maxHour value) if i'm NOT at breakeven..So i wrote like this (long example) for (int i = OrdersTotal() - 1; i >= 0; i--)         {if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES))...
Hi,   I have this MT4 indicator that shows me Open to High difference at top of the candlestick. What I need is that it should also show me Open to Low  difference at the bottom of the candlestick. Is there someone who could do this for me and may be suggest an Indicator that already has this...
[Deleted]
  Hide auto trade  (1)
Hi, İf I use ordersend via EA. I take 4112 error. Is there any way to hide auto trading from server. So server would not be unerstand that trade process is from manuel or auto
Hi I use Rate of Change ( RoC ) in my trading and have recently had to delete and then reload MT4 to my pc due to some issues I was experiencing with my PC. However since then, when I draw trendlines over the RoC in the bottom pane of my chart the trendline only stays for a couple of seconds and
"I've learned more about online trading of forex and stocks through Ask Mario Singh blog. He personally answers questions daily and give great insights for anyone to learn stock market easily. You may want to check him out. Edited by moderator: Please respect the rules : "Posting of advertising
Hi For real trading the answer is obvious - fixed risk per trade, but what with backtesting? Wont it distort the results of EA? For the purpose of rating the EA which method is better?
Hi, I'm sorry if this is stupid question, but I'm new to coding. Does the code I write in MQL4 is read by MT4 in the order i write code? I`m asking this as I have 2 peaces of code contradicting one and another. But wondering if in this case the last code will be used over the first one? Here is the...
Why does an empty dynamic array, on a 1 day EA with a 5m timeframe produce > 80k element with this code?  Is it always linked to the amount of bars on the chart? Because I don't want that. I just need the Series functionality to catch the latest 3 zigzag values.    // I've set my_array[] on top and...
[Deleted]
  Peak & Trough  (2)
Hi guys,   I have Metastock formula and I'm try to convert it to Metatrader4. The problem is I could not find  Peak, Trough functioins on metatrader4. What these function named in metatrader, or How to convert these functions (Peak, Trough) from Metastock to MetaTrader4.    Regards, 
how can i use mql to run extern ".exe" program? thanks everyone
New article Graphical Interfaces VIII: the File Navigator Control (Chapter 3) has been published: In the previous chapters of the eighth part of the series, our library has been reinforced by several classes for developing mouse pointers, calendars and tree views. The current article deals with the...
i have downloaded mt4.exe..but while i start to install download files completes upto 18386kb and shows and red marked error and installation is not completed.what should i do now
[Deleted]
Hello,  I have this code which draws VLine. datetime N = iTime(Symbol(),PERIOD_D1,0);for(int ml=0;ml <96; ml++){   MTemp[ml] = rv(A + (fixed Data * ml));    for(int pl=0; pl < 9; pl++)    {            double Ap = MathAbs(MTemp[ml] - PTemp[pl]);              if(Calculation)...
Hi there, I've found that backtesting can require huge data sets and my C drive ran out of space. I bought an external hard drive thinking I could install MT4 on it, as well as download the data sets to it, and that this would be the best way to strategy test with Birt's Tick Data Suite. After...
Hi Guys Is there any way that I can check the value of a variable while I am working on my code - like some kind of keystroke (Ctr+Alt+something) that will display the variables value...??? It would be quite handy... I usually simply display the variable in a "comment" and then run the EA to see
[Deleted]
Hello,   I have problem with my EA which Im trying to create. Look like that this ea's open position well but unfortunately it closes position in way which I cant understand. I would like to close long position when +DI is below the ADX and I want to close short when -DI is smaller than ADX. Below...
I've searched everywhere for an explanation for that, last week my windows 10 had an update, and the next day all my metatraders 4( version 988) had problems. I can't add custom indicators, or test any expert advisor. It was everyting perfect since my windows updated I'm running Windows 10 Home 32...
[Deleted]
Hi everybody, This is my first post here and would like to ask for help as I'm new to the metatrader (but not for programming) I downloaded MT4 and when try to get MQ4 through the platform it is opening MQ5? Could you advice please. Thanks in advance 
[Deleted]
I tried to test AUDUSD with Heikinashi for last 1 year data at 4h/daily, but buying and selling timings were not at right timings and did not match with Heikinashi color changes. The same for other EA such as MACD. Please advise how I can solve this issue (have looked up several sites, but did not
[Deleted]
Hi, Generally for using custom indicator buffer, we need to declare it at first in following way. #property indicator_buffers 3 But in my indicator this number of buffer is not fixed, it calculated with Chart High price & Low price / scale unit. to decide how many buffer it will required to plot...
Hi all I'm running the attached code through strategy tester. Works well in visual mode. Just as nice in non-visual mode. But try and run an optimization test and it doesn't take a trade.  Any chance someone can tell me why?  I do note most my other codes work fine. I do have a few variants of this...
Hi coders, is it somehow possible to delete the text in an OBJ_EDIT when clicking on it? I want to avoid a label as a description for that edit box and so I want to place the description right inside the edit box which should disappear when I click on it. I tried it this way but it doesn't work:...