Minor tweak i cant figure out

 
This code works by executing buy or sell orders after a predetermined series of candlesticks..the problem i have with it is if you input it should sell after a 11111...it will also sell after 111111 and then do so after 11111111 and do so after 11111111 and so on..id like it to do the 11111 and then reset..wait for the next 11111 then execute
Files:
Morse_code.mq5  31 kb
 
I didn't look at your code (just read the post), but I think you need the pattern 011111 instead of 11111
 
Vladislav Boyko #:
I didn't look at your code (just read the post), but I think you need the pattern 011111 instead of 11111
Argh...dude..exactly...thanks so much,its exactly what i need to do,the code is good
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893