Expert Advisors and Automated Trading - page 106

  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
Does anyone know a fix for this trying to get my ea to start making live trades but this is all I'm getting
As the topic title. I'm developing an EA and am having a hard time finding a solution for "news" timing. Those of you who have been through and experienced, please help. Thanks
Hi, I am new at posting to these forums. I followed the tutorial on the link: Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners - MQL5 Articles It has the "My_first_EA.mq5" file at the end. When I run the Expert Advisor in Debug > Start on Real data, It does not allow me to
Hi, WHat is the replaced function of WindowExpertName() in MQL5 ? How can i get expert name in MQL5? Thanks
Hi to all, I'm validating my first EA, but i'm stuck in this phase. I'm getting this error but if i run on EURUSD, NZDUSD etc etc, on the tester i'm getting the orders placed: Do you have any idea on how to solve this? Many thanks
it work at strategy tester but error in automatic vaildation void trailing() { for ( int i = PositionsTotal () - 1 ; i >= 0 && ! IsStopped (); i--) { if (m_position.SelectByIndex(i)) { if (m_position.Magic()==MagicNumber) { double pos_price
I'm writing an EA that I plan to publish. This EA includes my own versions with modifications of some indicators in the Indicators\Examples folder, including three that are not in this folder - SuperTrend, TSI and Keltner Channels. All the code is my own but the algorithm used is the same. Do I need