Expert Advisors and Automated Trading - page 99

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
As you see in the picture on strategy tester my expert enter and exit in the market at the sametime with like 40pip profit and this ruin all my calculation and so cant trust to strategy tester result .how can i solve this problem
  Weird Message  (5)
Good Day programmers, at the end of a backtesting I get this strange error, any idea what it could be? I have searched in different pages/forums about the message but without success. Also mention that nowhere in my code do I have a print, comment, etc. about it. This is the message: 2023.03.14
/// Following code always line with message "Filled Long " even when order sell is filled. void OnTradeTransaction ( const MqlTradeTransaction &trans, const MqlTradeRequest &request, const MqlTradeResult &result) { double postn_price, postn_volume; long postn_magic; CDealInfo
I am using MT5. I am subscribed to a signal provider and am using an MQL5 VPS. I am trying to close trades manually but they keep opening at the current (worse) price. I have disabled Algo trading at the top, I have unchecked; Allow Algorithmic Trading, Agree to the terms of use of the signal
Hi, a freelancer has just finished coding my new EA which seems to work well after the first backtests. I started running my EA on 12 different pairs on the MetaTrader VPS. However, 6 were removed during the night without my touching anything (see attached a printscreen of the "Experts" and
Is there an excellent developer who can program a strategy for price action based on double bottom/top
I get this message during optimizations Tester - imported DLL "kernel32.dll" not allowed in Cloud Network. But I am optimizing in my Local Network only. So ... is there any way to stop this ban? I want to use that DLL. Thank you so much
can I backtest an EA which is multi-symbol using strategy tester. in the EA, in inputs, I specify, the names of symbols to be trades in a comma separated format. eg: EURUSD, GBPUSD, EURCHF. etc so when I attach the EA on any ONE chart, it can place trades for all the symbols which I have entered in
Hello, I have made an EA for Metatrader 5 that uses a sqllite database file in the background, which is stored locally. Does the Metatrader VPS support sqllite databases and can I make my EA work on the server? How could the locally stored database file synchronise with that on the VPS ? The
[Deleted]
Hello forum, good day. How can the VPS be activated on MetaTrader4? I know that the broker I use offers that service, but I don´t know how to enable it on MT4. Your help will be much appreciated.   Best regards and thank you in advance, codeMolecules 
hi all do you know is it possible to use USDT.D dominance in metatrader5 as it has been using in trading view? I need some guidance about dominances to extract its data in my code, thanks