MQL4 and MetaTrader 4 - page 130

To post a new topic, please log in or register
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...?
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...
  Backtest issue (17   1 2)
Hi frineds, I'm going to backtest my EA on MT4 so I installed four MT4 in differenet directories and downloaded the historical data to backtest my EA for the 3.5 previous years. I started to backtest without using "visual mode" on all four MT4s and it worked well for about 6 hours but after that all...