Welcome,
I'm trying to write a signal timer and it's not working
The thing is that, the trend indicator sets a value in the buffer that is different from zero when an asterisk appears on the screen. Then the buffer is reset to zero until the next asterisk appears (that's why static bolean)
I wrote a code which is supposed to shorten the signal duration to 10 bars. The idea is to enter only at the beginning of the trend.
I do not know where the mistake is, but the robot enters only when the star appears. Please give me a hint.
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- iCustom
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