
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
I have been using the SAR trailing stop according to your program for several years, but I find that it no longer fits my requirments. So I want to try the NRTR method, which I hadn't installed before, by just changing the include call parameters in my EA. Everything else I am doing just as before.
But I am getting the following error message:
'fabct1cN.mq5' fabct1cN.mq5 1 1
'my_first_ea_nrtrtrailing.mq5' my_first_ea_nrtrtrailing.mq5 1 1
'Sample_TrailingStop.mqh' Sample_TrailingStop.mqh 1 1
'OnInit' - function already defined and has body fabct1cN.mq5 134 5
'OnTimer' - function already defined and has body fabct1cN.mq5 258 6
'OnDeinit' - function already defined and has body fabct1cN.mq5 265 6
'OnTick' - function already defined and has body fabct1cN.mq5 285 6
'Lot' - constant cannot be modified fabct1cN.mq5 480 4
'Lot' - constant cannot be modified fabct1cN.mq5 820 22
'Lot' - constant cannot be modified fabct1cN.mq5 820 37
'Lot' - constant cannot be modified fabct1cN.mq5 851 22
'Lot' - constant cannot be modified fabct1cN.mq5 851 37
possible use of uninitialized variable 'tm' Sample_TrailingStop.mqh 248 20
9 error(s), 1 warning(s) 10 2
Any suggestions would be greatly appreciated!
Thank you in advance!
Regards,
Locan.BBS
MetaEditor outputs
" possible use of uninitialised variable 'tm' Sample_TrailingStop.mqh "
pointing to the line
m_lasttime=tm[0];
Thank you. Great article.
For who that are having problem with indicator nrtr: it's necessary download and compile the indicator, because it isn't a default one. Below, it follows the link: https://www.mql5.com/en/code/145
MetaEditor outputs
" possible use of uninitialised variable 'tm' Sample_TrailingStop.mqh "
pointing to the line
m_lasttime=tm[0];
I try the Parabolic SAR method but doing the backtest i see "invalid request" response.
I try the Parabolic SAR method but when I do the test-atras I see the response "invalid request".
I am trying to develop an EA I am having problems with "OrderSend". I do not understand programming language very much, I've already tried a lot of solutions and I did not find ... But it does not work. The message
appears ... It contains no errors, however no position is open during tests ... When testing with the demo account I'm not having success. The test runs and no position is opened at any time.
Can someone help me by indicating the necessary adjustments I should make?
I test it on
BOVESPA (Brazil)/ WINJ17/Demo Account/Metatrade 5
Can someone help me?
Thank's
New article How to Create Your Own Trailing Stop is published:
Author: Дмитрий
my_first_ea_sartrailing.mq5(26.61 KB
when compiling it gives five errors, I tried the downloaded one, and compiled it according to the instructions.....
at first I was happy that there is this article, now I'm sad that I can't use it, maybe I didn't understand something?
or I'm not doing it right..... hint me please!)