Expert Advisors and Automated Trading - page 151

  EA Code Query  (4)
I tried the code below to close half the open position once my unrealized profits exceed $200. This did not happen to my trades. Can anyone enlighted why so how what went wrong? I get the error message Error Opening order 129. How can i resolve this? THanks
Hello, has anyone ever experienced the following: I was working on running optimizations the other night when suddenly both the optimizer and running single backtests stopped working in MT5. By "stopped working," I mean that the optimizer and single backtest runs takes zero trades on all time frames
  Want Simple EA  (4)
i want to make an EA based of simple EMA
[Deleted]
Hi everyone I'm keeping getting this error and I don't know why. Tried to search in the forum but didn't found a clear answer, hope someone can help. Thank you! test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) there are no trading operations test on GBPUSD,M30
[Deleted]
Hello, I have looked at the: https://www.mql5.com/en/market/rules#part_IV and reviewed my product description.. However, I've even tried to remove all the description and leave a short placeholder text and still there is the warning.. I'm not using emojis, external links nor bad indentation as
I'm working on developing a pattern based entry using this class: https://www.mql5.com/en/code/291 The code for my EA is simple: #include <CandlePatterns.mqh> CCandlePattern m_candle; int OnInit () { m_candle.ValidationSettings(); m_candle.InitIndicators(); m_candle.MAPeriod( 20 ); return (
  python support  (2)
i cannot access the Python documentation anymore. Was the support for Python dropped? Does anyone have a link
Can anyone help me to replace the code of SMA with HMA ? Crossing. Thanks
Hi everyone, I want to loop through all open positions for one symbol and get the position with max. profit. This is my code: int Positionsforthissymbol=0;      for(int i=PositionsTotal()-1; i>=0; i--)   {      string symbol=PositionGetSymbol(i);         if(Symbol()==symbol)...
Hi there, I am new to MQL5 and like to open the settings menu of an EA under certain conditions. After searching the web and here I have not found anything, propably chosing the wrong keywords. Thanks for any help
Few weeks ago I have trouble with my VPS so I have to restart my VPS. But after restart I cant install EA from MQL5. I have asked to my VPS operator, they told me to ask to MQL5 administrator if they blocked my VPS ip address so that I cant install any EA from MQL5. Anyone can help me to solve
I just created a simple indicator with two moving averages , but CopyBuffer for the second indicator keep failing, so the terminal shows only the first moving average line instead of both. The code is pretty simple textbook example: // Configuration. #property copyright "<COPYRIGHT>" #property link
Hi all, I need to get the hourly range High - Low of a day and over x days. I written a sample to get daily range, how do I modify to get hourly range for a day and over x days? double low = 0 , high = 0 , total = 0 , adjustPT; for ( int i = 0 ; i <
  HFT  (5)
Is there anyone who has experience with HFT? I have read about it on the internet but I would like to hear the experiences of someone who has EA built for it. Thank you for sharing your experiences and advantages and disadvantages that you have experienced
If you have a selected horizontal line underneath a button and you click on the button while your mouse is over the horizontal line that's hidden by the button, even if the button has a higher OBJPROP_ZORDER value, the click's priority will be given to the horizontal line if you accidentally move
  Panel alignment  (1)
Hi everyone, I am new to mql5 programming. I'm having trouble learning to write panels. By default, the panel is aligned to the upper left corner. I don't know how to set the panel to align to the bottom right corner as shown in the picture. I need your help, thanks
Hi, I am having a Problem with 'HistoryBase Errors' in MetaTrader 4. It is when I download from the History Center in Mt4, and it says 'errors in EURUSD1' or any/every symbol. I noticed this error around 1 week ago, so I asked my broker to fix. They refused to acknowledge a problem, and refused to
How many currency pairs can be traded at the same time, with the same EA
  Namespace variable bug ?  (14   1 2)
Why only classes and functions are allowed in namespaces unlike variables ? namespace A { int x; } namespace B { int x; }
Hello everyone I am looking for a file for the gold (optimize) thank you pm
While running my code in debug mode and testing with real data using breakpoints, I encountered a peculiar problem. I was testing a custom function in the OnTimer() that enables users to delay the start of an EA by placing a pending order. Once the pending order is filled, the rest of the EA is
I wrote this function which returns two arrays, but i had to define it as a pointer. It's throwing me errors please can anyone help me here
A careless substitution resulted in code that I was able to reduce to this: void Test() { bool b; b[ = true; if (b[) { b[ = false; } } 1. the code is compiled without errors. 2. it is executed without error. 3. in the debugger after the assignment b[ is displayed as true. 4. the "if"
I want start to program an EA for myself, how to start learning this skill ??? from where I have to begin
Keep getting 'tester agent authorization error' when testing anything from the market. I do not see anywhere I can ask for help. Please help me as I just want to trade with MT5. Thanks in advance
Hi, I have X positions open and TP & SL preset when entering. I want MT5 to automatically correct SL for positions as soon as the profit condition exceeds Y pips. For example: + With a BUY position if current price > entry Y pips then modify SL = entry + Z + With a SELL position if current price <
Hello, is here someone who has these 2 indicators together in one indicator ? Can u please hit me here
  news filter  (1)
hi guys, i want to add news filter to my ea, preferably from forexfactory im talking about the high impact news, not economic calendar someone knows how can i do that? thanks
In my EA, I commonly use FOR loops to generate a series of labels, but here recently I have noticed that the ' last' LABEL in the loop or series doesn't always display the font, as the previous labels did in the earlier loops. ITo counteract that, I have in some cases Isimply created a 'ghost' label
hi guys , i had EA programmed on freelance and coder deliver ea and i paid him but i have issue with ea its opening trade in M5 but not opening any trade in any other time frame but when i run ea in tester it works perfectly fine but in live market its not opening any trade in any other time frame