[Deleted]
In the MLQ4 Reference, there is a pre-defined variable called Point with the followingdefinition: "The current symbol point value in the quote currency." Beingnew to this world of trading, I was wondering if someone could provide a betterexplanation of what Point is, maybe in laymen's terms. Thank...
Since a long time i am using (1a) for ( int i= OrdersTotal ()- 1 ; i >= 0 ; --i) // Suggested by most of the experts for looping through orders, but whenever i come to forum for some guidance i often find that people are using (1b) for ( int i= 1 ; i<= OrdersTotal (); i++) // from the documentation
Hello community, I have a problem: When i trailing stop, sometimes i get error 136 (ERR_OFF_QUOTES). Example: Case AAPLm (Apple stock). But In most cases it works fine. Is there any error in my code or is this just my forex broker error? I am using exness broker, demo
Hello guys i developed an EA based on support and resistance using a support and resistance indicator that draws lines on the chart. The condition for a buy is once price touches the support line at the close of the candle it buys and if price touches the resistance line after the close of the
Hello, I wonder if i can use OrderMagicNumber() instead of OrderTicket() for closing the current position? OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),Slippage,Red); return ( 0 );
How can I show in MT4 the total LOT of all open sell orders (but not the pending orders)?
Below script works perfectly to see the amount of sell/buy orders. But now I'd like to modify so I only see the total sell LOT size. Could you please help me?
EA code: (this works for counting amount of...
Hi, Is it possible to get the current GMT value of New York using MQL4? I am based in UK and right now, NY is GMT-4. However, depending on the time of year, it is GMT-5. Obviously, I know this but, does MQL4 provide some kind of capability to interrogate and access the current GMT values for other
Hello, I'm trying to push object to array which function have to work with template. For now, I test with object. But when to push object to first element of array, the old one loss data after move. Please help me to keep data of object after move. Thanks very much! My test code is
This is a Moving Average Crossover EA made by Tom Whitbread. I have tried so many times to backtest This EA but it doesn't work. I could not find what is the actual problem in this code. Where is the problem anyone can find it? //+------------------------------------------------------------------+
Hey All I'm having a hard time telling if this version of the ASH repaints. Specifically with the signals "SuperSignalsPeriod". Indicator is attached Any help is appreciated, thanks
Hi, I just downloaded the new MT4 app on my mobile, because the old version didn't work anymore. My question is: I noticed that the new version of the MT4 app will give a sound with all the notifications including the messages from the 'community utility news'. I don't want that to happen, because I
void OnTick() { long ID = ChartFirst (); while (ID != - 1 ) { string Symb = ChartSymbol (ID); string TF = ChartPeriod (ID); string TrendlLine = StringConcatenate ( "Line " , Symb, " " , TF); double Value = ObjectGetValueByShift(TrendlLine, 1 ); Print ( "The
Need someone to code a simple breakout robot for mt4, I will attach what I have but it has several errors
(13 1 2)
Hi, This robot logic is based on Tom Hougaards advanced school run strategy which he distributes freely to all through his telegram resource channel. We want the robot to enter the market based on a break of a specified range determined by a time frame, specifically we want it to scan the 4th 5 min
Hello and good day to all! I am new to mql4 and recently developed an EA. I tried to optimize the EA using strategy tester and it worked fine with good results But when I try to test a single set of inputs (that was found among the optimization results) the result is nothing similar to the one found
So, I want to create a EA to communicate with my Notion DB each time I close a trade. My main problem is that I cannot connect to my Notion DB; server throws me a 5203 error. Don't know if I am doing the headers wrong or what else I am doing wrong. Here is my code: #include <JAson.mqh>; extern
Hey guys, im trying to draw an arrow that will appear on top of the candle sticks and not be hidden behind them as shown. Here are the Object settings that I am using. Any help on how they can appear in front of the bars?! Many Thanks string drawArrowSell = "SellOrderArrow-" +
I have a problem to ceck the orderselection. The orderclose function (partial)close always the operation, how can i stop like for partial close only 1 time ? i have ceck the lot but don't work int digit = ( int )MarketInfo(OrderSymbol(), MODE_DIGITS); int op[ 6 ] = { 0 , 0 , 0 , 0 , 0 , 0 }; for
Hello First i'm beginner with MQL4 I would ask about Calculate Commission like pips. I want function take paramter size the lot and return how many pips I need for Cover this Commission + Spread Becuase I want cover loss Commission and spread when you open order the company take Comission and spread
Hello guys! I want to maximize quality of my backtest in meta trader 4 version But I often face with bad results. Is there any way to increase quality of data used in backtest
Hi, If I want to run 20+ MT4 terminals on one machine, will the number of cores help? I've read online that having many cores doesn't help to speed up your MT4, but what if there are many MT4 terminals? Will different MT4 terminal processes spread among different cores? I lack IT knowledge to answer
Hello I've this grid system code from my EA. When the conditions for buy order have been fulfilled the Grid will be activated. Anytime the price moves down by the grip gap points the EA will open sell grid orders and when the sell order conditions have been activated and the price moves up by the
I'm trying to copy a file on my C: drive from mql4. I cannot use the inbuilt mql4 FileCopy command as the file I want to copy is not within the metatrader folders. Here is my test code, but it's not working. Any help would be much appreciated? #import "shell32.dll" int ShellExecuteW(int hwnd...
Hi I want to Calculate commission per lot/lot size. The broker I use charges $3.5 per lot, now the problem I'm having is I'm not sure if the calculation below is correct for commission. I use the following before calculating commission: double LotSize() { double LotStep=MarketInfo( Symbol
Hi everyone, could someone please help me solve this and tell me why this happens? I tried prev_calculated, IndicatorsCounted(), fixed amount of bars, also tried this https://www.mql5.com/en/forum/159093/page2#comment_16536812 , nothing worked... Thanks in advance
Hi. I've been trading for years, but I spend a lot of time doing things that a monkey could do. My system is essentially to trade both ways on a market, close at a profit and open a new position when the market moves a certain distance from the previous unclosed position. Is that possible to
Hello, I am using the followin setup: 1 Master account 15 clients account In order to keep things tidy I was thinking to separate the clients under two different Windows User on the VPS. So on User #1 I have the master and 8 clients, so I installed 9 times the MT4 platform under different folders
Hello, I've written this partial close function but it's not working as it's supposed to. I need your help in correcting the bug so that it can work in my code and help in closing orders partially after certain % of pips has been achieved. void ClosePartial() { if ( OrdersTotal ())
Hello I am a beginner, i just try to say: for ( int j = 1 ; j <= 900 ; j++ ) if (Close[i] > Close[ 1 +J]) It is mean that close 0 is above all closes of the last 900 candles, but i need to say that close 0 is above close 1 or above close 2 ... to the last 900 candles! when i write: int x= 1 || 2 ||
Hi, I am new in MetaTrader Help me to find original Indicator Name

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.