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
Hi, been trying to figure out how to put a trail SL on all open(regardless of how they were opened, manuell or with another EA) orders with a EA. now i have searched and looked everywhere and you are my last resource, the problem is i cant get it to go through all orders it does 1 until that is...
[Deleted]
We have coded expert advisor with dll. This EA can post all your orders with SL and TP from MetaTrader 4 to your Twitter with delay about 1 sec. (you can increase delay), you also can post profit with with a given frequency ( 1 time per week for example). 1) Open file run.bat with any text editor...
Hello everyone, I'm not really understanding this error message atm. string LOW=DoubleToStr(MarketInfo(symbol,MODE_LOW),digits); string HIGH=DoubleToStr(MarketInfo(symbol,MODE_HIGH),digits); string OPEN=DoubleToStr(MarketInfo(symbol,MODE_OPEN),digits); // 'MODE_OPEN' - improper...
The following code compiles in MT5 without errors, in MT4 it reports a "not boolean expression" warning - which is wrong. But when the code is changed in a way that it compiles without errors, only the half of the functions is executed....
Hi all, I'm trying to write an .mqh file to find the highest H1 Open for the daily bar. Could you help me? Thank you! double HIGHEST_H1_OPEN; double HIGHEST_H1_OPEN() { for(u=Hour()-1; u==0; u--) if ( ???? ) { HIGHEST_H1_OPEN = iOpen(NULL,PERIOD_H1,u) ; u =...
Hey guys, does anyone know a template (or maybe the correct terminology is framework) for expert advisors? A template(framework) that deals with all the order execution, Validation and so on and you just have to write down the Exit&Entry&Trailing stop rules. Thanks!
Hi, One of the major limitations of the Metatrader products this that they don't have access to the orderbook information via MQL. Could this feature be added to make the product even better? Thanks.
Hello am facing a problem that mt4 stops for few seconds and no connection comes and it connects automatically after 2-4 sec can anyone let me know how to solve this problem ? Thanks
Is there a way to use paid indicator in metatrader 4 when installed in linux via wine. The problem is that the market is the only thing that does not work and so far i havent found a way to run my purchased indicator cause when i try it gives me an error and there is no way to download the...
If I insert a pause of one hour in my EA after a position has taken the StopLoss, does this pause also occur in the backtest or only in real? I ask you why, I read that the Sleep function does not suspend the robot execution in the strategy tester. Thank you all for your help. Greetings, Giuseppe.
hi guys , after blackout , i restart my platform but , in taskmenager see terminal.exe with cpu usage 99% , but not show nothing , whats wrong ? any one can suggest somnthings thankz
First Hello to everyone reading this topic . I need your help I have this expert witch works great but it has no Take Profit I need some help to add Take Profit option. Its simple every candle trade expert the problem is that it has no take profit option and the second thing is that it has candle...
Hi guys. I would like to ask a small favour. This EA has multiple trades open at the same time (not sure what the developer did). Can I ask if you guys can put a parameter that only allows one trade open at a time? I have attached the EA. Thanks for any sort of help
Im trying to find the value of a Trend line Object at last close. Can anyone help? double ExtMapBuffer4 = ObjectGetValueByTime(0,OBJ_TREND,TimeCurrent(),0);
Hi... my first post so be gentle.. I'm new to MetaTrader, and signed up to a broker (LCG) and installed their MT4 download (build 1170). I also acquired a couple of custom indicators (just the .ex4 files) from a different source. I added the .ex4 files to indicators folder (via 'Open Data...
Hello everybody I'm looking EA or indicator that can move my TP to the negativ position. Or maybe it's posible to edit mq4 code. For ex. I open buy at 1000.00, TP is 1100.00 and there is NO SL. When price goes against me and reach 990.00 I want to move my TP to 995.00. When price will back to 995...
Hello coders, when I press the button named "test", the key-combo ALT+Q should be simulated and a small script which has the MT4 hot key ALT-Q should be executed. Pretty easy but it doesn't work. If I use in-built-hot keys like ALT-R for the window-arrangement or ALT-M for the chat, it works...
Hi there. I have exported a csv file with past 1 year of history from metatrader 4 for a forex chart. The timeframe is 1 minute. I used 'Symbols' (Or Ctrl+U) -> 'Bars' to export the csv file. However, when I tried to import the file again to view the 1 year history, it seems that there is no option
I need to scale the chart to maximum(or something below a bit below) in mql4. like when you put your mouse over the bar on the right and drag upwards. I've already tried: ChartSetInteger(0,CHART_SCALE,0,5); but this only zooms the chart and leaves the scaling as is. thanks in advance
Hello, I just want to know if it is possible to modify this script that I don't need to type the template's name. Instead I want to define some template names like {"temp1", "temp2", "temp3"} and these should be shown in a pulldown menu. Difficult to explain but I hope it is understandable what I...
Hi! can anyone help? write these bugs: connect error: 10049 handshake error: 10057

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.