MQL4 and MetaTrader 4 - page 404

I'm trying to pull market data on a EURUSD.s chart. Option 1) MarketInfo(Symbol(),MODE_BID); Option2) string Suffix=StringSubstr(Symbol(),6); Print(Suffix); //gives .s string Pair="EURUSD"+Suffix; MarketInfo(Pair,MODE_BID); Option 1 is working fine. Option 2 is not working, it can't use Pair to...
For some reason the comments in my code are appearing in my Input dialog box in the variable column. (Build 646) eg input string MMValues_S         = "<===== Money Managment Settings =====>";input bool   dynamicLotSize_S   = true;  // Enable for compounding lot sizesinput string Info1_S            =...
Hi everyone, I'm trying to use the iCustom command to take values from an indicator that I do not have access to the source code for. The indicator has a lot of settings, some of which are not numerical. I know that you have to pass the indicator settings to the indicator in iCustom, but I'm...
Hi, im new in coding. This period im studying C, it would be helpfull to know in advance what are the differencies between C and mql4, since Im going to code my own EA and I want have since now an idea of what C can and cannot teach me. Thanks!
[Deleted]
Hello,   i've just  installed my mt4 on w7, before i was using vista. I'm not sure off the version running on vista but on w7 it's version buit 950. the tradefromcsvfile expert advisor  (cf below) is not recognized anymore as an expert. Don't know the reason why it doesn't work anymore. If somebody...
Hi mates, I have a method that can save the current objects of the chart in a file .csv and another one that can read from this .csv and put it on the chart. This second method is called when the user clicks the key "0". When the key is pressed in the current new chart, all the information contained...
[Deleted]
Hello, I have an EA that uses 3 ima indicators ma3, ma30 & ma60. The default on the chart is a red line for each. How can I change the defaults so I can get a different line color for each one. I want to do it in the EA using the MQ4 code. I do not want to manually have to change it in the chart...
i need help to select lot of postion and save in array to select biggest lot to martingle double biggestlotbuyOrders()  {      double mark[]={};   for(int i=OrdersTotal()-1;i>=0;i--)                                          {      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))...
Hi All.  I'm trying to setup a backup redundancy for when my EA stops functioning on my PC.  I want to do this by having a second PC in a different location with an EA running and monitoring the primary EA in the first location.  The secondary EA will then kick-in when the primary EA stops...
[Deleted]
  Bobokus Fibs  (2)
I modified a bobokus fib custom indicator to automatically draw the daily, weekly, and monthly fibs on a chart. It is working pretty good. However, I cannot draw yearly fibs. The problem is that there is not a PERIOD_Y1 constant to pass to the period variable int shift = iBarShift(NULL,period...
Hi, I'm interested to know if there is way to check in MT 4 via a report or indicator/ea if a trailing stop loss on certain trades was placed or not and at how many points it was set at if so. Thanks in advance for any assistance with this.
I want to stop order by some moths. For example, from Feb to Nov, EA will trade but in Dec and Jan, EA stop trade. I put Stop moths in the array. If buy signal>0 and check to see if it is trade month or not. However, it is not working properly. Can you give me some advices what the problem is? int...
Hi everyone Im searching for an EA for MT4 that lets me set a trailing stop on each individual trade. Im currently using a trailing stop EA which has the basic features I want they are; break even SL after the trade goes a set amount of points in my favor and engage a trailing stop after trade moved
Hello again, I need to stop calculating a function because of CPU. I created a BUTTON. TRUE state => I call + dysplay my_function. FALSE state => I hide the dysplayed grapical objects and indications. (but the function is still there and take CPU ressources). How can I stop / kill the function's...
When we pass parameters into a user-defined function, we change the name of the variables being passed, but the values that the variable holds are obviously retained in the function. Why do we change the name of the variables when inside the UDF? This is something that has been confusing me for a...
Hi, Today I try to uninstall Tickdata Manager by using revo uninstaller advanced mode(actually shouldn't do) by deleting all related file and then MT4 can't open in every terminal.  then I uninstalled the MT4 exness with normal Windows uninstaller and reinstall it again I found the problem  and the...
Hi On one of my live account All my open trades are closing 00:00:00 on Fridays I can't find the reason why they are closing because they are not closing on backtest and on other livebrokers i have. The thing that are the difference between the brokes is that: -The one that are closing the orders...
I will want pen or pencil on MT4, Do you have some script for pencil or pen ? thanks
Dear sirs, I'm using an MA cross EA that closes orders on 8,25 periods and when launched it closes opened order instead of waiting for the cross to happen and then close the opened order although there's no error or anything else showing in the journal. find attached the EA's that I'm using they're
I develop in both MT4 & MT5 and when testing MT4 EAs to check they match MT5 I discovered this issue, the take profit in this visual test obviously gets hit but the tester doesn't trigger the take profit. Any chance this can be fixed because this is a major issue when EAs are sold mainly based...
[Deleted]
Hello   How we can compare double value ,when double value is nearly equal to zero? Please Help. 
can someone help me with this indicator? I need popup alerts and push notifications for both major and minor swings. would like cash register cha ching sound for major and anything else for minor.
I want to pull the data (ask and bid prices )  to an outside program and it will show me the spread at the same time. It can look like an excel sheet it does not matter but it has to be real time data. Is it possible to get the data real time? basicly it will look like this. thanks...
  Downloading MQL4  (3)
Anyone know how to download MQL4 rather than MQL5...?
hi for a specified time , for example 1 day before , or 4h , is there average spread function, for mq4 ? or can have it .? how can have such this ?
Hi Friends, I would like to know about an indicator that can calculate either price difference of a candle's HIGH and LOW or it can tell me in % the difference of HIGH and LOW. For Example: 5 Min Chart. Any Equity Cash or futures Share. 1st candle: high 102. Low 99. Open 100. H & L diff: 3.  And in...
Hi Dear programmer I have got the free indicator from other website, but it does not have alert system with it. I think it is a good trend trading indicator. Hopefully, Someone can make it easier to use by adding sound or notification /email. The file is attached below. Thanks in advance!!
hello, i have problem to download entire "history data's charts” with my live ecn mt4 (for example when i try to download an entire history data for EURUSD.pro M30, i only can get “2048 records” that mean only the last 2 months); i contact my broker, and they tell me that it’s not their problem, but...
Hi all! There is code of script which get the name of chart window in MetaTrader 4 terminal (e.g. "EURUSD,M1"): #import "user32.dll"   int GetParent(int hWnd);   int GetWindow(int hWnd, int uCmd);   int GetWindowTextA(int hWnd, string str, int nMaxCount);   int GetWindowTextLengthA(int...
Hello, I have attached a picture I have mentioned my question in that picture. Experts Please answer my question. Questions: 1. I want to ask what is stoplevel & freezelevel? please explain me in simple words I am not able to understand reference documentation. 2. How could I detect market pull back...