Discussion of article "Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners" - page 15
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This error message appears in the compiler
and in the strategy tester this error message appears
All in all in the EURUSD and on the H1 chart.
Can you please help me?
LG
I am trying to compile the code provided in this tutorial but getting the error
iADX: wrong parameter count
at the following line
adxHandle=iADX(NULL,0,ADX_Period);
The code seems fine to me. How do I fix the error?
Could anyone help?
Which warning - which error messages in the Journal tab?
Unfortunately I get the same error message!
The advisor does not work with an ECN broker.
This is extremely frustrating that nothing works very well with the new MT5 and I want to switch to the newer version!
Thank you very much!
First opens 1 sell, then 1 buy and then a bunch of positions to buy, in the end all quickly drains. The code of checking for open positions is incorrect. I have not changed anything in the code
I tried to change the condition for opening a position at SAR crossing in the source code - it worked. Then I added the code of trailing (change of position by SAR) from the MQL5 reference book on the MqlTradeRequest structure. But it keeps generating the error [Invalid stops]. Apparently, something is wrong with the query. By the way, I am trying to study it (request to open a position) in different variants. And I got stuck on position modification. I don't understand at all, what am I doing wrong???? I have attached the Expert Advisor to this message.
Please tell me how to fix the code so that after take profit, the EA would not open a deal immediately, and waited for the next signal, for example, if the buy signal worked, closed at take profit, then wait for the sell signal.
After that only a new buy signal is triggered
Hello! very good tutorial, it's well explained, thank you!
But I have a problem, I got this error:
failed market buy 0.10 EURUSD sl: 1.04917 tp: 1.06217[Invalid request].
Hi,
I have a custom indicator, how to I create an EA, like in your example?