hello there, I am new to MQL4 and i am trying to draw a horizontal line (ray) on OHLC of a candlestick. So far, I am unable to do so. I tried ObjectCreate but no luck. Please help me out.
hello there I want to set an alert on my mt4 platform but I want it on the over bought or oversold indicator . can some one help me
Hi, I have some problems with my strategy tester.. I don't know why every time I run the tester only few day is ccalculated. For example: I set the usage from 01/01/2011 to 31/12/2011 the tester calculate only 01/01/11-05/01/11 or: I set usage from 01/01/2012 to 31/03/2012 the tester calculate only...
Hi, When saving a detailed statement from your MT4 account history, I see that there is a small section in the working orders that displays comments from an automated system, in the last column in the working orders section (as shown from account history). These comments would be extremely useful...
If Im using an iCustom function and my indicator has an output I want to use in my EA, can I?
Hi guys... Can anyone tell me how to insert a small "1/2" symbol into my Text.... string HalfHourSymbol = "?";string NFP_HeadsUp = "NFP Starts in 1"+HalfHourSymbol+" hours"; ...I'm struggling to work this small thing out... Thanx
Hi at all, i'm experimenting a very strange problem, i re-used some code from my old EA but the comment inserted in the OrderSend doesn't appear in Terminal even if the field Comment is selected. The strage thing is that, the same instruction in another EA works. Below the two statements: 1....
Hi I have 2 questions. 1-How can I check the last order ,closed with takeprofit or closed manually ? if closed with take profit, for example do something . 2-for every new order , ea check the other open orders ,if difference between ASK price and any order open price is higher than certain amount ,...
Hello, I'm testing a lot of EA in this period and often I observed that SL/TP values are not respected if setted in OrderSend function. Maybe I have to set a SL of 20 pips but, when order will be created, often it differs from 20 pips. I think that this happens because I check multiple time to...
Hello dear programmers, I am building an EA based on my strategy but as I am still learning how to code properly I ran into some troubles. Would really appreciate your help! So basically lets say that my strategy generates SELL signals at the price of X and then Y and then Z and so on. How can I...
Hi Guys, I am trying to back test an EA . My friend is reporting success with this EA and I wanted to check it out before dropping onto a chart on my Live account. It will not run on anything other than a Tallinex Live account. I set the Tester to run from 1st Jan 2017 to 25th August 2017 but it...
Hi everyone, I'm a beginner and I'm trying to learn. I have a problem, in this practice expert, I insert the stop loss exactly on the minimum of the candle and I would like the RR ratio to be 1 to 1. I'm trying to calculate the difference in pips between the maximum and the minimum and then add it...
Hi all, Wondering if anyone could tell me why I'm not being able to TRADE anything at all, there's no trade button available. I'm fairly new to all of this so may be something obvious! Many thanks.
Hi I don't know, if this has already been asked here, but I couldn't find it anywhere. My Metatrader4 platform lags big time and I don't know, what to do with it. I tried to google it, but the solutions I found didn't work in my case. I can't see the data in real time, as it refreshes only every few
Hello Just purchased an indicator but after logging in via metatrader and clicking the install button nothing happens, any idea what the problem could be kind regards Andrew
Hi all, I would like to extract the value lines from the attached indicator (using iCustom function in my expert) but I'm not able because I seem there are no buffers. Could you help me? Thank you!
I was wondering if anyone (Meta Trader or any programmer) can help me here with an issue that I have. I have an indicator called Extreme TMA Bands that I use in my EA logic, which is pretty much like Bollinger bands, that has an Upper, Middle, and lower Bands, and you can set the period that you...
this code produces the file shown: int start() { int handle = FileOpen(Symbol()+"_logfile.csv",FILE_CSV|FILE_READ|FILE_WRITE,','); if(handle>0) { //write file header FileSeek(handle,0,SEEK_SET); FileWrite(handle,"Symbol","idiot","idiot1","idiot2","idiot3"); for(int i = 1;i<10;i++) {...
Hi, I am stuck for a week on this problem: I have the same EA (can easily give it different magic nr's) on like 7 pairs. I do not want the ea open a position when there is already a position open on that particulair pair. I searched a lot on orderstotal, bools, magicnr's et etc. Finally I get...
ExtMapBuffer5[x] = (High[H2]); For some reason its not getting stored in my buffer! >__< If anyone can help Id appreciate it.
Hi, I have Metatrader 4, (which is compatible with my broker account), but can't trade multiple accounts. Does anyone know how to do this?
Hello, There are MT5 programs where OnChartEvent() and EventChartCustom() are used to get multicurrency datas The program is explained in this article Is it possible to adapt it for MT4 ...because what i tried is bugging
<p>hi guys, no matter what settings i use, sooner or later i always get the problem that the EA has one losing position open where price never comes back and can only trade in the other direction (same with trade trend on/off)<br />how do you deal with these situations? i read some comments before that one should always "trade with the trend" and only allow long or short trades, but to be honest: we all don´t have a magic crystal ball and know where price will go (if so we won´t need a grid system but just get rich in trading the trend)</p>
<p>so how and based on what facts do you adjust your settings regarding the "only but / only sell" descision and when do you close running, losing positions?</p>
<p>thanks for advice<br /></p>
Hi, does anybody knows if we have limitation in the History download on MT4? i have downloaded a history for SP500 from 1950 but the history center on MT4 has taken only candles from 1970 ignoring all earlier prices !
Hi guys, Im struggling with a simple string find function. I am using OnChartEvent handler, and my idea is to take the sparam and search it for a string, for example search for "Remove" in the object name, if there was a click on an object(button) on the chart. But the string find always returns 0 !...
Hi, Today I accidentally find a code by @futurespec, which makes hand drawing a segment line on chart very easy. Thanks @futurespec! It's what I have been dreaming of, for a long time ! I spend a little time to transform this segment line indi into a polygonal line indi. Now it's usable. But wait
Hi, I'm new to this and just wondering what functions in MQL4 I could use to make an EA place a stop loss above/below a reversal candle before the entry order is placed? Does anyone have some example code maybe? All help much appreciated, thank you!
[Deleted]
Hi! That's my first post, so let me welcome everyone. I have found few topics about my issue, but nothing helped so far. While working on my ea, I would like to get Highest price of last 4 bars. That's my code: if(Hour()==10) { int bar=iBarShift(Symbol(),PERIOD_H1,TimeCurrent());...
I have an array of N values as EA inputs with a default value. Instead to have N number of input fields , I would like to have a combo to select the i-th value in a single associated input field and change it. Is this possible
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.