MQL4 and MetaTrader 4 - page 128

To post a new topic, please log in or register
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!
F2T
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...
Hello, Can anyone explain me or have some solution for this. I am coding this app in c#. I loaded EA manually, make all to work, then i saved template file manually too, so i have template that works. I have EA that is loaded when i call ChartOpen() function, and after that i call template file with...
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...
I have developed a custom dll on my home PC (Win Xp Pro). The EA with the importeddll runs perfectly. When I try to run it on my server (Win Server 2003), it gives error 126. The settingsin the platforms are identical, I assume there is something different, somethingmay be missing in OS environment...
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))...
I've been writing quite a few EAs and I decided that I wanted to see the output of them in a "scrolling" fashion on the left side of the chart. So, I wrote this little function and I thought I'd share it.  Basically, you call the function by sending a new comment string. That will be output at the...
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...
Up until now, I guess that I have only used integers when using % in my code. double remainder = 100 % 30; works fine double remainder = 100 % 30.1; Compiler reports error '%' - illegal operation use as does double remainder = 100.00 % 30;double remainder = 100 % 30.00; So both values have to...
  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...
Hello, i want to build a simple indicator about my profit-loss analysis... as Select by pos is related to Ticket ID/Order Date... is it possible to create the same one but sort by Closing Date
hi is it possible to save all my open charts and the EA that are running on it . can I save it so that when I open mt4 again I can load them all automatically without having to place each EA on to a chart . also is it possible to transfer these setting to another mt4 platform 
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...
I have a lot of charts on my terminal and each chart has a lot of objects like trendlines and channels. I get very tired of double clicking each object to select it, right clicking it and then selecting Object Properties to bring up the Object Properties dialog box, every time I want to change...
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...
  Time filter (17   1 2)
Usually time filter is widely used. For those that need Hours time filter here it is:      if(((Hour()>=StartHour && Hour()<EndHour && StartHour<EndHour) ||         (Hour()>=StartHour || Hour()<EndHour && StartHour>EndHour)))     EAActivated=true;    else    EAActivated=false; Can somebody share...
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...
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...
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...
Hello, Using EA, can i open an html file with a browser. If some some one know please let me know. Thanks,
Anyone know how to download MQL4 rather than MQL5...?