I tried to find a solution, but I couldn't find anything about it anywhere. My indicator doesn't give me any information on buffer, only shows me arrows. Is it possible to read the arrow to an EA without any buffer signal? TIA
Hi, I am trying to calculate the highest price and lowest price in the bar range from the bar at which 1st order was opened till the bar at which 'x' order was opened. but i dont know where am i am going wrong. The code seems to be refreshing the highest and lowest prices as new bars open up even
Hey guys, have been working on a simple EMA crossover indicator and was assisted by Keith some time back. Recently I tried to edit the signal arrow to occur on the current candle and not after it is closed. Can anyone please help out
Hi Experts, i need help. i want my ea to stop trade on friday. I use the dayofweek function. below is my code, int dayOfWeek = DayOfWeek(TimeCurrent()); if (dayOfWeek == 5) // 5 is for Friday { return (0); } But the mql compiler stated error message "DayOfWeek' - wrong parameters
Hi, I just want to ask for your useful idea. If flag becomes true, I just want to count 30sec, After 30sec, then I want to delete object. I tried to use Sleep(30000), but this sleep time stop other program in EA, so I don't want to use it. Do you have any good idea ? bool flag; If (some event
Hi all, I need an help to find orders closed during the current week, something like TimeWeek(OrderClosedTime())==Current_Week How can I write "TimeWeek" and "Current_Week"? Thank you
How to find the number of open positions with MQL4
Hi everyone. in this simple loop, several support lines are drawn.. the problem is: multiple lines are at the same value. how to make sure that the lines are at different values and they are not repeating the same ones? see example code below. thanks and good day:) void HLcalculation() { for (
Hi! I'd like test whether the OrderComment is a convertible from string to a number or not, but I can't find anything like an IsNumber() function. Is it possible to get around this? Basically I need the code to test wehter OrderComment() is of type "1.3650" or "BALANCER" in order for the code to...
Hello all, I am new here and looking for some help. In the attached file "Highlow custom.mq4" you'll find the source code of an indicator I downloaded. It has 3 buffers (buffer 0 1 2) which provide the high middle and low of selcted timeframe. My problem is when my ea requests the buffer value, it
[Deleted]
Hello everybody, i've got the following problem when testing ea: The result in optimization and testing without optimization are different (same parameters ). I think that come from the spread not taken into consideration in optimization mode. can somebody could confirm or indicate me the origin of
I'm having an issue where I've written an indicator and am now using it to backtest a strategy. I start my backtester in visual mode and then drop my indicator onto the chart. When I do that, the lines in the indicator don't ever update from that point forward, they just stay at the same value,...
Hi! I'm considering building an EA to assist me with entries for the strategy I'm trading right now. The only two aspects that are beyond me are the UI... how to create a draggable line on my chart that will set my SL & breakout levels, and how to create an on-chart interface with buttons for BE and
the ATR indicator is built-in in mt4. is there a way to put in on the chart like in tradingview rather than in a separate oscillator window
Hello there, Hope you are all well. I noticed my GVs disappeared after 4 weeks. So is there any way to extend the GVs to exist more than 4 weeks? If no, what would be the simplest alternative(s)? I'm not a coder originally, so please explain a little more <3 Your advice is greatly appreciated
Hello, Currently, I’m trying to merge many MT4 backtest reports. There are many tools that allow this but unfortunately all tools that I use merge only the trades without recalculating the lot sizes according to balance in the time of opening trades during backtest. Now I have a task in which it’s
Hi, could someone give a hand of help? I;m trying code a EA for MT4 . The EA checks if the Fibonacci Retracements tool exists on the open chart of the trading instrument. If it exists, the EA reads the price value corresponding to Level 0 and the price value corresponding to Level 1 in the Fibo. It
Hi coders I get compiler error "variable already defined". Why Please advise Thanks void OnTick () { //--- int ticket,i,total,result; total = OrdersTotal (); // same variable without errors here line 36, but not on line 43 ??? double faster = iMACD ( NULL , 0 , 12 , 26 , 9
I would have asked the guy I am copying this code from directly, but that is not so easy. Here is the code: void OrderEntry( int direction) { if (direction== 0 ) { if (OpenOrdersThisPair ( Symbol ())== 0 ) int buyticket = OrderSend ( Symbol (), OP_BUY, LotSize, Ask, 3 , 0 , 0
[Deleted]
Any way for MT4 to automatically read what prints in the "Experts" and/or "Journal" tabs in the terminal window?
Hi, I created an indicator to display volume + spread as 90° turned text objects in its separate window. At the beginning everything looks perfect!, but after a while (some hours on the m1 chart) it gets mad look at the attached snapshot. Can it be that mt4 gets into troubles by the non standard...
Hello... Could someone here help me. How do I make the EA in MQL4 for multi currency. Or could someone show the link to make EA in mql4 for multi currency? Thank you.
Can someone please kindly tell me how to find the date of a particular bar that is say 50 or 100 bars back (in code), so I can use that date for my indicator parameters. (I only understand MQL4 to some extent --- MQL5 is too confusing for me) Thanks in advance for all the help I have received here
Is there any way to monitor opened positions during the strategy test, and also close them by manually if needed. And i don't mean the "Results" tab, i mean the same view like you will have in live trading. Thanks,
Is there a way to comment out selected lines ? The /* */ break when used multiple times Thank you
int totalOrders = OrdersTotal (); int magicNumbers[]; ArrayResize (magicNumbers, totalOrders); int magicNumberCount = 0 ; for ( int i = 0 ; i < totalOrders; i++) { OrderSelect (i, SELECT_BY_POS, MODE_TRADES); int currentMagicNumber = OrderMagicNumber();
I would like to draw a rectangle in the background of the chart but with no colour fill. It looks like I need to set the 'back' property to FALSE in order to do this but I would like the 'back' property to be TRUE if possible so that the border lines do not draw over other objects. Is there a way to...
ello all, First of all both EA and Indi is not mine got it from internet. Need EA expert to modify the EA to open the order based on in RSI arrow, eg : if 1st arrow "up" open buy if TP not hit then open another buy at 2nd arrow and still not hit open buy at 3rd arrow and continue.. until max order
if I get the current Bar number for example 65029, then Close[65029] will return the value, but if directly use the Close[Bars] statement at that time, it will generate an "array out of range" warning, except the line "#property strict" is not written in script, is there any explanation for this
I need an expert advisor in mql4 that open pending (BuyStop and SellStop ) orders after entering the price of (BuyStop and SellStop ) every time in a text box with buttons on the chart to send the trades Also I want the expert to have tack profit and stop loss with trailing stop option

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.