Hi Folks, i'm quite newbie to MQL and i try to draw a trendline in MQL4. The trendline should have a fix price, start at the time which i only have in a string (i.e. "06:05") and end at the time which i only have in a string (i.e. "10:45"). It should only be drawn for the actual date, not yesterday,...
I need to know how to insert a record to file, or to delete a record for that matter. More like database management. I used to think that FileSeek(Handle, 0, SEEK_CUR) would point to a position where a record would be written. But it does not point to any position. If the records were numbered, this...
Hi I want to close 2 open stop orders on each new bar. It is: 1 BUYSTOP order and 1 SELLSTOP order The below code works fine in tester and on demo account, and shows no errors or warnings when i compile. But before using on live account i want to make sure i am not missing anything important. 1. Do...
Wanting to include the Hull MA in an EA, I tried using the iCustom() call using the attached HMA indicator. This way it slows down the backtesting process very noticeably. Then I decided to adapt the indicator to create a function but the performance does not improve much. This function is called 4...
[Deleted]
I am new to the platform and can figure out how to get open close high and low information on each candle on the charts. Sometimes a box appears with the info other times nothing I do brings it up. sometimes it will appear for every candle I put the cursor on and other times I'll get nothing. Not...
Hi Could someone help me with a frustrating problem ? When I use the following command it works perfectly as a switch but always generates Error 4051. if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))return; I can just use GetLastError to clear but in an attempt to learn more about MQL4 I...
Hello everyone, I would like to setup Email alerts. I feel a little bit stupid asking this, but what does that mean?
I look at quite a number of charts, more than the chart bar at bottom of screen can display I end up having to spam click the next button on bottom right of screen to scroll through i find this inefficient Is there a way to wrap the charts such that i am able to see all the charts and click on...
Hi, I would like to know if is there a way to Set (by Script) the Long & Short, Only Long or Only Short options, when the EA is loaded... I tried to do this Saving 3 Templates, each one with one of these options selected (Long & Short, Only Long, Only Short). When i looked in those files, i noticed...
Is it possible to create an alert by putting an indicator on one 1hr chart, and the indicator will also alert other 1hr currency chart?
I am writing a simple indicator displaying 2 stochastic curves on the same window, using the standard functions of MT4. It works fine. When I add a 5th curve which give the result of a simple calculation (in the style of tenkan used by ichimoku ) but purely calculations - no std function MT4. When I...
Hello, Is it possible to only change the color template on a chart? Let's say I have an H1 EUR/USD chart with support and resistance lines, is it possible to change the color template from light to dark for example but still keep all the lines on the chart? I know you can change the color
We would like better connectivity for the MetaTrader 4 mobile APP. (iPad/iPhone/Android). To be able to actually trade on the APP... We understand that an EA is not possible because of the SIZE. But, at least a 'Cross-hair' tool, to be able to measure distance in points/pips, at least. But, we would
Any Broker supporting binary options through MT4 plugin, and providing its own historical data?
(30 1 2 3)
Everything is in the title :-)
[Deleted]
I have noticed that my EA's still show doubles in them as 4 digits even though the charts are now 5 digit - am I missing a trick here? Happens with both MetaTrader and IBFX. Do I have to download the install file again and re-install?
Hi My mt4 programming skills are very limited I've manage to create a simple EA with a EA builder platform The section that I can't seem to get right is to allow the Ea only to take a trade on any of the first 3 dots of the parabolic SAR if it goes on the 4th dot no trade will be allowed How do I
Is it possible to add a code to an existing indicator-alert which tells the code to look through time frames that are designated on the toolbar at the top of the meta trader 4 window? The way it works now is that I have to have separate windows open in different time frames in order for the alert to...
Hi I am using the Strategy tester to test an ea. On longer time spans reducing or increasing the date range by a week you just get that week missed off and the graph/results are similar. If i am going from say 3rd dec to 3rd feb i get a graph and set of results. If i shorten it by a week to go from...
Hello Everyone, I been trying to find an OBJ_ which will spin around if the mouse is clicked and the mouse moves position. what object would you use to accomplish this ?
Hi, I posted a similar topic yesterday and actioned a suggestion from Nicholi. However, when debugging again today, I got numerous instances of the "delete invalid pointer" message in the Experts tab, after the debugger inadvertently failed to stop at the first breakpoint. After going through my...
Hello everyone, I want to pass a dynamic object array via reference to another class. Here is an example how I tried it: void Class1{ MyObject *objectArray[]; // ... do fancy stuff with array Class2 class2 = new Class2(); class2.Create(objectArray);}void Class2{ MyObject...
Hello EA Guru, I have coded an EA and it is under test on demo account. I have noticed that sometimes EA dont open the valid trade. Further investigation reveals that EA is taking wrong candle value (open & close) for processing the entry rules. To elaborate further, as per rule EA executes all code...
hi All, Please let me know where I can find the code for iATR? https://docs.mql4.com/indicators/iatr Thank you,
@Mladen Rakic Good pm! can you help me with this the arrow will no appear unless you refresh it. If you don't mind and not busy kindly fix the error. Thanks and God bless
Hi, I've noticed that when debugging an indicator in MT4, I'm seeing a series of "delete invalid pointer" messages in the terminal's expert tab. In the indicator, every new object that I create is specifically deleted using "delete objName", prior to testing the object variable like so:- if(...
Hi, I want the Expert to run anytime in the last 30 seconds every hour (1H bars). I.e. anytime between XX.59.30 to XX.59.59 every hour. And only to be run once. Maybe I am just searching in the wrong way but I can only find how to run the EA at the start of the bar. Thank you in advance
Hi guys, thanks in advance for your time. I looked for the solution for a while, but nothing was right for me. Ill attach an Indicator. The problem is that iCustom return Empity Value (2147483647). That-s my simple code:...
Hello i have found a bug in mt4 platform . Does anyone know how to send it to mt4 programmers group in order to resolve it. Thanks in advance
Hi I would like that each time there is a new bar formed, my EA checks some instructions. So I wrote that: count1 = iBars ( NULL , PERIOD_D1 ); count2 = count1; while (etape == 0 ) { count1 = iBars ( NULL , PERIOD_D1 ); if (count2 =! count1) {
What is the ChartEvent that recognizes that an order has been placed or modified manually? Thanks in advance.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.